File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -98,11 +98,10 @@ public class MyActivity extends AppCompatActivity {
98
98
if (requestCode == REQUEST_CODE_ID_CAPTURE && resultCode == RESULT_OK && data != null) {
99
99
// Extract the ID capture result from the data intent
100
100
IDDocument document = data.getParcelable(IDCaptureActivity.EXTRA_ID_DOCUMENT);
101
- if (document == null) {
101
+ if (document == null || document.getFaceBounds() == null ) {
102
102
return;
103
103
}
104
104
Uri imageUri = document.getImageUri();
105
- VerIDFace face = document.getFace();
106
105
if (imageUri == null || face == null) {
107
106
return;
108
107
}
@@ -113,7 +112,7 @@ public class MyActivity extends AppCompatActivity {
113
112
114
113
// Get the bounds of the face detected on the ID card
115
114
Rect faceBounds = new Rect();
116
- face.getBoundingBox ().round(faceBounds);
115
+ document.getFaceBounds ().round(faceBounds);
117
116
// Load the image of the front of the card
118
117
InputStream inputStream = getContentResolver().openInputStream(imageUri);
119
118
try {
You can’t perform that action at this time.
0 commit comments