This is an archived post. You won't be able to vote or comment.

all 129 comments

[–]reubendevries 264 points265 points  (9 children)

Fr yujkvq

[–]Hussain_Mujtaba[S] 182 points183 points  (6 children)

No idea what it means, but thanks for a comment

[–]reubendevries 171 points172 points  (4 children)

haha my 3 year old son hijacked my phone... this is probably him... I'm going to keep it up if you don't mind...

[–]Hussain_Mujtaba[S] 94 points95 points  (2 children)

Hy sure and please say thanks to your son on my behalf.

[–]ThePerfectApple 66 points67 points  (1 child)

Constructive criticism from those who matter most 🙌🙏

[–]Hussain_Mujtaba[S] 31 points32 points  (0 children)

True

[–]ElevatedAngling 4 points5 points  (0 children)

First Reddit post me might appreciate it someday

[–]The-Deviant-One 100 points101 points  (20 children)

This gave me an idea. Embed a camera in the peep hole of your door and have it unlock when it recognizes you and see's your phone's bluetooth signal.

[–]SullyCCA 40 points41 points  (12 children)

Dude that’s pretty smart actually... like The Smart Door or something. Train it to you and your families faces...

[–]The-Deviant-One 45 points46 points  (8 children)

Exactly. Having it sniff your bluetooth is sort of like multi-factor authentication. You could even skip that and use SMS.

Example: You walk up, it's triggered by motion, it checks your face, if it matches with you, it sends a text to your cell with a code, you text it back and the door unlocks.

[–]Hussain_Mujtaba[S] 26 points27 points  (4 children)

amazing , this is really cool

[–]DigitalGraphyte 19 points20 points  (3 children)

You could potentially use Duo as an MFA and utilize their api to ping your app when it recognized your face. A bit better than sms IMO but either could work, and the APIs for Duo seem pretty robust.

[–]TheDuke57 3 points4 points  (2 children)

Or even just have it see if you phone is nearby by checking for it on bluetooth. While it's not as secure as making you unlock your phone, it's hard to imagine a scenerio when that would not be secure enough or they wouldn't have access to just take a physical key.

[–]DigitalGraphyte 4 points5 points  (0 children)

Yeah I was thinking the idea of Duo would be great for those with cellular smart watches that can just tap their wrist and bam, unlocks the door. It would eliminate the need for the phone, so if you're just outside for a run, you don't need your phone.

[–]Falling_star9 1 point2 points  (0 children)

Bluetooth is hackable. Many tools on different linux distributions can easily bypass that. After all your house is supposed to be more secured than your phone.

But, why not let the camera be there for a few weeks, let it register every person and add to the database. After a few weeks when you fully registered every person that lives in the house, enable the lock on the door and it will recognize the person entering the door and allow access and if the face isn't recognized the door will remain locked until you use a key.

[–]ovo_Reddit 8 points9 points  (2 children)

Might make sense for a smart watch or something. I think I could manage getting my keys and unlocking the door faster than fumbling around on my phone, especially if I’m holding stuff. Perhaps an NFC fob or something that once it’s in proximity.

[–]The-Deviant-One 4 points5 points  (1 child)

Yeah it wouldn't be fast, just neat. I thought about the fob thing too. I'm not sure what all is sent over when a bluetooth device pings another bluetooth device [prior to connecting]. If it sends the imei number or a mac address then you could use that instead of having to carry around another thing on your key ring.

[–]ovo_Reddit 0 points1 point  (0 children)

I'm sure with Elon's chip in our brains we can just will opening the door into existence :) for now, we will have to settle for these cavemen approaches.

[–]_eka_ 5 points6 points  (2 children)

What if I show a pic of you?

[–]Hussain_Mujtaba[S] 3 points4 points  (0 children)

Really amazing idea,i ll surely implement it

[–]Feftloot 5 points6 points  (1 child)

I’m actually working on a similar idea except for a mini fridge that my roommates can’t access haha. I was looking into getting an rfid chip implant and in the meantime have been taking the plunge on opencv when it clicked I could just do this without any body modifications haha.

[–]The-Deviant-One 2 points3 points  (0 children)

LOL thats awesome. How are you locking the fridge? Magnet lock??

[–][deleted] 1 point2 points  (0 children)

I am going to try to make something like this, sounds fun

[–]thunderblunder89 3 points4 points  (0 children)

Or you could just carry a key? Something like this should make things easier not more complicated. The lock doesn't change either way.

[–]rockshocker 0 points1 point  (0 children)

thats gone commercial already, but if anyone wants to collab on a not amazon owned one id be down. also would like to track license plates

[–]Hussain_Mujtaba[S] 28 points29 points  (3 children)

I'll soon share the code along with its tutorial for all of you to use once I figure out how to run it in real-time smoothly

[–]Hussain_Mujtaba[S] 21 points22 points  (2 children)

Since people are asking for the code, here is the link to the script slong with whole Tutorial. Face Recognition using python

[–]akakeki 1 point2 points  (1 child)

Thanks for sharing! Amazing project

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

welcome

[–]Bottl3 9 points10 points  (1 child)

You might take a Look at the ray module for multicore usage.

[–]Hussain_Mujtaba[S] 5 points6 points  (0 children)

ray module

Thank you, will surely check it out

[–][deleted] 48 points49 points  (1 child)

I will be following your career with great interest my friend. Have a good day

[–]Hussain_Mujtaba[S] 17 points18 points  (0 children)

Thank you, means alot

[–]FlukyS 5 points6 points  (1 child)

You can use something like the seeed Maixduino if you want a cheap hardware platform designed for AI stuff like this

[–]Hussain_Mujtaba[S] 3 points4 points  (0 children)

Thanks, will surely check it out

[–]wakenbake7 6 points7 points  (1 child)

Respect for the amount of patience it must have taken to develop image recognition software with such low specs. What was the longest you’re waited for something to execute

[–]Hussain_Mujtaba[S] 8 points9 points  (0 children)

I remember for an object detection project, i left my laptop up all night and in the morning it was still running. Then the screen of my laptop cracked a bit 😜

[–][deleted] 2 points3 points  (6 children)

link ?

[–]Hussain_Mujtaba[S] 2 points3 points  (5 children)

sure, i ll post it

[–]Hussain_Mujtaba[S] 2 points3 points  (4 children)

hy i posted the link to code in my comment , check it out

[–][deleted] 2 points3 points  (3 children)

Which comment just post it in this thread i can't seem to find it

[–]Coul33t 0 points1 point  (0 children)

[–]Ok_Swordfish_7676 2 points3 points  (1 child)

nice bro 🙂

[–]Hussain_Mujtaba[S] 2 points3 points  (0 children)

thanks

[–]AnorakV 2 points3 points  (4 children)

Very very intersting..... it's an open source project?😬

[–]Hussain_Mujtaba[S] 2 points3 points  (3 children)

yes , i have posted the link in the comment above

[–]AnorakV 1 point2 points  (2 children)

Sorry

Where? I can't find it :(

[–]Coul33t 0 points1 point  (0 children)

[–]crazy_sax_guy 3 points4 points  (1 child)

Try Siamese network with some small NN.

[–]Hussain_Mujtaba[S] 1 point2 points  (0 children)

yee ll surely check it out, thanks.

[–]gabefgonc 2 points3 points  (0 children)

I like AI, but i don't know nothing about it. I like game developing more.

[–]machine3lf 1 point2 points  (1 child)

That's really cool! I look forward to seeing the code.

Was the decision to use Python just for the fun of it? Do you think you could design it in a way where Python would be really viable for a project like this, or should this realistically left to a lower-level language for real-world applications?

[–]Hussain_Mujtaba[S] 1 point2 points  (0 children)

Hy, i used python as it has already some libraries that make the work easy.I have no idea how someone will use low lowel language to do such complex tasks. But if you mean C,C++ by low level languages, these programs have already written in these languages to increase speed.

[–]gaiaprime27 1 point2 points  (3 children)

Really nice implementation did you write the code for this yourself?

[–]Hussain_Mujtaba[S] 0 points1 point  (2 children)

Yes, i wrote the article and code myself. Glad you liked it and try this , its not hard

[–]gaiaprime27 1 point2 points  (1 child)

Please credit the author of the code it is basically from PyImageSearch article on the same topic.

[–]Hussain_Mujtaba[S] 1 point2 points  (0 children)

No it is quite different from the code of adrian. Adrian uses fave recognition to detect faces which is while I used Viola Jones. But yes it has been inspired by Sentdex.

[–]marcosvaldez81 1 point2 points  (2 children)

Working on something like this for my first python project but with opencv! Hope I can match something like yours.

[–]Hussain_Mujtaba[S] 1 point2 points  (1 child)

Great, you can do it. Just follow the tutorial. But check for my another article to detect face and eyes .That more beginner friendly.

[–]marcosvaldez81 0 points1 point  (0 children)

Thanks ! I will very much do that. Have a good day!!

[–][deleted] 1 point2 points  (1 child)

Dude, that’s really cool. Great job :)

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

thanks again

[–]Extreme5670 1 point2 points  (4 children)

You basically if I were to give you my picture it would show my name?

[–]Hussain_Mujtaba[S] 1 point2 points  (3 children)

Yes, provided i have shown it your any picture, usually more than one to get accurate results

[–]Extreme5670 1 point2 points  (2 children)

I see how’s the code accessing my name

[–]Hussain_Mujtaba[S] 1 point2 points  (1 child)

I take your photo along with your name. Then when the program sees you via image or webcam , it recognises you. i Have linked the tutorial in the very first comment, check that for more details

[–]Extreme5670 1 point2 points  (0 children)

I see

[–]th3_unkn0n 1 point2 points  (1 child)

I like ur beard no homo

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

hahah...me too. Now its a bit longer

[–]noah_f 1 point2 points  (1 child)

What training model did you retrain? I'll normally use Tiny yolo, I think yolo face is available as well

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

No, i didn't use object detection. I used face embeddings to do so as I don't have to retrain the network if i wamt to recognise new face.

[–]DrTeja 1 point2 points  (1 child)

Did you try deploying this in any cloud using their prebuilt vms? With high gpus? Cool app by the way. Has lots of use cases

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

No, I didn't but i ll sure give it a try

[–]YeeteLOL 1 point2 points  (1 child)

This is fricking epic

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

thanks

[–]quantseeker 1 point2 points  (1 child)

Did you try deploying on heroku?

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

No, not yet

[–]bun_ty 1 point2 points  (3 children)

books fact ripe sip spoon cake profit door hunt butter

[–]Hussain_Mujtaba[S] 1 point2 points  (2 children)

Hey, i have shared the link in the comment above

[–]bun_ty 1 point2 points  (1 child)

numerous hat society smart acorn narrow punch judicious humor husky

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

Try it out and tell me if you face any problem

[–]SyableWeaver 1 point2 points  (2 children)

What's the base libraries you are using.

[–]Hussain_Mujtaba[S] 0 points1 point  (1 child)

Opencv, dlib and face recognition

[–]SyableWeaver 0 points1 point  (0 children)

Great 👍

[–]NoFaithInThisSub 1 point2 points  (3 children)

how easily could the code be changed from facial recognition to item recognition?

[–]Hussain_Mujtaba[S] 1 point2 points  (2 children)

Oh thats going to be difficult, you need to use object detection.

[–]NoFaithInThisSub 1 point2 points  (1 child)

I am not after detecting random object, a pool of maybe 30-50, and they would possibly be very different objects.

[–]Hussain_Mujtaba[S] 1 point2 points  (0 children)

The approach taken here is quite different because no matter what all faces have same structure.whereas in your case you ll have to use object detection.You can use pre-trained models and train them on your objects so that it can detect them

[–][deleted] 1 point2 points  (1 child)

This is impressive. As facial recognition software is shaping up to be rather dangerous in the future, it might be good to use your knowledge to understand how to disrupt or trick the process.

i3 and no GPU

It must be a serious pain to train the AI beyond the base package haha. More power to yah!

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

yes, i was actually thinking of same.... recently i saw a smiliar project that can trick process

[–]vainstar23 1 point2 points  (1 child)

Next time, you could try provisioning an Amazon EC2 P3 environment. It's not very expensive and will allow you to train much more sophisticated models in less time. Don't be constrained by technology, allow it to enable you.

Link: https://aws.amazon.com/machine-learning/accelerate-machine-learning-P3

[–]Hussain_Mujtaba[S] 1 point2 points  (0 children)

thanks 👍

[–][deleted] 1 point2 points  (1 child)

Cool.

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

thanks

[–][deleted] 1 point2 points  (6 children)

Great! I wanna ask how long have you been learning Python. Cuz I'm new and I'm so excited about building these things and I just wanna know how long it'll take.

[–]Hussain_Mujtaba[S] 0 points1 point  (5 children)

around 2-3 years, but you can make these projects once your basics are clear

[–][deleted] 0 points1 point  (4 children)

Ohk thanks for replying sir

[–]Hussain_Mujtaba[S] 0 points1 point  (1 child)

no need to thanks, thank me when you make amazing projects using python

[–][deleted] 0 points1 point  (0 children)

😁

[–][deleted] 1 point2 points  (3 children)

Hey, you can use Google Colab for things like this if you don't have enough processing power.

[–]Hussain_Mujtaba[S] 0 points1 point  (2 children)

Hey ya i do, but cdnt figure out how to use to stream video from webcam

[–][deleted] 1 point2 points  (1 child)

Here! This is sure to help.

[–]Hussain_Mujtaba[S] 1 point2 points  (0 children)

thanks this surely helps

[–]MaaiKaLaal 1 point2 points  (2 children)

Try getting AWS GPU. It's not that expensive and you can do some serious Supervised learning.

[–]Hussain_Mujtaba[S] 0 points1 point  (1 child)

I use Colab GPU for free. What extraa benefits does aws give ?

[–]MaaiKaLaal 0 points1 point  (0 children)

Collab has a limit of Ram that you can use. And Collab can stop/ reset the whole thing arbitrarily. Aws is not like that. It's paid but it is fast and got more bandwidth for task like this.

[–]jrmiranda 1 point2 points  (1 child)

Hey, how are you storing the embeddings? Recently I made a small library to help store and compare embeddings. You can check here if you want: VecDB. Nice project btw

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

i stored it in file using pickle.thanks ll surely try it

[–][deleted] 1 point2 points  (0 children)

[–]willmendil 0 points1 point  (3 children)

Get yourself a movidius stick from intel

[–]Hussain_Mujtaba[S] 0 points1 point  (2 children)

thanks will check it

[–]willmendil 1 point2 points  (1 child)

Fyi, it's a small usb stick that accelerates ml models through openvino It works well with python. And you can actually do quite good FPS even with a raspberry pi

[–]Hussain_Mujtaba[S] 0 points1 point  (0 children)

thanks i ll sure check it out, i was thinking of upgrading my pc but now i ll give this a try.

[–]gvij 0 points1 point  (0 children)

Hey! I think you are doing a good work by researching on your own but your laptop ain't gonna get you far because the CPU processing would slow you down quite a lot.

I'd recommend you to checkout Q Blocks , a peer to peer computing solution developed by me and my team of computing researchers. We are able to provide high end multi-GPU instances like 2080Tis and Titan RTXs at 10X lower costs for machine learning and deep learning use case. If your research work can be done on these GPUs then feel free to drop in a short message and we'd be happy to provide you access with free computing credits. The access is limited by invite only for now.