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

View File

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