패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.2.1

document_scanner

문서를 스캔하는 네이티브 플랫폼 뷰를 생성하는 플러터 위젯으로 사용할 수 있는 플러그인입니다.

AndroidiOS
30일 다운로드
208
좋아요
84
Pub 점수
140

패키지 설치

flutter pub add document_scanner

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

document_scanner 패키지는 안드로이드 및 iOS에서 문서 스캔을 가능하게 하는 네이티브 플랫폼 뷰를 통합한 Flutter 위젯을 제공합니다. 이는 장치 카메라 기능을 활용하여 문서의 가장자리를 감지하고 캡처함으로써 Flutter 애플리케이션 내에서 물리적 문서를 원활하게 디지털화할 수 있도록 합니다. 이 플러그인은 사용이 간편하도록 설계되어 스캔 기능을 구현하기 위해 최소한의 설정만 필요합니다. 실시간 에지 감지 및 이미지 처리를 지원하여 빠른 문서 입력이 필요한 앱에 적합합니다.

사용 사례

  • 모바일 앱에서 종이 문서 디지털화
  • 비즈니스 도구에서 문서 캡처 기능 만들기
  • 금융 앱에서 영수증 스캔 활성화
  • 문서 업로드 워크플로우 통합
  • 신원 확인을 통한 입사 프로세스 지원

주요 기능

  • 네이티브 플랫폼 뷰 통합
  • 실시간 문서 에지 감지
  • 크로스 플랫폼 지원 (Android 및 iOS)
  • 간단한 플러터 위젯 인터페이스
  • 문서 모서리 검출의 높은 정확도

적합한 대상

  • 문서 캡처가 필요한 모바일 앱
  • 비즈니스 및 생산성 애플리케이션
  • 재무 및 회계 도구
  • 온보딩 및 신원 확인 시스템
  • 빠른 사진에서 문서로의 변환을 필요로 하는 앱

고려 사항

  • 모든 플랫폼에서 카메라 권한이 필요합니다
  • 오래된 장치에서 성능에 영향을 줄 수 있습니다
  • 스캔 UI의 사용자 정의 제한
  • 핵심 기능을 위해 네이티브 SDK에 의존합니다
  • 좋은 조명과 평평한 문서 배치 시 최상의 결과

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

document_scanner

A platform view plugin for Flutter apps that adds document scanning functionality on Android/IOS.

Warning

Document Scanner customization options aren't working for now

Setup

Handle camera access permission

IOS

Add a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value true to enable embedded views preview.

<key>io.flutter.embedded_views_preview</key>
<true/>

Add a String property to the app's Info.plist file with the key NSCameraUsageDescription and the value as the description for why your app needs camera access.

<key>NSCameraUsageDescription</key>
<string>Camera Permission Description</string>
Android

minSdkVersion should be at least 19

How to use ?

first add as a dependency in pubspec.yaml

import:

import 'package:document_scanner/document_scanner.dart';

then use it as a widget:

File scannedDocument;

DocumentScanner(
    onDocumentScanned: (ScannedImage scannedImage) {
        print("document : " + scannedImage.croppedImage);
        scannedDocument = scannedImage.getScannedDocumentAsFile();
    },
                          
)

Credits

This is a React Native package implemented on Flutter.

Reference to the React Native package : https://github.com/Michaelvilleneuve/react-native-document-scanner

Contributing

Step 1
  • Fork this project's repo : https://github.com/eliasteeny/flutter_document_scanner
Step 2
  • Create a new pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

카테고리

의존성

의존성 목록 1 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.