stereolabs / zed-opencv

ZED SDK interface sample for OpenCV
https://www.stereolabs.com/docs/opencv/
MIT License
137 stars 79 forks source link

SAVE depth image error #68

Closed lichenyue1996 closed 2 years ago

lichenyue1996 commented 5 years ago

When I set the params as follows: init_params.camera_resolution = RESOLUTION_HD1080; init_params.depth_mode = DEPTH_MODE_PERFORMANCE; init_params.coordinate_units = UNIT_METER;

And I use these codes to save depth image: strdepth ="../data/depth/depth"+std::to_string(i)+".png"; saveDepth(zed, str_depth);

I choose the format as DEPTH_FORMAT_PNG. The code run successful, but the depth image has saved is in error like this depth_1 I can't open this png picture!! When I change the params to init_params.camera_resolution = RESOLUTION_VGA. It shows correct. If you know how to fix this problem, tell me please! Thanks!

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days