【发布时间】:2021-11-14 23:55:00
【问题描述】:
我正在尝试使用 google ml kit 来处理图像,因此我提取了左眼睁开概率, 但它要求输入图像是文件、字节或文件路径,见下文
final inputImage = InputImage.fromFile(file);
final inputImage = InputImage.fromBytes(bytes: bytes, inputImageData: inputImageData);
final inputImage = InputImage.fromFilePath(filePath);
它需要上述之一,我正在尝试使用相机图像流来实现这一点,
_cameraService.cameraController.startImageStream((image) async {
// i am trying to convert the image received here to be converted into either a File, Bytes, File path
}
【问题讨论】:
标签: google-mlkit