cvui
cvui copied to clipboard
cvui:: window crashed
crashed in cvui:window ---> cv::rectangle(aOverlay, theContent, cv::Scalar(0x31, 0x31, 0x31), CVUI_FILLED);
I'll check that. Are you using OpenCV 4.x?
i think the issue is always there both opencv 4.x and opencv3.4.6,
Ok, thanks for the info. I think I've identified the problem. I'll make a patch soon.
Good evening Fernando !
I stumbled also on this problem, using opencv 4. The patch below seems to do the trick:
cvui.h
line 2089; add the line "aOverlay = cv::Mat..."
void window(cvui_block_t& theBlock, cv::Rect& theTitleBar, cv::Rect& theContent, const cv::String& theTitle) {
bool aTransparecy = false;
double aAlpha = 0.3;
// Replace the line "cv::Mat aOverlay;" by this:
cv::Mat aOverlay = cv::Mat(theBlock.where.size(), theBlock.where.type());
Thanks, Pascal! I'll work on the fix using your patch.
Thanks, Pascal! I'll work on the fix using your patch.
hi version2.7.0 stiil has this bug lol
That must be some sort of record (1 year of "I'll work on it") 😄
As the maintainer of the project, I honestly apologize for this. I work on cvui during my free time, which has been quite limited. For those monitoring it, cvui is not abandoned, just under-maintained.