This commit is contained in:
2025-05-03 18:31:53 +08:00
parent 99dba333c3
commit c50447e84d
+1 -1
View File
@@ -38,7 +38,7 @@ classifier = joblib.load('models/classifier.pkl')
positive_sample = cv.imread('cache/positive_test.jpg') positive_sample = cv.imread('cache/positive_test.jpg')
positive_sample_rgb = cv.cvtColor(positive_sample, cv.COLOR_BGR2RGB) positive_sample_rgb = cv.cvtColor(positive_sample, cv.COLOR_BGR2RGB)
negative_sample = cv.imread('cache/negative_test.jpg') negative_sample = cv.imread('cache/love.jpg')
negative_sample_rgb = cv.cvtColor(negative_sample, cv.COLOR_BGR2RGB) negative_sample_rgb = cv.cvtColor(negative_sample, cv.COLOR_BGR2RGB)
# 加载dlib人脸检测模型 # 加载dlib人脸检测模型