Skip to content

Commit

Permalink
Exposes the tesseract processors via the module info
Browse files Browse the repository at this point in the history
Was not accessible for use directly.
  • Loading branch information
stuarthendren committed Jan 19, 2022
1 parent f27b4e4 commit d27d897
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions annot8-components-tesseract/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<artifactId>tess4j</artifactId>
<version>4.5.4</version>
</dependency>

<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.6.0</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static class Processor extends AbstractProcessor {
private final ITesseract instance;
private final List<String> extensions;

public Processor(List<String> extensions, ITesseract tesseract) {
private Processor(List<String> extensions, ITesseract tesseract) {
this.extensions = extensions;
this.instance = tesseract;
}
Expand Down
2 changes: 2 additions & 0 deletions annot8-components-tesseract/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
requires java.desktop;
requires jakarta.json.bind;
requires io.annot8.conventions;

exports io.annot8.components.tesseract.processors;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@

public class OCRTest {

// Disabled as it requires tesseract to be installed
@Test
@Disabled
@Disabled("Disabled as it requires tesseract to be installed")
public void test() throws Exception {
OCR desc = new OCR();
Processor ocr = desc.createComponent(null, new OCR.Settings());
Expand Down

0 comments on commit d27d897

Please sign in to comment.