nyonyong commited on
Commit
7e61ba7
1 Parent(s): f6d020b

Directory fix

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. 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
- hcr = ps.getHcrResult(Dir.txt_file_path)
 
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 = "/home/user/app/TextRecognition/log_demo_result.txt"
 
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"