I create a new python program and can show the image. It does look like some of the import already block the cv2.imshow() however, once I created imshow window first, contents modification does work wihtout issue.
I hope it helps.
import cv2
import numpy as np
height, width = 720, 1280 # You can adjust the size
img = np.zeros((height, width, 3), dtype=np.uint8)
cv2.imshow('b', img)
print(f"Shape: {img.shape}, Dimensions: {img.ndim}, Type: {img.dtype}, Size: {img.size}")
cv2.waitKey(1)
I create a new python program and can show the image. It does look like some of the import already block the cv2.imshow() however, once I created imshow window first, contents modification does work wihtout issue.
I hope it helps.
import cv2 import numpy as np
height, width = 720, 1280 # You can adjust the size img = np.zeros((height, width, 3), dtype=np.uint8) cv2.imshow('b', img) print(f"Shape: {img.shape}, Dimensions: {img.ndim}, Type: {img.dtype}, Size: {img.size}") cv2.waitKey(1)
from display_video_channel import main main()