Skip to content

Commit

Permalink
Merge pull request #5 from stone-ton/feat/13250/selfie-frame
Browse files Browse the repository at this point in the history
feat: add selfie frame
  • Loading branch information
Kazzel authored Oct 13, 2021
2 parents 3c80a0f + e8074cc commit 48dbffc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.example.camerabioexample_android"
minSdkVersion 19
targetSdkVersion 28
versionCode 3
versionName "2.2.0"
versionCode 4
versionName "2.3.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public class SelfieActivity extends Camera2Base implements ImageProcessor, Captu
private ImageButton takePictureImageButton;
private Toast toast;

private ImageView ivMask;

private float posVerticalLineLeft = 0.0f;
private float posVerticalLineRight = 0.0f;
private float posHorizontalLineBottom = 0.0f;
Expand Down Expand Up @@ -177,6 +179,10 @@ protected void onCreate(Bundle savedInstanceState) {
autoCapture = true;
countRegressive = true;

ivMask = findViewById(R.id.iv_mask);
ivMask.setImageResource(R.drawable.frame_selfie);
ivMask.setVisibility(View.VISIBLE);

setMaxSizes();

FirebaseVisionFaceDetectorOptions options =
Expand Down
Binary file added app/src/main/res/drawable/frame_selfie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public class SelfieActivity extends Camera2Base implements ImageProcessor, Captu
private ImageButton takePictureImageButton;
private Toast toast;

private ImageView ivMask;

private float posVerticalLineLeft = 0.0f;
private float posVerticalLineRight = 0.0f;
private float posHorizontalLineBottom = 0.0f;
Expand Down Expand Up @@ -174,6 +176,10 @@ protected void onCreate(Bundle savedInstanceState) {
autoCapture = true;
countRegressive = true;

ivMask = findViewById(R.id.iv_mask);
ivMask.setImageResource(R.drawable.frame_selfie);
ivMask.setVisibility(View.VISIBLE);

setMaxSizes();

FirebaseVisionFaceDetectorOptions options =
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 48dbffc

Please sign in to comment.