Hello,
I am implementing body masks using the C++ SDK. Since the SDK only provides a unique binary mask per tracking body, instead of a single combined mask with all bodies in it, I referred to this code from StereoLabs. It works great for live camera feed.
However, I want to also apply body masks for SVO playback. I created multiple SVO files using ZED Explorer. I’ve noticed that for the larger-resolution SVO files (ex. HD1080, HD2K), calling mask_ocv(cv::Rect(a, b, local_mask.cols, local_mask.rows)).setTo(it.id, local_mask);
consistently crashes my program. It’s specifically the .setTo(it.id, local_mask);
that is causing the crash. I am getting an “Access violation reading location 0x000…” error, but the reading location is within the datastart and dataend bounds of the cv::Mat local_mask
.
I do not get this crash for lower-resolution playbacks like HD720. Any help would be greatly appreciated. Thank you.