android 圆形人脸识别框
圆形人脸识别框
使用讯飞人脸检测功能,参照我的另一篇博客
https://blog.csdn.net/baidu_35824246/article/details/103878405
首先通过shape设置圆角,背景设置透明
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/transparent" />
<corners android:radius="120dp" />
</shape>