apple_vision_flutter 0.1.0 copy "apple_vision_flutter: ^0.1.0" to clipboard
apple_vision_flutter: ^0.1.0 copied to clipboard

PlatformiOS

Flutter plugin to wrap Apple Vision for text recognizing on image data.

apple_vision_flutter #

A Flutter plugin to recognize text on images with Apple Vision.

Features #

  • Recognize text from image data

Example #

import 'dart:typed_data';

import 'package:apple_vision_flutter/apple_vision_flutter.dart';
import 'package:flutter/services.dart' show rootBundle;

void main() async {
  final imageData = await loadAsset();
  final recognizeResult = await AppleVisionFlutter().recognizeText(imageData);
  
  print('Recognize result: ${recognizeResult.observations.map((o) => o.textOptions.first).join('\n')}');
}

Future<Uint8List> loadAsset() async {
  return await rootBundle.load('assets/image_with_text.png')
      .then((value) => value.buffer.asUint8List());
}
5
likes
150
points
192
downloads

Publisher

verified publisherinfiniteloop.cloud

Weekly Downloads

Flutter plugin to wrap Apple Vision for text recognizing on image data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on apple_vision_flutter