Skip to content

Commit 26916f1

Browse files
committed
Modify some incorrect and missing code comments.
Former-commit-id: d65abc3
1 parent f4c5440 commit 26916f1

File tree

2 files changed

+1
-104
lines changed

2 files changed

+1
-104
lines changed

python/sample_face_detection.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ def case_face_detection_image(resource_path, image_path):
4848
# Calculate center, size, and angle
4949
center = ((x1 + x2) / 2, (y1 + y2) / 2)
5050
size = (x2 - x1, y2 - y1)
51-
angle = face.roll # 这里使用 roll 角度
52-
53-
# Get rotation matrix
54-
rotation_matrix = cv2.getRotationMatrix2D(center, angle, 1.0)
51+
angle = face.roll
5552

5653
# Apply rotation to the bounding box corners
5754
rect = ((center[0], center[1]), (size[0], size[1]), angle)

python/sample_face_task.py

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)