listdir see if image exist
Browse files
app.py
CHANGED
|
@@ -6,6 +6,8 @@ if not os.path.exists("biden.jpg"):
|
|
| 6 |
urllib.request.urlretrieve("https://github.com/ageitgey/face_recognition/blob/master/examples/obama.jpg?raw=true")
|
| 7 |
urllib.request.urlretrieve("https://github.com/ageitgey/face_recognition/blob/master/examples/obama2.jpg?raw=true")
|
| 8 |
|
|
|
|
|
|
|
| 9 |
import face_recognition
|
| 10 |
|
| 11 |
# Often instead of just checking if two faces match or not (True or False), it's helpful to see how similar they are.
|
|
|
|
| 6 |
urllib.request.urlretrieve("https://github.com/ageitgey/face_recognition/blob/master/examples/obama.jpg?raw=true")
|
| 7 |
urllib.request.urlretrieve("https://github.com/ageitgey/face_recognition/blob/master/examples/obama2.jpg?raw=true")
|
| 8 |
|
| 9 |
+
print(os.listdir())
|
| 10 |
+
|
| 11 |
import face_recognition
|
| 12 |
|
| 13 |
# Often instead of just checking if two faces match or not (True or False), it's helpful to see how similar they are.
|