Skip to content

Commit d3ea4fd

Browse files
hexbabehexbabe
and
hexbabe
authored
RSDK-5637 Remove mime type inference of PCD within get_image (#481)
Co-authored-by: hexbabe <[email protected]>
1 parent 82ea6e7 commit d3ea4fd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/viam/components/camera/service.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ async def GetImage(self, stream: Stream[GetImageRequest, GetImageResponse]) -> N
4343
try:
4444
if not request.mime_type:
4545
if camera.name not in self._camera_mime_types:
46-
props = await camera.get_properties()
47-
if props.supports_pcd:
48-
self._camera_mime_types[camera.name] = CameraMimeType.PCD
49-
else:
50-
self._camera_mime_types[camera.name] = CameraMimeType.JPEG
46+
self._camera_mime_types[camera.name] = CameraMimeType.JPEG
5147

5248
request.mime_type = self._camera_mime_types[camera.name]
5349

0 commit comments

Comments
 (0)