Skip to main content

ocr_flutter_web 1.0.2 copy "ocr_flutter_web: ^1.0.2" to clipboard
ocr_flutter_web: ^1.0.2 copied to clipboard

Platformweb

A Flutter web plugin to extract text from images and PDF files using Tesseract.js and PDF.js. Supports English and Hindi with auto-rotation.

ocr_flutter_web #

A Flutter web-only plugin to extract text from Images and PDF files using Tesseract.js and PDF.js.

✨ Features #

  • PDF & Image Support: Process .jpg, .jpeg, .png, and .pdf files.
  • English & Hindi: Standard support for eng and hin.
  • Auto-Rotation: Detects and corrects rotated text automatically.
  • Colored Text Preprocessing: Built-in canvas filters to enhance contrast for colored text and symbols like ₹.
  • Zero-Config: Dynamically loads dependencies via CDNs. No index.html edits needed.

🚀 Getting Started #

Installation #

Add the following to your pubspec.yaml:

dependencies:
  ocr_flutter_web: ^1.0.0

Basic Usage #

import 'package:ocr_flutter_web/ocr_flutter_web.dart';

final _ocrPlugin = OcrFlutterWeb();

String result = await _ocrPlugin.extractText(
  fileBytes, 
  filename: "file.pdf",
  language: 'eng+hin', 
);

⚙️ Requirements #

  • Flutter SDK: ^3.19.0
  • Dart SDK: ^3.3.0

📄 License #

MIT License. See LICENSE for details.

1
likes
160
points
62
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter web plugin to extract text from images and PDF files using Tesseract.js and PDF.js. Supports English and Hindi with auto-rotation.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on ocr_flutter_web

Packages that implement ocr_flutter_web