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