質問編集履歴

1

Markdown記法を用いてシンタックスハイライトを追加、リンクを追加

2016/05/20 08:08

投稿

startnote
startnote

スコア24

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  (1)
8
8
 
9
- http://blog.ch3cooh.jp/entry/20140718/1405643400
9
+ [http://blog.ch3cooh.jp/entry/20140718/1405643400](http://blog.ch3cooh.jp/entry/20140718/1405643400)
10
10
 
11
11
  を参考に、NuGetで.NET wrapper tesseact-ocrをインストールしました。
12
12
 
@@ -20,11 +20,11 @@
20
20
 
21
21
  (3)
22
22
 
23
- https://github.com/tesseract-ocr/tessdata
23
+ [https://github.com/tesseract-ocr/tessdata](https://github.com/tesseract-ocr/tessdata)
24
24
 
25
25
  から、end.traineddataをダウンロードしました。
26
26
 
27
- https://github.com/tesseract-ocr/langdata
27
+ [https://github.com/tesseract-ocr/langdata](https://github.com/tesseract-ocr/langdata)
28
28
 
29
29
  ほかにlangdataなどもあるので、englishフォルダの中身は下記のようになっています。
30
30
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  C:\Users\username\ocr\english のディレクトリ
34
34
 
35
-
35
+ ```
36
36
 
37
37
  2016/04/18 13:48 246 desired_characters
38
38
 
@@ -74,11 +74,13 @@
74
74
 
75
75
  2016/04/18 13:48 3,852,050 eng.wordlist
76
76
 
77
+ ```
77
78
 
78
79
 
79
- ---------------------------
80
80
 
81
- C# code
81
+ code
82
+
83
+ ```C#
82
84
 
83
85
  // traineddata等の学習データを格納したディレクトリパス
84
86
 
@@ -110,21 +112,29 @@
110
112
 
111
113
  }
112
114
 
113
- ---------------------------
115
+ ```
114
116
 
115
117
 
116
118
 
117
119
  実行すると、
118
120
 
121
+ ```
122
+
119
123
  using (var engine = new Tesseract.TesseractEngine(languagepath, language)) {
120
124
 
125
+ ```
126
+
121
127
  の行で、
128
+
129
+ ```
122
130
 
123
131
  型 'Tesseract.TesseractException' のハンドルされていない例外が Tesseract.dll で発生しました
124
132
 
125
133
 
126
134
 
127
135
  追加情報:Failed to initialise tesseract engine.. See https://github.com/charlesw/tesseract/wiki/Error-1 for details.
136
+
137
+ ```
128
138
 
129
139
  とエラーになります。
130
140