Skip to content

Commit

Permalink
Fix when Azure is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
pbosetti committed May 9, 2024
1 parent 0d1de0a commit 886171d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion params.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"camera_device": 0,
"azure_device": 0,
"model_file": "models/human-pose-estimation-0001.xml",
"resolution_rgb": "",
"resolution_rgb": "1024x768",
"fps": 25,
"dummy": false,
"debug": {
Expand Down
3 changes: 2 additions & 1 deletion src/plugin/skeletonizer3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,12 @@ if (dummy) {
Mat rgbd_flipped;
flip(_rgbd, rgbd_flipped, 1);
rgbd_flipped.convertTo(rgbd_flipped, CV_8U, 255.0 / 3000); // 2000 is the maximum depth value
#ifdef KINECT_AZURE
Mat rgbd_flipped_color;
// Apply the colormap:
applyColorMap(rgbd_flipped, rgbd_flipped_color, COLORMAP_HSV);
imshow("rgbd", rgbd_flipped_color);

#endif
int key = cv::waitKey(1000.0 / _fps);

if (27 == key || 'q' == key || 'Q' == key) { // Esc
Expand Down

0 comments on commit 886171d

Please sign in to comment.