Thanks Andrew Kirillov!
I have still one question. How I can to find relationship between real size of object and object on web cam?
Thanks
![]() |
|
|||||
|
||||||
Object Detction using one webcam
20 posts
• Page 2 of 2 • 1, 2
Re: Object Detction using one webcamThanks Andrew Kirillov!
I have still one question. How I can to find relationship between real size of object and object on web cam? Thanks
Re: Object Detction using one webcamHello,
If all objects appear on the same distance from camera (which is hard to guarantee in real environment), then you may try to estimate object size. You need to present to camera some objects of the know size - meter, 10 cm, 50 cm, 2 m - learning phase. On this phase your application should try to find relation between real object’s size and size in pixels. After this relation is found, you may try estimating size of other objects. BUT! This may work if all objects appear on the same distance from camera. If object may have arbitrary distance from camera, then you will not solve this task with one camera. You will need to get a stereo system - 2 cameras.
Re: Object Detction using one webcamHello
Where I can get some information about stero system? With 2 cameras I can get olny 3D picture. thanks for help Last edited by samosamo on Fri Sep 18, 2009 12:56 pm, edited 1 time in total.
Re: Object Detction using one webcam
As usually - Google. Stereopsis on Wikipedia is a good start. Here is one project on Code Google. Just make a search ...
Re: Object Detction using one webcamHi,
I am doing a project on making a pan tilt camera using Arduino duemilanove + motor shield and servo motors.Hardware part is working properly with manual trackbar movements.I have implemented the object detection algorithm using the article on http://www.aforgenet.com/aforge/articles/lego_pan_tilt_camera/ and it also working correctly.When I using my lap top web cam, pan tilt mechanism work properly.But when i switch to the pan tilt camera it do not work.If you can give any support on passing the correct center value of the detected blob to ardunio,it will be a great help for me. waiting for your reply,please help. Thanks, Dinesh
Re: Object Detction using one webcamHi,
I change my code to as following
but when the system detects an blob pan tilt camera moves away from the blob,,I cant understand why is happening like that..I hope any one can help me Thanks, Dinesh
Re: Object Detction using one webcamHello,
I would suggest to try debuggin. Check what is the center coordinate of your blob, what is the coordinate relative to image's center (which tells direction to move), check what is the instruction given to servos/motors. Keep in mind that positive direction of your servos/motors may be different from positive direction of image's coordinate system, so some negation may be required. In general - try to debug and understand what the code does.
Re: Object Detction using one webcamHi Andrew,,
Thank you very much for replying me.The picture box where I open the web cam has the size of (540,360).And previously I had a code like following
This work nice with the static laptop web cam.But when I switch to Pan tilt web cam it runs here and there when it detects a blob..I understand that with the movements of the camera the x,y coordinates get change and this logic is no longer suitable for dynamic camera..Then i implement the previous code.It also do the same..I checked several times,,but i can't catch the error.. Thanks Dinesh
Re: Object Detction using one webcamI am a university student of Sri Lnaka and I doing this as my final year research project.My application has facility to track the object based on color which is selected by a user,by clicking on the video.I have to implement live video streaming part to the client application also,But without completing the server application i cant go further.So your help will be appreciated..
Thank you, Dinesh
Re: Object Detction using one webcamHi,
I found a solution for my problem and now it works properly. ![]() Thanks all. Dinesh
20 posts
• Page 2 of 2 • 1, 2
|
![]() |
|