GithubHelp home page GithubHelp logo

flutter_face_scan's Introduction

flutter_face_scan_exmple

pub package

android:无需配置

ios:在Info.plist文件中加入

<key>NSCameraUsageDescription</key>
	<string>需要您的确认才能访问相机</string>

使用

1.初始化

void main() {
  runApp(MyApp());

  ///初始化
  FaceScan.init();
}

2.打开扫描页面

 FaceScan.openScan(
  context: context,
  path: null,
  faceScanCallBack: (path) {
    print("返回图片文件路径:" + path);
  });
                    

3.改变扫描页面的一些调用

 ///通知图形界面在识别中
 FaceScan.Scaning();
 
 ///通知图形界面识别失败
 FaceScan.ScanFail();
 
 ///识别成功后可关闭页面
 Navigator.pop(context);
 
 
                  

A new Flutter application.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

flutter_face_scan's People

Contributors

yhx520 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_face_scan's Issues

拍照总是报识别失败是什么原因

ioctl c0044901 failed with code -1: Not a typewriter
I/flutter (11143): 返回图片文件路径:/data/user/0/com.winorg.flutter_face_scan_exmple/cache/temp.jpg
E/flutter (27738): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter 'size' was called on null.
E/flutter (27738): Receiver: null
E/flutter (27738): Tried calling: size

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.