diff --git a/doc/demo_overview.md b/doc/demo_overview.md index a50c1ff063e162c9f850d1866e2fb46544409702..64c496b3f3dec002f0ebf246192dec7fdc9bfa03 100644 --- a/doc/demo_overview.md +++ b/doc/demo_overview.md @@ -28,6 +28,15 @@ The visual GUI should show the original image with the poses blended on it, simi

+If you choose to visualize a body part or a PAF (Part Affinity Field) heat map, the result should be similar to the following images: +

+ +

+ +

+ +

+ ## Other Important Options diff --git a/doc/media/body_heat_maps.png b/doc/media/body_heat_maps.png new file mode 100644 index 0000000000000000000000000000000000000000..024ea28022ecf759e0662ce9b071c4cc414232c5 Binary files /dev/null and b/doc/media/body_heat_maps.png differ diff --git a/doc/media/paf_heat_maps.jpg b/doc/media/paf_heat_maps.jpg new file mode 100644 index 0000000000000000000000000000000000000000..90d40443a6237a8705ef9db41bbf63aabdaf1266 Binary files /dev/null and b/doc/media/paf_heat_maps.jpg differ diff --git a/doc/media/pose_face_hands.gif b/doc/media/pose_face_hands.gif index cae091101ec63186921505d068f33c7f9ea95082..ed4cd1c452c17df247929293bb90c4866a37cecb 100644 Binary files a/doc/media/pose_face_hands.gif and b/doc/media/pose_face_hands.gif differ diff --git a/src/openpose/experimental/face/faceRenderGpu.cu b/src/openpose/experimental/face/faceRenderGpu.cu index 9811ed12815dc3904eeae2c7ea19451427016c95..7071add0e52c30861576ea92a325306b486ca884 100644 --- a/src/openpose/experimental/face/faceRenderGpu.cu +++ b/src/openpose/experimental/face/faceRenderGpu.cu @@ -47,12 +47,9 @@ namespace op { if (numberFaces > 0) { - //framePtr = width * height * 3 - //facePtr = 3 (x,y,score) * #Hand parts * # face - const auto threshold = 0.4f; + const auto threshold = 0.5f; dim3 threadsPerBlock = dim3{THREADS_PER_BLOCK_1D, THREADS_PER_BLOCK_1D}; dim3 numBlocks = dim3{getNumberCudaBlocks(frameSize.width, threadsPerBlock.x), getNumberCudaBlocks(frameSize.height, threadsPerBlock.y)}; - // log("numberFaces: " + std::to_string(numberFaces), Priority::Low, __LINE__, __FUNCTION__, __FILE__); renderFaceParts<<>>(framePtr, frameSize.width, frameSize.height, facePtr, numberFaces, threshold, alphaColorToAdd); cudaCheck(__LINE__, __FUNCTION__, __FILE__); } diff --git a/src/openpose/experimental/hand/handRenderGpu.cu b/src/openpose/experimental/hand/handRenderGpu.cu index 8c53d6e1b13a6ecf064c7240961d010e4f69c391..16a3c4ecbcf13df5a8ea746c610bd8cd2be3993f 100644 --- a/src/openpose/experimental/hand/handRenderGpu.cu +++ b/src/openpose/experimental/hand/handRenderGpu.cu @@ -70,12 +70,9 @@ namespace op { if (numberHands > 0) { - //framePtr = width * height * 3 - //handsPtr = 3 (x,y,score) * #Hand parts * # hands const auto threshold = 0.05f; dim3 threadsPerBlock = dim3{THREADS_PER_BLOCK_1D, THREADS_PER_BLOCK_1D}; dim3 numBlocks = dim3{getNumberCudaBlocks(frameSize.width, threadsPerBlock.x), getNumberCudaBlocks(frameSize.height, threadsPerBlock.y)}; - // log("numberHands: " + std::to_string(numberHands), Priority::Low, __LINE__, __FUNCTION__, __FILE__); renderHandsParts<<>>(framePtr, frameSize.width, frameSize.height, handsPtr, numberHands, threshold, alphaColorToAdd); cudaCheck(__LINE__, __FUNCTION__, __FILE__); }