简体   繁体   中英

How to disable the camera face detector feature

I want to disable face detection in react native camera package for decrease size of my application.

Android控制台

I'm just using qr detector from this amazing library, but does not use any face detection feature. How Can I disable it, from downloading this resource for face detection ?

first install react-native-qrcode-scanner then edit android -> app -> build.gradle change from

    missingDimensionStrategy 'react-native-camera', 'mlkit'

to:

    missingDimensionStrategy 'react-native-camera', 'general'

clear your project then build again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM