Skip to content

Commit b835c9f

Browse files
committed
to set front only mode.
1 parent 72097c0 commit b835c9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

env/common.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export CELERY_RESULT_BACKEND=redis://localhost/0
1717
export ONE_KNOWN_PERSON_BYPASS_QUEUE_MODE=0
1818
export DEEP_ANALYSIS_MODE=1
1919
export SAMPLING_TO_SAVE_ENERGY_MODE=0
20-
export RESTRICT_RECOGNITON_MODE=0
20+
export RESTRICT_RECOGNITON_MODE=1
2121
export MINIMAL_FACE_RESOLUTION=100
2222
export BIGGEST_FACE_ONLY_MODE=0
2323
export UPLOAD_IMAGE_SERVICE_ENABLED=0

src/face_detection/detector.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def faceStyle(landmark, bb, face_width):
6060
middle_point = (bb[2] + bb[0])/2
6161
y_middle_point = (bb[3] + bb[1]) / 2
6262
eye_distance = abs(eye_1[0]-eye_2[0])
63-
if eye_distance < 10:
64-
print('(Eye distance less than 10 pixels) Add style')
63+
if eye_distance < 2:
64+
print('(Eye distance less than 2 pixels) Add style')
6565
style.append('side_face')
6666
elif eye_1[0] > middle_point:
6767
print('(Left Eye on the Right) Add style')

0 commit comments

Comments
 (0)