fixed error due to index out of bounds while logging keypoint
This commit is contained in:
parent
a0b7a5318e
commit
7a628e468e
|
@ -346,7 +346,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
|
||||
private void logExampleKeypoint(
|
||||
PoseTrackingResult result, int faceIndex, boolean showPixelValues) {
|
||||
if (result.multiPoseTrackings().isEmpty()) {
|
||||
if (result.multiPoseLandmarks().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
LandmarkProto.Landmark exampleLandmark = result.multiPoseLandmarks().get(0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user