mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-03 03:01:40 +00:00
working camera process
it need more work with integration
This commit is contained in:
@@ -42,6 +42,8 @@ class CamerasHandler:
|
||||
|
||||
camera = cscore.UsbCamera(name=device_name, dev=device.dev)
|
||||
camera.setPixelFormat(pixelFormat=camera.enumerateVideoModes()[0].pixelFormat) #TODO if dictionary is empy do this else take from dictionary
|
||||
camera.setFPS(camera.enumerateVideoModes()[0].fps)
|
||||
camera.setResolution(width=camera.enumerateVideoModes()[0].width,height=camera.enumerateVideoModes()[0].height)
|
||||
|
||||
cameras[device_name] = camera
|
||||
|
||||
|
||||
Reference in New Issue
Block a user