cv::Rect rect = cv::boundingRect(opencv_crd_mat);
OpenCV Error: Assertion failed (npoints >= 0 && (depth == CV_32F || depth == CV_32S)) in cv::pointSetBoundingRect, file C:\Bin\opencv-master\source\modules\imgproc\src\shapedescr.cpp, line 458
This is my opencv_crd_mat 8 cols 2 rows.
[-4281.8457, -4315.7046, -7327.6001, -7293.7407, -2615.3616, -2649.2207, -5661.1162, -5627.2568; -995.60034, -20469.369, -21360.467, -1886.6984, -1013.2598, -20487.029, -21378.127, -1904.3578]