0

我是 Mediapipe 的新手,我目前正在开发一个 Android 应用程序,我可以在其中执行实时人脸检测和手部跟踪。现在通过将 Mediapipe AAR 添加到 android studio 的 libs 目录中单独集成每个计算器工作得很好,但是当我尝试添加“手部跟踪”和“面部检测”的 AAR 以同时运行它们时,我有某种依赖冲突和类重复问题,如果是,我是否做错了什么我如何将两个 Mediapipe 模型集成到一个 Android 项目中?请任何帮助将不胜感激。我在下面有这个错误:

在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现重复类 com.google.mediapipe.components.AudioDataConsumer 在模块 mediapipe_face_detection 中发现重复类 com.google.mediapipe.components.AudioDataProcessor -runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 在 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar 模块中找到重复的类 com.google.mediapipe.components.AudioDataProducer (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.components.CameraHelper 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 mediapipe.components.CameraHelper$CameraFacing 在模块 mediapipe_face_detection-runtime 中发现重复类 com.google.mediapipe.components.CameraHelper$OnCameraStartedListener .jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.components.CameraXPreviewHelper 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar) .aar) 在 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime 模块中找到重复的 com.google.mediapipe.components.CameraXPreviewHelper$SingleThreadHandlerExecutor 类。jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.components.ExternalTextureConverter 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.components .ExternalTextureConverter$RenderThread 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中找到 com.google.mediapipe.components.ExternalTextureConverter$RenderThread$PoolTextureFrame 模块 mediapipe_face_detection-runtime 中的重复类。 jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 在 mediapipe_face_detection-runtime 模块中找到重复的 com.google.mediapipe.components.FrameProcessor 类。jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar) 中找到重复的类 com.google.mediapipe.components.FrameProcessor$1 .aar) 重复类 com.google.mediapipe.components.FrameProcessor$2 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.components.FrameProcessor在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 $ErrorListener 与 com.google.mediapipe.components 类重复。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 FrameProcessor$OnWillAddFrameListener 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 中发现重复类 com.google.mediapipe.components.MicrophoneHelper ) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.components.PermissionHelper 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 .google.mediapipe.components.TextureFrameConsumer 与 com.google.mediapipe.components 类重复。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 TextureFrameProcessor 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 中发现的重复类 com.google.mediapipe.components.TextureFrameProducer 和mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.annotation.proto.RasterizationProto 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现重复在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现类 com.google.mediapipe.formats.annotation.proto.RasterizationProto$1 重复类 com.google。mediapipe.formats.annotation.proto.RasterizationProto$Rasterization 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.annotation.proto.RasterizationProto在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 $Rasterization$Builder 在模块中发现重复类 com.google.mediapipe.formats.annotation.proto.RasterizationProto$Rasterization$Interval mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.annotation.proto。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 RasterizationProto$Rasterization$Interval$Builder 重复类 com.google.mediapipe.formats.annotation.proto.RasterizationProto$Rasterization$IntervalOrBuilder在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中找到在模块 mediapipe_face_detection-runtime.jar 中找到的重复类 com.google.mediapipe.formats.annotation.proto.RasterizationProto$RasterizationOrBuilder ( mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.DetectionProto 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.DetectionProto$1 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar ) 重复类 com.google.mediapipe.formats.proto.DetectionProto$Detection 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats。 proto.DetectionProto$Detection$AssociatedDetection 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现重复的类 com.google.mediapipe.formats.proto。DetectionProto$Detection$AssociatedDetection$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中找到重复类 com.google.mediapipe.formats.proto.DetectionProto$Detection$AssociatedDetectionOrBuilder模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.DetectionProto$Detection$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection. aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.DetectionProto$DetectionList 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.DetectionProto$DetectionList$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar ( mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.DetectionProto$DetectionListOrBuilder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 .formats.proto.DetectionProto$DetectionOrBuilder 重复类 com.google.mediapipe.formats.proto。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 LandmarkProto 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.jar) 中发现重复类 com.google.mediapipe.formats.proto.LandmarkProto$1 aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LandmarkProto$Landmark 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar. aar)重复类 com.google.mediapipe.formats.proto.LandmarkProto$Landmark$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe .formats.proto。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 LandmarkProto$LandmarkList 在模块 mediapipe_face_detection-runtime 中发现重复类 com.google.mediapipe.formats.proto.LandmarkProto$LandmarkList$Builder .jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LandmarkProto$LandmarkListOrBuilder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime .jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LandmarkProto$LandmarkOrBuilder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar)重复类 com.google.mediapipe.formats.proto.LandmarkProto$NormalizedLandmark 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 .proto.LandmarkProto$NormalizedLandmark$Builder 在模块中发现重复类 com.google.mediapipe.formats.proto.LandmarkProto$NormalizedLandmarkList mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 在 mediapipe_face_detection-runtime 模块中找到重复的类 com.google.mediapipe.formats.proto.LandmarkProto$NormalizedLandmarkList$Builder。jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 在 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime 模块中找到重复的类 com.google.mediapipe.formats.proto.LandmarkProto$NormalizedLandmarkListOrBuilder。 jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LandmarkProto$NormalizedLandmarkOrBuilder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google .mediapipe.formats.proto.LocationDataProto 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中找到重复的类 com.google.mediapipe.formats.proto。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 LocationDataProto$1 在模块 mediapipe_face_detection-runtime.jar 中发现重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData ( mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime 中找到重复的类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$BinaryMask。 jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$BinaryMask$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime 中找到。jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$BinaryMaskOrBuilder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中找到 .google.mediapipe.formats.proto.LocationDataProto$LocationData$BoundingBox 重复类 com.google.mediapipe.formats.proto。 LocationDataProto$LocationData$BoundingBox$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现重复的类 com.google.mediapipe.formats.proto。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 LocationDataProto$LocationData$BoundingBoxOrBuilder 在模块 mediapipe_face_detection 中发现重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$Builder -runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$Format 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 中找到和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$Format$1 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$Format$FormatVerifier 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime 中找到。 jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeBoundingBox 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 .google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeBoundingBox$Builder 与 com.google.mediapipe.formats 类重复。原型。在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 中发现 LocationDataProto$LocationData$RelativeBoundingBoxOrBuilder 在模块 mediapipe_face_detection 中发现重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeKeypoint -runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) ... ... com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeKeypoint$Builder 在模块 mediapipe_face_detection-runtime 中找到。 jar (mediapipe_face_detection.aar) 并转到文档以了解如何修复依赖关系解析错误。aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeKeypoint 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar ( mp_multi_hand_aar.aar) ... ... com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeKeypoint$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 中找到并转到文档以了解如何修复依赖解析错误。aar) 和 mp_multi_hand_aar-runtime.jar (mp_multi_hand_aar.aar) 重复类 com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeKeypoint 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 和 mp_multi_hand_aar-runtime.jar ( mp_multi_hand_aar.aar) ... ... com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeKeypoint$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 中找到并转到文档以了解如何修复依赖解析错误。... com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeKeypoint$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 中找到并转到文档以了解如何修复依赖关系解析错误。... com.google.mediapipe.formats.proto.LocationDataProto$LocationData$RelativeKeypoint$Builder 在模块 mediapipe_face_detection-runtime.jar (mediapipe_face_detection.aar) 中找到并转到文档以了解如何修复依赖关系解析错误。

4

0 回答 0