Skip to content

Commit 46c78fe

Browse files
author
Gines
committed
Doc for standalone face/hand keypoint detector
1 parent 1d30b44 commit 46c78fe

File tree

2 files changed

+41
-21
lines changed

2 files changed

+41
-21
lines changed

README.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,18 @@ The pose estimation work is based on the C++ code from [the ECCV 2016 demo](http
7979

8080
## Contents
8181
1. [Installation, Reinstallation and Uninstallation](#installation-reinstallation-and-uninstallation)
82-
2. [Custom Caffe](#custom-caffe)
83-
3. [Quick Start](#quick-start)
82+
2. [Quick Start](#quick-start)
8483
1. [Demo](#demo)
8584
2. [OpenPose Wrapper](#openpose-wrapper)
8685
3. [OpenPose Library](#openpose-library)
87-
4. [Output](#output)
88-
5. [Speed Up Openpose And Benchmark](#speed-up-openpose-and-benchmark)
89-
6. [Send Us Failure Cases!](#send-us-failure-cases)
90-
7. [Send Us Your Feedback!](#send-us-your-feedback)
91-
8. [Citation](#citation)
92-
9. [Other Contributors](#other-contributors)
86+
3. [Output](#output)
87+
4. [Custom Caffe](#custom-caffe)
88+
5. [Standalone Face Or Hand Keypoint Detector](#standalone-face-or-hand-keypoint-detector)
89+
6. [Speed Up Openpose And Benchmark](#speed-up-openpose-and-benchmark)
90+
7. [Send Us Failure Cases!](#send-us-failure-cases)
91+
8. [Send Us Your Feedback!](#send-us-your-feedback)
92+
9. [Citation](#citation)
93+
10. [Other Contributors](#other-contributors)
9394

9495

9596

@@ -98,19 +99,6 @@ You can find the installation, reinstallation and uninstallation steps on: [doc/
9899

99100

100101

101-
## Custom Caffe
102-
We only modified some Caffe compilation flags and minor details. You can use your own Caffe distribution, these are the files we added and modified:
103-
104-
1. Added files: `install_caffe.sh`; as well as `Makefile.config.Ubuntu14.example`, `Makefile.config.Ubuntu16.example`, `Makefile.config.Ubuntu14_cuda_7.example` and `Makefile.config.Ubuntu16_cuda_7.example` (extracted from `Makefile.config.example`). Basically, you must enable cuDNN.
105-
2. Edited file: Makefile. Search for "# OpenPose: " to find the edited code. We basically added the C++11 flag to avoid issues in some old computers.
106-
3. Optional - deleted Caffe file: `Makefile.config.example`.
107-
4. In order to link it to OpenPose:
108-
1. Run `make all && make distribute` in your Caffe version.
109-
2. Open the OpenPose Makefile config file: `./Makefile.config.UbuntuX.example` (where X depends on your OS and CUDA version).
110-
3. Modify the Caffe folder directory variable (`CAFFE_DIR`) to your custom Caffe `distribute` folder location in the previous OpenPose Makefile config file.
111-
112-
113-
114102
## Quick Start
115103
Most users cases should not need to dive deep into the library, they might just be able to use the [Demo](#demo) or the simple [OpenPose Wrapper](#openpose-wrapper). So you can most probably skip the library details in [OpenPose Library](#openpose-library).
116104

@@ -151,6 +139,24 @@ Check the output (format, keypoint index ordering, etc.) in [doc/output.md](doc/
151139

152140

153141

142+
## Custom Caffe
143+
We only modified some Caffe compilation flags and minor details. You can use your own Caffe distribution, these are the files we added and modified:
144+
145+
1. Added files: `install_caffe.sh`; as well as `Makefile.config.Ubuntu14.example`, `Makefile.config.Ubuntu16.example`, `Makefile.config.Ubuntu14_cuda_7.example` and `Makefile.config.Ubuntu16_cuda_7.example` (extracted from `Makefile.config.example`). Basically, you must enable cuDNN.
146+
2. Edited file: Makefile. Search for "# OpenPose: " to find the edited code. We basically added the C++11 flag to avoid issues in some old computers.
147+
3. Optional - deleted Caffe file: `Makefile.config.example`.
148+
4. In order to link it to OpenPose:
149+
1. Run `make all && make distribute` in your Caffe version.
150+
2. Open the OpenPose Makefile config file: `./Makefile.config.UbuntuX.example` (where X depends on your OS and CUDA version).
151+
3. Modify the Caffe folder directory variable (`CAFFE_DIR`) to your custom Caffe `distribute` folder location in the previous OpenPose Makefile config file.
152+
153+
154+
155+
## Standalone Face Or Hand Keypoint Detector
156+
In case of hand camera views at which the hands are visible but not the rest of the body, or if you do not need the body keypoint detector and want to considerably speed up the process, you can use the OpenPose face or hand keypoint detectors with your own face or hand detectors, rather than using the body keypoint detector as initial detector for those. More information in [doc/standalone_face_or_hand_keypoint_detector.md#faq](doc/standalone_face_or_hand_keypoint_detector.md#faq).
157+
158+
159+
154160
## Speed Up OpenPose and Benchmark
155161
Check the OpenPose Benchmark and some hints to speed up OpenPose on [doc/installation.md#faq](doc/installation.md#faq).
156162

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
OpenPose Library - Standalone Face Or Hand Keypoint Detector
2+
====================================
3+
4+
In case of hand camera views at which the hands are visible but not the rest of the body, or if you do not need the body keypoint detector and want to considerably speed up the process, you can use the OpenPose face or hand keypoint detectors with your own face or hand detectors, rather than using the body keypoint detector as initial detector for those.
5+
6+
## Standalone Face Keypoint Detector
7+
There are 2 ways to add the OpenPose face keypoint detector to your own code without using the body pose keypoint extractor as initial face detector:
8+
9+
1. Easiest solution: Forget about the `OpenPose demo` and `wrapper/wrapper.hpp`, and instead use the `include/openpose/face/faceExtractor.hpp` class with the output of your face detector. Recommended if you do not wanna use any other OpenPose functionality.
10+
11+
2. Elegant solution: If you wanna use the whole OpenPose framework, simply copy `include/wrapper/wrapper.hpp` as e.g. `examples/userCode/wrapperFace.hpp`, and change our `FaceDetector` class by your custom face detector class. If you wanna omit the Pose keypoint detection, you can simply delete it from that custom wrapper too.
12+
13+
## Standalone Hand Keypoint Detector
14+
The analogous steps apply to the hand keypoint detector, but modifying `include/openpose/hand/handExtractor.hpp`.

0 commit comments

Comments
 (0)