Commit 9e9a45fa authored by 赵威's avatar 赵威

change url

parent 4a9d8f16
...@@ -3,11 +3,11 @@ import time ...@@ -3,11 +3,11 @@ import time
import dlib import dlib
from utils.images import face_to_vec, file_to_ndarray, url_to_ndarray from utils.images import face_to_vec, url_to_ndarray
def main(): def main():
img_url = "https://pic.igengmei.com/2020/07/04/1802/1fd23e101178-w" img_url = "https://pic.igengmei.com/2020/07/03/1437/1b9975bb0b81-w"
img = url_to_ndarray(img_url) img = url_to_ndarray(img_url)
print(img) print(img)
...@@ -23,6 +23,7 @@ def main(): ...@@ -23,6 +23,7 @@ def main():
faces = face_to_vec(img, face_rec, face_detector, shape_predictor) faces = face_to_vec(img, face_rec, face_detector, shape_predictor)
print("faces:")
print(faces) print(faces)
print("============") print("============")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment