|
Re: Sending OpenCV Output back to the Driver Laptop?
You could reimplement the WPILib CameraServer protocol (which is pretty easy if you ignore the client to server side). Basically on a TCP connection on port 1735, repeatedly send the following in order:
- the bytes 1, 0, 0, 0
- a network-order 32-bit integer with the length in bytes of the frame data (JPEG format)
- the JPEG frame data
Then you can view the stream on SmartDashboard with the USB Camera widget.
|