Page 1 of 1

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

Posted: Sat Apr 05, 2008 10:19 am
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

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

Posted: Sat Apr 05, 2008 10:37 am
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.