OpenGL Car driving with OpenCV

preview_player
Показать описание
This is a virtual car driving program using OpenCV and OpenGL.

The wheel was made from Lego ( I didn't find better:)) and on it there are two squares which are detected and finally compute the rotation of the wheel. The square detection is simply: threshold the frame and find the contours of the remained object, after collected the contours which have 4 break points.
The program detects the size of the squares to decide where the car should go ( ahead or back ).

The OpenGL parts are very simple, I used a pre-made car ( I just converted it into the right format ), the terrain was made from a height-map.

Unfortunately, I have some problem with my webcam (as you see), it blinks, and cannot produce the right colours...
Рекомендации по теме
Комментарии
Автор

@doineverythingman
Did you mean what is this for? Just for fun:)
The point is controling something with a help of a web camera.

Neyma
Автор

Do you have github for this projects.

Timodia
Автор

@Neyma666 hi i am making project in which i control nfs car using detection of two circle on paper by camera like you...
if you have some theoritical data( report, presentation...etc) plz send me..

SuperVikaskaushik