capturePhoto method
Capture a JPEG still from the current camera frame. Returns the JPEG bytes, or throws if the camera is not ready.
Implementation
Future<Uint8List> capturePhoto() async {
final ch = _channel;
if (ch == null) throw StateError('MultiTaskYOLOView is not attached');
final result = await ch.invokeMethod<Uint8List>('capturePhoto');
if (result == null) throw StateError('capturePhoto returned null');
return result;
}