From b4df911c64e283ef48adafcfc7bd4b00d79e70a7 Mon Sep 17 00:00:00 2001 From: jackfiled Date: Thu, 19 Jan 2023 18:37:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=BC=96=E8=AF=91aar?= =?UTF-8?q?=E5=92=8Cbinarypb=E8=A7=A3=E5=86=B3=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E4=BA=BA=E4=BD=93=E9=81=AE=E7=BD=A9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20=E5=8D=87=E7=BA=A7=E4=BA=86gradle=E7=9A=84=E7=89=88?= =?UTF-8?q?=E6=9C=AC=20=E7=A7=BB=E9=99=A4=E4=BA=86=E5=BC=83=E7=94=A8?= =?UTF-8?q?=E7=9A=84getProto=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 2 +- app/libs/mediapipe_pose_tracking.aar | Bin 21704101 -> 21704101 bytes .../main/assets/pose_tracking_gpu.binarypb | 3 --- .../rrricardo/motioncapture/MainActivity.kt | 11 +++++++---- build.gradle | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 5c9f89f..54d5acd 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,7 +1,7 @@ - + diff --git a/app/libs/mediapipe_pose_tracking.aar b/app/libs/mediapipe_pose_tracking.aar index cf39e8b820df090f487c432c31318e33c3d60211..f7ef8c023283af3e490379398152e1fc1899549d 100755 GIT binary patch delta 1562 zcmZA1RZtXA7>40l5m0OtL`7^YuxJyNP%&{8ySsbMwN}^eM#Vw}TT$#-ySux)MQnXP zF1YaGdFP-1?wm7oVsEc^ip404!IH*eXGxo2|0T}u+6i^okq7R`3lHQ&eiT4K6hdJXfhUTh7>c6= zO2P}?D237}g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+2TfD=2e85M1!e@L*j4&k~bWA>qn>i^UDjKi+@v$X2T39c8a}{MsZLa6(=RFl1_0}(kmI1j7lcOMaisWQCyX*N;bt!$*$y3 z+?AY4E+x0(q2y8WD*2TBN&%&yQb;MR6j3~tqDnEPxKctXsdy>gN-4!hDXo-I$|~iQ z@`|tGr}!%YN}y6f2~sL5m6Xa#6{V_DO{uQbP=b{ZB~%GhYAUr12aM+0hS+#L+A^;cJxLj53QoRFa@XDon;r6YUk%2ZU{}@jbifr4;!z@zyJUM diff --git a/app/src/main/assets/pose_tracking_gpu.binarypb b/app/src/main/assets/pose_tracking_gpu.binarypb index 3ce2c51..9e6900f 100755 --- a/app/src/main/assets/pose_tracking_gpu.binarypb +++ b/app/src/main/assets/pose_tracking_gpu.binarypb @@ -1,7 +1,4 @@ -…ConstantSidePacketCalculator2PACKET:enable_segmentationBI -Atype.googleapis.com/mediapipe.ConstantSidePacketCalculatorOptions - `FlowLimiterCalculator input_videoFINISHED:output_video"throttled_input_videoj FINISHED ×PoseLandmarkGpuIMAGE:throttled_input_video"LANDMARKS:pose_landmarks"#SEGMENTATION_MASK:segmentation_mask"DETECTION:pose_detection"%ROI_FROM_LANDMARKS:roi_from_landmarks*'ENABLE_SEGMENTATION:enable_segmentation diff --git a/app/src/main/java/top/rrricardo/motioncapture/MainActivity.kt b/app/src/main/java/top/rrricardo/motioncapture/MainActivity.kt index 0d1d405..ea1e961 100644 --- a/app/src/main/java/top/rrricardo/motioncapture/MainActivity.kt +++ b/app/src/main/java/top/rrricardo/motioncapture/MainActivity.kt @@ -40,7 +40,6 @@ class MainActivity : AppCompatActivity() { init { // 加载项目中用到的jni库 System.loadLibrary("mediapipe_jni") - System.loadLibrary("opencv_java3") } override fun onCreate(savedInstanceState: Bundle?) { @@ -80,7 +79,6 @@ class MainActivity : AppCompatActivity() { processor.videoSurfaceOutput.setFlipY(true) - // æ•èŽ·èŽ·å¾—çš„å标数æ®åŒ… // é‡åˆ°InvalidProtocolBufferException // å‚考 https://github.com/google/mediapipe/issues/1013 @@ -91,8 +89,13 @@ class MainActivity : AppCompatActivity() { ) { Log.i(tag, "Received Landmark Packets.") try { - val landmarkList = PacketGetter.getProto(it, NormalizedLandmarkList::class.java) - Log.i(tag, getPoseLandmarksDebugString(landmarkList)) + // 无法采用这ç§æ–¹æ³•èŽ·å–packet + // 回报Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 15943 (Thread-9), pid 15810 (o.motioncapture) + /*val packetRaw = PacketGetter.getBytes(it) + val landmarks = NormalizedLandmarkList.parseFrom(packetRaw) + Log.i(tag, getPoseLandmarksDebugString(landmarks))*/ + val landmarks = PacketGetter.getProto(it, NormalizedLandmarkList.getDefaultInstance()) + Log.i(tag, getPoseLandmarksDebugString(landmarks)) } catch (exception: InvalidProtocolBufferException) { Log.e(tag, "failed to get protocol.", exception) } diff --git a/build.gradle b/build.gradle index 2536974..3aa8eea 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id 'com.android.application' version '7.3.1' apply false - id 'com.android.library' version '7.3.1' apply false + id 'com.android.application' version '7.4.0' apply false + id 'com.android.library' version '7.4.0' apply false id 'org.jetbrains.kotlin.android' version '1.7.20' apply false } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index d288949..f64d380 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Sat Jan 07 16:28:48 CST 2023 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME