Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
a7660331a
tesseract
提交
3f773549
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,发现更多精彩内容 >>
提交
3f773549
编写于
7月 19, 2017
作者:
R
Ray Smith
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removed unnecessary using statements and cleaned up google/non-google distinction
上级
cec10372
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
13 addition
and
37 deletion
+13
-37
training/boxchar.h
training/boxchar.h
+1
-5
training/classifier_tester.cpp
training/classifier_tester.cpp
+2
-2
training/commandlineflags.cpp
training/commandlineflags.cpp
+1
-1
training/commandlineflags.h
training/commandlineflags.h
+1
-1
training/fileio.h
training/fileio.h
+1
-3
training/lstmeval.cpp
training/lstmeval.cpp
+1
-1
training/lstmtraining.cpp
training/lstmtraining.cpp
+1
-1
training/pango_font_info.cpp
training/pango_font_info.cpp
+2
-2
training/shapeclustering.cpp
training/shapeclustering.cpp
+1
-1
training/stringrenderer.cpp
training/stringrenderer.cpp
+0
-7
training/text2image.cpp
training/text2image.cpp
+0
-6
training/unicharset_training_utils.h
training/unicharset_training_utils.h
+1
-3
training/util.h
training/util.h
+1
-4
未找到文件。
training/boxchar.h
浏览文件 @
3f773549
...
...
@@ -27,11 +27,7 @@
#include <vector>
#include "allheaders.h" // from Leptonica
#ifdef USE_STD_NAMESPACE
using
std
::
string
;
using
std
::
vector
;
#endif
#include "platform.h"
struct
Box
;
...
...
training/classifier_tester.cpp
浏览文件 @
3f773549
...
...
@@ -17,9 +17,9 @@
// Author: Ray Smith
#include <stdio.h>
#if
ndef USE_STD_NAMESPACE
#if
def GOOGLE_TESSERACT
#include "base/commandlineflags.h"
#endif //
USE_STD_NAMESPACE
#endif //
GOOGLE_TESSERACT
#include "baseapi.h"
#include "commontraining.h"
#include "mastertrainer.h"
...
...
training/commandlineflags.cpp
浏览文件 @
3f773549
...
...
@@ -9,7 +9,7 @@
// limitations under the License.
#include "commandlineflags.h"
#if
def USE_STD_NAMESPACE
#if
ndef GOOGLE_TESSERACT
namespace
tesseract
{
bool
IntFlagExists
(
const
char
*
flag_name
,
inT32
*
value
)
{
...
...
training/commandlineflags.h
浏览文件 @
3f773549
...
...
@@ -19,7 +19,7 @@
#ifndef TESSERACT_TRAINING_COMMANDLINEFLAGS_H_
#define TESSERACT_TRAINING_COMMANDLINEFLAGS_H_
#if
def USE_STD_NAMESPACE
#if
ndef GOOGLE_TESSERACT
#include <stdlib.h>
#include "tprintf.h"
...
...
training/fileio.h
浏览文件 @
3f773549
...
...
@@ -21,9 +21,7 @@
#include <cstdio>
#include <string>
#ifdef USE_STD_NAMESPACE
using
std
::
string
;
#endif
#include "platform.h"
namespace
tesseract
{
...
...
training/lstmeval.cpp
浏览文件 @
3f773549
...
...
@@ -16,7 +16,7 @@
// limitations under the License.
///////////////////////////////////////////////////////////////////////
#if
ndef USE_STD_NAMESPACE
#if
def GOOGLE_TESSERACT
#include "base/commandlineflags.h"
#endif
#include "commontraining.h"
...
...
training/lstmtraining.cpp
浏览文件 @
3f773549
...
...
@@ -16,7 +16,7 @@
// limitations under the License.
///////////////////////////////////////////////////////////////////////
#if
ndef USE_STD_NAMESPACE
#if
def GOOGLE_TESSERACT
#include "base/commandlineflags.h"
#endif
#include "commontraining.h"
...
...
training/pango_font_info.cpp
浏览文件 @
3f773549
...
...
@@ -49,7 +49,7 @@
STRING_PARAM_FLAG
(
fontconfig_tmpdir
,
"/tmp"
,
"Overrides fontconfig default temporary dir"
);
#if
ndef USE_STD_NAMESPACE
#if
def GOOGLE_TESSERACT
#include "ocr/trainingdata/typesetting/legacy_fonts.h"
BOOL_PARAM_FLAG
(
use_only_legacy_fonts
,
false
,
"Overrides --fonts_dir and sets the known universe of fonts to"
...
...
@@ -544,7 +544,7 @@ const std::vector<string>& FontUtils::ListAvailableFonts() {
if
(
!
available_fonts_
.
empty
())
{
return
available_fonts_
;
}
#if
ndef USE_STD_NAMESPACE
#if
def GOOGLE_TESSERACT
if
(
FLAGS_use_only_legacy_fonts
)
{
// Restrict view to list of fonts in legacy_fonts.h
tprintf
(
"Using list of legacy fonts only
\n
"
);
...
...
training/shapeclustering.cpp
浏览文件 @
3f773549
...
...
@@ -20,7 +20,7 @@
#include "config_auto.h"
#endif
#if
ndef USE_STD_NAMESPACE
#if
def GOOGLE_TESSERACT
#include "base/commandlineflags.h"
#endif
#include "commontraining.h"
...
...
training/stringrenderer.cpp
浏览文件 @
3f773549
...
...
@@ -39,13 +39,6 @@
#include "unicode/uchar.h" // from libicu
#include "util.h"
#ifdef USE_STD_NAMESPACE
using
std
::
map
;
using
std
::
max
;
using
std
::
min
;
using
std
::
swap
;
#endif
namespace
tesseract
{
static
const
int
kDefaultOutputResolution
=
300
;
...
...
training/text2image.cpp
浏览文件 @
3f773549
...
...
@@ -50,12 +50,6 @@
#include "unicharset.h"
#include "util.h"
#ifdef USE_STD_NAMESPACE
using
std
::
make_pair
;
using
std
::
map
;
using
std
::
pair
;
#endif
// A number with which to initialize the random number generator.
const
int
kRandomSeed
=
0x18273645
;
...
...
training/unicharset_training_utils.h
浏览文件 @
3f773549
...
...
@@ -22,9 +22,7 @@
#include <string>
#ifdef USE_STD_NAMESPACE
using
std
::
string
;
#endif
#include "platform.h"
class
STATS
;
class
UNICHARSET
;
...
...
training/util.h
浏览文件 @
3f773549
...
...
@@ -25,10 +25,7 @@
#include <string>
#include <vector>
#ifdef USE_STD_NAMESPACE
using
std
::
string
;
using
std
::
vector
;
#endif
#include "platform.h"
// StringHash is the hashing functor needed by the stl hash map.
#ifndef COMPILER_MSVC
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录