Skip to main content

emon_ocr_vision 0.3.0-preview.4 copy "emon_ocr_vision: ^0.3.0-preview.4" to clipboard
emon_ocr_vision: ^0.3.0-preview.4 copied to clipboard

Apple Vision text recognition for emon on iOS and macOS: the adapter library (libemon_ocr_vision, 13 KB of Objective-C over the OS) and nothing to download.

example/main.dart

// Open emon with the Apple Vision adapter (iOS, macOS) and convert a file.
//
//   dart run example/main.dart INPUT
import 'dart:io';

import 'package:emon_core/emon_core.dart';
import 'package:emon_ocr_vision/emon_ocr_vision.dart';

Future<void> main(List<String> args) async {
  if (args.length != 1) {
    stderr.writeln('usage: dart run example/main.dart INPUT');
    exit(2);
  }
  final emon = await Emon.open(nativeAdapters: [visionAdapter()], packMode: PackMode.auto);
  try {
    stdout.write(await emon.convertToHtml(EmonInput.file(args.first)));
  } finally {
    await emon.close();
  }
}
0
likes
0
points
329
downloads

Publisher

verified publisher3sln.com

Weekly Downloads

Apple Vision text recognition for emon on iOS and macOS: the adapter library (libemon_ocr_vision, 13 KB of Objective-C over the OS) and nothing to download.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

code_assets, emon_core, hooks

More

Packages that depend on emon_ocr_vision