搜尋套件、儲存庫與 APP 分類

套件詳情v0.2.1

document_scanner

一個插件,建立一個原生平台檢視,作為 Flutter 小部件掃描文件。

AndroidiOS
近 30 天下載
208
喜歡數
84
Pub 分數
140

安裝套件

flutter pub add document_scanner

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

document_scanner 套件提供了一個 Flutter 小組件,該組件整合了原生平台檢視,以在 Android 與 iOS 上啟用文件掃描。它利用裝置相機功能來偵測並捕捉文件邊緣,為在 Flutter 應用程式中數位化實體文件提供無縫方式。此外,該外掛程式設計簡單易用,僅需最少設定即可實現掃描功能。支援即時邊緣偵測與影像處理,非常適合需要快速輸入文件之應用程式。

適用情境

  • 在移動應用中數位化紙質文件
  • 在業務工具中建立文件擷取功能
  • 在財務應用中啟用收據掃描
  • 整合文件上傳工作流程
  • 透過身分驗證支援入職流程

主要特色

  • 原生平台視圖整合
  • 即時文件邊緣檢測
  • 跨平台支援(Android 與 iOS)
  • 簡單的 Flutter 小部件介面
  • 文件角落檢測的高準確度

適合對象

  • 需要文件擷取的行動應用程式
  • 商務和生產力應用
  • 財務和會計工具
  • 入職和身份驗證系統
  • 需要快速將照片轉換為文件的應用程式

使用建議

  • 兩個平台都需要相機權限
  • 可能對舊裝置產生效能影響
  • 掃描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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。