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

패키지 상세v0.1.15

flutter_mobile_vision_2

(+Non NULL)Google Mobile Vision용 플러터 구현. 바코드 스캔, 텍스트 인식 및 얼굴 감지.

AndroidiOS
30일 다운로드
52
좋아요
50
Pub 점수
140

패키지 설치

flutter pub add flutter_mobile_vision_2

패키지 개요

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

Flutter Mobile Vision 2는 바코드 스캔, 텍스트 인식 및 얼굴 감지용 Google의 모바일 비전 API에 접근할 수 있는 Flutter 플러그인입니다. 개발자들이 안드로이드와 iOS 플랫폼의 모바일 앱에 실시간 이미지 분석을 직접 통합할 수 있도록 해줍니다. 이 패키지는 라이브 카메라 피드를 지원하며, 바코드 식별, 인쇄 또는 손글씨 텍스트 추출, 눈, 코, 입과 같은 얼굴 특징 탐지에서 신뢰할 수 있는 성능을 제공합니다. 단순성과 효율성을 고려해 설계되었으며, 네이티브 비전 기능과 Flutter의 크로스플랫폼 프레임워크를 연결합니다.

사용 사례

  • 소매 앱에서의 바코드 스캔
  • 이미지에서 텍스트 추출
  • 사용자 인증을 위한 얼굴 감지
  • 실시간 문서 스캔
  • 이미지 기반 데이터 입력

주요 기능

  • 라이브 카메라 통합
  • 바코드 스캔
  • 문자 인식(OCR)
  • 얼굴 탐지
  • 크로스 플랫폼 지원 (Android 및 iOS)

적합한 대상

  • OCR가 필요한 모바일 앱
  • 소매 및 재고 관리 도구
  • 문서 디지털화 앱
  • 사용자 신원 확인 시스템
  • 실시간 이미지 분석이 필요한 앱

고려 사항

  • 카메라 권한이 필요합니다
  • Google Play 서비스(안드로이드)에 의존함
  • 제한된 오프라인 기능
  • 기기 호환성 검사를 수행해야 할 수 있습니다
  • 성능은 하드웨어에 따라 다릅니다

원본 README

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

flutter_mobile_vision_2

https://pub.dartlang.org/packages/flutter_mobile_vision_2

This is a simple non-null migration for https://github.com/edufolly/flutter_mobile_vision Thanks to Edufolly

pub package

Flutter implementation for Google Mobile Vision.

Based on Google Mobile Vision.

Android Samples -=- iOS Samples

Liked? :star: Star the repo to support the project!


Migration from fluttermobilevision by edufolly

If you are migrating from edufolly's package, please note the following changes.

[1]

import 'package:fluttermobilevision/fluttermobilevision.dart';

has been changed to

import 'package:flutter_mobile_vision_2/flutter_mobile_vision_2.dart';

so update your imports.

[2]

io.github.edufolly.fluttermobilevision

has been changed to

 ng.com.piccmaq.flutter.flutter_mobile_vision_2

so update your AndroidManifest.xml


Features

  • [x] Android

    • [x] Barcode Scan
      • [x] Front or Back camera.
      • [x] Select preview sizes.
      • [x] Simple scan.
      • [x] Toggle torch.
      • [x] Toggle auto focus.
      • [x] Specify types of barcodes that will be read.
      • [x] Tap to capture.
      • [x] Select barcode type to be scanned.
      • [x] Scan multiple barcodes.
      • [x] Barcode coordinates.
      • [x] Show barcode text.
      • [x] Standard code.
    • [x] Recognize Text
      • [x] Front or Back camera.
      • [x] Select preview sizes.
      • [x] Simple OCR.
      • [x] Toggle torch.
      • [x] Toggle auto focus.
      • [x] Multiple recognition.
      • [x] Text language.
      • [x] Text coordinates.
      • [x] Hide recognized text.
      • [x] Standard code.
    • [x] Detect Faces
      • [x] Front or Back camera.
      • [x] Select preview sizes.
      • [x] Simple detection.
      • [x] Toggle torch.
      • [x] Toggle auto focus.
      • [x] Multiple detection.
      • [x] Face coordinates.
      • [x] Hide detection information.
      • [x] Standard code.
    • [x] Generalization of capture activities.
    • [x] Choose between back and front camera.
    • [x] Control camera FPS.
  • [ ] iOS

    • [ ] Barcode Scan
      • [ ] Future Tasks
    • [ ] Recognize Text
      • [ ] Future Tasks
    • [ ] Detect Faces
      • [ ] Future Tasks
Your feature isn't listed? Open a issue right now!

Screenshots

Usage

Example

To use this plugin :

  • add the dependency to your pubspec.yaml file:
  dependencies:
    flutter:
      sdk: flutter
    flutter_mobile_vision_2: ^0.1.9
  • add FlutterMobileVision.start() to initState():
@override
void initState() {
  super.initState();
  FlutterMobileVision.start().then((x) => setState(() {}));
}

or for a better implementation:

@override
void initState() {
  super.initState();
  FlutterMobileVision.start().then((previewSizes) => setState(() {
    _previewBarcode = previewSizes[_cameraBarcode].first;
    _previewOcr = previewSizes[_cameraOcr].first;
    _previewFace = previewSizes[_cameraFace].first;
  }));
}

Barcode

//...
List<Barcode> barcodes = [];
try {
  barcodes = await FlutterMobileVision.scan(
    flash: _torchBarcode,
    autoFocus: _autoFocusBarcode,
    formats: _onlyFormatBarcode,
    multiple: _multipleBarcode,
    waitTap: _waitTapBarcode,
    //OPTIONAL: close camera after tap, even if there are no detection.
    //Camera would usually stay on, until there is a valid detection
    forceCloseCameraOnTap: true,
    //OPTIONAL: path to save image to. leave empty if you do not want to save the image
    imagePath: '', //'path/to/file.jpg'
    showText: _showTextBarcode,
    preview: _previewBarcode,
    camera: _cameraBarcode,
    fps: 15.0,
  );
} on Exception {
  barcodes.add(new Barcode('Failed to get barcode.'));
}
//...
Android

For Android, you must do the following before you can use the plugin:

  • Add the camera permission to your AndroidManifest.xml

    <uses-feature android:name="android.hardware.camera" />

    <uses-permission android:name="android.permission.CAMERA" />

  • Add the Barcode activity to your AndroidManifest.xml (after other activity nodes)

    <activity android:name="ng.com.piccmaq.flutter.flutter_mobile_vision_2.barcode.BarcodeCaptureActivity" />

iOS

If you can help, the community thanks. Your fork is needed. :wink:


OCR

//...
List<OcrText> texts = [];
try {
  texts = await FlutterMobileVision.read(
    flash: _torchOcr,
    autoFocus: _autoFocusOcr,
    multiple: _multipleOcr,
    showText: _showTextOcr,
    previewSize: _previewOcr,
    preview: _previewOcr,
    camera: _cameraOcr,
    fps: 2.0,
  );
} on Exception {
  texts.add(new OcrText('Failed to recognize text.'));
}
//...
Android

For Android, you must do the following before you can use the plugin:

  • Add the camera permission to your AndroidManifest.xml

    <uses-feature android:name="android.hardware.camera" />

    <uses-permission android:name="android.permission.CAMERA" />

  • Add the OCR activity to your AndroidManifest.xml (after other activity nodes)

    <activity android:name="ng.com.piccmaq.flutter.flutter_mobile_vision_2.ocr.OcrCaptureActivity" />

iOS

If you can help, the community thanks. Your fork is needed. :wink:


Face Detection

//...
List<Face> faces = [];
try {
  faces = await FlutterMobileVision.face(
    flash: _torchFace,
    autoFocus: _autoFocusFace,
    multiple: _multipleFace,
    showText: _showTextFace,
    preview: _previewFace,
    camera: _cameraFace,
    fps: 15.0,
  );
} on Exception {
  faces.add(new Face(-1));
}
//...
Android

For Android, you must do the following before you can use the plugin:

  • Add the camera permission to your AndroidManifest.xml

    <uses-feature android:name="android.hardware.camera" />

    <uses-permission android:name="android.permission.CAMERA" />

  • Add the Face Detection activity to your AndroidManifest.xml (after other activity nodes)

    <activity android:name="ng.com.piccmaq.flutter.flutter_mobile_vision_2.face.FaceCaptureActivity" />

iOS

If you can help, the community thanks. Your fork is needed. :wink:

카테고리

소스 저장소

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

아직 데이터가 없습니다.