TransWikia.com

AttributeError: 'module' object has no attribute 'face'

Raspberry Pi Asked by Luther on December 22, 2021

I installed openCV on my pi following this install guide https://www.murtazahassan.com/opencv-raspberry-pi-installation/

My goal is to use facial recognition however I am having no luck getting it to work.

recognizer = cv2.face.LBPHFaceRecognizer_create()

which throws the following error:

AttributeError: 'module' object has no attribute 'face'

I also ran the following command to install opencv-contrib-python:

sudo pip3 install opencv-contrib-python==4.1.1.26

also, no luck unless there is something else I need to run to get it to work?

Please be aware I am new to the python and raspberry community.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP