Quote:
Originally Posted by mikhail
I wonder the same but in C++. What would be the best way to do something similar to imshow() but on the driver station's dashboard?
|
So I'm trying to do the same in C++.
I'd like to capture/process the stream on the roborio, but then send the processed image back to the driver station.
As far as I can tell, you need to get a JPEG image and send that back. The capture gives me a cv::Mat object back, I manipulate it, but then how to I send that cv::Mat data back to the driver station? Is it already in JPEG format? or do I need to convert it. And where do I access a JPEG stream within the cv::Mat ? I know, I know, this is a CV question, but this is the first time working with CV.
edit - found my answer...
Just need to convert the Mat to an array using cv::imencode() and send that back to the DS.