try to make black image but getting error for np.unit8

Viewed 2115

I have just started to learn OpenCV. trying to make a black window by the code:

img=np.zeros((512,512,3),np.unit8)

but get the error:

module 'numpy' has no attribute 'unit8'
1 Answers
Related