cv3.create.zeros
- cv3.create.zeros(*args)[source]
Create an array filled with zeros.
- Parameters:
*args – Dimensions of the array. Can be passed as separate arguments (e.g., zeros(100, 100, 3)) or as a tuple (e.g., zeros((100, 100, 3))).
- Returns:
Array filled with zeros of type uint8.
- Return type:
numpy.ndarray
Example
>>> import cv3 >>> img = cv3.zeros(100, 100, 3) # Create a 100x100x3 image filled with zeros >>> print(img.shape) (100, 100, 3) >>> print(img.dtype) uint8