{"id":15690535,"url":"https://github.com/pinto0309/human-pose-estimation-3d-python-cpp","last_synced_at":"2025-05-07T23:43:24.969Z","repository":{"id":97172910,"uuid":"423827537","full_name":"PINTO0309/human-pose-estimation-3d-python-cpp","owner":"PINTO0309","description":"Monocular 3D pose estimation. OpenVINO. CPU inference or iGPU (OpenCL) inference.","archived":false,"fork":false,"pushed_at":"2021-11-09T08:19:35.000Z","size":65037,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T23:42:55.741Z","etag":null,"topics":["cpp","onnx","opencl","openvino","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PINTO0309.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-02T12:04:14.000Z","updated_at":"2024-11-13T11:11:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb715965-1136-42a0-848b-c8ebf5358f7c","html_url":"https://github.com/PINTO0309/human-pose-estimation-3d-python-cpp","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"f0013b1273345344192235cf49b39574f5cf43fc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2Fhuman-pose-estimation-3d-python-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2Fhuman-pose-estimation-3d-python-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2Fhuman-pose-estimation-3d-python-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2Fhuman-pose-estimation-3d-python-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PINTO0309","download_url":"https://codeload.github.com/PINTO0309/human-pose-estimation-3d-python-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973617,"owners_count":21834105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","onnx","opencl","openvino","python"],"created_at":"2024-10-03T18:11:20.742Z","updated_at":"2025-05-07T23:43:24.963Z","avatar_url":"https://github.com/PINTO0309.png","language":"Python","readme":"# human-pose-estimation-3d-python-cpp\n\n- RealSenseD435 (RGB) 480x640 + CPU Corei9 45 FPS (Depth is not used)\n\n![ezgif com-gif-maker (16)](https://user-images.githubusercontent.com/33194443/139964887-97c322ed-acfd-436d-b2a6-f9ae1364704a.gif)\n\n## 1. Run\n```bash\n$ git clone https://github.com/PINTO0309/human-pose-estimation-3d-python-cpp\n$ cd human-pose-estimation-3d-python-cpp\n```\n### 1-1. RealSenseD435 (RGB) 480x640 + CPU Corei9 45 FPS (Depth is not used)\n```bash\n$ xhost +local: \u0026\u0026 \\\ndocker run -it --rm \\\n-v `pwd`:/home/user/workdir \\\n-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \\\n--device /dev/video0:/dev/video0:mwr \\\n--device /dev/video1:/dev/video1:mwr \\\n--device /dev/video2:/dev/video2:mwr \\\n--device /dev/video3:/dev/video3:mwr \\\n--device /dev/video4:/dev/video4:mwr \\\n--device /dev/video5:/dev/video5:mwr \\\n--net=host \\\n-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \\\n-e DISPLAY=$DISPLAY \\\n--privileged \\\nghcr.io/pinto0309/openvino2tensorflow:latest\n```\n```bash\n$ python3 human_pose_estimation_3d_demo.py \\\n--model models/openvino/FP16/human-pose-estimation-3d-0001_bgr_480x640.xml \\\n--device CPU \\\n--input 4\n```\n### 1-2. RealSenseD435 (RGB) 480x640 + iGPU (OpenCL)\n```bash\n$ xhost +local: \u0026\u0026 \\\ndocker run -it --rm \\\n-v `pwd`:/home/user/workdir \\\n-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \\\n--device /dev/video0:/dev/video0:mwr \\\n--device /dev/video1:/dev/video1:mwr \\\n--device /dev/video2:/dev/video2:mwr \\\n--device /dev/video3:/dev/video3:mwr \\\n--device /dev/video4:/dev/video4:mwr \\\n--device /dev/video5:/dev/video5:mwr \\\n--net=host \\\n-e LIBVA_DRIVER_NAME=iHD \\\n-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \\\n-e DISPLAY=$DISPLAY \\\n--privileged \\\nghcr.io/pinto0309/openvino2tensorflow:latest\n```\n```bash\n$ python3 human_pose_estimation_3d_demo.py \\\n--model models/openvino/FP16/human-pose-estimation-3d-0001_bgr_480x640.xml \\\n--device GPU \\\n--input 4\n```\n### 1-3. General USB Camera 480x640 + CPU\n```bash\n$ xhost +local: \u0026\u0026 \\\ndocker run -it --rm \\\n-v `pwd`:/home/user/workdir \\\n-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \\\n--device /dev/video0:/dev/video0:mwr \\\n--net=host \\\n-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \\\n-e DISPLAY=$DISPLAY \\\n--privileged \\\nghcr.io/pinto0309/openvino2tensorflow:latest\n```\n```bash\n$ python3 human_pose_estimation_3d_demo.py \\\n--model models/openvino/FP16/human-pose-estimation-3d-0001_bgr_480x640.xml \\\n--device CPU \\\n--input 0\n```\n## 2. Build\n```bash\n$ PYTHON_PREFIX=$(python3 -c \"import sys; print(sys.prefix)\") \\\n\u0026\u0026 PYTHON_VERSION=$(python3 -c \"import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')\") \\\n\u0026\u0026 PYTHON_INCLUDE_DIRS=${PYTHON_PREFIX}/include/python${PYTHON_VERSION}\n\n$ NUMPY_INCLUDE_DIR=$(python3 -c \"import numpy; print(numpy.get_include())\")\n\n$ mkdir -p pose_extractor/build \u0026\u0026 cd pose_extractor/build\n\n$ cmake \\\n-DPYTHON_INCLUDE_DIRS=${PYTHON_INCLUDE_DIRS} \\\n-DNUMPY_INCLUDE_DIR=${NUMPY_INCLUDE_DIR} ..\n\n$ make \u0026\u0026 cp pose_extractor.so ../.. \u0026\u0026 cd ../..\n```\n\n## 3. Reference\n1. https://github.com/openvinotoolkit/open_model_zoo/tree/2021.4.1/demos/human_pose_estimation_3d_demo/python\n2. https://docs.openvino.ai/2021.4/omz_models_model_human_pose_estimation_3d_0001.html\n3. https://github.com/PINTO0309/PINTO_model_zoo/tree/main/029_human-pose-estimation-3d-0001\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinto0309%2Fhuman-pose-estimation-3d-python-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinto0309%2Fhuman-pose-estimation-3d-python-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinto0309%2Fhuman-pose-estimation-3d-python-cpp/lists"}