Open zhangliqun1996 opened 6 years ago
D:\大三\TopSup-master\TopSup-master>python GetQuestionAndroid.py 采用方式 2 获取截图 Traceback (most recent call last): File "GetQuestionAndroid.py", line 36, in question, choices = ocr.ocr_img_tess(img, config) File "D:\大三\TopSup-master\TopSup-master\common\ocr.py", line 139, in ocr_img_tess region_text = pytesseract.image_to_string(region_im, lang='chi_sim', config=tessdata_dir_config) File "C:\Users\张\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 122, in image_to_string config=config) File "C:\Users\张\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 46, in run_tesseract proc = subprocess.Popen(command, stderr=subprocess.PIPE) File "C:\Users\张\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 709, in init restore_signals, start_new_session) File "C:\Users\张\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] 系统找不到指定的文件。
D:\大三\TopSup-master\TopSup-master>python GetQuestionAndroid.py 采用方式 2 获取截图 Traceback (most recent call last): File "GetQuestionAndroid.py", line 36, in
question, choices = ocr.ocr_img_tess(img, config)
File "D:\大三\TopSup-master\TopSup-master\common\ocr.py", line 139, in ocr_img_tess
region_text = pytesseract.image_to_string(region_im, lang='chi_sim', config=tessdata_dir_config)
File "C:\Users\张\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 122, in image_to_string
config=config)
File "C:\Users\张\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 46, in run_tesseract
proc = subprocess.Popen(command, stderr=subprocess.PIPE)
File "C:\Users\张\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 709, in init
restore_signals, start_new_session)
File "C:\Users\张\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。