pupil struct

This commit is contained in:
Joshua Perry 2024-05-19 23:24:06 +01:00
parent a99c4bf1a4
commit e19e236c2f
4 changed files with 39 additions and 0 deletions

7
Cargo.lock generated Normal file
View File

@ -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.

11
src/features.rs Normal file
View File

@ -0,0 +1,11 @@
pub struct Point {
x: f64,
y: f64,
}
pub struct Pupil {
pub iris_frame: String,
pub threshold: String,
pub coordinates: Point,
}

21
src/lib.rs Normal file
View File

@ -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) {
}
}