Ask Your Question

Revision history [back]

i tried something like this

import cv2
import numpy as np

Image = np.zeros((20000,20000), np.uint8) 

Threshold = np.zeros(Image.shape, np.uint8) 
cv2.threshold(Image, 121, 255,   cv2.THRESH_BINARY, Threshold) 
cv2.imshow("WindowName", Threshold )

cv2.waitKey(0)
Image = np.zeros((1,1), np.uint8)
Threshold = np.zeros((1,1), np.uint8)
cv2.imshow("WindowName", Threshold )

cv2.waitKey(0)
cv2.destroyAllWindows()