✨
This commit is contained in:
@ -79,7 +79,9 @@ class Robot(object):
|
||||
)
|
||||
|
||||
def take_photo(self):
|
||||
_, photo = self.cam.read()
|
||||
cap = cv2.VideoCapture(0)
|
||||
_, photo = cap.read()
|
||||
cap.release()
|
||||
return photo
|
||||
|
||||
def send_command(self, cmd : str, sleep_ms: float=0.0):
|
||||
|
Reference in New Issue
Block a user