Tesseract OCR for Flutter #
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
- Extract Text from images, Especially helpful when you are extracting single character images.
- fixed path references
- added description
- fixed typo
- fixed description
- added LICENSE
- updated swift version to 4.2
- fixed dependecies
- fixed swift version
- set target swift version to 4.2
- 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
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:
$ 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:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
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.
flutter format to format
|Dart SDK||>=2.1.0 <3.0.0|