Skip to main content

Detector

Struct Detector 

Source
pub struct Detector { /* private fields */ }
Expand description

The main type for detecting tags

Implementations§

Source§

impl Detector

Source

pub fn new() -> Self

Constructor

Source

pub fn add_family(&mut self, family: Family)

Add a tag family.

The maximum number of bit errors to correct is chosen automatically from the family (see FamilyType::recommended_correction_bits). Families with a large minimum Hamming distance (e.g. tag36h11) keep the upstream default of 2, while families with a small Hamming distance (e.g. tag16h5, tag25h9) correct fewer bits to suppress false positives. Use Detector::add_family_bits to choose the correction explicitly.

We take ownership of the family to keep its lifetime.

Source

pub fn add_family_bits(&mut self, family: Family, bits: i32)

Add a tag family

We take ownership of the family to keep its lifetime.

Source

pub fn clear_families(&mut self)

Remove all tag families

Source

pub fn detect(&self, im: &image_u8) -> Zarray<Detection>

Detect points in an image

Trait Implementations§

Source§

impl AsMut<apriltag_detector> for Detector

Source§

fn as_mut(&mut self) -> &mut apriltag_detector

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl Debug for Detector

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Detector

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for Detector

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for Detector

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.