flutter_nanonets_ocr 0.0.9 copy "flutter_nanonets_ocr: ^0.0.9" to clipboard
flutter_nanonets_ocr: ^0.0.9 copied to clipboard

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

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.

  • flutter_nanonets_ocr: link

    Pub

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.9

Example #

Fetching details using document file #

 import 'package:flutter_nanonets_ocr/flutter_nanonets_ocr.dart';
  
 String apiKey = "INSERT YOUR NANONETS API KEY";

 NanonetsOCR nanonetsOCR = NanonetsOCR();

 FutureBuilder(
            future: nanonetsOCR.predictDocumentFile(apiKey, widget.image,
                    "INSERT YOUR 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 YOUR NANONETS API KEY";

 NanonetsOCR nanonetsOCR = NanonetsOCR();

 FutureBuilder(
            future: nanonetsOCR.predictDocumentURL(apiKey, widget.image,
                    "INSERT YOUR 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();
              }
            });


38
likes
0
pub points
46%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on flutter_nanonets_ocr