imshow full resolution too slow [closed]

asked 2015-08-12 02:46:45 -0600

Nbb gravatar image

Hello forum,

I have a video with an original resolution of 1920 x 1080.

Original Image ( 1920 x 1080 ) Resized Image ( 960 x 540 )

On the first program, Background subtraction is done on the Resized Image and all objects larger than a certain area are labelled by a bounding box. The properties of the bounding boxes ( x, y, width and height ) are all multiplied by 2 and the result is drawn on the Original Image.

On the second program, the properties of the bounding boxes are not multiplied by 2. They are just drawn on the Resized Version

The problem is, the output of the first program is really slow and I have no idea how scaling the area of the bounding box by 2 can make the program go slow.

I hope I can get some help on this.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-25 08:17:01.493368

Comments

Are you sure that this is due the resizing? It would be better if you shared your code so we can reproduce the problem.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-08-12 04:25:28 -0600 )edit