Search packages, repositories and app categories

Package detailsv0.0.14

flutter_nanonets_ocr

A package for using Nanonets OCR api calls easily in the flutter application without having to write long code to implement it manually.

AndroidiOSmacOSWindowsLinux
30-day downloads
55
Likes
40
Pub points
160

Install package

flutter pub add flutter_nanonets_ocr

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

flutter_nanonets_ocr is a Flutter package that simplifies integration of Nanonets' OCR API into Flutter applications. It abstracts complex API calls, enabling developers to extract text from images with minimal code. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, making it ideal for cross-platform apps requiring document scanning or text recognition. With straightforward methods for image upload and result retrieval, it streamlines the implementation of OCR functionality without manual HTTP requests.

Use cases

  • Document scanning in mobile apps
  • Automated data entry from images
  • Text extraction from receipts and invoices
  • Cross-platform OCR integration
  • Real-time image text recognition

Key features

  • Easy API integration with Nanonets
  • Support for multiple platforms
  • Minimal boilerplate code
  • Asynchronous image processing
  • Built-in error handling

Suitable for

  • Developers building OCR-enabled Flutter apps
  • Applications needing automated text extraction
  • Teams using Nanonets OCR service
  • Cross-platform projects requiring image analysis
  • Startups prototyping document processing tools

Considerations

  • Requires valid Nanonets API key
  • Dependent on external API availability
  • May incur usage-based costs
  • Limited customization compared to direct API calls
  • Network connectivity required for OCR processing

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Description

Nanonets provides an OCR service where we can create models, train them and use them for OCR predictions. This package is developed to make usage of Nanonets OCR api directly without having to write manual code for integrating it in your application.

Follow this blog for step by step integration of Nanonets OCR model in a Flutter application: Implementing Nanonets OCR in Flutter

Get started

Add dependency You can use the command to add flutter_nanonets_ocr as a dependency with the latest stable version:

   $ dart pub add flutter_nanonets_ocr

Or you can manually add flutter_nanonets_ocr into the dependencies section in your pubspec.yaml:

  dependencies:
      flutter_nanonets_ocr: ^0.0.14

Example

Fetching details using document file
 import 'package:flutter_nanonets_ocr/flutter_nanonets_ocr.dart';
  
 String apiKey = "INSERT NANONETS API KEY";

 NanonetsOCR nanonetsOCR = NanonetsOCR();

 FutureBuilder(
            future: nanonetsOCR.predictDocumentFile(apiKey, docImage,
                    "INSERT OCR MODEL ID HERE", context),
            builder: (context, snapshot) {
              if (snapshot.connectionState == ConnectionState.active) {
                return loadingWidget();
              } else if (snapshot.connectionState == ConnectionState.done) {
                return yourSuccessWidget();
              } else {
                return loadingWidget();
              }
            });


Fetching details using document url
 import 'package:flutter_nanonets_ocr/flutter_nanonets_ocr.dart';
  
 String apiKey = "INSERT NANONETS API KEY";

 NanonetsOCR nanonetsOCR = NanonetsOCR();

 FutureBuilder(
            future: nanonetsOCR.predictDocumentURL(apiKey, docImageUrl,
                    "INSERT OCR MODEL ID HERE", context),
            builder: (context, snapshot) {
              if (snapshot.connectionState == ConnectionState.active) {
                return loadingWidget();
              } else if (snapshot.connectionState == ConnectionState.done) {
                return yourSuccessWidget();
              } else {
                return loadingWidget();
              }
            });


Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.