Society of Robots - Robot Forum

Software => Software => Topic started by: farnoise on November 10, 2011, 09:29:25 AM

Title: Object in video analyzer
Post by: farnoise on November 10, 2011, 09:29:25 AM
Hi Guys,
I am working on a robot that has a built in camera system and its basically a same concept of line follower except i dont want to use infrared, so I'm trying to use this camera to capture the screen and define the white lines from the dark background and create a focus point, so let say it detects the white line it creates the focus in the middle of white line and it makes sure this focus is always in the middle so it will follow the line as long as it goes and it can follow the line.

So I wonder if anyone has a similar experience so you can recommend a book or an article that I can take it from there, I am not really experienced in Image processing field

Thanks
Title: Re: Object in video analyzer
Post by: rbtying on November 10, 2011, 10:59:06 AM
Use OpenCV or some other vision processing library, iterate through the pixels from left to right, and weight an average by its intensity to find the center of the line.