Android face recognition demo vertical screen YUV direction adjustment and picture saving (sharing)

This blog contains three common methods, which are used to send YUV data when the vertical screen is used in the face recognition demo of Android version, but it has not been recognized.

1. First try to rotate 90 ° or 270 ° clockwise, and then send it to the identification SDK.

2. If the rotation direction is still unrecognized, you can try saveimg() to save the local image and check whether it meets the requirements.

The above Android face recognition demo vertical screen YUV direction adjustment and picture saving (sharing) is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>