Skip to content

Commit 27a487b

Browse files
committed
Narrow ROI further
1 parent 694feb6 commit 27a487b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/net/sourceforge/tess4j/Tesseract1Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void testDoOCR_File_Rectangles() throws Exception {
164164
public void testDoOCR_File_Rectangles1() throws Exception {
165165
logger.info("doOCR on a multipage image with defined ROI");
166166
File imageFile = new File(this.testResourcesDataPath, "multipage-pdf.pdf");
167-
Rectangle rect = new Rectangle(283, 310, 70, 100); // Coordinates of page numbers
167+
Rectangle rect = new Rectangle(283, 310, 68, 100); // Coordinates of page numbers
168168
String expResult = "1\n2\n3\n4\n5\n";
169169
instance.setPageSegMode(ITessAPI.TessPageSegMode.PSM_SINGLE_CHAR);
170170
String result = instance.doOCR(imageFile, Arrays.asList(rect));

src/test/java/net/sourceforge/tess4j/TesseractTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void testDoOCR_File_Rectangles() throws Exception {
165165
public void testDoOCR_File_Rectangles1() throws Exception {
166166
logger.info("doOCR on a multipage image with defined ROI");
167167
File imageFile = new File(this.testResourcesDataPath, "multipage-pdf.pdf");
168-
Rectangle rect = new Rectangle(283, 310, 70, 100); // Coordinates of page numbers
168+
Rectangle rect = new Rectangle(283, 310, 68, 100); // Coordinates of page numbers
169169
String expResult = "1\n2\n3\n4\n5\n";
170170
instance.setPageSegMode(ITessAPI.TessPageSegMode.PSM_SINGLE_CHAR);
171171
String result = instance.doOCR(imageFile, Arrays.asList(rect));

0 commit comments

Comments
 (0)