Is it possible to detect things in a photo with PHP.

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Is it possible to detect things in a photo with PHP.

Post by tecktalkcm0391 »

I wanted, if possible, to be able to send pictures into a PHP script, and i'll tell me which ones are blurry, and then detect the faces in each photo... I couldn't find anything so I don't think its possible...

any idea/help?

Thanks! :P
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Is it possible to detect things in a photo with PHP.

Post by onion2k »

Facial recognition would be possible, but it's incredibly difficult to code. To be honest I imagine PHP would be too slow for it. I'm actually working on something vaguely similar right now for Intelligent Thumbnails ( viewtopic.php?f=40&t=80676 ). I'm not trying to select faces, I'm trying to make something that will work out which part of the image is the most "interesting" and make a thumbnail from that. I doubt it'll ever really work as well as I want it to, but that's not going to stop me trying. :twisted:

As for detecting whether an image is blurry.. that should be pretty easy. Not sure what the maths behind it would be though.
Post Reply