mediapipe 编译命令,运行命令,以及部分解释

1、mediapiple 编译

  cmd命令:bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu

  解释: -c opt: release ,dbg: debug; 

             --define MEDIAPIPE_DISABLE_GPU=1 不使用GPU;

           mediapipe/examples/desktop/hand_tracking:  BUILD文件路径(mediapipe-master作为cd目录);

           hand_tracking_cpu  BUILD文件里要编译的库,如下:

           

 

 

2、mediapiple 运行

  cmd命令:bazel-bin/mediapipe/examples/desktop/hand_tracking/hand_tracking_cpu --calculator_graph_config_file=mediapipe/graphs/hand_tracking/hand_tracking_desktop_live.pbtxt

  解释:bazel-bin/mediapipe/examples/desktop/hand_tracking/hand_tracking_cpu :hand_tracking_cpu.exe路径

      --calculator_graph_config_file=mediapipe/graphs/hand_tracking/hand_tracking_desktop_live.pbtxt :exe运行的配置文件,如下:

    

 

     mediapipe\modules\palm_detection,BUILD文件

    

 

     配置文件(palm_detection_cpu运行参考)  

    

   

3、依据以上这些可以考虑自己单独封装某个网络的接口调用。

 

    

posted on 2021-11-19 15:33  WenJXUST  阅读(1184)  评论(0编辑  收藏  举报