当前位置:网站首页>OpenPose command line
OpenPose command line
2022-08-02 16:06:00 【zhangyu】
OpenPose Output Deal With 关键参数
详情见:./build/examples/openpose/openpose.bin --help
--face
: Enable face key check.--hand
: Enable manual key detection--video input.mp4
: 读取视频--camera 3
: 读取摄像头3--image_dir path_to_images/
: Run on a folder with images--ip_camera [http://iris.not.iac.es/axis-cgi/mjpg/video.cgi?resolution=320x240?x.mjpeg](http://iris.not.iac.es/axis-cgi/mjpg/video.cgi?resolution=320x240?x.mjpeg)
: run in a streamIP摄像头.See example public IP 摄像机.--write_video path.avi
: Save the processed image as a video--write_images folder_path
: Save the processed images to a folder--write_keypoint path/
: 输出JSON、XML或YML文件,and place the data in the folder--process_real_time
: 对于视频,It can skip frames to display in real time--disable_blending
: 如果启用,It will render the result(Keypoint skeleton or heatmap)on a black background,The original image is not displayed.- 相关的:
part_to_show
,alpha_pose
, andalpha_pose
.
- 相关的:
--part_to_show
: Visualize prediction channels--display 0
: The display window is not open.For the server and /or slightly acceleratedOpenPose很有--num_gpu 2 --num_gpu_start 1
: through the required equipmentidat this numbergpu上并行化.默认情况下,It uses all availablegpu.--model_pose MPI
: 模型的使用,Influence digital key points、速度和精度--logging_level 3
: Log message threshold,范围[0,255]:0will output any messages,255No message will be output.The scope of the current message is [1-4],Low priority messages are1,Important news is4.
No visual presentation、直接输出 JSON
# Only body
./build/examples/openpose/openpose.bin --video /media/video.avi --write_json output/ --display 0 --render_pose 0
# Body + face + hands
./build/examples/openpose/openpose.bin --video examples/media/video.avi --write_json output/ --display 0 --render_pose 0 --face --hand
JSON输出+The rendered image is saved
./build/examples/openpose/openpose.bin --video examples/media/video.avi --write_video output/result.avi --write_json output/
手部
# Fast method for speed
./build/examples/openpose/openpose.bin --hand
# Best results found with 6 scales
./build/examples/openpose/openpose.bin --hand --hand_scale_number 6 --hand_scale_range 0.4
# Adding tracking to Webcam (if FPS per GPU > 10 FPS) and Video
./build/examples/openpose/openpose.bin --video examples/media/video.avi --hand --hand_detector 3
# Multi-scale + tracking is also possible
./build/examples/openpose/openpose.bin --video examples/media/video.avi --hand --hand_scale_number 6 --hand_scale_range 0.4 --hand_detector 3
Faces and hands are rendered without poses
# CPU rendering (faster)
./build/examples/openpose/openpose.bin --render_pose 0 --face --face_render 1 --hand --hand_render 1
# GPU rendering
./build/examples/openpose/openpose.bin --render_pose 0 --face --face_render 2 --hand --hand_render 2
调试信息
# Basic information
./build/examples/openpose/openpose.bin --logging_level 3
# Showing all messages
./build/examples/openpose/openpose.bin --logging_level 0
选择一些GPU(The example below runs the demo video.avi,并行在 2 个GPU上, GPU 1和2(Note that it will skipGPU 0))
./build/examples/openpose/openpose.bin --video examples/media/video.avi --num_gpu 2 --num_gpu_start 1
Heat Maps Storing
./build/examples/openpose/openpose.bin --video examples/media/video.avi --heatmaps_add_parts --heatmaps_add_bkg --heatmaps_add_PAFs --write_heatmaps output_heatmaps_folder/
对 OutPut 文件进行处理
poseModel = op.PoseModel.BODY_25
print(op.getPoseBodyPartMapping(poseModel))
print(op.getPoseNumberBodyParts(poseModel))
print(op.getPosePartPairs(poseModel))
print(op.getPoseMapIndex(poseModel))
./build/examples/openpose/openpose.bin --image_dir ./media/ --write_images ./out_put/ --num_gpu 0 --num_gpu_start 0 --display 0 --face --hand
./build/examples/openpose/openpose.bin --image_dir ./media/ --write_images ./out_put/ --face --hand --display 0
边栏推荐
猜你喜欢
LITESTAR 4D应用:室内植物照明模拟
TCP的三次握手和四次挥手
The relationship between base classes and derived classes [inheritance] / polymorphism and virtual functions / [inheritance and polymorphism] abstract classes and simple factories
饥荒联机版Mod开发——配置代码环境(二)
分布式一致性协议-Raft
CDH(computational Diffie-Hellman)问题以及与离散对数、DDH问题的区别
Evaluation multipath weswood congestion control on ns3
【网络安全】学习笔记 --00
CDH (computational Diffie-Hellman) problem and its differences with discrete logarithm and DDH problems
【线程】 理解线程(并行)线程同步的处理(信号量,互斥锁,读写锁,条件变量)
随机推荐
unity Domain Reload & scene Reload 静态变量重置
【软件测试】selenium自动化测试2
2. Log out, log in state examination, verification code
排序方法汇总(C语言)
EastWave应用:光场与石墨烯和特异介质相互作用的研究
指针/【类型】对指针加一能力的影响(&*ip ,*&ipd)
Oauth2.0 补充
类模板/赋值运算和加等运算
字符数组/字符串数组|数组指针/指针数组/
px和em和rem的区别
HCIE学习记录——数通网络基础
Feign Client 超时时间配置不生效
【线程安全】用户级,内核级,组合级线程|线程同步的处理(条件变量)|strtok_r(可冲入函数)
Technical Selection of Message Queuing
shader入门精要1
【软件测试】项目中关于测试人员的简单介绍
Qt | 读取文件内容并删除文件 QFile
OpenPose Basic Philosophy
【软件测试】selenium自动化测试1
【软件测试】概念篇