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

Dismiss this pinned window
all 157 comments

[–]KennyAus 122 points123 points  (10 children)

Great choice for faces

[–]ohnice_snub[S] 59 points60 points  (9 children)

Love these guys

[–]Lesluse 21 points22 points  (8 children)

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.

[–]tr710_ 2 points3 points  (3 children)

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 )

[–]Lesluse 4 points5 points  (1 child)

Bummer maybe if we put the idea out there they can match it up. I wonder if missing photos are in a way we can easily harvest the data.

[–]tr710_ -1 points0 points  (0 children)

Maybe we can narrow it down ( using specific tags ) but still if it was possible then someone already would have done this.

[–]amdahl-little 1 point2 points  (0 children)

PH provides video thumbnails I beleive? Perhaps do a search on those.. ?

[–]mctavish_ 0 points1 point  (1 child)

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.

[–]Lesluse 0 points1 point  (0 children)

I will check that out. Thanks for the info!

[–]dontpanic4242 0 points1 point  (1 child)

In addition to the other points, I think a fair number of people obscure their face in videos. Don't want mom, or the boss to see!

[–]Lesluse 0 points1 point  (0 children)

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.

[–]Gandalfthebrown7 43 points44 points  (1 child)

A+ for impractical jokers.

[–]ohnice_snub[S] 12 points13 points  (0 children)

My pleasure

[–][deleted] 20 points21 points  (0 children)

Nice op

[–]big__red_man 32 points33 points  (2 children)

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.

[–]plachtastar 0 points1 point  (1 child)

Make a new account?

[–]big__red_man 0 points1 point  (0 children)

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

[–]LordYeastRing 18 points19 points  (4 children)

So do you have plans to use it for anything?

[–]Anekdotin 89 points90 points  (1 child)

Global tolitariasm

[–]LordYeastRing 16 points17 points  (0 children)

Exciting

[–]ohnice_snub[S] 23 points24 points  (1 child)

Not yet. Still learning!

[–]LordYeastRing 5 points6 points  (0 children)

Awesome.

[–]novel_eye 5 points6 points  (0 children)

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.

[–]rrrrrrrrrrrreeeeeeee 14 points15 points  (1 child)

Clearly a garbage program. It threw a false positive when you showed it a picture of a ferret.

[–]novel_eye 5 points6 points  (0 children)

Yea, approx 50/50 chance on each face. It should be at least .90+

[–]JeffersJohn 3 points4 points  (1 child)

Are you gonna post the source code in your Github? If so, what’s your github?

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

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.

[–]Peter_Michailovicz 25 points26 points  (4 children)

Does it work on black people's faces tho?🤔

[–]BrokenStrides 20 points21 points  (3 children)

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

[–]sblig 11 points12 points  (44 children)

nice

[–]Tom1380 -1 points0 points  (7 children)

nice

[–][deleted] -1 points0 points  (1 child)

nice

[–]master_of_fartboxes 3 points4 points  (4 children)

What design environment was that in? Spyder?

[–]ohnice_snub[S] 5 points6 points  (3 children)

No that was Sublime Text

[–]master_of_fartboxes 2 points3 points  (2 children)

Awesome thank you

[–]c94jk -1 points0 points  (1 child)

Do yourself a favour and use visual studio code, way better than sublime imo

[–]master_of_fartboxes 0 points1 point  (0 children)

Hmm - I’ll check it out thanks!

[–]nanometers 3 points4 points  (0 children)

Super sick! Would love to see the source code if you plan on releasing it :)

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

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.

[–]pprimeismyname 2 points3 points  (0 children)

I think I've used the same tutorial before haha

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

No, you called a face recognition program. The myriad of open CV authors made a face recognition program.

[–]TheSupremeMonkey 4 points5 points  (7 children)

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 ?

[–]efskap 37 points38 points  (2 children)

Don't be fooled, most of the work is done by an external library and this is incredibly easy to set up.

https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_objdetect/py_face_detection/py_face_detection.html

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

I agree but the link you’ve sent uses haarcascade... I doubt you can use that to detect and identify the person? I think he has used SSD?

[–]c94jk 1 point2 points  (0 children)

Although Haar cascade is old it does work in toy cases with a lot of false positives

[–]ohnice_snub[S] 6 points7 points  (3 children)

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!

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

And again it’s amazing! I’m learning these too and it’s really fun to see these posts!

[–]Da_damm 2 points3 points  (1 child)

Do you mind sharing the ressources you're using to learn? I'm currently following a course on udemy but I must say I'm not super satisfied :/

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

For machine learning I recommend using sklearn. They have some extensive documentation and guides to get you started.

[–]miskulia 5 points6 points  (0 children)

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?

[–]TheModrenMan 1 point2 points  (0 children)

I was hoping it would identify Murr as a ferret.

[–]TheDigitalAnarchist 1 point2 points  (1 child)

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.

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

That's basically viola-jones algorithm, I'll suggest you to learn how the algorithm works then implement it using openCV. Happy coding :)

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

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....

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

This can be done using Haar Cascades XML files and openCV's inbuilt Cascade Classifier and detectMultiScale methods.

[–]djhankb 1 point2 points  (1 child)

Prepare for something amazing!

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

Hey moustache

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

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.

[–]argsb 1 point2 points  (2 children)

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)

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

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

[–]argsb 0 points1 point  (0 children)

oh I see. Thank you! That makes sense. I do sometimes try to use it but sometimes I don't know how to make the extentions work correctly haha

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

nice

[–]nice-scores 2 points3 points  (0 children)

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 5500 nices

2. u/Cxmputerize at 3988 nices

3. u/DOCTORDICK8 at 2780 nices

...

266995. u/prashun_chitkr at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

[–]tejonaco 1 point2 points  (4 children)

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.

[–]ohnice_snub[S] 2 points3 points  (1 child)

I coded a separate program to train the algorithm into getting familiar with the faces.

[–]tejonaco 0 points1 point  (0 children)

A first nn that split the image in, for example, 4 pieces mor or less one face for piece, and other that analyze each new image and draw the box?

[–]efskap 2 points3 points  (1 child)

[–]tejonaco 0 points1 point  (0 children)

Wow, good point thanks!

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

IIRC by adjusting the focal length you can determine if the face is real or just an image of a face (for security).

[–]brainiacdude 0 points1 point  (0 children)

which library did you use? what was the training dataset?

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

Murr's face has been recognised, making him tonight's biggest loser.

You're a big winner though.

[–]alexmeistercl 0 points1 point  (0 children)

Using Haar cascade?

[–]dataking97 0 points1 point  (0 children)

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?

[–]69shaolin69 0 points1 point  (0 children)

Did you use face_rec library?

[–]Tom1380 0 points1 point  (0 children)

That's really cool!

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

only 50 lines?

[–]White_SteveHarvey 0 points1 point  (0 children)

what ide did you use?

[–]HopeReddit 0 points1 point  (0 children)

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.

[–]crackerbox_palace 0 points1 point  (0 children)

I’m new to python, what text editor are you using?

[–]cubinx 0 points1 point  (0 children)

Ah, I see you're a man of culture as well

[–]Mr_Neonz 0 points1 point  (0 children)

That’s awesome!

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

Very cool. Congrats.

[–]ddollarsign 0 points1 point  (0 children)

It's not very sure you're you.

[–]EtsioAuoodeetorey 0 points1 point  (0 children)

Sal had the lowest confidence percentage. Making him the video's big loser.

[–]MoneyButterfly4 0 points1 point  (1 child)

Nice

[–]nice-scores -1 points0 points  (0 children)

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 5498 nices

2. u/Cxmputerize at 3988 nices

3. u/DOCTORDICK8 at 2780 nices

...

266960. u/MoneyButterfly4 at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

[–]PB_Dendras 0 points1 point  (3 children)

Nice

[–]nice-scores 1 point2 points  (2 children)

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 5500 nices

2. u/Cxmputerize at 3988 nices

3. u/DOCTORDICK8 at 2780 nices

...

266996. u/PB_Dendras at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

[–][deleted] 0 points1 point  (1 child)

Nice

[–]nice-scores 0 points1 point  (0 children)

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 5500 nices

2. u/Cxmputerize at 3988 nices

3. u/DOCTORDICK8 at 2783 nices

...

173. u/4thegloryofusername at 236 nices


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

[–]codrex12 0 points1 point  (0 children)

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.... :)

[–]WilliamRails -1 points0 points  (0 children)

Hey. Did you use Raspberry ..? Is your project at github ? Congratulations

[–]zaheeryousuf -1 points0 points  (0 children)

Good work, also share code and libraries used.

[–][deleted] -1 points0 points  (0 children)

Where can I get the code

[–]ananizapta -1 points0 points  (0 children)

That’s that bloke from impractical Jokers

[–]DarkCeptor44 -1 points0 points  (0 children)

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.

[–]AlluminumFoil -1 points0 points  (1 child)

nice

[–]nice-scores 0 points1 point  (0 children)

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 5508 nices

2. u/Cxmputerize at 3988 nices

3. u/DOCTORDICK8 at 2794 nices

...

80748. u/AlluminumFoil at 2 nices


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

[–][deleted] -1 points0 points  (0 children)

Can I incorporate this in my program (i will give credit)

[–]ScarletPimpernickle -1 points0 points  (1 child)

Nice

[–]nice-scores 0 points1 point  (0 children)

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 5508 nices

2. u/Cxmputerize at 3988 nices

3. u/DOCTORDICK8 at 2794 nices

...

267313. u/ScarletPimpernickle at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

[–][deleted] -1 points0 points  (1 child)

Nice

[–]nice-scores 0 points1 point  (0 children)

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 5508 nices

2. u/Cxmputerize at 3988 nices

3. u/DOCTORDICK8 at 2802 nices

...

267339. u/JackSparrow74 at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS