Skip to main content

Posts

Showing posts with the label HITLAB

Camera Histogram Demo

There is a really cool demo for opencv in C called camshiftdemo. I decided to write a version in python... The only one I could find online used opencv with ctypes , so this was a simple enough modification to get it running in more pure "swigged" python. It's in my pycam repository if anyone is interested:  http://code.google.com/p/pycam/source/browse/trunk/pycam/cam-histo.py Here are some screenshots. This is the python cam shift demo tracking the orange on the XO's logo. Now tracking the green section, you can see the histogram for the entire image shown. It is a really simple demo, and quite fun! At the Hitlab open night this was what I used to keep the kids occupied! Unlike the previous computer vision post - this doesn't use pygame at all. It would be a really good example for the XO pippy computer vision package idea however.

Eye Locating

Image capturing is happening with the pygame.camera module. Object Detection is using an ObjectDetect class I wrote that wraps the cvHaarDetectObject from the opencv library. Just for fun the green box is drawn with pygame, the Red boxes are drawn with opencv. And the whole thing is rendered with pygame.

My Final Year Project working in the HIT lab

Well it looks like I got my first choice for final year projects, Sweet! Project: Robust Low Cost Eye Tracking. The HIT Lab NZ is interested in developing hardware and software for a robust low cost eye tracker that could be used for computer interfaces that respond to eye gaze. The hardware should be a head worn camera with Infra Red LED that shines in the eye and detects the reflection. Simple image processing software can then be used to detect the point of maximum reflection and so track the eye gaze point. The hit lab already has an early working version of this, the goal of this project is to explore alternative hardware designs and develop more robust software to work with the hardware. Work can be based on the OpenEyes platform. If there is sufficient time - an application showing how eye gaze could be used in a computer interface. Could have my work cut out for me this year!