Ask Your Question
0

how do i create a blank image in opencv-python without using numpy?

asked 2020-07-08 05:55:06 -0600

i dont have to use numpy or any other built in function

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-07-08 06:03:04 -0600

berak gravatar image

updated 2020-07-08 06:20:21 -0600

you can't.

opencv uses numpy arrays in python, and so you have to use numpy, too, it's not optional. a simple

img = np.zeros((100,100,3), dtype=np.uint8)

should do the job

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-07-08 05:55:06 -0600

Seen: 27,731 times

Last updated: Jul 08 '20