Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
a7660331a
tesseract
提交
4b6f0b95
T
tesseract
项目概览
a7660331a
/
tesseract
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tesseract
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4b6f0b95
编写于
7月 15, 2017
作者:
Z
zdenop
提交者:
GitHub
7月 15, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1039 from stweil/clean
Fix compiler warnings
上级
4907a23f
9929587f
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
17 addition
and
16 deletion
+17
-16
ccmain/equationdetect.cpp
ccmain/equationdetect.cpp
+1
-1
ccstruct/blobbox.h
ccstruct/blobbox.h
+3
-3
ccstruct/blobs.cpp
ccstruct/blobs.cpp
+1
-1
ccstruct/blobs.h
ccstruct/blobs.h
+1
-1
ccstruct/ratngs.cpp
ccstruct/ratngs.cpp
+2
-2
ccutil/ambigs.cpp
ccutil/ambigs.cpp
+1
-1
ccutil/ambigs.h
ccutil/ambigs.h
+1
-1
ccutil/unicharcompress.cpp
ccutil/unicharcompress.cpp
+2
-1
cutil/structures.cpp
cutil/structures.cpp
+1
-1
textord/equationdetectbase.cpp
textord/equationdetectbase.cpp
+1
-1
textord/equationdetectbase.h
textord/equationdetectbase.h
+1
-1
wordrec/lm_state.cpp
wordrec/lm_state.cpp
+1
-1
wordrec/lm_state.h
wordrec/lm_state.h
+1
-1
未找到文件。
ccmain/equationdetect.cpp
浏览文件 @
4b6f0b95
...
...
@@ -1516,4 +1516,4 @@ void EquationDetect::PrintSpecialBlobsDensity(const ColPartition* part) const {
tprintf
(
"
\n
"
);
}
}
;
// namespace tesseract
}
// namespace tesseract
ccstruct/blobbox.h
浏览文件 @
4b6f0b95
...
...
@@ -233,7 +233,7 @@ class BLOBNBOX:public ELIST_LINK
}
void
set_reduced_box
(
TBOX
new_box
)
{
red_box
=
new_box
;
reduced
=
TRUE
;
reduced
=
true
;
}
inT32
enclosed_area
()
const
{
return
area
;
...
...
@@ -503,8 +503,8 @@ class BLOBNBOX:public ELIST_LINK
TBOX
box
;
// bounding box
TBOX
red_box
;
// bounding box
int
area
:
30
;
// enclosed area
int
joined
:
1
;
// joined to prev
int
reduced
:
1
;
// reduced box set
unsigned
joined
:
1
;
// joined to prev
unsigned
reduced
:
1
;
// reduced box set
int
repeated_set_
;
// id of the set of repeated blobs
TabType
left_tab_type_
;
// Indicates tab-stop assessment
TabType
right_tab_type_
;
// Indicates tab-stop assessment
...
...
ccstruct/blobs.cpp
浏览文件 @
4b6f0b95
...
...
@@ -62,7 +62,7 @@ const TPOINT kDivisibleVerticalItalic(1, 5);
F u n c t i o n s
----------------------------------------------------------------------*/
CLISTIZE
(
EDGEPT
)
;
CLISTIZE
(
EDGEPT
)
// Returns true when the two line segments cross each other.
// (Moved from outlines.cpp).
...
...
ccstruct/blobs.h
浏览文件 @
4b6f0b95
...
...
@@ -175,7 +175,7 @@ struct EDGEPT {
};
// For use in chop and findseam to keep a list of which EDGEPTs were inserted.
CLISTIZEH
(
EDGEPT
)
;
CLISTIZEH
(
EDGEPT
)
struct
TESSLINE
{
TESSLINE
()
:
is_hole
(
false
),
loop
(
NULL
),
next
(
NULL
)
{}
...
...
ccstruct/ratngs.cpp
浏览文件 @
4b6f0b95
...
...
@@ -33,8 +33,8 @@
using
tesseract
::
ScriptPos
;
ELISTIZE
(
BLOB_CHOICE
)
;
ELISTIZE
(
WERD_CHOICE
)
;
ELISTIZE
(
BLOB_CHOICE
)
ELISTIZE
(
WERD_CHOICE
)
const
float
WERD_CHOICE
::
kBadRating
=
100000.0
;
// Min offset in baseline-normalized coords to make a character a subscript.
...
...
ccutil/ambigs.cpp
浏览文件 @
4b6f0b95
...
...
@@ -43,7 +43,7 @@ AmbigSpec::AmbigSpec() {
wrong_ngram_size
=
0
;
}
ELISTIZE
(
AmbigSpec
)
;
ELISTIZE
(
AmbigSpec
)
// Initializes the ambigs by adding a NULL pointer to each table.
void
UnicharAmbigs
::
InitUnicharAmbigs
(
const
UNICHARSET
&
unicharset
,
...
...
ccutil/ambigs.h
浏览文件 @
4b6f0b95
...
...
@@ -134,7 +134,7 @@ class AmbigSpec : public ELIST_LINK {
AmbigType
type
;
int
wrong_ngram_size
;
};
ELISTIZEH
(
AmbigSpec
)
;
ELISTIZEH
(
AmbigSpec
)
// AMBIG_TABLE[i] stores a set of ambiguities whose
// wrong ngram starts with unichar id i.
...
...
ccutil/unicharcompress.cpp
浏览文件 @
4b6f0b95
...
...
@@ -71,7 +71,8 @@ static bool DecodeRadicalStrokeTable(STRING* radical_stroke_table,
radical_stroke_table
->
split
(
'\n'
,
&
lines
);
for
(
int
i
=
0
;
i
<
lines
.
size
();
++
i
)
{
if
(
lines
[
i
].
length
()
==
0
||
lines
[
i
][
0
]
==
'#'
)
continue
;
int
unicode
,
radical
,
strokes
;
unsigned
unicode
;
int
radical
,
strokes
;
STRING
str_radical
;
if
(
sscanf
(
lines
[
i
].
string
(),
"%x
\t
%d.%d"
,
&
unicode
,
&
radical
,
&
strokes
)
==
3
)
{
...
...
cutil/structures.cpp
浏览文件 @
4b6f0b95
...
...
@@ -33,4 +33,4 @@
/*----------------------------------------------------------------------
F u n c t i o n s
----------------------------------------------------------------------*/
makestructure
(
new_cell
,
free_cell
,
list_rec
)
;
makestructure
(
new_cell
,
free_cell
,
list_rec
)
textord/equationdetectbase.cpp
浏览文件 @
4b6f0b95
...
...
@@ -62,4 +62,4 @@ void EquationDetectBase::RenderSpecialText(Pix* pix,
boxDestroy
(
&
box
);
}
}
;
// namespace tesseract
}
// namespace tesseract
textord/equationdetectbase.h
浏览文件 @
4b6f0b95
...
...
@@ -54,6 +54,6 @@ class EquationDetectBase {
static
void
RenderSpecialText
(
Pix
*
pix
,
BLOBNBOX
*
blob
);
};
}
;
// namespace tesseract
}
// namespace tesseract
#endif // TESSERACT_TEXTORD_EQUATIONDETECTBASE_H_
wordrec/lm_state.cpp
浏览文件 @
4b6f0b95
...
...
@@ -22,7 +22,7 @@
namespace
tesseract
{
ELISTIZE
(
ViterbiStateEntry
)
;
ELISTIZE
(
ViterbiStateEntry
)
void
ViterbiStateEntry
::
Print
(
const
char
*
msg
)
const
{
tprintf
(
"%s ViterbiStateEntry"
,
msg
);
...
...
wordrec/lm_state.h
浏览文件 @
4b6f0b95
...
...
@@ -187,7 +187,7 @@ struct ViterbiStateEntry : public ELIST_LINK {
STRING
*
debug_str
;
};
ELISTIZEH
(
ViterbiStateEntry
)
;
ELISTIZEH
(
ViterbiStateEntry
)
/// Struct to store information maintained by various language model components.
struct
LanguageModelState
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录