Simpson fun with PerlMagick


                
                

                







I was curious if I could figure out face recognition.  Since The Simpsons have a
limited color pallette, I thought I'd have more success building an eyeball detector.
After extracting the frames of the intro sequence to a series of png files, I ran
them through a contrast generating script to get the green and blue images.
I then sought horizontal and vertical pixel patterns of black green black green black.
The first and last black is for the outline of the eye, the green tests for the whites
of the eyes and the middle black tests for the pupil.  The yellow dots were much
simpler to isolate.  I decided on a color range for the skin tone of Simpson characters.
The dots represent the first and last (upper left and lower right) pixels in the frame
that that match a color in the range.



More Simplson Images here.

More PerlMagic experiments here.



homer