applp.crop_image module

applp.crop_image(image, ncrops=1)[source]

This function creates an app to crop an image.

Parameters:
  • image (np.ndarray or pathlib.Path) – Reference to image.

  • ncrops (int) – Number of crops to do.

Returns:

crop – cropped image.

Return type:

np.ndarray

Examples

>>> from applp import crop_image
...
>>> crop = crop_image(image_path)