You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromcscoreimportCameraServerimportcv2importnumpyasnpCameraServer.enableLogging()
camera=CameraServer.startAutomaticCapture()
camera.setResolution(width, height)
sink=cs.getVideo()
whileTrue:
time, input_img=cvSink.grabFrame(input_img)
iftime==0: # There is an errorcontinue
does not work for several reasons:
cs does not exist (referenced when doing cs.getVideo()), should be CameraServer.getVideo() probably
input_img is passed to grabFrame before being declared
cvSink does not exist (probably should be sink)
The text was updated successfully, but these errors were encountered:
the example code provided :
does not work for several reasons:
cs
does not exist (referenced when doingcs.getVideo()
), should beCameraServer.getVideo()
probablyinput_img
is passed tograbFrame
before being declaredcvSink
does not exist (probably should besink
)The text was updated successfully, but these errors were encountered: