pub struct ColorMatch {
pub lower: Vec<Vec<i32>>,
pub upper: Vec<Vec<i32>>,
pub roi: Target,
pub roi_offset: Rect,
pub order_by: String,
pub method: i32,
pub count: i32,
pub index: i32,
pub connected: bool,
}Expand description
Color matching recognition - finds regions by color range.
Matches pixels within specified color bounds.
Fields§
§lower: Vec<Vec<i32>>Lower color bounds. Required. Format depends on method.
upper: Vec<Vec<i32>>Upper color bounds. Required. Format depends on method.
roi: TargetRecognition region. Default: \[0,0,0,0\] (full screen).
roi_offset: RectOffset applied to the ROI.
order_by: StringResult sorting method. Default: “Horizontal”.
method: i32Color conversion code (cv::ColorConversionCodes). Default: 4 (RGB).
count: i32Minimum matching pixel count. Default: 1.
index: i32Which result to select. Default: 0.
connected: boolOnly count connected pixels. Default: false.
Trait Implementations§
Source§impl Clone for ColorMatch
impl Clone for ColorMatch
Source§fn clone(&self) -> ColorMatch
fn clone(&self) -> ColorMatch
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 ColorMatch
impl Debug for ColorMatch
Source§impl<'de> Deserialize<'de> for ColorMatch
impl<'de> Deserialize<'de> for ColorMatch
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 ColorMatch
impl RefUnwindSafe for ColorMatch
impl Send for ColorMatch
impl Sync for ColorMatch
impl Unpin for ColorMatch
impl UnwindSafe for ColorMatch
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