Jetson Nano - Face Recognition opencv-contrib

Hi, I am working on jetson nano and working on facial recognition while executing the codes I’m facing problem with attribute error :
File “/usr/lib/python3.6/tkinter/”, line 1705, in call
return self.func(*args)
File “”, line 235, in TrackImages
recognizer = cv2.face.createLBPHFaceRecognizer()#cv2.createLBPHFaceRecognizer()
AttributeError: module ‘cv2’ has no attribute ‘face’

I have also tried to install open-cv contrib but not able to successfully install using this command:

pip3 install opencv-contrib-python

Please help me with this issue.


Could you give below script a try?

It compiles OpenCV from the source with contrib enabled.

Thank you for the refrence
but can I install using pip command only?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.