fix: Register NormalizedLandmarkList type

This commit is contained in:
Seunggyu Lee 2023-09-27 23:36:27 +09:00 committed by GitHub
parent 19d895eb73
commit 08380c0d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,12 @@ public class MainActivity extends com.google.mediapipe.apps.basic.MainActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Register NormalizedLandmarkList type
ProtoUtil.registerTypeName(
NormalizedLandmarkList.class,
"mediapipe.NormalizedLandmarkList"
);
// To show verbose logging, run:
// adb shell setprop log.tag.MainActivity VERBOSE
if (Log.isLoggable(TAG, Log.VERBOSE)) {