lookdown video analysis code

Having seen that the ardone is using a lookdown camera for stability, I though I would put together a simple bit of code to look at a video stream and find point of interest. They seem to have a grid of 25 points that they lock on to points of interest but I have just picked any 100 points. It is this high because each frame is processed separately with no attempt to find a tracking point in frame n +1 close to where a point was in frame n.In my sample vid ( from micrsoft) it finds points OK and it can be seen that there is tracking , i.e. a point on the skier is followed across several frames. Video came from here http://support.microsoft.com/kb/119383 .I have seen examples of using cameras for horizon estimation but I think the look down camera has great potential for drone stabilisation.There are some built in functions in opencv that calculate so calledd optical flow and I think they combine feature detection across sequential frames. That might be the way to goAny suggestions, alternative code, sample videos, etc would be welcome.To run my code you need python2.6 and opencv ( I am on windows). You could change the code to use a usb camera but my laptop goes so slooooowwwww when I try to use the camera.

can3.py

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…