pub struct NeuralNetworkDetect {
pub model: String,
pub expected: Vec<i32>,
pub roi: Target,
pub roi_offset: Rect,
pub labels: Vec<String>,
pub threshold: Vec<f64>,
pub order_by: String,
pub index: i32,
}Expand description
Neural network detection - detects objects anywhere on screen.
Uses YOLO-style ONNX model to detect and locate objects.
Fields§
§model: StringModel file path relative to model/detect. Required.
expected: Vec<i32>Expected class indices to match. Default: match all.
roi: TargetRecognition region. Default: \[0,0,0,0\] (full screen).
roi_offset: RectOffset applied to the ROI.
labels: Vec<String>Class labels (auto-read from model metadata). Default: “Unknown”.
threshold: Vec<f64>Confidence threshold(s). Default: [0.3].
order_by: StringResult sorting method. Default: “Horizontal”.
index: i32Which result to select. Default: 0.
Trait Implementations§
Source§impl Clone for NeuralNetworkDetect
impl Clone for NeuralNetworkDetect
Source§fn clone(&self) -> NeuralNetworkDetect
fn clone(&self) -> NeuralNetworkDetect
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 NeuralNetworkDetect
impl Debug for NeuralNetworkDetect
Source§impl<'de> Deserialize<'de> for NeuralNetworkDetect
impl<'de> Deserialize<'de> for NeuralNetworkDetect
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 NeuralNetworkDetect
impl RefUnwindSafe for NeuralNetworkDetect
impl Send for NeuralNetworkDetect
impl Sync for NeuralNetworkDetect
impl Unpin for NeuralNetworkDetect
impl UnwindSafe for NeuralNetworkDetect
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