|
27 | 27 | from viam.resource.rpc_client_base import ReconfigurableResourceRPCClientBase |
28 | 28 | from viam.utils import ValueTypes, dict_to_struct, struct_to_dict |
29 | 29 |
|
30 | | -from .vision import Vision, CaptureAllResult |
| 30 | +from .vision import CaptureAllResult, Vision |
31 | 31 |
|
32 | 32 |
|
33 | 33 | class VisionClient(Vision, ReconfigurableResourceRPCClientBase): |
@@ -57,14 +57,14 @@ async def capture_all_from_camera( |
57 | 57 | if extra is None: |
58 | 58 | extra = {} |
59 | 59 | request = CaptureAllFromCameraRequest( |
60 | | - name=self.name, |
61 | | - camera_name=camera_name, |
62 | | - return_image=return_image, |
63 | | - return_classifications=return_classifications, |
64 | | - return_detections=return_detections, |
65 | | - return_object_point_clouds=return_object_point_clouds, |
66 | | - extra=dict_to_struct(extra), |
67 | | - ) |
| 60 | + name=self.name, |
| 61 | + camera_name=camera_name, |
| 62 | + return_image=return_image, |
| 63 | + return_classifications=return_classifications, |
| 64 | + return_detections=return_detections, |
| 65 | + return_object_point_clouds=return_object_point_clouds, |
| 66 | + extra=dict_to_struct(extra), |
| 67 | + ) |
68 | 68 | response: CaptureAllFromCameraResponse = await self.client.CaptureAllFromCamera(request, timeout=timeout) |
69 | 69 | result = CaptureAllResult() |
70 | 70 | result.extra = struct_to_dict(response.extra) |
@@ -188,7 +188,7 @@ async def get_properties( |
188 | 188 | name=self.name, |
189 | 189 | extra=dict_to_struct(extra), |
190 | 190 | ) |
191 | | - response : GetPropertiesResponse = await self.client.GetProperties(request, timeout=timeout) |
| 191 | + response: GetPropertiesResponse = await self.client.GetProperties(request, timeout=timeout) |
192 | 192 | return response |
193 | 193 |
|
194 | 194 | async def do_command( |
|
0 commit comments