Go to Post this is ridiculous, a complete waste of time, and probably not particularly effective. I love it! - The other Gabe [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 02-19-2016, 01:00 AM
Gamma + Gamma + is offline
Registered User
FRC #2130
 
Join Date: Jun 2015
Location: Earth
Posts: 9
Gamma + is on a distinguished road
Rotating Camera Feed in Smart Dashboard

Unfortunately, our camera had to be mounted upside down on the robot due to inconvenient frame geometry/ mounting plates. As a result the camera feed on the Smart Dashboard appears upside down. Is it possible to rotate the feed on the dashboard? In the code? We program in java. Thanks.
  #2   Spotlight this post!  
Unread 02-19-2016, 10:03 AM
Hjelstrom's Avatar
Hjelstrom Hjelstrom is offline
Mentor
FRC #0987 (High Rollers)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Las Vegas
Posts: 146
Hjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond repute
Re: Rotating Camera Feed in Smart Dashboard

Quote:
Originally Posted by Gamma + View Post
Unfortunately, our camera had to be mounted upside down on the robot due to inconvenient frame geometry/ mounting plates. As a result the camera feed on the Smart Dashboard appears upside down. Is it possible to rotate the feed on the dashboard? In the code? We program in java. Thanks.
I don't have the solution for you but I can tell you that in previous years we implemented a Java class for the smart dashboard which inherited from the video widget that comes with smart dashboard. If you did that you might be able to do the flip in an overridden render method. We did thing like draw a cross hair over the image. We might do the same again this year but it looks like smart dashboard has changed a lot since then and we haven't gotten to it.
  #3   Spotlight this post!  
Unread 02-19-2016, 10:21 AM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Rotating Camera Feed in Smart Dashboard

Some camera drivers can manipulate the image, and it is camera specific. Flips are more common that rotations, but look through to see what it offers.

I'd avoid doing the rotation on the robot, but send it to the dashboard. You don't mention what type of dashboard, but the default dashboard is the same as the LV dashboard, and the IMAQ functions can rotate it between the read and the display. This is also often where annotations are added. OpenCV can certainly manipulate the image too, so if using SmartDashboard, see if the image display includes a rotation feature, or extend it to add one.

Greg McKaskle
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 03:07 PM.

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