mirror of
https://github.com/gosticks/openpose.git
synced 2026-08-12 20:30:20 +00:00
C++ tutorial API only cv::imshow if not empty
This commit is contained in:
@@ -57,7 +57,10 @@ bool display(
|
||||
cv::applyColorMap(desiredChannelHeatMapUint8, desiredChannelHeatMapUint8, cv::COLORMAP_JET);
|
||||
cv::addWeighted(netInputImageUint8, 0.5, desiredChannelHeatMapUint8, 0.5, 0., imageToRender);
|
||||
// Display image
|
||||
cv::imshow(OPEN_POSE_NAME_AND_VERSION + " - Tutorial C++ API", imageToRender);
|
||||
if (!imageToRender.empty())
|
||||
cv::imshow(OPEN_POSE_NAME_AND_VERSION + " - Tutorial C++ API", imageToRender);
|
||||
else
|
||||
op::opLog("Empty cv::Mat as output.", op::Priority::High, __LINE__, __FUNCTION__, __FILE__);
|
||||
}
|
||||
else
|
||||
op::opLog("Nullptr or empty datumsPtr found.", op::Priority::High);
|
||||
|
||||
Reference in New Issue
Block a user