why out of memory error??
-
While showing the vision image, I open the camera with opencv and convert the image to qimage and then to qpixmap.
It keeps fluttering and crashing, and at some point it crashes... but since the crash occurred in a certain part of QT itself, I understand the clear reason.
Please tell me. -
Crash is somewhere deep, but try going back in stack trace and find last place where it was in your code. Look for problems there - maybe some dangling pointer or something. If you find no problems there, try with a different Qt version, maybe you've hit some Qt bug.
-
While showing the vision image, I open the camera with opencv and convert the image to qimage and then to qpixmap.
It keeps fluttering and crashing, and at some point it crashes... but since the crash occurred in a certain part of QT itself, I understand the clear reason.
Please tell me.@ds3216 how are you converting the cv::mat to an QImage ?
depending on the QImage constructor used it assumes shared data that outlives itself
When I used OpenCV back in the day, I found this awesome repository by Debao Zhang
those conversions are save and sound as they copy data appropriately