【问题标题】:Convert CameraImage Stream to Bytes or File in flutter?将CameraImage Stream转换为字节或文件?
【发布时间】: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


    【解决方案1】:

    ML Kit 团队不拥有flutter_mlkit 存储库,因此请在https://github.com/azihsoyn/flutter_mlkit/issues 提交问题

    【讨论】:

      猜你喜欢
      • 2019-06-16
      • 2020-08-09
      • 1970-01-01
      • 2013-04-12
      • 1970-01-01
      • 1970-01-01
      • 2012-11-14
      • 2019-11-08
      • 1970-01-01
      相关资源
      最近更新 更多