Spaces:
Running
Running
pragnakalp
commited on
Commit
•
6232889
1
Parent(s):
18290e2
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ from send_email_user import send_user_email
|
|
17 |
# if not os.path.isdir('images'):
|
18 |
# os.mkdir('images')
|
19 |
# print("create folder--->")
|
|
|
20 |
def get_device_ip_address():
|
21 |
|
22 |
if os.name == "nt":
|
@@ -126,7 +127,9 @@ def save_details(Method,text_output,img):
|
|
126 |
if text_output:
|
127 |
splitted_path = os.path.splitext(picture_path)
|
128 |
modified_picture_path = splitted_path[0] + curr_datetime + splitted_path[1]
|
129 |
-
cv2.imwrite("/home/user/app/",modified_picture_path, img)
|
|
|
|
|
130 |
input_img = modified_picture_path
|
131 |
try:
|
132 |
df = pd.read_csv("AllDetails.csv")
|
|
|
17 |
# if not os.path.isdir('images'):
|
18 |
# os.mkdir('images')
|
19 |
# print("create folder--->")
|
20 |
+
print(os.getcwd())
|
21 |
def get_device_ip_address():
|
22 |
|
23 |
if os.name == "nt":
|
|
|
127 |
if text_output:
|
128 |
splitted_path = os.path.splitext(picture_path)
|
129 |
modified_picture_path = splitted_path[0] + curr_datetime + splitted_path[1]
|
130 |
+
# cv2.imwrite("/home/user/app/",modified_picture_path, img)
|
131 |
+
# img = Image.open(picture_path)
|
132 |
+
img.save("/home/user/app/",modified_picture_path,)
|
133 |
input_img = modified_picture_path
|
134 |
try:
|
135 |
df = pd.read_csv("AllDetails.csv")
|