Go to Post Such reasonableness will not be tolerated! This is teh interwebz! - pfreivald [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Spotlight this post!  
Unread 27-02-2016, 10:40
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 42
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Computer Vision Processing - Team 5450

What you need to know to calculate distance from the goal:
  • Height of the camera image
  • Vertical FOV
  • Y-distance from the center of the image to some known point on the goal (such as the center of the U)
  • The distance from that point to the ground
  • The distance from the camera to the ground
  • The angle from the camera to the ground

From these, you can calculate the angle of the target point above the horizontal and the distance from the camera to the target point by constructing a right triangle, with the height difference between the camera and the target image as the vertical leg, and the angle you just found as the angle opposite that leg.

Sorry about the poor formatting, I'm on mobile
__________________
WPILib
GRIP, RobotBuilder
 


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 23:30.

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