labelme icon indicating copy to clipboard operation
labelme copied to clipboard

3D view, the dimension 2 load file failed

Open oeluoz opened this issue 1 year ago • 0 comments

Hi there! Thanks for your gorgeous project. I run this project with Opencv 4.5.4 & MSVC 2017 after change the view 3D, i open the examples imgs, but the program crashed, the log info is OpenCV(4.5.4) Error: Assertion failed ((unsigned)i0 < (unsigned)size.p[0]) in cv::Mat::at the crash happened at void My::Parse::parseImage(int dimension,QListcv::Mat& list,QListMy::Shape3D*& shapes,QList<Label3D*>& labels){ line 407 if(dimension==2){ cv::Mat mat3=cv::Mat(list.length(),list[0].rows,CV_8UC1); for(int i=0;i<mat3.rows;i++){ for(int j=0;j<mat3.cols;j++){ mat3.at(i,j)=list[i].at(list[0].rows-j,labels[2]->zindex); } } i want to know is it possible there is a bug? Or just the compatibility problem of opencv?

oeluoz avatar Dec 27 '23 08:12 oeluoz