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、依据以上这些可以考虑自己单独封装某个网络的接口调用。

 

    


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM