CamParams

struct CamParams

A struct containing the unique camera parameters for each camera connected to MAPLE.

Public Members

std::string name

Camera name.

int camera_id

Camera ID, the video number X in /dev/videoX.

std::string camera_playback_file

If playing video back from a file, use this filepath.

int rx

Camera resolution x.

int ry

Camera resolution y.

bool calibrate

Enable calibration mode on this camera. Use a 9x6 chessboard calibration target to calculate the camera intrinsic matrix (fx, fy, cx, cy) and the distortion coefficients. If values for fx, fy, cx, and cy are provided in the configuration file, use these as the initial guess for the camera intrinsic matrix during the calculation. Camera closes after calibration is complete.

double fx

Focal length (in pixels) x. fx = pixels/mm & focalLengthMm.

double fy

Focal length (in pixels) y. fy = pixels/mm & focalLengthMm.

double cx

The center of the image in the x axis (in pixels).

double cy

The center of the image in the y axis (in pixels).

std::vector<double> dist_coeffs

The distortion coefficients k1, k2, p1, p2, k3.

float fps

Desired FPS.

int exposure

Exposure. Range varies per camera.

float quad_decimate = 2.0

Decimate input image by this factor.

float quad_sigma = 0.0

Apply low-pass blur with this sigma value.

int nthreads = 1

Use this many CPU threads for Apriltag detection

bool debug = false

Enable Apriltag library debugging output (slow)

bool refine_edges = true

Spend more time trying to align edges of tags.

struct CamParams tag_detector

Apriltag detector parameters.