Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo在手机上运行良好,然后我放到我学校发的学习平板上就很奇怪 #16

Open
billzbh opened this issue May 24, 2021 · 3 comments

Comments

@billzbh
Copy link

billzbh commented May 24, 2021

  1. 学校发的平板是个杂牌, 只能横着拿,屏幕宽和高手机如果是 640 x 480的话,它是反着的 480x640

  2. 摄像头的预览是一个非镜像的,也就是他们都被认为是后置摄像头,不是前置。明明安装在前面啊。滑稽。。。

我的问题是:

  1. demo能运行起来,可是预览变镜像怎么弄? 我要硬让它变成前置,有一种照镜子的感觉。
  2. 那个人脸识别框老是没有对准,感觉影响了识别效果,怀疑取到的预览数据就不是完整的人脸导致。所以这个是有什么方法来调整,让预览数据和最终进行人脸识别的数据能对上,活体检测才准确?

不胜感激!

@liming1010
Copy link

确实,同样的问题

@nullian
Copy link
Collaborator

nullian commented Jul 2, 2021

[首先需要确认设备预览的原始数据方向,这个和摄像头的安装方向有直接关系。然后修改
https://github.com/minivision-ai/Silent-Face-Anti-Spoofing-APK/blob/master/app/src/main/java/com/mv/livebodyexample/MainActivity.kt
中的frameOrientation

@watertianyi
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants