set processing faces on one thread with DirectoryScanner

This commit is contained in:
Mateusz Kowalczyk 2020-01-23 19:32:46 +01:00
parent 2c7b2cb4c4
commit d6c6621b28
1 changed files with 5 additions and 3 deletions

View File

@ -55,9 +55,11 @@ public class DirectoryScanner implements Runnable {
} }
} }
new Thread( // new Thread(
new FaceDetector(photo) // new FaceDetector(photo)
).start(); // ).start();
new FaceDetector(photo).run();
ImageView imageView = new ImageView(wr); ImageView imageView = new ImageView(wr);
imageViews.add(imageView); imageViews.add(imageView);