nischi / MMM-Face-Reco-DNN

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

Working on OpenCV 3.6.4 #39

Closed CosDiabos closed 4 years ago

CosDiabos commented 4 years ago

Hi there,

I was able to make it work with OpenCV 3.6.4 in my Raspberry Pi 3 B+. Just saying so anyone doesn't break their heads trying to compile a higher version. I'm using the official RaspPi Camera v2.

I'll leave here the Terminal output to show the OpenCV version and running MM + a small gif showing it working on the MM.

pi@raspberrypi:~/MagicMirror $ pip3 list | grep opencv*
opencv-python           3.4.6.27
pi@raspberrypi:~/MagicMirror $ python3
Python 3.7.3 (default, Dec 20 2019, 18:57:59) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.4.6'
>>> exit()
pi@raspberrypi:~/MagicMirror $ npm run server

> magicmirror@2.11.0 server /home/pi/MagicMirror
> node ./serveronly

[2020-05-21 08:47:37.061] [LOG]    Starting MagicMirror: v2.11.0
[2020-05-21 08:47:37.077] [LOG]    Loading config ...
[2020-05-21 08:47:37.090] [LOG]    Loading module helpers ...
[2020-05-21 08:47:37.151] [LOG]    Initializing new module helper ...
[2020-05-21 08:47:37.153] [LOG]    Module helper loaded: MMM-Face-Reco-DNN
[2020-05-21 08:47:37.158] [LOG]    No helper found for module: alert.
[2020-05-21 08:47:37.253] [LOG]    Initializing new module helper ...
[2020-05-21 08:47:37.254] [LOG]    Module helper loaded: updatenotification
[2020-05-21 08:47:37.256] [LOG]    No helper found for module: helloworld.
[2020-05-21 08:47:37.258] [LOG]    No helper found for module: compliments.
[2020-05-21 08:47:37.260] [LOG]    No helper found for module: clock.
[2020-05-21 08:47:37.261] [LOG]    No helper found for module: currentweather.
[2020-05-21 08:47:37.263] [LOG]    No helper found for module: weatherforecast.
[2020-05-21 08:47:38.333] [LOG]    Initializing new module helper ...
[2020-05-21 08:47:38.334] [LOG]    Module helper loaded: MMM-Coinbase
[2020-05-21 08:47:39.180] [LOG]    Initializing new module helper ...
[2020-05-21 08:47:39.181] [LOG]    Module helper loaded: newsfeed
[2020-05-21 08:47:39.182] [LOG]    All module helpers loaded.
[2020-05-21 08:47:39.469] [LOG]    Starting server on port 8080 ... 
[2020-05-21 08:47:39.483] [LOG]    Server started ...
[2020-05-21 08:47:39.485] [LOG]    Connecting socket for: MMM-Face-Reco-DNN
[2020-05-21 08:47:39.486] [LOG]    Starting module helper: MMM-Face-Reco-DNN
[2020-05-21 08:47:39.488] [LOG]    Connecting socket for: updatenotification
[2020-05-21 08:47:39.489] [LOG]    Connecting socket for: MMM-Coinbase
[2020-05-21 08:47:39.490] [LOG]    Connecting socket for: newsfeed
[2020-05-21 08:47:39.492] [LOG]    Starting module: newsfeed
[2020-05-21 08:47:39.492] [LOG]    Sockets connected & modules started ...
[2020-05-21 08:47:39.493] [LOG]    
Ready to go! Please point your browser to: http://xxx.xxx.x.x:8080
[2020-05-21 08:47:59.491] [LOG]    [MMM-Face-Reco-DNN] loading encodings + face detector...
[2020-05-21 08:47:59.631] [LOG]    [MMM-Face-Reco-DNN] starting video stream...
[2020-05-21 08:48:36.063] [LOG]    [MMM-Face-Reco-DNN] Users jess logged in.
[2020-05-21 08:48:39.973] [LOG]    [MMM-Face-Reco-DNN] Users jess logged out.
[2020-05-21 08:48:51.232] [LOG]    [SIGINT] Received. Shutting down server...
[2020-05-21 08:48:51.235] [LOG]    [MMM-Face-Reco-DNN] Terminate python
[2020-05-21 08:48:51.239] [LOG]    Stopping module helper: updatenotification
[2020-05-21 08:48:51.241] [LOG]    Stopping module helper: MMM-Coinbase
[2020-05-21 08:48:51.243] [LOG]    Stopping module helper: newsfeed
[2020-05-21 08:48:51.246] [LOG]    [MMM-Face-Reco-DNN] Terminate python

Now in the MM: MM-opencv

nischi commented 4 years ago

Thanks a lot