Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

errors running capture.py #39

Open
bert269 opened this issue Dec 24, 2020 · 2 comments
Open

errors running capture.py #39

bert269 opened this issue Dec 24, 2020 · 2 comments

Comments

@bert269
Copy link

bert269 commented Dec 24, 2020

Followed the instructions, All pre-req's are installed: When I run capture.py I get these messages:
python capture.py
Traceback (most recent call last):
File "capture.py", line 18, in
import lib.capture as capture
File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in
from . import config
File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in
(CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.version.split(".")
ValueError: need more than 3 values to unpack

What am I missing?

@randomstring
Copy link
Collaborator

Honestly, this code doesn't work well and there are many better face recognition platforms than the OpenCV module that this uses. This modules is no longer supported see https://github.com/paviro/MMM-Facial-Recognition-Tools#depreciated

If you insist on trying this code... I would guess that the OpenCV version is not what the code expects. You could print out cv2.version and debug from there

@randomstring
Copy link
Collaborator

maybe this pull request fixes it?

#26

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants