TensorFlow Lite Flutter 插件

此 Flutter 插件可访问 TensorFlow Lite API,一个轻量级解决方案,用于移动和嵌入式设备上的机器学习。

用法

  1. tensorflow_lite 添加到您的 pubspec.yaml 文件中。
  2. 将模型复制到资产目录(例如 assets/mobilenet_quant_v1_224.tflite)。
  3. 在您的应用程序中导入 tensorflow_lite
  4. 根据模型文件创建新的 Interpreter
zip 文件大小:3.44MB