From 2ffc58ea0c83eb94f61e1202160e5a7639194d73 Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:33:23 +0100 Subject: [PATCH] Update camera.py (#785) --- src/viam/components/camera/camera.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viam/components/camera/camera.py b/src/viam/components/camera/camera.py index d2c220684..76bfc6370 100644 --- a/src/viam/components/camera/camera.py +++ b/src/viam/components/camera/camera.py @@ -48,7 +48,7 @@ async def get_image( :: - from viam.media.video import CameraMimeType + from viam.media.video import CameraMimeType my_camera = Camera.from_robot(robot=machine, name="my_camera") @@ -102,6 +102,7 @@ async def get_point_cloud( by the mimetype. To deserialize the returned information into a numpy array, use the Open3D library. + :: import numpy as np