MMM-Facial-Recognition icon indicating copy to clipboard operation
MMM-Facial-Recognition copied to clipboard

OpenCV Version

Open dr4ke616 opened this issue 8 years ago • 2 comments

Hey,

Im wondering if its worth mentioning what version of OpenCV this project is compatible with. I installed OpenCV 3.1.0, and had some issues. One of which being cv2.createLBPHFaceRecognizer in the facerecognition.py script needed to be called from a face module, such as cv2.face.createLBPHFaceRecognizer.

Another issue is in 3.x versions model.predict doesnt return a tuple containing the label and confidence score, but rather it just returns the label.

Even better would it be possible to have it support both 2.x and 3.x versions. I am aware there are some backward compatibility issues when using 3.x from 2.x, so perhaps just a statement in the README saying which version of OpenCV is intended to be used?

iPython output:

In [1]: import cv2; cv2.__version__
Out[1]: '3.1.0'

dr4ke616 avatar Sep 11 '16 10:09 dr4ke616

I will check :)

paviro avatar Oct 03 '16 13:10 paviro

Any chance you could have a look how to add support for both?

paviro avatar Nov 20 '16 14:11 paviro