cleanup
This commit is contained in:
@@ -260,7 +260,7 @@ fn dummy_image_spawner_thread() -> Receiver<Arc<Vec<u8>>> {
|
||||
thread::spawn(move || {
|
||||
loop {
|
||||
img_tx.send(Arc::new(img_data.clone())).unwrap();
|
||||
sleep(Duration::from_millis(16));
|
||||
//sleep(Duration::from_millis(16));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -294,9 +294,6 @@ fn main() {
|
||||
let mut t: VecDeque<Duration> = VecDeque::with_capacity(25);
|
||||
let mut now: Instant = Instant::now();
|
||||
|
||||
//for z in z_rx {}
|
||||
|
||||
|
||||
for (z, lanes) in z_rx {
|
||||
|
||||
let u_extract = *usage_extract.lock().unwrap();
|
||||
@@ -307,7 +304,6 @@ fn main() {
|
||||
let u_detect = *usage_detect.lock().unwrap();
|
||||
|
||||
let u_vec = vec![u_extract, u_transform, u_cluster, u_split, u_isolate, u_detect];
|
||||
let u_total: f64 = u_vec.iter().map(|(t, _)| t.as_secs_f64()).sum();
|
||||
|
||||
p_extract.set_length(u_extract.1.as_micros() as u64);
|
||||
p_extract.set_position(u_extract.0.as_micros() as u64);
|
||||
@@ -361,7 +357,7 @@ fn main() {
|
||||
});
|
||||
|
||||
let image = ImageView::new(ImageInfo::new(PixelFormat::Rgb8, 800, 800), rgb_image.iter().as_slice());
|
||||
//window.set_image("camera", image).unwrap();
|
||||
window.set_image("camera", image).unwrap();
|
||||
|
||||
if t.len() == 25 {
|
||||
t.pop_front();
|
||||
|
||||
Reference in New Issue
Block a user