mirror of
https://github.com/gosticks/openpose.git
synced 2026-12-04 10:51:39 +00:00
Improved doc
This commit is contained in:
@@ -28,6 +28,15 @@ The visual GUI should show the original image with the poses blended on it, simi
|
||||
<img src="media/shake.gif", width="720">
|
||||
</p>
|
||||
|
||||
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:
|
||||
<p align="center">
|
||||
<img src="media/body_heat_maps.gif", width="720">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="media/paf_heat_maps.gif", width="720">
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
## Other Important Options
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 178 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 11 MiB |
@@ -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<<<threadsPerBlock, numBlocks>>>(framePtr, frameSize.width, frameSize.height, facePtr, numberFaces, threshold, alphaColorToAdd);
|
||||
cudaCheck(__LINE__, __FUNCTION__, __FILE__);
|
||||
}
|
||||
|
||||
@@ -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<<<threadsPerBlock, numBlocks>>>(framePtr, frameSize.width, frameSize.height, handsPtr, numberHands, threshold, alphaColorToAdd);
|
||||
cudaCheck(__LINE__, __FUNCTION__, __FILE__);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user