mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 12:35:22 +00:00
Amend typing
This commit is contained in:
parent
63079d3095
commit
9dc0040a12
@ -297,7 +297,7 @@ def find(
|
|||||||
return resp_obj
|
return resp_obj
|
||||||
|
|
||||||
|
|
||||||
def __list_images(path: str) -> list[str]:
|
def __list_images(path: str) -> List[str]:
|
||||||
"""
|
"""
|
||||||
List images in a given path
|
List images in a given path
|
||||||
Args:
|
Args:
|
||||||
@ -305,7 +305,7 @@ def __list_images(path: str) -> list[str]:
|
|||||||
Returns:
|
Returns:
|
||||||
images (list): list of exact image paths
|
images (list): list of exact image paths
|
||||||
"""
|
"""
|
||||||
images = list[str]()
|
images = []
|
||||||
pattern = re.compile(r".*\.(jpg|jpeg|png)$", re.IGNORECASE)
|
pattern = re.compile(r".*\.(jpg|jpeg|png)$", re.IGNORECASE)
|
||||||
for file_name in os.listdir(path):
|
for file_name in os.listdir(path):
|
||||||
if pattern.match(file_name):
|
if pattern.match(file_name):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user