mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
bug fix after pr
This commit is contained in:
parent
ba1cb93646
commit
36ef4dc3f1
@ -195,7 +195,7 @@ Pull requests are welcome. You should run the unit tests locally by running [`te
|
||||
|
||||
## Support
|
||||
|
||||
There are many ways to support a project - starring⭐️ the GitHub repo is just one.
|
||||
There are many ways to support a project - starring⭐️ the GitHub repo is just one 🙏.
|
||||
|
||||
## Citation
|
||||
|
||||
|
@ -66,16 +66,15 @@ def loadBase64Img(uri):
|
||||
return img
|
||||
|
||||
def load_image(img):
|
||||
exact_image = False
|
||||
exact_image = False; base64_img = False; url_img = False
|
||||
|
||||
if type(img).__module__ == np.__name__:
|
||||
exact_image = True
|
||||
|
||||
base64_img = False
|
||||
if len(img) > 11 and img[0:11] == "data:image/":
|
||||
elif len(img) > 11 and img[0:11] == "data:image/":
|
||||
base64_img = True
|
||||
|
||||
url_img = False
|
||||
if len(img) > 11 and img.startswith("http"):
|
||||
elif len(img) > 11 and img.startswith("http"):
|
||||
url_img = True
|
||||
|
||||
#---------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user