优化人脸识别显示形状
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="510dp">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/flFace"
|
||||
@@ -89,33 +89,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<!-- <ImageView-->
|
||||
<!-- android:id="@+id/ivPreviewImage"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent" />-->
|
||||
<!-- <ImageView-->
|
||||
<!-- android:id="@+id/ivFaceRecMask"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_gravity="bottom"-->
|
||||
<!-- android:adjustViewBounds="true"-->
|
||||
<!-- android:src="@drawable/face_mask"-->
|
||||
<!-- android:visibility="visible" />-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/tvFaceTip"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_gravity="bottom|center"-->
|
||||
<!-- android:layout_marginBottom="56dp"-->
|
||||
<!-- android:text="请正视屏幕进行面部识别..."-->
|
||||
<!-- android:textColor="@color/white"-->
|
||||
<!-- android:textSize="24sp"-->
|
||||
<!-- android:visibility="v" />-->
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fl_recognize_ir"
|
||||
android:layout_width="1.3333dp"
|
||||
android:id="@+id/flRecognizeIr"
|
||||
android:layout_width="1.33dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:visibility="visible">
|
||||
@@ -149,7 +125,7 @@
|
||||
android:layout_weight="1"
|
||||
android:background="#FFF4FAFF" />
|
||||
|
||||
<com.sw.dualscreen.view.HollowCircleRectView
|
||||
<com.sw.dualscreen.view.HollowOvalInRectView
|
||||
android:layout_width="400dp"
|
||||
android:layout_height="510dp"
|
||||
android:layout_gravity="center_horizontal" />
|
||||
@@ -165,7 +141,6 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="55dp"
|
||||
android:text="请正视屏幕进行面部识别..."
|
||||
android:textColor="#ff5e7585"
|
||||
android:textSize="22sp"
|
||||
@@ -173,21 +148,12 @@
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
tools:ignore="HardcodedText" />
|
||||
</FrameLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="85dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="#FFF4FAFF"/>
|
||||
<!-- <View-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="85dp"-->
|
||||
<!-- android:layout_gravity="bottom"-->
|
||||
<!-- android:background="#FFF4FAFF"/>-->
|
||||
</FrameLayout>
|
||||
<!-- <TextView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginTop="55dp"-->
|
||||
<!-- android:text="请正视屏幕进行面部识别..."-->
|
||||
<!-- android:textColor="#ff5e7585"-->
|
||||
<!-- android:textSize="22sp"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- tools:ignore="HardcodedText" />-->
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -72,23 +72,6 @@
|
||||
android:src="@drawable/face_mask"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/tvFaceTip"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_gravity="bottom|center"-->
|
||||
<!-- android:layout_marginBottom="56dp"-->
|
||||
<!-- android:text="请正视屏幕进行面部识别..."-->
|
||||
<!-- android:textColor="@color/white"-->
|
||||
<!-- android:textSize="22sp"-->
|
||||
<!-- android:visibility="gone" />-->
|
||||
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent"-->
|
||||
<!-- android:layout_margin="28dp"-->
|
||||
<!-- android:background="@drawable/ic_camera_rect" />-->
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
@@ -108,7 +91,7 @@
|
||||
android:layout_weight="1"
|
||||
android:background="#FFF4FAFF" />
|
||||
|
||||
<com.sw.dualscreen.view.HollowCircleRectView
|
||||
<com.sw.dualscreen.view.HollowOvalInRectView
|
||||
android:layout_width="400dp"
|
||||
android:layout_height="510dp"
|
||||
android:layout_gravity="center_horizontal" />
|
||||
@@ -121,22 +104,15 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="400dp"-->
|
||||
<!-- android:layout_height="400dp"-->
|
||||
<!-- android:layout_marginTop="55dp"-->
|
||||
<!-- android:layout_gravity="center_horizontal"-->
|
||||
<!-- android:src="@drawable/facewrap"/>-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvFaceTip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="0dp"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:text="请正视屏幕进行面部识别..."
|
||||
android:textColor="#FF0A1428"
|
||||
android:textSize="22sp" />
|
||||
android:textSize="22sp"
|
||||
tools:ignore="HardcodedText" />
|
||||
</FrameLayout>
|
||||
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
@@ -316,4 +292,9 @@
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent"-->
|
||||
<!-- android:src="@drawable/bg_face"/>-->
|
||||
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user