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

Facial Recognition - Where do elements go go?

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 2 Posters 9.9k Views 5 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.
  • X Offline
    XxX_Cobra_XxX @plumcraft
    last edited by Dec 23, 2016, 7:52 PM

    @plumcraft said in Facial Recognition - Where do elements go go?:

    Hello,

    I’m trying to use facial trainer but i got this error ( when executing python capture.py)
    reference : https://github.com/paviro/MMM-Facial-Recognition-Tools/tree/master/facetrainer


    What do you want to do?
    [1] Capture training images from webcam
    [2] Convert ‘*.jpg’ pictures from other cameras to training images
    –> 1

    Enter the name of the person you want to capture or convert images for.
    –> plumcraft
    Images will be placed in ./training_data/plumcraft


    Starting process…

    Capturing positive training images.
    Press enter to capture an image.
    Press Ctrl-C to quit.

    Capturing image…
    OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp, line 3737
    Traceback (most recent call last):
    File “capture.py”, line 35, in
    capture.capture()
    File “/home/pi/MMM-Facial-Recognition-Tools/facetrainer/lib/capture.py”, line 57, in capture
    image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
    cv2.error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp:3737: error: (-215) scn == 3 || scn == 4 in function cvtColor

    I’m using a raspberry pi 3 with pi camera.

    Looking forward to use this module.

    Thanks

    I have the same error. Can everybody help me? I also use Raspberry Pi 3 with pi Camera.

    Thanks a lot!

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