pub enum Recognition {
DirectHit(DirectHit),
TemplateMatch(TemplateMatch),
FeatureMatch(FeatureMatch),
ColorMatch(ColorMatch),
OCR(OCR),
NeuralNetworkClassify(NeuralNetworkClassify),
NeuralNetworkDetect(NeuralNetworkDetect),
And(And),
Or(Or),
Custom(CustomRecognition),
}Expand description
Recognition algorithm types.
Determines how the framework identifies targets on screen:
DirectHit- No recognition, always matchesTemplateMatch- Image template matchingFeatureMatch- Feature-based matching (rotation/scale invariant)ColorMatch- Color-based matchingOCR- Optical character recognitionNeuralNetworkClassify- Deep learning classificationNeuralNetworkDetect- Deep learning object detectionAnd- Logical AND of multiple recognitionsOr- Logical OR of multiple recognitionsCustom- User-defined recognition
Variants§
DirectHit(DirectHit)
TemplateMatch(TemplateMatch)
FeatureMatch(FeatureMatch)
ColorMatch(ColorMatch)
OCR(OCR)
NeuralNetworkClassify(NeuralNetworkClassify)
NeuralNetworkDetect(NeuralNetworkDetect)
And(And)
Or(Or)
Custom(CustomRecognition)
Trait Implementations§
Source§impl Clone for Recognition
impl Clone for Recognition
Source§fn clone(&self) -> Recognition
fn clone(&self) -> Recognition
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 Recognition
impl Debug for Recognition
Source§impl<'de> Deserialize<'de> for Recognition
impl<'de> Deserialize<'de> for Recognition
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 Recognition
impl RefUnwindSafe for Recognition
impl Send for Recognition
impl Sync for Recognition
impl Unpin for Recognition
impl UnwindSafe for Recognition
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