View Single Post
  #1   Spotlight this post!  
Unread 15-12-2016, 16:04
JDub JDub is offline
Registered User
FRC #4579
 
Join Date: Dec 2016
Location: Renton, WA
Posts: 2
JDub is an unknown quantity at this point
Display Mat Images On SmartDashboard?

I'm investigating having the team do some vision processing this year. GRIP seems like a great tool. It looks like we could use the VideoCapture class to grab an image from the camera and then run it through the image processing pipeline generated from GRIP. As a debug aid, I've found examples of how to overlay bounding rectangles and such onto the processed image, but it's not clear to me how to display the image with the overlayed info on the SmartDashboard. FRC ScreenStepsLive says to use the CameraServer class, but it uses the NIVision.Image class to represent images, not OpenCV's Mat class that is used by GRIP. Is there a way to display a Mat image on the SmartDashboard, or does anyone know of a method to convert a Mat image to a NIVision.Image image? Thanks.
Reply With Quote