otx.cli.tools.utils.demo.images_capture#

Images capturing module.

Functions

open_images_capture(source, loop[, ...])

Opens images capture.

Classes

CameraCapWrapper(source, camera_resolution)

Class for capturing images from camera.

DirReader(source, loop)

Class for reading images from directory.

ImagesCapture()

Images capturing base class.

ImreadWrapper(source, loop)

Class for reading an image from file.

VideoCapWrapper(source, loop)

Class for capturing images from video.

Exceptions

InvalidInput(message)

Exception for wrong input format.

OpenError(message)

Exception for error opening reader.

exception otx.cli.tools.utils.demo.images_capture.InvalidInput(message)[source]#

Bases: Exception

Exception for wrong input format.

exception otx.cli.tools.utils.demo.images_capture.OpenError(message)[source]#

Bases: Exception

Exception for error opening reader.

class otx.cli.tools.utils.demo.images_capture.CameraCapWrapper(source, camera_resolution)[source]#

Bases: ImagesCapture

Class for capturing images from camera.

fps()[source]#

Returns a frequency of getting images from source.

get_type()[source]#

Returns type of image capture.

read()[source]#

Returns captured image.

class otx.cli.tools.utils.demo.images_capture.DirReader(source, loop)[source]#

Bases: ImagesCapture

Class for reading images from directory.

fps()[source]#

Returns a frequency of getting images from source.

get_type()[source]#

Returns type of image capture.

read()[source]#

Returns captured image.

class otx.cli.tools.utils.demo.images_capture.ImagesCapture[source]#

Bases: object

Images capturing base class.

fps()[source]#

Returns a frequency of getting images from source.

get_type()[source]#

Returns type of image capture.

read()[source]#

Returns captured image.

class otx.cli.tools.utils.demo.images_capture.ImreadWrapper(source, loop)[source]#

Bases: ImagesCapture

Class for reading an image from file.

fps()[source]#

Returns a frequency of getting images from source.

get_type()[source]#

Returns type of image capture.

read()[source]#

Returns captured image.

class otx.cli.tools.utils.demo.images_capture.VideoCapWrapper(source, loop)[source]#

Bases: ImagesCapture

Class for capturing images from video.

fps()[source]#

Returns a frequency of getting images from source.

get_type()[source]#

Returns type of image capture.

read()[source]#

Returns captured image.

otx.cli.tools.utils.demo.images_capture.open_images_capture(source, loop, camera_resolution=(1280, 720))[source]#

Opens images capture.