Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cv2 open blank window

# sadly, if you're using cv2.imread(), not many options exist...

import cv2
import numpy as np
# black blank image
blank_image = np.zeros(shape=[512, 512, 3], dtype=np.uint8)
# print(blank_image.shape)
cv2.imshow("Black Blank", blank_image)
# white blank image
blank_image2 = 255 * np.ones(shape=[512, 512, 3], dtype=np.uint8)
cv2.imshow("White Blank", blank_image2)
cv2.waitKey(0)
cv2.destroyAllWindows()
Comment

PREVIOUS NEXT
Code Example
Python :: bebražole 
Python :: mike tyson peso pesado 
Python :: python input byte array 
Python :: moving element to the start ofa list python 
Python :: python change type of every element in a dictionary 
Python :: in python, i am pustin two star before paramerter what is that men 
Python :: part of list into dataframe 
Python :: expionenttiation python 
Python :: python keyborad back space 
Python :: python get user of pid 
Python :: python measure volum from audio file 
Python :: pandas plot hide object type 
Python :: how to get user id discord.py 
Python :: file.write must be string python 
Python :: What are zinc bandages used for? 
Python :: Add up the elements in this RDD 
Python :: python create adictionary randomly assigning clors to categorical vairables 
Python :: pandas filter rows by fuzzy values 
Python :: python setup install_requires local whl 
Python :: get the factorial of a number on python 
Python :: python coule nod import the module virtualenvwrapper.hook_loader 
Python :: break py 
Python :: download viper for python ubutunu 
Python :: py 
Python :: star psf 
Python :: exercism Phone Number python 
Python :: allala rara 
Python :: save changes flask sqlalchemy 
Python :: check cudann 
Python :: to find keywords in a text spacy 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =