EbenKouao / MMM-Face-Recognition-SMAI

MagicMirror Face Recognition module recognising your profile for Raspberry Pi 4
https://smartbuilds.io/
MIT License
83 stars 48 forks source link

multiple profiles (users) #5

Open destiny1976 opened 4 years ago

destiny1976 commented 4 years ago

Thank you for the module, looks great. I managed to get the module working for 1 user by manual installation. I'm a rooky and I am not able to write code. How can I add multiple users in the MMM-Face-Recognition-SMAI.py? Can you give an example code for e.g. 2 users? How should I name the image file for the second user? 1st user is face.png? Is MMM-Face-Recognition-SMAI.py the only file to be edited?

RaspiManu commented 4 years ago

I am in the same situation. I was able to get the module working yesterday, but could not figure out where to add or customize something to get multiple profiles working. Could you please tell us how, @EbenKouao ?

EbenKouao commented 3 years ago

Hi @RaspiManu,

So far this module is limited to one profile. If you would like to add multiple users, (an updated version) have a look at the Smart CCTV repo/tutorial this outlines how to add multiple profiles.

RaspiManu commented 3 years ago

Dear @EbenKouao and @destiny1976 , while working on some code changes for this module (offline) to add multiple users, I stumbled over the fork of @jimbydude, who already realised it in combination with the MMM-Face-Reco-DNN of @nischi, that uses the Deep Neural Network of OpenCV 4. I tried it and it works very well! I now have 6 users, that see different modules. That's why I would really like to see a pull from @jimbydude to the original repo of @EbenKouao as a contribution that would make the original module even more attractive and give the fork the attention it deserves.

Thank you all for the great work!

ismarslomic commented 3 years ago

I want to follow up on @RaspiManu comment above. I have also successfully installed https://github.com/jimbydude/MMM-Face-Multi-User-Recognition-SMAI since I wanted to support multiple users. It works great and now I would like to contribute in translations and some more fixes. But it seems like @jimbydude is not maintaining his repo actively (see PR https://github.com/jimbydude/MMM-Face-Multi-User-Recognition-SMAI/pull/1 from November 2020). In stead of making another fork of his repo It would be better to merge your two repos so community can contribute in further development.

@EbenKouao and @jimbydude: would you be supporting this suggestion?

jimbydude commented 3 years ago

Hi, Assuming you all get this reply. I've been fiddling with other stuff but will def be back to mirror repo soon I'm hoping but I'm totally fine with merging them. I'm also ok with maintaining the merged repo. CheersJim On Tuesday, March 23, 2021, 12:18:16 PM PDT, Ismar Slomic @.***> wrote:

I want to follow up on @RaspiManu comment above. I have also successfully installed https://github.com/jimbydude/MMM-Face-Multi-User-Recognition-SMAI since I wanted to support multiple users. It works great and now I would like to contribute in translations and some more fixes. But it seems like @jimbydude is not maintaining his repo actively (see jimbydude#1 from November 2020). In stead of making another fork of his repo It would be good to merge your two repos so community can contribute in further development.

@EbenKouao and @jimbydude: would you be supporting this suggestion?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

ismarslomic commented 3 years ago

Good to hear, @jimbydude! In the mean while I have actually forked your repo in order to start merging open PRs and do my own cleanups and extensions. Happy to merge it later on when you guys are ready!

https://github.com/ismarslomic/MMM-Face-Multi-User-Recognition-SMAI

RaspiManu commented 3 years ago

Hey @ismarslomic and @jimbydude, I am glad to hear that their will be some progress soon. I really like the great design of @EbenKouao and the multi user possibility of the fork of @jimbydude. It would be so nice to finally have it all together in the original module that already gained a lot of attention. Thank you for bumping this up again, @ismarslomic đź‘Ť

mikecheng2626 commented 3 years ago

I want to thank you all for your help! I don't know how to write codes and am currently on learning by myself on python as a super newbie beginner from YouTube, so I'm learning as I go. Really appreciate everyone's contribution to make this module more mult-user friendly. You guys are the best!

jimbydude commented 1 year ago

Been a while since looked at it but check that you have images in correct folder, and that the filenames for images are correct format/case. I think if I remember it expected them to be specific and the image name same as the login name. On Wednesday, June 21, 2023 at 08:08:59 PM PDT, Onem15 @.***> wrote:

I am currently working for a project that uses this MMM-Face-Multi-User-Recognition-SMAI but i have a problem, In the magic mirror it just displays the guest.gif even when i am logged in "[22.06.2023 10:49.47.313] [LOG] [MMM-Face-Reco-DNN] Users Jasper logged in. [22.06.2023 10:49.49.974] [LOG] [MMM-Face-Reco-DNN] Users Jasper logged out." I have the dataset and encodings setup already and the images in the public folder are all there.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Onem15 commented 1 year ago
Been doing that for a while then I decided to reinstall raspberry pi os and reinstall all modules and libraries and now its working Sent from Mail for Windows From: James MacdonaldSent: Saturday, June 24, 2023 12:56 AMTo: EbenKouao/MMM-Face-Recognition-SMAICc: Onem15; CommentSubject: Re: [EbenKouao/MMM-Face-Recognition-SMAI] multiple profiles (users) (#5) Been a while since looked at it but check that you have images in correct folder, and that the filenames for images are correct format/case. I think if I remember it expected them to be specific and the image name same as the login name. On Wednesday, June 21, 2023 at 08:08:59 PM PDT, Onem15 ***@***.***> wrote: I am currently working for a project that uses this MMM-Face-Multi-User-Recognition-SMAI but i have a problem, In the magic mirror it just displays the guest.gif even when i am logged in "[22.06.2023 10:49.47.313] [LOG] [MMM-Face-Reco-DNN] Users Jasper logged in. [22.06.2023 10:49.49.974] [LOG] [MMM-Face-Reco-DNN] Users Jasper logged out." I have the dataset and encodings setup already and the images in the public folder are all there. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: ***@***.***> —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>Â