npyread
-
Description: Reads an image array from a NumPy
.npy
file. -
Parameters:
- path (
Union[str, Path]
): The path to the.npy
file.
- path (
-
Return value:
- np.ndarray: The image array read from the file. Returns
None
if reading fails.
- np.ndarray: The image array read from the file. Returns
-
Example:
import capybara as cb
img = cb.npyread('lena.npy')