@@ -93,8 +93,11 @@ class ChromaPreviewer(QWidget):
],dtype=np.uint8)
defupdate_frame(self):
ret,frame=self.cap.read()
ifnotret:
try:
ret,frame=self.cap.read()
ifnotret:
return
exceptAttributeError:
return
frame=cv2.cvtColor(frame,cv2.COLOR_BGR2RGB)
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.