Go to Post FIRST, in itself, will not make you an engineer. - RogerR [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2009, 15:39
zackcool123's Avatar
zackcool123 zackcool123 is offline
Registered User
FRC #1886
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Urbana
Posts: 23
zackcool123 can only hope to improve
Exclamation Camera Distance Calcualtor for Labview

Does anyone have or know of a program in labview that uses the camera to track distance?????
  #2   Spotlight this post!  
Unread 09-02-2009, 17:14
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Camera Distance Calcualtor for Labview

No, but if you know the height and angle of the camera from the ground, you can figure out the number of pixels between the target and the ground and use that as a scale (because you know the height of the target) to find the distance.
  #3   Spotlight this post!  
Unread 09-02-2009, 17:18
Cjmovie's Avatar
Cjmovie Cjmovie is offline
1293 Resident Hacker
AKA: Christopher Corsi
FRC #1293 (D5 Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: SC
Posts: 73
Cjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to all
Re: Camera Distance Calcualtor for Labview

What you are going to want to do is find a modeling equation and then use that. The apparent size of the target and the distance have a relationship approximated by D=sqrt(k/A), where k is a constant and A is the apparent area of the target (in this case, in pixels). You will need to take a few data points of distance and area to find a good K value. It should be approximately constant throughout all data points. If it isn't, the tracking color ranges are probably not catching all of the target in the current conditions, or the target is not pointed directly at the camera. This formula works best when the camera is near-level with the target.

Other possibilities include finding the angle the camera is pointing, and knowing the height of the target, use trigonometry to find an approximate distance.
__________________
D5 Robotics, Team 1293: Programmer, CAD'er, Mechanical, Electrical... I've made my rounds.
Events: 2006-2009 Palmetto Regional
Website: http://d5robotics.org/
  #4   Spotlight this post!  
Unread 09-02-2009, 17:25
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Camera Distance Calcualtor for Labview

Please take a little time to search before you post. Searching for camera distance yields this thread as the 6th result:

how to find distance using two color servo camera?


Thanks and good luck,
--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoders and distance (labview) MorbidAngel NI LabVIEW 3 23-11-2008 12:18
Calculating Camera Distance Inoperational Programming 6 04-02-2007 23:48
Labview Demo File for 2006 Camera? JABianchi General Forum 2 15-09-2006 18:23
Camera Tracking Maximum Distance MikeDubreuil Programming 0 18-01-2006 10:18


All times are GMT -5. The time now is 21:49.

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