Spaces:
Runtime error
Runtime error
nyonyong
commited on
Commit
·
7e61ba7
1
Parent(s):
f6d020b
Directory fix
Browse files- app.py +2 -1
- directories.py +1 -1
app.py
CHANGED
|
@@ -14,7 +14,8 @@ def HCR(im):
|
|
| 14 |
ps.textDetection(im)
|
| 15 |
ps.textRearrange()
|
| 16 |
ps.textRecognition()
|
| 17 |
-
|
|
|
|
| 18 |
#subprocess.call('cd'+ Dir.yolo_dir, shell=True)
|
| 19 |
#clearDir()
|
| 20 |
|
|
|
|
| 14 |
ps.textDetection(im)
|
| 15 |
ps.textRearrange()
|
| 16 |
ps.textRecognition()
|
| 17 |
+
#subprocess.call('ls', shell=True)
|
| 18 |
+
hcr = ps.getHcrResult("/home/user/app"+Dir.txt_file_path)
|
| 19 |
#subprocess.call('cd'+ Dir.yolo_dir, shell=True)
|
| 20 |
#clearDir()
|
| 21 |
|
directories.py
CHANGED
|
@@ -8,4 +8,4 @@ folder_path = cropped_img_path + "/crops/word"
|
|
| 8 |
DBSCAN_dir = "/TextRearrange"
|
| 9 |
recog_dir = "/TextRecognition"
|
| 10 |
recog_model_dir = "/TextRecognition/best_accuracy_s/best_accuracy_s.pth"
|
| 11 |
-
txt_file_path = "/
|
|
|
|
| 8 |
DBSCAN_dir = "/TextRearrange"
|
| 9 |
recog_dir = "/TextRecognition"
|
| 10 |
recog_model_dir = "/TextRecognition/best_accuracy_s/best_accuracy_s.pth"
|
| 11 |
+
txt_file_path = "/log_demo_result.txt"
|