简体   繁体   中英

firebase MLKIT face detection camera resolution

I am using a quickstart firebase MLKIT implementation with this link-> https://github.com/ankitjamuar/android-firebase-mlkit

but at the point when I found an image from the camera of MLKIT , it's resolution is 768*1024 . but when I click the picture from my device native camera it gives me an 8 MP , ie 3264*2448 resolution image. so somehow I want to use this greater resolution image In MLKIT, which my device can capture as it's full capacity.so how can I increase MLKIT camera picture quality?

because when I get the face from the MLKIT camera picture, it also has low picture quality and I get lost my accuracy.One more thing here I am using the front camera for all.

please help, I got stuck , if possible I can get the accuracy for the face more reliable.

check StillImageActivity.java

check line 352 and 353

targetWidth = isLandScape ? 1024 : 768; targetHeight = isLandScape ? 768 : 1024;

change the resolution as per your requirement.

Let me know if this solves your issue

Please check the official ML Kit Quickstart . The quickstart you link to is a pretty old fork.

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