File tree 35 files changed +119
-141
lines changed
35 files changed +119
-141
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ SUBDIRS = src/arch src/ccutil src/viewer src/cutil src/opencl src/ccstruct
22
22
SUBDIRS += src/dict src/classify src/wordrec src/textord src/lstm
23
23
SUBDIRS += src/ccmain src/api . tessdata doc unittest
24
24
25
- EXTRA_DIST = README.md\
26
- aclocal.m4 config configure.ac autogen.sh \
27
- tesseract.pc.in $(TRAINING_SUBDIR ) java doc langtests unlvtests
25
+ EXTRA_DIST = README.md
26
+ EXTRA_DIST += aclocal.m4 config configure.ac autogen.sh
27
+ EXTRA_DIST += tesseract.pc.in $(TRAINING_SUBDIR ) java doc langtests unlvtests
28
28
29
29
DIST_SUBDIRS = $(SUBDIRS ) $(TRAINING_SUBDIR )
30
30
Original file line number Diff line number Diff line change @@ -617,7 +617,7 @@ void TessBaseAPI::SetImage(Pix* pix) {
617
617
pixSetSpp (p1, 3 );
618
618
pix = pixCopy (nullptr , p1);
619
619
pixDestroy (&p1);
620
- }
620
+ }
621
621
thresholder_->SetImage (pix);
622
622
SetInputImage (thresholder_->GetPixRect ());
623
623
}
Original file line number Diff line number Diff line change 1
1
/* *****************************************************************************
2
- ** Filename: blobclass.h
3
- ** Purpose: Interface to high level classification and training.
4
- ** Author: Dan Johnson
5
- ** History: 5/29/89, DSJ, Created.
2
+ ** Filename: blobclass.h
3
+ ** Purpose: Interface to high level classification and training.
4
+ ** Author: Dan Johnson
6
5
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
6
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
9
8
** you may not use this file except in compliance with the License.
10
9
** You may obtain a copy of the License at
15
14
** See the License for the specific language governing permissions and
16
15
** limitations under the License.
17
16
******************************************************************************/
18
- #ifndef BLOBCLASS_H
19
- #define BLOBCLASS_H
17
+
18
+ #ifndef BLOBCLASS_H
19
+ #define BLOBCLASS_H
20
20
21
21
/* *----------------------------------------------------------------------------
22
22
Include Files and Type Defines
Original file line number Diff line number Diff line change 1
1
/******************************************************************************
2
- ** Filename: cutoffs.h
3
- ** Purpose: Routines to manipulate an array of class cutoffs.
4
- ** Author: Dan Johnson
5
- ** History: Wed Feb 20 09:34:20 1991, DSJ, Created.
2
+ ** Filename: cutoffs.h
3
+ ** Purpose: Routines to manipulate an array of class cutoffs.
4
+ ** Author: Dan Johnson
6
5
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
6
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
9
8
** you may not use this file except in compliance with the License.
10
9
** You may obtain a copy of the License at
15
14
** See the License for the specific language governing permissions and
16
15
** limitations under the License.
17
16
******************************************************************************/
17
+
18
18
#ifndef CUTOFFS_H
19
19
#define CUTOFFS_H
20
20
Original file line number Diff line number Diff line change 1
1
/******************************************************************************
2
- ** Filename: featdefs.h
3
- ** Purpose: Definitions of currently defined feature types.
4
- ** Author: Dan Johnson
5
- ** History: Mon May 21 08:28:01 1990, DSJ, Created.
2
+ ** Filename: featdefs.h
3
+ ** Purpose: Definitions of currently defined feature types.
4
+ ** Author: Dan Johnson
5
+ ** History: Mon May 21 08:28:01 1990, DSJ, Created.
6
6
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
7
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
9
9
** you may not use this file except in compliance with the License.
10
10
** You may obtain a copy of the License at
15
15
** See the License for the specific language governing permissions and
16
16
** limitations under the License.
17
17
******************************************************************************/
18
- #ifndef FEATDEFS_H
19
- #define FEATDEFS_H
18
+
19
+ #ifndef FEATDEFS_H
20
+ #define FEATDEFS_H
20
21
21
22
/**----------------------------------------------------------------------------
22
23
Include Files and Type Defines
Original file line number Diff line number Diff line change 1
1
/******************************************************************************
2
- ** Filename: float2int.h
3
- ** Purpose: Routines for converting float features to int features
4
- ** Author: Dan Johnson
5
- ** History: Wed Mar 13 08:06:41 1991, DSJ, Created.
2
+ ** Filename: float2int.h
3
+ ** Purpose: Routines for converting float features to int features
4
+ ** Author: Dan Johnson
6
5
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
6
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
9
8
** you may not use this file except in compliance with the License.
10
9
** You may obtain a copy of the License at
15
14
** See the License for the specific language governing permissions and
16
15
** limitations under the License.
17
16
******************************************************************************/
17
+
18
18
#ifndef FLOAT2INT_H
19
19
#define FLOAT2INT_H
20
20
Original file line number Diff line number Diff line change 1
1
/******************************************************************************
2
- ** Filename: mf.h
3
- ** Purpose: Micro-feature interface to flexible feature extractor.
4
- ** Author: Dan Johnson
5
- ** History: Thu May 24 09:39:56 1990, DSJ, Created.
2
+ ** Filename: mf.h
3
+ ** Purpose: Micro-feature interface to flexible feature extractor.
4
+ ** Author: Dan Johnson
6
5
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
6
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
9
8
** you may not use this file except in compliance with the License.
10
9
** You may obtain a copy of the License at
15
14
** See the License for the specific language governing permissions and
16
15
** limitations under the License.
17
16
******************************************************************************/
18
- #ifndef MF_H
19
- #define MF_H
17
+
18
+ #ifndef MF_H
19
+ #define MF_H
20
20
21
21
/**----------------------------------------------------------------------------
22
22
Include Files and Type Defines
Original file line number Diff line number Diff line change 1
1
/******************************************************************************
2
- ** Filename: normmatch.h
3
- ** Purpose: Simple matcher based on character normalization features.
4
- ** Author: Dan Johnson
5
- ** History: Thu Dec 20 08:55:05 1990, DSJ, Created.
2
+ ** Filename: normmatch.h
3
+ ** Purpose: Simple matcher based on character normalization features.
4
+ ** Author: Dan Johnson
6
5
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
6
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
9
8
** you may not use this file except in compliance with the License.
10
9
** You may obtain a copy of the License at
15
14
** See the License for the specific language governing permissions and
16
15
** limitations under the License.
17
16
******************************************************************************/
17
+
18
18
#ifndef NORMMATCH_H
19
19
#define NORMMATCH_H
20
20
Original file line number Diff line number Diff line change 1
1
/******************************************************************************
2
- ** Filename: outfeat.h
3
- ** Purpose: Definition of outline features.
4
- ** Author: Dan Johnson
5
- ** History: 11/13/90, DSJ, Created.
2
+ ** Filename: outfeat.h
3
+ ** Purpose: Definition of outline features.
4
+ ** Author: Dan Johnson
6
5
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
6
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
9
8
** you may not use this file except in compliance with the License.
10
9
** You may obtain a copy of the License at
15
14
** See the License for the specific language governing permissions and
16
15
** limitations under the License.
17
16
******************************************************************************/
18
- #ifndef OUTFEAT_H
19
- #define OUTFEAT_H
17
+
18
+ #ifndef OUTFEAT_H
19
+ #define OUTFEAT_H
20
20
21
21
/**----------------------------------------------------------------------------
22
22
Include Files and Type Defines
Original file line number Diff line number Diff line change 1
1
/* *****************************************************************************
2
- ** Filename: bitvec.c
3
- ** Purpose: Routines for manipulating bit vectors
4
- ** Author: Dan Johnson
5
- ** History: Thu Mar 15 10:37:27 1990, DSJ, Created.
2
+ ** Filename: bitvec.c
3
+ ** Purpose: Routines for manipulating bit vectors
4
+ ** Author: Dan Johnson
6
5
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
6
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
9
8
** you may not use this file except in compliance with the License.
10
9
** You may obtain a copy of the License at
@@ -74,7 +73,7 @@ void FreeBitVector(BIT_VECTOR BitVector) {
74
73
* hold the specified number of bits.
75
74
*
76
75
* Globals:
77
- * - BitVectorCount number of bit vectors allocated
76
+ * - BitVectorCount number of bit vectors allocated
78
77
*
79
78
* @param NumBits number of bits in new bit vector
80
79
*
Original file line number Diff line number Diff line change 1
1
/******************************************************************************
2
- ** Filename: emalloc.h
3
- ** Purpose: Definition of memory allocation routines.
4
- ** Author: Dan Johnson
5
- ** History: 4/3/89, DSJ, Created.
2
+ ** Filename: emalloc.h
3
+ ** Purpose: Definition of memory allocation routines.
4
+ ** Author: Dan Johnson
6
5
**
7
- ** (c) Copyright Hewlett-Packard Company, 1988.
6
+ ** (c) Copyright Hewlett-Packard Company, 1988.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
9
8
** you may not use this file except in compliance with the License.
10
9
** You may obtain a copy of the License at
15
14
** See the License for the specific language governing permissions and
16
15
** limitations under the License.
17
16
******************************************************************************/
18
- #ifndef EMALLOC_H
19
- #define EMALLOC_H
17
+
18
+ #ifndef EMALLOC_H
19
+ #define EMALLOC_H
20
20
21
21
void * Emalloc (int Size );
22
22
Original file line number Diff line number Diff line change 1
1
/* -*-C-*-
2
2
********************************************************************************
3
- * File: hyphen.cpp (Formerly hyphen.c)
3
+ * File: hyphen.cpp (Formerly hyphen.c)
4
4
* Description: Functions for maintaining information about hyphenated words.
5
5
* Author: Mark Seaman, OCR Technology
6
- * Created: Fri Oct 16 14:37:00 1987
7
- * Modified: Thu Mar 14 11:09:43 1991 (Mark Seaman) marks@hpgrlt
8
- * Language: C
9
- * Package: N/A
10
6
* Status: Reusable Software Component
11
7
*
12
8
* (c) Copyright 1987, Hewlett-Packard Company.
Original file line number Diff line number Diff line change @@ -2562,7 +2562,7 @@ ds_device OpenclDevice::getDeviceSelection() {
2562
2562
int bestDeviceIdx = -1 ;
2563
2563
for (unsigned d = 0 ; d < profile->numDevices ; d++) {
2564
2564
ds_device device = profile->devices [d];
2565
- if (device.score == nullptr ) continue ;
2565
+ if (device.score == nullptr ) continue ;
2566
2566
TessDeviceScore score = *device.score ;
2567
2567
2568
2568
float time = score.time ;
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: drawtord.cpp (Formerly drawto.c)
3
3
* Description: Draw things to do with textord.
4
- * Author: Ray Smith
5
- * Created: Thu Jul 30 15:40:57 BST 1992
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1992, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -181,13 +180,13 @@ int32_t thresholds[] //for drop out
181
180
if (occupation[line_index - min_y] < thresholds[line_index - min_y]) {
182
181
if (colour != ScrollView::BLUE) {
183
182
colour = ScrollView::BLUE;
184
- to_win->Pen (colour);
183
+ to_win->Pen (colour);
185
184
}
186
185
}
187
186
else {
188
187
if (colour != ScrollView::WHITE) {
189
188
colour = ScrollView::WHITE;
190
- to_win->Pen (colour);
189
+ to_win->Pen (colour);
191
190
}
192
191
}
193
192
to_win->DrawTo (fleft + occupation[line_index - min_y] / 10.0 , (float ) line_index);
Original file line number Diff line number Diff line change 1
1
/**********************************************************************
2
2
* File: drawtord.h (Formerly drawto.h)
3
3
* Description: Draw things to do with textord.
4
- * Author: Ray Smith
5
- * Created: Thu Jul 30 15:40:57 BST 1992
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1992, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: edgblob.h (Formerly edgeloop.h)
3
3
* Description: Functions to clean up an outline before approximation.
4
- * Author: Ray Smith
5
- * Created: Tue Mar 26 16:56:25 GMT 1991
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: fpchop.h (Formerly fp_chop.h)
3
3
* Description: Code to chop fixed pitch text into character cells.
4
- * Author: Ray Smith
5
- * Created: Thu Sep 16 11:14:15 BST 1993
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/**********************************************************************
2
2
* File: makerow.h (Formerly makerows.h)
3
3
* Description: Code to arrange blobs into rows of text.
4
- * Author: Ray Smith
5
- * Created: Mon Sep 21 14:34:48 BST 1992
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1992, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/**********************************************************************
2
2
* File: oldbasel.h (Formerly oldbl.h)
3
3
* Description: A re-implementation of the old baseline algorithm.
4
- * Author: Ray Smith
5
- * Created: Wed Oct 6 09:41:48 BST 1993
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: scanedg.cpp (Formerly scanedge.c)
3
3
* Description: Raster scanning crack based edge extractor.
4
- * Author: Ray Smith
5
- * Created: Fri Mar 22 16:11:50 GMT 1991
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: scanedg.h (Formerly scanedge.h)
3
3
* Description: Raster scanning crack based edge extractor.
4
- * Author: Ray Smith
5
- * Created: Fri Mar 22 16:11:50 GMT 1991
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: sortflts.cpp (Formerly sfloats.c)
3
3
* Description: Code to maintain a sorted list of floats.
4
- * Author: Ray Smith
5
- * Created: Mon Oct 4 16:15:40 BST 1993
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: sortflts.h (Formerly sfloats.h)
3
3
* Description: Code to maintain a sorted list of floats.
4
- * Author: Ray Smith
5
- * Created: Mon Oct 4 16:15:40 BST 1993
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: topitch.h (Formerly to_pitch.h)
3
3
* Description: Code to determine fixed pitchness and the pitch if fixed.
4
- * Author: Ray Smith
5
- * Created: Tue Aug 24 16:57:29 BST 1993
4
+ * Author: Ray Smith
6
5
*
7
6
* (C) Copyright 1993, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
You can’t perform that action at this time.
0 commit comments