Skip to content
pubscout

flutter_native_ocr

0.1.0, released a year ago by shrawan.me

A Flutter plugin for native OCR using Apple Vision on iOS and Google ML Kit on Android.

$ flutter pub add flutter_native_ocr
Source repository

What it does

Provides optical character recognition (OCR) by leveraging native device frameworks. Processes images locally on-device to extract text without requiring an internet connection.

AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to extract text from local image files on iOS and Android.
  • You want on-device OCR processing without sending data to external servers.

Skip it when

  • You need to run OCR on unsupported platforms like Web or Desktop.
  • You require advanced OCR options like confidence scores or language hints out of the box.

Strengths

  • On-device processing ensuring privacy and offline support.
  • Uses high-accuracy native frameworks (Apple Vision and Google ML Kit).

Weaknesses

  • Limited platform support (only iOS and Android).
  • Minimal advanced configuration options currently available.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires Android configuration for compileSdk 35, minSdk 21, and Java 11 support, plus iOS 13.0 or later.

import 'package:flutter_native_ocr/flutter_native_ocr.dart';

final flutterNativeOcr = FlutterNativeOcr();
try {
  String recognizedText = await flutterNativeOcr.recognizeText('/path/to/image.jpg');
  print(recognizedText);
} catch (e) {
  print(e);
}

Alternatives

Packages that do the same job and could replace flutter_native_ocr.

Works with

Packages commonly used together with flutter_native_ocr: ones it builds on, ones built on it, and its own family.