✨
This commit is contained in:
1 parent
f2e8628a32
commit
ed5070cee4
1 file changed
+3
-1
+3
-1
@@ -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