Random header image... Refresh for more!

Spatial Anomalies

I think I may have run into a problem on my quest to remove Wesley Crusher from Star Trek before I’ve even started writing the algorithm to do so.  The algorithm I was planning on using appears to require highly normalized data.  As in every face needs to be looking in exactly the same direction and be the same size in the frame.  As the images I pulled are random grabs from an episode, they’re looking left or right or straight ahead or are blurry or have varying degrees of Face vs. Hair, etc.  I’m concerned that I’ll just get a completely muddled recognizer that is looking for one totally random blob of pixels vs. another.

I’ll try it anyway, though.  Even if it doesn’t work, I’m sure it will come up with some interesting results…

November 27, 2009   No Comments

End of Day 2.

Today definitely involved more work than yesterday.  At the end of the day, I’ve got a decent face detector written, with massive help from OpenCV.  More importantly, I’ve got over 1500 facial images extracted from an Star Trek episode that I can use for training the face recognizer.  That’ll be tomorrow.

It should be noted that when you’re randomly grabbing frames of people’s faces from a video, you end up with a lot of goofy looking facial expressions.


Anyway, if you want to see the rest of the facial images, they’re in SVN, located here:  https://mathpirate.net/svn/Projects/AlternativeInputDevices/Data/TNGFaces/

November 26, 2009   No Comments

Images Acquired

It finished processing the first episode and extracted 1829 things it thinks are faces.  The vast majority of them are good quality faces.  The remainder are poor quality or blurry faces of people in the background, various body parts that aren’t faces, and, of course, random pieces of the ship.  Still, this should work quite well for training data.

Thing is, I have to manually classify this first bunch…

November 26, 2009   No Comments

Cloak Engaged

The face detector doesn’t seem to be noticing Geordi or Worf.  That’s understandable, since Geordi has the VISOR on and Worf’s got the ridged forehead.  However, it IS finding a Cardassian, who is completely covered in makeup.  Oh well.  Since the main use of this won’t be for Starfleet Security, I think I can get away without fixing that particular problem…

November 26, 2009   No Comments

Next steps…

Now, I need to do three things:

  1. Tweak the face detection settings so it’s not lame-ass slow.
  2. Tweak the face detection settings so that it doesn’t think walls and boxes look like faces.
  3. Get a whole bunch of identifiable faces for detection training.

Steps 1 and 2 might turn out to be difficult and error prone.  I know there were settings like minimum face size and tricks like grayscaling images and performing noise reduction that I skipped which may potentially help those problems. 

Step 3, though…  That I’ve already figured out…

November 26, 2009   No Comments

Okay, Now Get Back To Work

I hooked up the webcam and noticed the edge detector and contour recognition displays going wild.  So, I got a little side-tracked…

Star Trek

I am definitely going to have to play around with OpenCV some more when I’m done with this robot project.

September 7, 2009   No Comments

Resistance Is Futile

I am Locutus of Pong.


You will be assimiliated.


[Click for Video]

September 4, 2009   No Comments