Go to Post I want to use some of that mass-less rod in our robot - saves weight. - ebarker [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 30-01-2012, 16:15
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: Calculating distance with an Axis Camera 206

Quote:
Originally Posted by shuhao View Post
There are numerous algorithms... we are trying opencv with relatively little success.

Anyone else have better experiences with opencv?
I am using the older version because I had big problems with new 2.3.1. I have starting to write the tracking algorithm I have detected the "parallelograms". Now here comes the math.
  #2   Spotlight this post!  
Unread 20-01-2012, 15:12
commonsense commonsense is offline
Registered User
FRC #3452
 
Join Date: Jan 2012
Location: Berrien Springs FRC
Posts: 16
commonsense will become famous soon enoughcommonsense will become famous soon enough
Re: Calculating distance with an Axis Camera 206

With the range finder we received you shouldn't need to use the Axis camera. The real question is has anyone found information for coding the rangefinder?
  #3   Spotlight this post!  
Unread 20-01-2012, 15:17
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Calculating distance with an Axis Camera 206

Quote:
Originally Posted by commonsense View Post
With the range finder we received you shouldn't need to use the Axis camera. The real question is has anyone found information for coding the rangefinder?
It's analog. It outputs a voltage read as an analog channel.

Relating to OpenCV, this shouldn't be necessary on the cRio as NI Vision (CVI) is fairly optimized (and already compiled) for VxWorks.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #4   Spotlight this post!  
Unread 21-01-2012, 09:22
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
About opencv...

I personally would like to mount a netbook on the robot
  #5   Spotlight this post!  
Unread 21-01-2012, 10:42
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: Calculating distance with an Axis Camera 206

If you haven't already, you should read this white paper on vision and the axis camera. It is from National Instruments and is specific to this years competition. The url is https://decibel.ni.com/content/docs/DOC-20173

You may need to register to download. It provides good detail on the algorithm used and possible errors.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

  #6   Spotlight this post!  
Unread 21-01-2012, 16:48
Solauj's Avatar
Solauj Solauj is offline
Registered User
FRC #0461 (Westside Boiler Invasion)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: West Lafayette
Posts: 4
Solauj is on a distinguished road
Re: Calculating distance with an Axis Camera 206

We are using OpenCV to track the vision target this year. I have been fiddling around with color tracking over the summer, so I have a little experience with it. I have been able to track the tape up to 16ft. away. Due to a lack of smoked polycarbonate, I don't have the actual vision target built yet.

Does anyone known how dense the polycarbonate is? All the manual says is "1/2 in. smoked polycarbonate" with no more description.

As far as determining distance, I thought using the target's relative size to the image size would be viable because the target is 2ft. wide.

What problems are you having with OpenCV? I'll try to help. Also you should get a hold of the book Learning OpenCV: Computer Vision with the OpenCV Library (ISBN: 978-0-596-51613-0). It's great for reference and (obviously) learning the basics.
__________________
  #7   Spotlight this post!  
Unread 21-01-2012, 17:59
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Calculating distance with an Axis Camera 206

Quote:
Originally Posted by Solauj View Post
What problems are you having with OpenCV?
I am not using OpenCV at all, as I am running all of my code on the cRio.

If you are running the vision on the cRio, using NI Vision (CVI) is a much easier way to go, as it is already compiled for VxWorks, all of the supporting code (get image from axis cam) is already written, there is an example to process rectangles, and you can use NI Vision Assistant to automate a bunch of it.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Closed Thread


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 18:38.

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