Struct apriltag::detector::Detector

source ·
#[repr(transparent)]
pub struct Detector { /* private fields */ }
Expand description

The marker detector.

Implementations§

Run detection on the input image.

Set the number of threads used for detection.

Decimate the input image.

The detection of quads can be done on a lower-resolution image, improving speed at a cost of pose accuracy and a slight decrease in detection rate. Decoding the binary payload is still done at full resolution.

Set the standard deviation in pixels for Gaussian blur applied to the segmented image for quad detection. Very noisy images benefit from non-zero values (e.g. 0.8).

Enable refinement of edges.

When enabled, the edges of the each quad are adjusted to “snap to” strong gradients nearby. This is useful when decimation is employed, as it can increase the quality of the initial quad estimate substantially. Both very computationally inexpensive and generally recommended to be enabled. The option is ignored if decimation is disabled.

Set the amount of sharpening applied to the decoded images.

This can help decode small tags but may or may not help in odd lighting conditions or low light conditions. The default value is 0.25.

Enable or disable the debugging message.

It is disabled by default.

Set various thresholds for detecting quads as candidates for further processing.

Creates an instance from pointer.

The pointer will be managed by the type. Do not run manual deallocation on the pointer. Panics if the pointer is null.

Safety

The method is safe when the pointer was created by apriltag_detector_create.

Returns the underlying pointer.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.