Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import cv2
|
| 2 |
+
import numpy as np
|
| 3 |
+
import face_recognition
|
| 4 |
+
import os
|
| 5 |
+
from datetime import datetime
|
| 6 |
+
|
| 7 |
+
# from PIL import ImageGrab
|
| 8 |
+
|
| 9 |
+
path = 'Manasa B Rao.jpeg'
|
| 10 |
+
images = []
|
| 11 |
+
classNames = []
|
| 12 |
+
myList = os.listdir(path)
|
| 13 |
+
print(myList)
|
| 14 |
+
for cl in myList:
|
| 15 |
+
curImg = cv2.imread(f'{path}/{cl}')
|
| 16 |
+
images.append(curImg)
|
| 17 |
+
classNames.append(os.path.splitext(cl)[0])
|
| 18 |
+
print(classNames)
|