From 97e8dfe75152d2c9cbbe3529c7c76856f4b04cc2 Mon Sep 17 00:00:00 2001 From: Neucrack Date: Thu, 18 Jul 2024 12:09:17 +0800 Subject: [PATCH] fix face recognizer and bump version to 4.4.11 --- maix/version.py | 2 +- projects/app_face_recognizer/main.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/maix/version.py b/maix/version.py index a1afd6ee..8a90a155 100644 --- a/maix/version.py +++ b/maix/version.py @@ -3,6 +3,6 @@ version_major = 4 version_minor = 4 -version_patch = 10 +version_patch = 11 __version__ = "{}.{}.{}".format(version_major, version_minor, version_patch) diff --git a/projects/app_face_recognizer/main.py b/projects/app_face_recognizer/main.py index 1000c047..325fb9f0 100644 --- a/projects/app_face_recognizer/main.py +++ b/projects/app_face_recognizer/main.py @@ -5,6 +5,7 @@ learn_id = 0 def main(disp): + global pressed_flag, learn_id recognizer = nn.FaceRecognizer(detect_model="/root/models/retinaface.mud", feature_model = "/root/models/face_feature.mud") # if os.path.exists("/root/faces.bin"):