Go to Post [how to read the rules] Slowly, carefully, word by word, taking your time as if it was the last corndog of the summer. - Foster [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 09-01-2016, 17:03
acrilex acrilex is offline
Registered User
AKA: Alexandre Croteau
FRC #5179 (Sénateurs)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Drummondville, QC, CA
Posts: 9
acrilex is an unknown quantity at this point
Smartdashboard overlay

Hello,

After discussions, team 5179 would like to use a kind of overlay on top of a front camera, similar to Dodge cars's rear cam lines,



to help our drivers aligning the robot on the field with all the obastacles that are on the field this year. I have experience with NI Vision. Can someone help me figuring out a solution? I saw this thread, from 2011, but I'd like to know if someone has a better solution. As far as I know, dodge uses sensor on both sizes of their cars, but the lines are a simple overlay on top of the camera screen. As any other team done something similar?

Alexandre Croteau
Senateurs 5179
Coding team (Java RoboRIO, specialized in autonomous)
Reply With Quote
  #2   Spotlight this post!  
Unread 09-01-2016, 18:03
rpatel3001's Avatar
rpatel3001 rpatel3001 is offline
former programming/electrical chair
AKA: Rajan
FRC #1089 (Team Mercury)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2012
Location: East Windsor
Posts: 9
rpatel3001 is just really nicerpatel3001 is just really nicerpatel3001 is just really nicerpatel3001 is just really nicerpatel3001 is just really nice
Re: Smartdashboard overlay

Are you looking for a static overlay, or something that will change dynamically based on what the driver is doing or the camera is seeing? If you use the smart dashboard, it's easy to add a static image that you can position over the camera feed. I'm unfamiliar with NI Vision, our team used OpenCV in a custom camera widget on the smart dashboard for dynamic overlays (https://github.com/Mercury1089/MercuryWidget here's an example custom camera widget).
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2016, 19:12
acrilex acrilex is offline
Registered User
AKA: Alexandre Croteau
FRC #5179 (Sénateurs)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Drummondville, QC, CA
Posts: 9
acrilex is an unknown quantity at this point
Re: Smartdashboard overlay

Thanks,

I was looking for static overlay, I will look forward into a widget. Dynamic image might also be useful, so thank you for the idea. Also, do someone here have an idea in how to calculate the angle of a such line, knowing that the camera will be placed once and not moved afterward. I have a simple idea, which could work but is long to set up. I could simply put a peg or similar with a rope attached to the robot and make it go forward to verify the perspective and draw a line over the rope, using it as the overlay, but I would like to know if there is a math way to calculate the perspective angle knowing that the camera will be placed directly in the middle of the robot. I think it would be related to vectors, but I am not really good in this aspect of maths. Can someone help?

Alexandre Croteau
Senateurs 5179
Coding team (Java RoboRIO, specialized in autonomous)
Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2016, 00:01
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Quote:
Originally Posted by acrilex View Post
Thanks,

I was looking for static overlay, I will look forward into a widget. Dynamic image might also be useful, so thank you for the idea. Also, do someone here have an idea in how to calculate the angle of a such line, knowing that the camera will be placed once and not moved afterward. I have a simple idea, which could work but is long to set up. I could simply put a peg or similar with a rope attached to the robot and make it go forward to verify the perspective and draw a line over the rope, using it as the overlay, but I would like to know if there is a math way to calculate the perspective angle knowing that the camera will be placed directly in the middle of the robot. I think it would be related to vectors, but I am not really good in this aspect of maths. Can someone help?

Alexandre Croteau
Senateurs 5179
Coding team (Java RoboRIO, specialized in autonomous)
If you're looking for a static overlay, I would try a transparent png file on top of the camera window in smartdashboard. Never done it but it might work, not near a computer right now to try it
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 22:36.

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