完成视频人脸检测,输出视频文件

This commit is contained in:
zqc
2025-11-11 11:20:02 +08:00
parent ecfeb1fd6c
commit 3dfe075080
2 changed files with 341 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ def comprehensive_gpu_test():
cv2.rectangle(test_image, (100, 100), (200, 200), (255, 255, 255), -1)
cv2.rectangle(test_image, (300, 150), (400, 250), (255, 255, 255), -1)
cv2.rectangle(test_image, (500, 200), (600, 300), (255, 255, 255), -1)
cv2.imwrite("test_data/multi_face_test.jpg", test_image)
# cv2.imwrite("test_data/multi_face_test.jpg", test_image)
print("✅ 测试数据创建完成")