JDub
15-12-2016, 16:04
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.