tesseract_ocr 0.3.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 89

Tesseract OCR for Flutter #

Tesseract OCR 4.0 for flutter This plugin is based on Tesseract OCR 4 This plugin uses Tesseract4Android and SwiftyTesseract credit goes to both.

Getting Started #

You must add trained data and trained data config file to your assets directory. You can find additional language trained data files here Trained language files

add tessdata folder under assets folder, add tess_data.config.json file under assets folder.

Plugin assumes you have tessdata folder in your assets directory and defined in your pubspec.yaml

Check the contents of example/assets folder and example/pubspec.yaml

0.1.0 #

  • Extract Text from images, Especially helpful when you are extracting single character images.

0.1.1 #

  • fixed path references

0.1.2 #

  • added description

0.1.2+1 #

  • fixed typo

0.1.2+2 #

  • fixed description

0.1.2+3 #

  • added LICENSE

0.1.3 #

  • updated swift version to 4.2

0.2.0 #

  • fixed dependecies

0.2.1 #

  • fixed swift version

0.2.2 #

  • set target swift version to 4.2

0.3.0 #

  • added language support you can pass the language as an optional parameter. TesseractOcr.extractText(imagePath, language: "financial"); if not set it will default to "eng". language must match the name of .traineddata file

example/README.md

tesseract_ocr_example #

Demonstrates how to use the tesseract_ocr plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  tesseract_ocr: ^0.3.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:tesseract_ocr/tesseract_ocr.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
78
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
89
Learn more about scoring.

We analyzed this package on Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health issues and suggestions

Document public APIs. (-1 points)

6 out of 6 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/tesseract_ocr.dart.

Run flutter format to format lib/tesseract_ocr.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
path ^1.6.4 1.6.4
path_provider ^1.3.0 1.5.1
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
platform 2.2.1
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test