diff --git a/src/services/vision/client.ts b/src/services/vision/client.ts index b8b591077..726482df9 100644 --- a/src/services/vision/client.ts +++ b/src/services/vision/client.ts @@ -189,8 +189,17 @@ export class VisionClient implements Vision { pb.CaptureAllFromCameraRequest, pb.CaptureAllFromCameraResponse >(service.captureAllFromCamera.bind(service), request); + + const image = response.getImage(); + return { - image: response.getImage()?.toObject(), + image: image + ? { + format: image.getFormat(), + sourceName: image.getSourceName(), + image: image.getImage_asU8(), + } + : undefined, classifications: response .getClassificationsList() .map((classification: pb.Classification) => classification.toObject()),