Shortcuts

caer.video

Video Streams

Stream

caer.video.Stream(source=0, qsize=128)[source]

This is an auxiliary class that enables Video Streaming for caer with minimalistic latency, and at the expense of little to no additional computational requirements.

The basic idea behind it is to tracks and save the salient feature array for the given number of frames and then uses these anchor point to cancel out all perturbations relative to it for the incoming frames in the queue. This class relies heavily on Threaded Queue mode for error-free & ultra-fast frame handling.

Parameters
  • source (int, str) – Source path for the video. Uses an external camera device if source is an integer.

  • qsize (int) – Default queue size for handling the video streams. Default: 128.

LiveStream

caer.video.LiveStream(source=0)[source]

This is an auxiliary class that enables Live Video Streaming for caer with minimalistic latency, and at the expense of little to no additional computational requirements.

The basic idea behind it is to tracks and save the salient feature array for the given number of frames and then uses these anchor point to cancel out all perturbations relative to it for the incoming frames in the queue. This class relies heavily on Threaded Queue mode for error-free & ultra-fast frame handling.

Parameters

source (int) – Source path for the video. If source=0, the default camera device is used. For multiple external camera devices, use incremented values. For eg: source=1 represents the second camera device on your system.


Frame Extraction

extract_frames

caer.video.extract_frames(input_folder, output_folder, target_size=None, recursive=False, label_counter=None, max_video_count=None, frames_per_sec=None, frame_interval=None, dest_filetype='jpg')[source]

Extract frames from videos within a directory and save them as separate frames in an output directory.

Parameters
  • input_folder (str) – Input video directory.

  • output_folder (str) – Output directory to save the frames.

  • target_size (tuple) – Destination Image Size (tuple of size 2)

  • label_counter (int) – Starting label counter (optional)

  • max_video_count (int) – Number of videos to process.

  • frames_per_sec (int, float) – Number of frames to process per second.

  • frame_interval (int, float) – Interval between the frames to be processed.

  • dest_filetype (str) – Processed image filetype (png, jpg). Default: png

Return type

int

Returns

label_counter (after processing)


Video Stablizer

Stablizer

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

Free document hosting provided by Read the Docs.