Navigation Menu

Skip to content

Core functions

Tim Poulsen edited this page Feb 24, 2019 · 2 revisions

Robovision's core provides functions for image acquisition, adjustment, and overlays.

Basics

Acquisition

rv.get_video_stream — returns a VideoStream instance that you can use to access live streaming video from a web cam, IP camera, Raspberry Pi camera, or Jetson development board embedded camera.

Resizing

rv.resize — Resize an image proportionally (preserves aspect ratio).

rv.resize_raw — Resize an image without regard to aspect ratio.

Adjustment

rv.adjust_brightness — Increase/decrease image brightness.

rv.adjust_contrast — Increase/decrease image Increase/decrease image brightness.

rv.adjust_brightness_contrast — Increase/decrease both image brightness and contrast.

rv.equalize — Performs the CLAHE equalization function on an image to adjust/improve contrast.

Analysis

rv.detect_edges — Create an edge-detected version of an image using the Canny algorithm.

Flattening

rv.load_camera_params — Loads camera/lens parameters (determined by auto_calibrate.py) for use for flatten() operations.

rv.flatten — Removes camera/lens distortions based on the parameters determined with auto_calibrate.py.

Overlays

rv.draw_arrow — Draw an arrow pointing in any of the four cardinal directions.

rv.draw_border — Draw a colored border around the outside edges of the image.

rv.draw_crosshairs — Draw crosshairs centered on the image.

rv.draw_text — Draw short bits of text on the image.