'Can i change window border attribute in opencv, python?

I am working on some opencv thing.... switching webcam view <-> black full of nothing.

In image 1, black box is generated by (opencv)imread, gray one is generated by resizeWindow.

And the gray one (i'm not sure if i call that 'border', if you know better word, let me know.), is the problem.

I want to control that area. Like changing color (black), or alignment.

What method should i use?

I am using python, opencv.

+) Oh, this image is just simple black box... but i want to use this code in webcam-border as well. So, i guess i cannot simply resizing images? because i don't want to make view more fatter or thinner.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source