Closed xxqwf closed 1 year ago
You need to new a holistic_landmark_only_face.pbtxt
like holistic_landmark_cpu.pbtxt
, and remove HandLandmark
, PoseLandmark
can't be removed because FaceLandmark
need its output.
Why don't you try FaceMesh
?
@liuyulvv 你好, 我想构建一个包,应用在不同的场景! 例如, 只识别手势、或者姿势! 但是我构建的holistic同时输出面部、姿势、手势. 导致大多数手机卡顿
Hi @xxqwf , Yes , we do have face deteciton solution in MediaPipe , please check this link.
Hi @xxqwf , Yes , we do have face deteciton solution in MediaPipe , please check this link.
How to pack Hand
and Pose
into an AAR, they do not affect each other
@xxqwf 从这里可以看到Holistic的输出除了Hand和Pose,还有Face的。
Face的输出是在这里计算的,直接注释掉,graph
那边Face相关的output_stream和这里也注释掉,应该是可以的。
@liuyulvv 我尝试修改了这些,还是没跑起来
@liuyulvv 只包含Hand
和Pose
的Holistic
包,帧数有明显提高,但还是有些卡顿。怎样能把Hand
和'Pose'打到同一个包里, 并且当使用Hand
的时候不启用Pose
,当使用'Pose'的时候不启用'Hand',老哥你有研究过这个方案吗
@xxqwf PC上我是做到了,就是把Pose和Hand打包成动态链接库,main函数根据需求读取graph就行了
都可以吧,只要你可执行文件链接上就可以。我是打包成一个,要不然要写两个头文件接口。
打包成一个动态链接库,还是两个呢
都可以吧,只要你可执行文件链接上就可以。我是打包成一个,要不然要写两个头文件接口。
打包成一个动态链接库,还是两个呢
可以参考下你写的Build文件吗
Hi @xxqwf, Have you looked at this similar closed issue #2028 and #2028(comment) will give you a better understanding of modifying the internal graphs. Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
@sgowroji