wpilib.cameraserver Package
- class wpilib.cameraserver.CameraServer[source]
Provides a way to launch an out of process cscore-based camera service instance, for streaming or for image processing.
Note
This does not correspond directly to the wpilib CameraServer object; that can be found as
cscore.CameraServer
. However, you should not use cscore directly from your robot code, see the documentation for details- classmethod launch(vision_py: str | None = None) None [source]
Launches the CameraServer process in autocapture mode or using a user-specified python script
- Parameters:
vision_py – If specified, this is the relative path to a filename with a function in it
Example usage:
wpilib.CameraServer.launch("vision.py:main")
Warning
You must have robotpy-cscore installed, or this function will fail without returning an error (you will see an error in the console).