From d6c6621b28a01f98df236392742e26a8418087c9 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Thu, 23 Jan 2020 19:32:46 +0100 Subject: [PATCH] set processing faces on one thread with DirectoryScanner --- .../dev/mateuszkowalczyk/ffm/app/DirectoryScanner.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/dev/mateuszkowalczyk/ffm/app/DirectoryScanner.java b/src/main/java/dev/mateuszkowalczyk/ffm/app/DirectoryScanner.java index d986042..632b5ea 100644 --- a/src/main/java/dev/mateuszkowalczyk/ffm/app/DirectoryScanner.java +++ b/src/main/java/dev/mateuszkowalczyk/ffm/app/DirectoryScanner.java @@ -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);