I can access the Web interface, but cannot get opencv code to work. How can I edit the python example program to output a opencv image? Any help would be appreciated.
To create a stream in Python, do this:
stream = CameraServer.getInstance().putVideo("Stream 2", WIDTH, HEIGHT)
To put a new image to the stream, do this:
Finally, you can view this stream at
Since the Python stuff on the FRCVision uses RobotPy, take a look at the RobotPy documentation on CameraServer: https://robotpy.readthedocs.io/en/stable/vision/code.html