On the FRC Dashboard, is it possible to rotate the camera image? I want to have the image rotated 90° counter clockwise because of the camera's sideways positioning, but without going to the Axis Camera Communications settings, but instead by doing it on the Dashboard Project itself. How would I do this via program on Labview, or is there an easier way?
Solved! Go to Solution.
Doing this programatically in LabVIEW should be easy enough. You should be able to use the IMAQ Rotate VI to accomplish this task. The following link shows the help file for the VI explaining how it is used.
Use this VI in your Vision Processing loop. The easiest way to find this VI in LabVIEW is to open LabVIEW and go to your block diagram, then press Ctrl+Space Bar to open the quick drop menu. Once it opens, type IMAQ Rotate. You can then either press Enter, or select your block diagram with your mouse to place this VI on the diagram.
Another problem: The image on the dashboard flickers occasionally. The image reverts to the original rotation for a fraction of a second. Any way to fix this?
Where are you putting your IMAQ Rotate VI? Could you upload a screenshot so I can see what your code looks like?
Considering the default value is not rotated, if it is flickering, it is probably just switching back and forth between the default value and when it is set. We may just need to change when we are setting it.
This is old, but I was seeing similar issues in the FRC dashboard when using IMAQ Rotate, where the image flickers between the original and rotated camera image. Here is a image of the code (attached). The custom subVI is only setting a few text and shape color overlays, so it shouldn't be causing the issue. I'm not sure what the clear overlays does, but the name suggests it wouldn't be clearing the image rotation. I am using a camera over NetworkTables.