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.2k 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

      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 Reply Quote 1
      • M Offline
        majik655 @ghiesseldorf
        last edited by

        @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 Reply Quote 1
        • G Offline
          ghiesseldorf @majik655
          last edited by

          @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 Reply Quote 0
          • M Offline
            majik655 @ghiesseldorf
            last edited by majik655

            @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

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

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                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