diff --git a/README.md b/README.md index 9b70d461..3c40146e 100644 --- a/README.md +++ b/README.md @@ -115,14 +115,6 @@ Your case if you want to change internal functions and/or extend its functionali 3. Adding An Extra Module: Learn how to add an extra module in [doc/library_add_new_module.md](doc/library_add_new_module.md). -### Doxygen Documentation Autogeneration -You can generate the documentation by running the following command. The documentation will be generated in `doc/doxygen/html/index.html`. You can simply open it with double-click (your default browser should automatically display it). -``` -cd doc/ -doxygen doc_autogeneration.doxygen -``` - - ## Output Check the output (format, keypoint index ordering, etc.) in [doc/output.md](doc/output.md). diff --git a/doc/installation.md b/doc/installation.md index 01bf32ca..24bdff88 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -8,9 +8,10 @@ OpenPose - Installation and FAQ 4. [Ubuntu](#ubuntu) 5. [Windows](#windows) 6. [OpenPose 3D Demo](#openpose-3d-demo) -7. [Custom Caffe](#custom-caffe) -8. [Compiling without cuDNN](#compiling-without-cudnn) -9. [FAQ](#faq) +7. [Doxygen Documentation Autogeneration](#doxygen-documentation-autogeneration) +8. [Custom Caffe](#custom-caffe) +9. [Compiling without cuDNN](#compiling-without-cudnn) +10. [FAQ](#faq) @@ -184,6 +185,17 @@ If you want to try our OpenPose 3-D reconstruction demo, see [doc/openpose_3d_re +## Doxygen Documentation Autogeneration +You can generate the documentation by running the following command. The documentation will be generated in `doc/doxygen/html/index.html`. You can simply open it with double-click (your default browser should automatically display it). +``` +cd doc/ +doxygen doc_autogeneration.doxygen +``` + + + + + ## Custom Caffe 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: diff --git a/doc/installation_cmake.md b/doc/installation_cmake.md index e82441b6..4455d4d6 100644 --- a/doc/installation_cmake.md +++ b/doc/installation_cmake.md @@ -12,10 +12,11 @@ OpenPose - Installation using CMake 4. [Run OpenPose](#run-openpose) 5. [Reinstallation](#reinstallation) 6. [Optional Settings](#optional-settings) - 1. [Custom Caffe](#custom-caffe) - 2. [Custom OpenCV](#custom-opencv) - 3. [MPI Model](#mpi-model) - 4. [CMake Command Line Configuration](#cmake-command-line-configuration) + 1. [Doxygen Documentation Autogeneration](#doxygen-documentation-autogeneration) + 2. [Custom Caffe](#custom-caffe) + 3. [Custom OpenCV](#custom-opencv) + 4. [MPI Model](#mpi-model) + 5. [CMake Command Line Configuration](#cmake-command-line-configuration) @@ -109,6 +110,11 @@ In order to re-install OpenPose: ### Optional Settings +#### Doxygen Documentation Autogeneration +You can generate the documentation by setting the `BUILD_DOCS` flag. + + + #### Custom Caffe We only modified some Caffe compilation flags and minor details. You can use your own Caffe distribution, simply specify the Caffe include path and the library as shown below. You will also need to turn off the `BUILD_CAFFE` variable.

diff --git a/src/openpose/filestream/cocoJsonSaver.cpp b/src/openpose/filestream/cocoJsonSaver.cpp index 54214739..9b39e2c1 100644 --- a/src/openpose/filestream/cocoJsonSaver.cpp +++ b/src/openpose/filestream/cocoJsonSaver.cpp @@ -70,7 +70,7 @@ namespace op mJsonOfstream.comma(); mJsonOfstream.plainText(poseKeypoints[finalIndex+1]); mJsonOfstream.comma(); - mJsonOfstream.plainText(1); + mJsonOfstream.plainText((poseKeypoints[finalIndex+2] > 0.f ? 1 : 0)); if (bodyPart < indexesInCocoOrder.size() - 1u) mJsonOfstream.comma(); }