From 3f31aaa6b667e7b5f31b2f2b4e13a0879348602c Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Mon, 26 Aug 2024 16:46:13 -0400
Subject: added recognizeFaces for face images

---
 src/client/views/search/FaceRecognitionHandler.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/client/views/search/FaceRecognitionHandler.tsx')

diff --git a/src/client/views/search/FaceRecognitionHandler.tsx b/src/client/views/search/FaceRecognitionHandler.tsx
index f613f78ce..7c8043219 100644
--- a/src/client/views/search/FaceRecognitionHandler.tsx
+++ b/src/client/views/search/FaceRecognitionHandler.tsx
@@ -230,6 +230,7 @@ export class FaceRecognitionHandler {
      * @param imgDoc The document being analyzed.
      */
     private classifyFacesInImage = async (imgDoc: Doc) => {
+        if (!Doc.UserDoc().recognizeFaceImages) return;
         const activeDashboard = Doc.ActiveDashboard;
         if (!this._apiModelReady || !activeDashboard) {
             this._pendingAPIModelReadyDocs.push(imgDoc);
-- 
cgit v1.2.3-70-g09d2

