File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,8 @@ async def get_detections(
168168 my_detector = VisionClient.from_robot(robot=machine, "my_detector")
169169
170170 # Get an image from the camera
171- img = await my_camera.get_image()
171+ images, _ = await my_camera.get_images()
172+ img = images[0]
172173
173174 # Get detections for that image
174175 detections = await my_detector.get_detections(img)
@@ -235,7 +236,8 @@ async def get_classifications(
235236 my_classifier = VisionClient.from_robot(robot=machine, "my_classifier")
236237
237238 # Get an image from the camera
238- img = await my_camera.get_image()
239+ images, _ = await my_camera.get_images()
240+ img = images[0]
239241
240242 # Get the 2 classifications with the highest confidence scores for the image
241243 classifications = await my_classifier.get_classifications(img, 2)
You can’t perform that action at this time.
0 commit comments