Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Rotating Camera Feed in Smart Dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=144131)

Gamma + 19-02-2016 01:00

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.

Hjelstrom 19-02-2016 10:03

Re: Rotating Camera Feed in Smart Dashboard
 
Quote:

Originally Posted by Gamma + (Post 1542569)
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.

Greg McKaskle 19-02-2016 10:21

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


All times are GMT -5. The time now is 19:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi