Closed ASingh245 closed 2 years ago
Same problem with custom detector in SDK 3.7
Same problem with custom detector in SDK 3.7
Fixed adding in cv::Rect get_rect(cv::Mat& img, float bbox[4]) in common.hpp these lines
int r_minus_l = r - l;
int b_minus_t = b - t;
if(l <0 )
l = 0;
if(t < 0 )
t = 0;
if(r_minus_l < 0 )
r_minus_l = 0;
if(b_minus_t < 0 )
b_minus_t = 0;
return cv::Rect(l, t, r_minus_l, b_minus_t);
Ok, I will try thanks
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
Preliminary Checks
Description
I am using the ZED2 Camera on Jetson Xavier AGX. The ZED SDK is installed for Jetson Jetpack 4.6. When I try to execute the opencv_dnn_yolov4 from https://github.com/stereolabs/zed-examples/tree/master/object%20detection/custom%20detector/cpp/opencv_dnn_yolov4. The camera opens for 1 second and closes after that with the error mentioned as:
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /builds/sl/ZEDKit/lib/src/sl_core/opencv/core/matrix.cpp, line 508 Segmentation fault (core dumped).
Please let me know how can I fix this error.
Steps to Reproduce
Expected Result
model should run unintereptedly.
Actual Result
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /builds/sl/ZEDKit/lib/src/sl_core/opencv/core/matrix.cpp, line 508 Segmentation fault (core dumped).
ZED Camera model
ZED2
Environment
Anything else?
No response