react-native人脸识别采坑之旅--人脸采集

首先看官方文档github上面react-native-camera的官方文档部署开发环境:

GitHub - react-native-camera/react-native-camera: A Camera component for React Native. Also supports barcode scanning!

我配置的开发的环境如下:

1.Android Studio 3.0.1

2.react-native 0.57.4

3.react-native-camera 1.4.1

4.模拟器采用Genymotion Google Pixel2- 8.0 -API26

核心代码:

这是官方给出的示例代码,复制上去就可以了,以下我粘贴了一小部分:

<RNCamera

ref={ref => {

this.camera = ref;

}}

style={ {

flex: 1,

}}

type={this.state.type}

flashMode={this.state.flash}

autoFocus={this.state.autoFocus}

zoom={this.state.zoom}

whiteBalance={this.state.whiteBalance}

ratio={this.state.ratio}

faceDetectionLandmarks={RNCamera.Constants.FaceDetection.Landmark

  • 10
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值