Shortcuts

caer.data

caer.data.abspath(file_name)[source]

Returns the absolute path of file_name

Return type

str

caer.data.audio_mixer(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of an audio mixer.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.bear(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a bear.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.beverages(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of beverages.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.black_cat(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a black cat.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.blue_tang(target_size=None, rgb=False)[source]

Returns a standard 640x414 image (RGB, by default) of a blue tang (a type of fish).

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.camera(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a camera.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.controller(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a game controller.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.drone(target_size=None, rgb=False)[source]

Returns a standard 640x358 image (RGB, by default) of a robotic drone.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.dusk(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a dusk landscape.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.fighter_fish(target_size=None, rgb=False)[source]

Returns a standard 640x640 image (RGB, by default) of a fighter fish.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.gold_fish(target_size=None, rgb=False)[source]

Returns a standard 640x901 image (RGB, by default) of a gold fish.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.green_controller(target_size=None, rgb=False)[source]

Returns a standard 640x512 image (RGB, by default) of a green game controller.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.green_fish(target_size=None, rgb=False)[source]

Returns a standard 640x430 image (RGB, by default) of a green fish.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.guitar(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a guitar.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.imread(image_path, target_size=None, channels=3, rgb=False, resize_factor=None, keep_aspect_ratio=False)[source]

Loads in an image from image_path Arguments

image_path: Filepath/URL to read the image from target_size: Target image size channels: 1 (grayscale) or 3 (RGB/BGR). Default: 3 rgb: Boolean to keep RGB ordering. Default: False resize_factor: Resizes the image using resize_factor. Default: None keep_aspect_ratio: Resized image to target_size keeping aspect ratio. Some parts of the image may not be included. Default: False

caer.data.island(target_size=None, rgb=False)[source]

Returns a standard 640x426 image (RGB, by default) of an island.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.jellyfish(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a jellyfish.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.laptop(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a laptop.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.minijoin(*paths)[source]

Join multiple filepaths together

Return type

str

caer.data.mountain(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a mountain.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.night(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a night landscape.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.phone(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a rotary phone.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.puppies(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a litter of puppies.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.puppy(target_size=None, rgb=False)[source]

Returns a standard 640x512 image (RGB, by default) of a puppy.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.red_fish(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a red fish.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.sea_turtle(target_size=None, rgb=False)[source]

Returns a standard 640x400 image (RGB, by default) of a sea turtle.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.snow(target_size=None, rgb=False)[source]

Returns a standard 640x360 image (RGB, by default) of snow.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.snowflake(target_size=None, rgb=False)[source]

Returns a standard 640x480 image (RGB, by default) of a snowflake.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.sunrise(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a sunrise landscape.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

caer.data.tent(target_size=None, rgb=False)[source]

Returns a standard 640x427 image (RGB, by default) of a tent.

Parameters
  • target_size (tuple) – Intended target size (follows the (width,height) format)

  • rgb (bool) – Return an RGB image?

Return type

ndarray

Returns

Image array (ndarray)

Read the Docs v: stable
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.