nischi / MMM-Face-Reco-DNN

Face recognition with opencv and deep neural network
MIT License
91 stars 46 forks source link

problem running python3 encode.py -i ../dataset/ -e encodings.pickle -d hog #90

Closed koenkv closed 2 years ago

koenkv commented 3 years ago

hello,

if I try to run python3 encode.py -i ../dataset/ -e encodings.pickle -d hog I get the following error:

pi@raspberrypi:~/MagicMirror/modules/MMM-Face-Reco-DNN/tools $ python3 encode.py -i ../dataset/ -e encodings.pickle -d hog Traceback (most recent call last): File "encode.py", line 5, in <module> from imutils import paths File "/home/pi/.local/lib/python3.7/site-packages/imutils/__init__.py", line 8, in <module> from .convenience import translate File "/home/pi/.local/lib/python3.7/site-packages/imutils/convenience.py", line 6, in <module> import cv2 File "/usr/local/lib/python3.7/dist-packages/cv2/__init__.py", line 89, in <module> bootstrap() File "/usr/local/lib/python3.7/dist-packages/cv2/__init__.py", line 79, in bootstrap import cv2 ImportError: libtesseract.so.4: cannot open shared object file: No such file or directory im running it on a raspberry pi 4 can anybody help me what I do wrong?

Dennisd80 commented 3 years ago

https://github.com/nischi/MMM-Face-Reco-DNN/issues/59#issuecomment-701476179

mikecheng2626 commented 3 years ago

I can open up MagicMirror as a black screen and the notification showed that it recognized me as mike.

This is my module in config.js for MMM-Face-Reco-DNN part:

22.txt

I then progressed to MMM-Face-Multi-User-Recognition-SMAI, followed installation instruction. I checked the public folder and there is no "mike" image, only "guest" image :((((

The encoding portion is like this...

1

The instruction said it will take a while from a macOS, but I was running python3 encode.py directly on rpi since I only have 4 images of myself. I'm not sure if serializing encoding... means it's good?

What should I do?

mikecheng2626 commented 3 years ago

I solved the modules part. It was my own misunderstanding where I just copied exactly what was shown on the page.

Still haven't solved the encoding.py part All I'm seeing right now is still public/guest image

nischi commented 3 years ago

what is not working with the encoding.py part? Your screen looks fine