pupil struct
This commit is contained in:
parent
a99c4bf1a4
commit
e19e236c2f
|
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "gaze_tracking_rs"
|
||||
version = "0.1.0"
|
||||
Binary file not shown.
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
pub struct Point {
|
||||
x: f64,
|
||||
y: f64,
|
||||
}
|
||||
|
||||
pub struct Pupil {
|
||||
pub iris_frame: String,
|
||||
pub threshold: String,
|
||||
pub coordinates: Point,
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
pub mod features;
|
||||
|
||||
struct Calibration {
|
||||
nb_frames: u32,
|
||||
threshold_left: Vec<f64>,
|
||||
thresholds_right: Vec<f64>,
|
||||
}
|
||||
impl Default for Calibration {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
nb_frames: 20,
|
||||
threshold_left: Vec::new(),
|
||||
thresholds_right: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
impl Calibration {
|
||||
fn is_complete(&self) {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue