working camera process

it need more work with integration
This commit is contained in:
ori
2019-04-29 14:15:53 -07:00
parent 6ee31a9d0c
commit d073f6fcd2
2 changed files with 16 additions and 8 deletions

View File

@@ -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