anyline 24.0.0-dev.1.2 copy "anyline: ^24.0.0-dev.1.2" to clipboard
anyline: ^24.0.0-dev.1.2 copied to clipboard

discontinuedreplaced by: anyline_plugin
outdated

Scan all kinds of numbers, characters, text and codes with the Anyline OCR SDK, which can be configured by yourself. With it, smartphone cameras can process written characters in real time, even when offline.

example/lib/main.dart

import 'dart:convert';

import 'package:anyline/anyline_plugin.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'anyline_demo.dart';

void main() {
  runApp(AnylineDemoApp());
}

/// This is just a minimal example function to show how to use our plugin as
/// fast as possible. For the code of our Flutter example app check out the
/// [anyline_demo] module.
void scanWithAnyline() async {
  /// Instantiate the plugin.
  var anylinePlugin = AnylinePlugin();

  /// Load the config file which also includes the license key (for more info
  /// visit documentation.anyline.com).
  var config = await rootBundle.loadString("config/AnalogMeterConfig.json");

  /// Start the scanning process.
  var stringResult = await anylinePlugin.startScanning(config);

  /// Convert the stringResult to a Map to access the result fields. It is
  /// recommended to create result classes that fit your use case. For more
  /// information on that, visit the Flutter Guide on documentation.anyline.com.
  Map<String, dynamic> result = jsonDecode(stringResult);
}
1
likes
0
pub points
0%
popularity

Publisher

verified publisheranyline.com

Scan all kinds of numbers, characters, text and codes with the Anyline OCR SDK, which can be configured by yourself. With it, smartphone cameras can process written characters in real time, even when offline.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter, permission_handler

More

Packages that depend on anyline