|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Visual Tracking Help
Hi this is are teams second year and are first time trying to use visual tracking we are using Java (Eclipse) and our camera is the LifeCam HD-3000. My goal is to be able to find the distance to the high goal that we will be trying to score in. I have tried using Grip but it doesn't seem to have the capabilities to find the distance at the current stage in it development. Should I use OpenCV or some other visual tracking program. Any links to help get started would be appreciative.
Our Camera https://www.microsoft.com/accessorie...3000/t3h-00011 Thanks |
|
#2
|
|||
|
|||
|
Re: Visual Tracking Help
Quote:
|
|
#3
|
|||
|
|||
|
Re: Visual Tracking Help
Quote:
http://docs.opencv.org/2.4/doc/tutor...a_eclipse.html |
|
#4
|
|||
|
|||
|
Re: Visual Tracking Help
Quote:
|
|
#5
|
|||
|
|||
|
Thanks a lot for your help.
|
|
#6
|
|||
|
|||
|
Re: Visual Tracking Help
No problem I sent the email, you should keep this thread going in case there are any other vision experts as this was our first year with trying to aim with tracking too. I hope it works (have yet to see it though due to lack of practice).
We'll know Thursday. I'm sure he can get you started though. |
|
#7
|
|||
|
|||
|
Re: Visual Tracking Help
My team has been able to track both distance and angle to the target pretty reliably based off of GRIP. Search Tower Tracker from the programming subforum, we based our math off of that, but we used GRIP to find the contours.
|
|
#8
|
|||
|
|||
|
Re: Visual Tracking Help
I will look into this for sure I know how to use GRIP but didn't know it was feasible. I'll check back if I have any questions.
|
|
#9
|
|||
|
|||
|
Re: Visual Tracking Help
Once I have the conturs what do I do with them send them to the smartdash board or the driver station or do I have to integrate it into my code first?
|
|
#10
|
|||
|
|||
|
Re: Visual Tracking Help
Does anyone know how after I find the counters and send them to the driver station and the smart dashboard then how I can find the distance.
|
|
#11
|
|||||
|
|||||
|
Re: Visual Tracking Help
depends what you mean by 'distance' (which side of the target tracking triangle are you looking for). also, depends on what values you're calculating from the image and how you're calculating the angle to target.
the most general way to explain it is that you know how wide the target is (20 inches). you also know how wide the resolution is for the camera (that depends on the camera you are using and how it's set up). same with the field of view, as that's camera dependent. you can convert how wide the target is in pixels in your camera image to a distance to that target in inches by doing the trigonometry and using the pixels to inches conversion by keeping in mind that the target is 20 inches wide. that's probably a bit too ambiguous of an answer, but the specifics depend on how you're initially processing the image and calculating that angle to target. |
|
#12
|
|||
|
|||
|
Re: Visual Tracking Help
Quote:
|
|
#13
|
|||||
|
|||||
|
Re: Visual Tracking Help
of the whole tower? or just the goal target?
|
|
#14
|
|||||
|
|||||
|
Re: Visual Tracking Help
If you know the vertical pixel position of the target in your camera image and the vertical field of view of the camera in both pixels and degrees, you can compute the vertical angle from the camera to the target.
If you know the vertical angle to the target, the height of the target, and the height of the camera, you can compute both the horizontal distance to a point directly beneath the target and the straight-line diagonal distance to the target. The vertical field of view of the camera in pixels is a constant (720 pixels for a 720p image). The field of view in degrees is also a constant that you can measure. The height of the target is a constant, defined in the field drawings. The height of the camera is something you can define for yourself. Once you have the location of the target in the image, finding distance is a matter of simple trigonometry. |
|
#15
|
|||
|
|||
|
Re: Visual Tracking Help
Quote:
Height of camera is = 7in How do I find the vertical angle to the target and the vertical field of view of the camera in pixels. The camera says that its is a 16:9 widescreen I don't know if that the field of view in degrees or what is. Sorry I'm brand new to this Link to camera info is http://www.amazon.com/Microsoft-T3H-.../dp/B004ETQHDM |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|