質問編集履歴
4
確認した事に追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,7 +17,9 @@
|
|
17
17
|
### 確認した事
|
18
18
|
・OS再起動後、実行
|
19
19
|
・開発環境ではエラー出ず
|
20
|
-
・C:\Users\<ユーザー名>\AppData\Local\Tempを確認すると、フォルダ_MEI280202は存在しない
|
20
|
+
~~・C:\Users\<ユーザー名>\AppData\Local\Tempを確認すると、フォルダ_MEI280202は存在しない~~
|
21
|
+
→フォルダ_MEI280202はプログラム実行時に生成されますが、プログラム終了と同時に削除されます。
|
22
|
+
存在しないのは、_MEI280202配下の\data及び\tesseractです。
|
21
23
|
|
22
24
|
・コマンドプロンプトで以下コマンドを実行してtesseractのパスを確認
|
23
25
|
```cmd
|
3
誤記修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -62,10 +62,9 @@
|
|
62
62
|
|
63
63
|
langs = tool.get_available_languages()
|
64
64
|
print("pyocr lang: {}".format(langs))
|
65
|
-
|
65
|
+
print("pyocr Ver:{}".format(tool.get_version()))
|
66
66
|
|
67
67
|
#環境変数確認
|
68
|
-
print("pyocr Ver:{}".format(tool.get_version()))
|
69
68
|
print("TESSDATA_PREFIX:{}".format(os.environ['TESSDATA_PREFIX']))
|
70
69
|
|
71
70
|
env =os.environ['Path']
|
2
tesseractのヴァージョン追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -31,6 +31,16 @@
|
|
31
31
|
WinPython Spyder※
|
32
32
|
※pyinstaller実行時はWindowsのCommand Promptにて実行)
|
33
33
|
|
34
|
+
tesseractのバージョン
|
35
|
+
```cmd
|
36
|
+
C:>tesseract -v
|
37
|
+
tesseract v4.0.0.20181030
|
38
|
+
leptonica-1.76.0
|
39
|
+
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.2.0
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
|
34
44
|
### 参考
|
35
45
|
Tesseract のインストール方法は以下を参考にしました。
|
36
46
|
> https://www.kunihikokaneko.com/dblab/licenseplate/tesseract.html
|
1
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -72,8 +72,8 @@
|
|
72
72
|
Running from container, but no tessdata (C:\Users\<ユーザー名>\AppData\Local\Temp\_MEI280202\data) found !
|
73
73
|
Running from container, but no tesseract (C:\Users\<ユーザー名>\AppData\Local\Temp\_MEI280202\tesseract) found !
|
74
74
|
pyocr lang: ['eng', 'jpn', 'osd', 'script/Japanese', 'script/Japanese_vert']
|
75
|
-
Running from container, but no tessdata (C:\Users\
|
75
|
+
Running from container, but no tessdata (C:\Users\<ユーザー名>\AppData\Local\Temp\_MEI280202\data) found !
|
76
|
-
Running from container, but no tesseract (C:\Users\
|
76
|
+
Running from container, but no tesseract (C:\Users\<ユーザー名>\AppData\Local\Temp\_MEI280202\tesseract) found !
|
77
77
|
pyocr Ver:(4, 0, 0)
|
78
78
|
TESSDATA_PREFIX:C:\Program Files (x86)\Tesseract-OCR\tessdata
|
79
79
|
|