classificationsFromCamera method
Get a list of Classifications from the camera named cameraName
.
The maximum number of Classifications returned is count
.
// Example:
var classifications = await myVisionService.classificationsFromCamera('myWebcam', 2);
Implementation
Future<List<Classification>> classificationsFromCamera(String cameraName, int count, {Map<String, dynamic>? extra}) async {
final request = GetClassificationsFromCameraRequest(name: name, cameraName: cameraName, n: count, extra: extra?.toStruct());
final response = await client.getClassificationsFromCamera(request);
return response.classifications;
}