You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
344 B
Python
21 lines
344 B
Python
2 months ago
|
import cv2;
|
||
|
|
||
|
|
||
|
|
||
|
img_color = cv2.imread('media/buildings/roffa6.jpeg')
|
||
|
|
||
|
|
||
|
#Displays image inside a window
|
||
|
# cv2.imshow('color image',img_color)
|
||
|
|
||
|
|
||
|
|
||
|
# Custom window
|
||
|
cv2.namedWindow('custom window', cv2.WINDOW_KEEPRATIO)
|
||
|
cv2.imshow('custom window', img_color)
|
||
|
# cv2.resizeWindow('custom window', 200, 200)
|
||
|
|
||
|
cv2.waitKey(0)
|
||
|
cv2.destroyAllWindows()
|
||
|
|