detections3D method

Future<List<Detection3D>> detections3D(
  1. String cameraName, {
  2. Map<String, dynamic>? extra,
})

Get a list of Detection3Ds from the camera named cameraName.

// Example:
var detections3D = await myVisionService.detections3D('myCamera');

For more information, see the vision service docs.

Implementation

Future<List<Detection3D>> detections3D(String cameraName, {Map<String, dynamic>? extra}) async {
  final request = GetDetections3DRequest(name: name, cameraName: cameraName, extra: extra?.toStruct());
  final response = await client.getDetections3D(request, options: callOptions);
  return response.detections3d;
}