cv3.create.empty
- cv3.create.empty(*args)[source]
Create an uninitialized array.
- Parameters:
*args – Dimensions of the array. Can be passed as separate arguments (e.g., empty(100, 100, 3)) or as a tuple.
- Returns:
Uninitialized array of type uint8.
- Return type:
numpy.ndarray
Note
The values in the returned array are uninitialized and may contain arbitrary data. For performance reasons, the array is not initialized to zero.
Example
>>> import cv3 >>> img = cv3.empty(100, 100, 3) # Create uninitialized 100x100x3 image >>> print(img.shape) (100, 100, 3)