Go to Post The students who benefit from FIRST are the real "trophies". - David Brinza [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-28-2016, 08:10 PM
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 02-28-2016, 09:33 PM
Boltman Boltman is offline
Registered User
FRC #5137 (Iron Kodiaks)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2014
Location: San Diego
Posts: 795
Boltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud of
Re: Visual Tracking Help

Quote:
Originally Posted by joeojazz View Post
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
We used a Kangaroo and OpenCV I believe... not sure if its working yet as we have had little practice with it.. Seems though to recognize the goal and isolate it just fine.
__________________

Iron Kodiaks Team #5137 San Marcos, CA

2016 Semi-Finalist | Central Valley Alliance Captain #2
2016 Semi-Finalist | San Diego 2nd bot alliance #8
2015 Semi-Finalist | Ventura 3rd bot alliance #3
2015 Quarter-Finalist| San Diego 2nd bot alliance #5
2014 Rookie All-Star #21 | Galileo Division #91
Reply With Quote
  #3   Spotlight this post!  
Unread 02-28-2016, 09:40 PM
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
Re: Visual Tracking Help

Quote:
Originally Posted by Boltman View Post
We used a Kangaroo and OpenCV I believe... not sure if its working yet as we have had little practice with it.. Seems though to recognize the goal and isolate it just fine.
Do you know if you can help me or send me instructions on how you have gotten OpenCV to work. The only instructions I can find are... but they are really old.
http://docs.opencv.org/2.4/doc/tutor...a_eclipse.html
Reply With Quote
  #4   Spotlight this post!  
Unread 02-28-2016, 09:43 PM
Boltman Boltman is offline
Registered User
FRC #5137 (Iron Kodiaks)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2014
Location: San Diego
Posts: 795
Boltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud of
Re: Visual Tracking Help

Quote:
Originally Posted by joeojazz View Post
Do you know if you can help me or send me instructions on how you have gotten OpenCV to work. The only instructions I can find are... but they are really old.
http://docs.opencv.org/2.4/doc/tutor...a_eclipse.html
I'll send a message to a programmer and see if they can PM you.
__________________

Iron Kodiaks Team #5137 San Marcos, CA

2016 Semi-Finalist | Central Valley Alliance Captain #2
2016 Semi-Finalist | San Diego 2nd bot alliance #8
2015 Semi-Finalist | Ventura 3rd bot alliance #3
2015 Quarter-Finalist| San Diego 2nd bot alliance #5
2014 Rookie All-Star #21 | Galileo Division #91
Reply With Quote
  #5   Spotlight this post!  
Unread 02-28-2016, 09:46 PM
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
Talking Re: Visual Tracking Help

Quote:
Originally Posted by Boltman View Post
I'll send a message to a programmer and see if they can PM you.
Thanks a lot for your help.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-28-2016, 09:54 PM
Boltman Boltman is offline
Registered User
FRC #5137 (Iron Kodiaks)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2014
Location: San Diego
Posts: 795
Boltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud of
Re: Visual Tracking Help

Quote:
Originally Posted by joeojazz View Post
Thanks a lot for your 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.
__________________

Iron Kodiaks Team #5137 San Marcos, CA

2016 Semi-Finalist | Central Valley Alliance Captain #2
2016 Semi-Finalist | San Diego 2nd bot alliance #8
2015 Semi-Finalist | Ventura 3rd bot alliance #3
2015 Quarter-Finalist| San Diego 2nd bot alliance #5
2014 Rookie All-Star #21 | Galileo Division #91
Reply With Quote
  #7   Spotlight this post!  
Unread 02-28-2016, 11:14 PM
Breadbocks Breadbocks is offline
Registered User
FRC #1002
 
Join Date: Oct 2013
Location: United States
Posts: 39
Breadbocks is on a distinguished road
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-28-2016, 11:42 PM
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
Re: Visual Tracking Help

Quote:
Originally Posted by Breadbocks View Post
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.
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 02-28-2016, 11:46 PM
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
Re: Visual Tracking Help

Quote:
Originally Posted by Breadbocks View Post
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.
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?
Reply With Quote
  #10   Spotlight this post!  
Unread 02-29-2016, 08:30 AM
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
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.
Reply With Quote
  #11   Spotlight this post!  
Unread 02-29-2016, 09:43 AM
barn34's Avatar
barn34 barn34 is offline
Isn't this how Skynet got started?
AKA: William Barnickel
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Metamora, IL
Posts: 243
barn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond repute
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.
__________________



2016 Einstein Field WORLD CHAMPIONS & Carver Sub-Division Winner (330 & 120 & 1086)
2016 Smoky Mountains Regional Winner (3824 & 4740)
2016 Central Illinois Regional Winner (876 & 2220)
2015 Central Illinois Regional Winner (1756 & 2220)
2015 Rock City Regional Winner (2451 & 1625)
2014 Einstein Field Semi-Finalist & Galileo Division Winner (67 & 973 & 2363)
2014 Wisconsin Regional Winner (1732 & 2202)

--- Industrial Design Award (2010, 2015) ------ Innovation in Control Award (2013, 2014, 2016) ---
--- Quality Award (2015) ---------- Creativity Award (2014) ---------- Visualization Award (2009) ---
Reply With Quote
  #12   Spotlight this post!  
Unread 02-29-2016, 10:58 AM
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
Re: Visual Tracking Help

Quote:
Originally Posted by barn34 View Post
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.
I am trying to track the front one mostly. I am tracking the area, width, and height the pixels of the tower then would be 1500 pixels. My camera resolution is 720p HD. Don't know then where to go from there.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:38 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi