pub struct FeatureMatch {
pub template: Vec<String>,
pub roi: Target,
pub roi_offset: Rect,
pub detector: String,
pub order_by: String,
pub count: i32,
pub index: i32,
pub green_mask: bool,
pub ratio: f64,
}Expand description
Feature-based matching - scale and rotation invariant image matching.
More robust than template matching for detecting objects under transformation.
Fields§
§template: Vec<String>Template image paths relative to image folder. Required.
roi: TargetRecognition region. Default: \[0,0,0,0\] (full screen).
roi_offset: RectOffset applied to the ROI.
detector: StringFeature detector: “SIFT”, “KAZE”, “AKAZE”, “BRISK”, “ORB”. Default: “SIFT”.
order_by: StringResult sorting method. Default: “Horizontal”.
count: i32Minimum feature point matches required. Default: 4.
index: i32Which result to select. Default: 0.
green_mask: boolUse green (0,255,0) as mask color. Default: false.
ratio: f64KNN distance ratio threshold [0-1.0]. Default: 0.6.
Trait Implementations§
Source§impl Clone for FeatureMatch
impl Clone for FeatureMatch
Source§fn clone(&self) -> FeatureMatch
fn clone(&self) -> FeatureMatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeatureMatch
impl Debug for FeatureMatch
Source§impl<'de> Deserialize<'de> for FeatureMatch
impl<'de> Deserialize<'de> for FeatureMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FeatureMatch
impl RefUnwindSafe for FeatureMatch
impl Send for FeatureMatch
impl Sync for FeatureMatch
impl Unpin for FeatureMatch
impl UnwindSafe for FeatureMatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more