-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
56 lines (38 loc) · 960 Bytes
/
Copy pathconfig.py
File metadata and controls
56 lines (38 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import os
# =========================
# Project Paths
# =========================
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATABASE_PATH = os.path.join(BASE_DIR, "database", "exam.db")
DATASET_PATH = os.path.join(BASE_DIR, "dataset")
MODEL_PATH = os.path.join(
BASE_DIR,
"trained_model",
"face_trainer.yml"
)
FACE_MODEL = os.path.join(
BASE_DIR,
"assets",
"models",
"face_detection_yunet_2023mar.onnx"
)
REPORT_PATH = os.path.join(BASE_DIR, "reports")
LOG_PATH = os.path.join(BASE_DIR, "logs")
# =========================
# Camera
# =========================
CAMERA_ID = 0
# =========================
# Face Recognition
# =========================
FACE_SIZE = (200, 200)
CONFIDENCE_THRESHOLD = 70
# =========================
# Exam
# =========================
DEFAULT_EXAM_DURATION = 60 * 60
# =========================
# AI
# =========================
PHONE_CONFIDENCE = 0.50
PERSON_CONFIDENCE = 0.50