• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Facial-Recognition-OCV3 FATAL: OpenCV Major Version must be 3

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 1.1k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    ghiesseldorf
    last edited by Jul 17, 2020, 1:44 AM

    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?

    M 1 Reply Last reply Jul 18, 2020, 10:48 PM Reply Quote 1
    • M Offline
      majik655 @ghiesseldorf
      last edited by Jul 18, 2020, 10:48 PM

      @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-recognition

      This module however works fine (I just installed last week)…
      https://github.com/nischi/MMM-Face-Reco-DNN

      G 1 Reply Last reply Jul 20, 2020, 6:58 PM Reply Quote 1
      • G Offline
        ghiesseldorf @majik655
        last edited by Jul 20, 2020, 6:58 PM

        @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.

        M 1 Reply Last reply Jul 21, 2020, 3:32 AM Reply Quote 0
        • M Offline
          majik655 @ghiesseldorf
          last edited by majik655 Jul 21, 2020, 3:34 AM Jul 21, 2020, 3:32 AM

          @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-Python

          I 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 )

          1 Reply Last reply Reply Quote 0
          • G Offline
            ghiesseldorf
            last edited by Jul 21, 2020, 11:23 PM

            My dataclass boolean operation error got solved. https://forum.magicmirror.builders/post/78948

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              4/5
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy