File tree Expand file tree Collapse file tree 4 files changed +47
-3
lines changed
itext.tests/itext.pdfocr.onnxtr.tests/itext/pdfocr/onnxtr
itext/itext.pdfocr.onnxtr/itext/pdfocr/onnxtr Expand file tree Collapse file tree 4 files changed +47
-3
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ public virtual void BasicDoImageOcrTest() {
63
63
String src = TEST_IMAGE_DIRECTORY + "example_04.png" ;
64
64
FileInfo imageFile = new FileInfo ( src ) ;
65
65
String textFromImage = OnnxTestUtils . GetTextFromImage ( imageFile , OCR_ENGINE ) ;
66
- NUnit . Framework . Assert . AreEqual ( "Does\n this\n OCR\n thing\n really\n work\n Hi\n How\n about\n a\n bigger\n font?\n "
67
- + "123456789\n 123\n What\n abowt\n tis \n font?\n " , textFromImage ) ;
66
+ NUnit . Framework . Assert . AreEqual ( "Does\n this\n OCR\n thing\n really\n work? \n Hi\n How\n about\n a\n bigger\n font?\n "
67
+ + "123456789\n 123\n What\n abowt\n tris \n font?\n " , textFromImage ) ;
68
68
}
69
69
70
70
[ NUnit . Framework . Test ]
Original file line number Diff line number Diff line change
1
+ /*
2
+ This file is part of the iText (R) project.
3
+ Copyright (c) 1998-2025 Apryse Group NV
4
+ Authors: Apryse Software.
5
+
6
+ This program is offered under a commercial and under the AGPL license.
7
+ For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
8
+
9
+ AGPL licensing:
10
+ This program is free software: you can redistribute it and/or modify
11
+ it under the terms of the GNU Affero General Public License as published by
12
+ the Free Software Foundation, either version 3 of the License, or
13
+ (at your option) any later version.
14
+
15
+ This program is distributed in the hope that it will be useful,
16
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
+ GNU Affero General Public License for more details.
19
+
20
+ You should have received a copy of the GNU Affero General Public License
21
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
22
+ */
1
23
namespace iText . Pdfocr . Onnxtr {
2
24
/// <summary>
3
25
/// Properties that are used by the
Original file line number Diff line number Diff line change
1
+ /*
2
+ This file is part of the iText (R) project.
3
+ Copyright (c) 1998-2025 Apryse Group NV
4
+ Authors: Apryse Software.
5
+
6
+ This program is offered under a commercial and under the AGPL license.
7
+ For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
8
+
9
+ AGPL licensing:
10
+ This program is free software: you can redistribute it and/or modify
11
+ it under the terms of the GNU Affero General Public License as published by
12
+ the Free Software Foundation, either version 3 of the License, or
13
+ (at your option) any later version.
14
+
15
+ This program is distributed in the hope that it will be useful,
16
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
+ GNU Affero General Public License for more details.
19
+
20
+ You should have received a copy of the GNU Affero General Public License
21
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
22
+ */
1
23
namespace iText . Pdfocr . Onnxtr {
2
24
/// <summary>Enumeration of the possible types of text positioning.</summary>
3
25
/// <remarks>
Original file line number Diff line number Diff line change 1
- 8e3fa39a5a95200441f8d59ec98ddc1168155e3a
1
+ 1868a88e2c515215363eece25e6c61e25ec61435
You can’t perform that action at this time.
0 commit comments