This commit is contained in:
NikolajDanger
2022-09-21 11:41:24 +02:00
parent f2e8628a32
commit ed5070cee4

View File

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