flutter_nanonets_ocr
Flutter 애플리케이션에서 Nanonets OCR API 호출을 쉽게 사용할 수 있도록 도와주는 패키지로, 수동으로 긴 코드를 작성할 필요가 없습니다.
jigyasa1411/flutter_nanonets_ocr open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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
flutter_nanonets_ocr: flutter_nanonets_ocr
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
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();
}
});
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();
}
});
의존성 목록 4 개
{"sdk":"flutter"}^5.4.2{"sdk":"flutter"}^2.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗