搜索插件、代码仓与 APP 分类

barcode_finder 封面
插件详情v0.0.5

barcode_finder

Barcode Finder 是一个插件,可使用 Zxing 读取 PDF 文件和图像中的条形码和二维码,Android 使用 Zxing,iOS 使用 Zxing 和 Zbar。

AndroidiOS
近 30 天下载
99
喜欢数
37
Pub 分数
130

安装插件

flutter pub add barcode_finder

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Barcode Finder 是一个 Flutter 插件,旨在从图像和 PDF 文件中提取条形码和二维码。它在 Android 上利用 Zxing,在 iOS 上结合使用 Zxing 和 Zbar,确保跨平台的可靠扫描。该包支持一维和二维条形码格式,非常适合文档处理、库存跟踪和数据采集应用。它可轻松集成到 Flutter 应用中,设置简单。

适合场景

  • 从扫描的文档中读取条形码
  • 从图像中提取二维码
  • 处理带有嵌入条形码的PDF文件
  • 从物理标签自动录入数据
  • 在零售应用中扫描产品信息

主要特点

  • 支持 Android 和 iOS 平台
  • 使用 Zxing 和 Zbar 实现高精度
  • 处理图像和PDF文件
  • 跨平台一致性
  • 通过 Flutter pub 简单集成

适合对象

  • 需要条形码扫描的移动应用
  • 库存和物流系统
  • 零售和电子商务工具
  • 文档数字化工作流程
  • 需要快速提取数据的应用程序

使用建议

  • 需要 iOS 和 Android 的原生依赖项
  • 可能需要额外的权限才能访问文件
  • 性能取决于图像质量
  • 仅限支持的条形码类型
  • 未针对实时摄像头扫描进行优化

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Barcode Finder

A flutter plugin for barcode scanner that works on both iOS and Android. Provides functionality for scanning several formats of 1D and 2D barcodes.

It uses ML-kit on Android and iOS to detect codes from PDF and Image files.

Example using app

Getting Started

Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  barcode_finder: latest version
Android Platform

API 21 is the minimum supported for Android.

Usage

Lets take a look at how to use BarcodeFinder to scan any PDF or image File using File Picker as a auxiliar plugin.

Future<String?> scanFile() async {
    // Used to pick a file from device storage
    final pickedFile = await FilePicker.platform.pickFiles();
    if (pickedFile != null) {
        final filePath = pickedFile.files.single.path;
        if (filePath != null) {
            return await BarcodeFinder.scanFile(path: path);
        }
    }
}

Make sure you are passing a valid and permissioned path to BarcodeFinder.scanFile, in the exemple above, the package FilePicker provides it for us.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。