cvui icon indicating copy to clipboard operation
cvui copied to clipboard

cvui:: window crashed

Open chris-shenzhen-china opened this issue 5 years ago • 8 comments

image

image

chris-shenzhen-china avatar May 09 '19 11:05 chris-shenzhen-china

crashed in cvui:window ---> cv::rectangle(aOverlay, theContent, cv::Scalar(0x31, 0x31, 0x31), CVUI_FILLED);

chris-shenzhen-china avatar May 09 '19 11:05 chris-shenzhen-china

I'll check that. Are you using OpenCV 4.x?

Dovyski avatar May 09 '19 19:05 Dovyski

i think the issue is always there both opencv 4.x and opencv3.4.6, image

chris-shenzhen-china avatar May 10 '19 03:05 chris-shenzhen-china

Ok, thanks for the info. I think I've identified the problem. I'll make a patch soon.

Dovyski avatar May 10 '19 14:05 Dovyski

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());

pthom avatar Jun 06 '19 18:06 pthom

Thanks, Pascal! I'll work on the fix using your patch.

Dovyski avatar Jun 07 '19 14:06 Dovyski

Thanks, Pascal! I'll work on the fix using your patch.

hi version2.7.0 stiil has this bug lol

lvZic avatar Jul 22 '20 10:07 lvZic

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.

Dovyski avatar Jul 24 '20 13:07 Dovyski