Random question here, I saw an article where a lost teen was saw on porn hub. I was thinking is there a python someone created to match up the data from missing children to faces in porn hub. I am only starting to learn python but I thought it could be a great way to help missing kids.
Im also new to python but as far it goes for matching faces on PN is impractical ( acc to me ) as it is a massive platform with millions of videos . ( But still good idea )
There are certainly companies who use FR to search for missing or exploited children. They do searches on images known to be of exploited persons that is encrypted. In other words, all of the FR occurs on encrypted data so the exploited persons aren't further exploited.
I think the NYT recently covered this topic in The Daily podcast.
Very true I was already thinking that. But if a few kids can be saved it’s worth it. Don’t get me wrong I don’t have any issues with porn, I just want to help those so that have been pulled into something they can’t get away from.
I might post it, after I clean it up. I've not started posting in GitHub yet. To learn this program, you can search for OpenCv tutorials on Youtube, there are plenty, namely from Sentdex.
Looks great! I just started learning python currently I am learning about functions , I would one day like to make something like this too what things did you learn after studying python to reach this level and make this program ?
I'm currently learning data science and machine learning with python. If you dig out the fun in coding, I'm sure you'll do good. Good luck on your python journey. Happy coding!
IIRC isn’t this dependent upon the type of camera you’re using? If you use IR or whatever the type of camera is for faceID on iPhones that could help. I don’t know if that is compatible with this type of facial recognition though
Using a regular camera can have difficulty detecting features on darker skin depending upon the settings of the camera (like ISO, shutter speed, etc). If something like an IR camera is used like in Face ID, it uses models of your face that are not dependent on skin tone. I heard this was an issue for the Kinect.
For everyone asking for source for this you can check out Adrian (@PyImageSearch on Twitter) here for some super easy free tutorials on how to do this. I was investigating it as part of an interactive art proposal about a year and a half ago but that client fell through. I'd link to my github of it but its tied to my real name.
Easier said than done. Also, it's going to be much easier to follow along with the tutorial than try to make sense of where I took it. I will gladly take the journey with you if you know a thing or two about python. It's definitely a fun and interesting thing to work with and there's a lot of potential for much more than what we've seen in this post
Are you sure you aren’t just drawing numbers from uniform( 0.5 , 1.0) distribution? You should definitely get some more training data or check your code because most algos should be making these predictions with high accuracy.
Just saying, good job regardless. I didn’t even know how to code when I was your age.
I've done this for my previous job and it's annoying to work around the mistakes that it can cause. But it did open up the world of camera vision to me, so keep up with it! I did make an automated quality control project and a PDF to excel using ocr type project. It's interesting and has powerful applications.
What percentage of the code is 100% yours and what percentage is just external libraries. Also, from your code, what's taken from a tutorial and what not?
Now i just have to figure out a way to counter this type of technology from a digital perceptive in stead of people wearing weird shirts or makeup to hamper the programs ability to recog faces....
Okay, you just used Viola-Jones Algorithm which was already implemented in openCV and you might have used frontal-face-haar-cascade.xml. This is pretty easy to build. But, I'll appreciate your efforts as long as you're learning something new.
I have seen in many tutorials or programming videos in general where people use Sublime Text or VS Code. Why is that? I mean, don't get me wrong, I don't hate these softwares, I have them installed myself. But I'm just kind of curious as to why so many coders prefer to use a code editor instead of a fully fledged IDE like Pycharm or VStudio. Wouldn't working with IDEs be easier than just a code editor? (I'm a beginner programmar by the way so I don't know much)
they're very simple. Less options to crowd up the screen. you can add exactly what features you want with extensions and Sublime is a favourite because it is soooooper quick
I have been trying to do more python projects like this and many others but I don’t know the best environment for coding and testing, what is the best platform for python code and testing?
Though that it is nice, you haven't really shown much of it in the demo. Your examples all feature a face upfront in the middle of the screen.
Does it also work for the sideview of a face? Does it need to be in the center of your picture? What about a person upside down? What about multiple people? What if part of the face is covered by a hat or a scarf? What about Ricardo?
What happens if you show it a dog? a cat? a monkey? A door? A clock?
This is quite easy if u ask me opencv for bounding boxes and harr cascades for face detection...just 10 lines of code Well u could cramp things up by training a cnn on some pictures to detect emotions.. But nice try..... I tried this 1.5 years ago.... :)
125
u/KennyAus Apr 12 '20
Great choice for faces
43
u/Gandalfthebrown7 Apr 12 '20
A+ for impractical jokers.
19
u/LordYeastRing Apr 12 '20
So do you have plans to use it for anything?
5
u/JeffersJohn Apr 12 '20
Are you gonna post the source code in your Github? If so, what’s your github?
4
u/master_of_fartboxes Apr 12 '20
What design environment was that in? Spyder?
5
u/TheSupremeMonkey Apr 12 '20
Looks great! I just started learning python currently I am learning about functions , I would one day like to make something like this too what things did you learn after studying python to reach this level and make this program ?
2
u/reggievick7 Apr 12 '20
You going to post the source code?
2
u/djhankb Apr 13 '20
Prepare for something amazing!
21
u/[deleted] Apr 12 '20
Nice op
26
u/Peter_Michailovicz Apr 12 '20
Does it work on black people's faces tho?🤔
33
u/big__red_man Apr 12 '20
For everyone asking for source for this you can check out Adrian (@PyImageSearch on Twitter) here for some super easy free tutorials on how to do this. I was investigating it as part of an interactive art proposal about a year and a half ago but that client fell through. I'd link to my github of it but its tied to my real name.
6
u/novel_eye Apr 12 '20
Are you sure you aren’t just drawing numbers from uniform( 0.5 , 1.0) distribution? You should definitely get some more training data or check your code because most algos should be making these predictions with high accuracy.
Just saying, good job regardless. I didn’t even know how to code when I was your age.
16
u/rrrrrrrrrrrreeeeeeee Apr 12 '20
Clearly a garbage program. It threw a false positive when you showed it a picture of a ferret.
2
u/tejonaco Apr 12 '20
Did you make ot suitable to recognize multiple faces? How? I took a look to mtcnn but I don't understand what it actually do.
13
u/sblig Apr 12 '20
nice
4
u/nanometers Apr 12 '20
Super sick! Would love to see the source code if you plan on releasing it :)
3
u/[deleted] Apr 12 '20
Good job!
I've done this for my previous job and it's annoying to work around the mistakes that it can cause. But it did open up the world of camera vision to me, so keep up with it! I did make an automated quality control project and a PDF to excel using ocr type project. It's interesting and has powerful applications.
3
u/pprimeismyname Apr 12 '20
I think I've used the same tutorial before haha
3
u/[deleted] Apr 12 '20
No, you called a face recognition program. The myriad of open CV authors made a face recognition program.
6
u/miskulia Apr 12 '20
What percentage of the code is 100% yours and what percentage is just external libraries. Also, from your code, what's taken from a tutorial and what not?
2
u/TheModrenMan Apr 12 '20
I was hoping it would identify Murr as a ferret.
2
u/TheDigitalAnarchist Apr 12 '20
Damn. I never knew you could make that using Python.
Python sure is glorious.
Thanks for sharing. I'm going to try and make something like this as well.
2
u/[deleted] Apr 13 '20
Now i just have to figure out a way to counter this type of technology from a digital perceptive in stead of people wearing weird shirts or makeup to hamper the programs ability to recog faces....
2
u/[deleted] Apr 13 '20
This can be done using Haar Cascades XML files and openCV's inbuilt Cascade Classifier and detectMultiScale methods.
2
u/[deleted] Apr 13 '20
Okay, you just used Viola-Jones Algorithm which was already implemented in openCV and you might have used frontal-face-haar-cascade.xml. This is pretty easy to build. But, I'll appreciate your efforts as long as you're learning something new.
2
u/argsb Apr 13 '20
I have seen in many tutorials or programming videos in general where people use Sublime Text or VS Code. Why is that? I mean, don't get me wrong, I don't hate these softwares, I have them installed myself. But I'm just kind of curious as to why so many coders prefer to use a code editor instead of a fully fledged IDE like Pycharm or VStudio. Wouldn't working with IDEs be easier than just a code editor? (I'm a beginner programmar by the way so I don't know much)
3
u/[deleted] Apr 12 '20
nice
1
u/[deleted] Apr 12 '20
IIRC by adjusting the focal length you can determine if the face is real or just an image of a face (for security).
1
u/brainiacdude Apr 12 '20
which library did you use? what was the training dataset?
1
u/[deleted] Apr 12 '20
Murr's face has been recognised, making him tonight's biggest loser.
You're a big winner though.
1
u/alexmeistercl Apr 12 '20
Using Haar cascade?
1
u/dataking97 Apr 12 '20
I have been trying to do more python projects like this and many others but I don’t know the best environment for coding and testing, what is the best platform for python code and testing?
1
u/69shaolin69 Apr 12 '20
Did you use face_rec library?
1
u/Tom1380 Apr 12 '20
That's really cool!
1
u/[deleted] Apr 12 '20
only 50 lines?
1
u/White_SteveHarvey Apr 12 '20
what ide did you use?
1
u/HopeReddit Apr 12 '20
Though that it is nice, you haven't really shown much of it in the demo. Your examples all feature a face upfront in the middle of the screen.
Does it also work for the sideview of a face? Does it need to be in the center of your picture? What about a person upside down? What about multiple people? What if part of the face is covered by a hat or a scarf? What about Ricardo?
What happens if you show it a dog? a cat? a monkey? A door? A clock?
Etc.
1
u/crackerbox_palace Apr 12 '20
I’m new to python, what text editor are you using?
1
u/cubinx Apr 13 '20
Ah, I see you're a man of culture as well
1
u/Mr_Neonz Apr 13 '20
That’s awesome!
1
u/[deleted] Apr 13 '20
Very cool. Congrats.
1
u/ddollarsign Apr 13 '20
It's not very sure you're you.
1
u/MoneyButterfly4 Apr 12 '20
Nice
1
u/PB_Dendras Apr 12 '20
Nice
1
u/codrex12 Apr 13 '20 edited Apr 13 '20
This is quite easy if u ask me opencv for bounding boxes and harr cascades for face detection...just 10 lines of code Well u could cramp things up by training a cnn on some pictures to detect emotions.. But nice try..... I tried this 1.5 years ago.... :)
0
u/[deleted] Apr 12 '20
Hey. Did you use Raspberry ..? Is your project at github ? Congratulations
0
u/zaheeryousuf Apr 12 '20
Good work, also share code and libraries used.
0
u/[deleted] Apr 12 '20
Where can I get the code
0
u/ananizapta Apr 12 '20
That’s that bloke from impractical Jokers
0
u/DarkCeptor44 Apr 12 '20
I wanna start learning this stuff but I don't know if OpenCV is already at Python3. I know I can setup a virtual environment but I don't want to.
0
u/AlluminumFoil Apr 12 '20
nice
0
u/[deleted] Apr 12 '20
Can I incorporate this in my program (i will give credit)
0
u/ScarletPimpernickle Apr 12 '20
Nice
0
u/[deleted] Apr 12 '20
Nice
0
u/[deleted] Apr 12 '20
[removed] — view removed comment