Read the statement by Michael Teeuw here.
MMM-Facial-Recognition-OCV3 FATAL: OpenCV Major Version must be 3
-
I’m working a new install of MagicMirror MMM-Facial-Recognition-OCV3 module on Raspberry Pi Buster 10 with CV2 version 4.3.0. When running the training module, it ends with the message FATAL: OpenCV Major Version must be 3. Is there a known fix without backing CV2 back to version 3.x?
-
@ghiesseldorf said in MMM-Facial-Recognition-OCV3 FATAL: OpenCV Major Version must be 3:
MMM-Facial-Recognition-OCV3
This won’t help you with this module but this module supposedly is old and has issues so this says…
https://forum.magicmirror.builders/topic/10674/mmm-face-reco-dnn-all-new-face-recognitionThis module however works fine (I just installed last week)…
https://github.com/nischi/MMM-Face-Reco-DNN -
@majik655 Thank-you, and interesting that you mentioned the MMM-Face-Reco-DDN module, because I gave up on the OCV3 module and moved to the DDN module. But, I’m getting an error in it that looks to be complaining about the use of a boolean operator (<) between different data types. The base facerecognition.py works just fine stand alone. But, when running with MagicMirror, the error occurs.
-
@ghiesseldorf
So I am not a developer nor programmer just a normal person who follows directions :)So what I know is I followed this for the open cv stuff because I had issues following other tutorials or got lost from all the updates that have happened and the links saying to use a specific version yet the links provided point to a newer version…
In any case maybe this will help you…
In the modules installation instructions it gets to the point where you install Open CV…
And provides links to it depending on what operating system to install it…SKIP over that
to where it says : OpenCV 4.1.2 quick installation (wthout compliation) for Raspbian Buster
And points to here: https://github.com/cyysky/OpenCV-Raspberry-Pi-4-Package-for-PythonI followed those steps, then continued on in the module’s install instructions…
So I am unsure where you are coming across that error (it sounds familiar, but I have done so much I can’t remember)… Installing openCV following those instructions is what made it “work” for me…
Also for the dataset it confused me at first and really all that is really needed is simple pictures from your phone (selfies) and put them in the correct directory as the instructions specify. (Anyway this was just a mention of what got me after the installation part of opencv but all works now I am also using a logitech usb c930 camera if it matters )
-
My dataclass boolean operation error got solved. https://forum.magicmirror.builders/post/78948