mediapipe win10 编译、运行命令说明

https://www.cnblogs.com/WenJXUST/p/15577596.html

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运行的配置文件,如下:

    

    mediapipemodulespalm_detection,BUILD文件

    

    配置文件(palm_detection_cpu运行参考)  

    

   

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

发表新评论