Readonly
nameThe name of the resource.
Returns the requested image, classifications, detections, and 3d point cloud objects in the next image given a camera.
The name of the camera to use for classification, detection, and segmentation.
const vision = new VIAM.VisionClient(machine, 'my_vision');
const captureAll = await vision.captureAllFromCamera('my_camera', {
returnImage: true,
returnClassifications: true,
returnDetections: true,
returnObjectPointClouds: true,
});
For more information, see Vision API.
Get a list of classifications in the given image.
The image from which to get classifications.
The width of the image.
The height of the image.
The MimeType of the image.
The number of Classifications requested.
const camera = new VIAM.CameraClient(machine, 'my_camera');
const vision = new VIAM.VisionClient(machine, 'my_vision');
const mimeType = 'image/jpeg';
const image = await camera.getImage(mimeType);
const classifications = await vision.getClassifications(
image,
600,
600,
mimeType,
10
);
For more information, see Vision API.
Get a list of classifications in the next image given a camera.
The name of the camera to use for classification.
The number of Classifications requested.
const vision = new VIAM.VisionClient(machine, 'my_vision');
const classifications = await vision.getClassificationsFromCamera(
'my_camera',
10
);
For more information, see Vision API.
Get a list of detections in the given image.
The image from which to get detections.
The width of the image.
The height of the image.
The MimeType of the image.
const camera = new VIAM.CameraClient(machine, 'my_camera');
const vision = new VIAM.VisionClient(machine, 'my_vision');
const mimeType = 'image/jpeg';
const image = await camera.getImage(mimeType);
const detections = await vision.getDetections(
image,
600,
600,
mimeType
);
For more information, see Vision API.
Get a list of detections in the next image given a camera.
The name of the camera to use for detection.
const vision = new VIAM.VisionClient(machine, 'my_vision');
const detections = await vision.getDetectionsFromCamera('my_camera');
For more information, see Vision API.
Returns a list of the 3D point cloud objects and associated metadata in the latest picture obtained from the specified 3D camera.
The name of the camera.
const vision = new VIAM.VisionClient(machine, 'my_vision');
const pointCloudObjects =
await vision.getObjectPointClouds('my_camera');
For more information, see Vision API.
Returns an object describing the properties of the vision service, namely booleans indicating whether classifications, detections, and 3d segmentation are supported.
const vision = new VIAM.VisionClient(machine, 'my_vision');
const properties = await vision.getProperties();
For more information, see Vision API.
A gRPC-web client for a Vision service.