diff --git a/pom.xml b/pom.xml index f1df18f4..33794ce3 100644 --- a/pom.xml +++ b/pom.xml @@ -1,247 +1,247 @@ - - - 4.0.0 - net.sourceforge.tess4j - tess4j - 5.6.1-SNAPSHOT - jar - - Tess4J - Tesseract for Java - http://tess4j.sourceforge.net - - # Tess4J - - ## Description: - - A Java JNA wrapper for Tesseract OCR API. - - Tess4J is released and distributed under the Apache License, v2.0. - - ## Features: - - The library provides optical character recognition (OCR) support for: - - TIFF, JPEG, GIF, PNG, and BMP image formats - Multi-page TIFF images - PDF document format - - - - org.sonatype.oss - oss-parent - 9 - - - - - Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - Tess4J - http://tess4j.sourceforge.net - - - - scm:svn:https://github.com/nguyenq/tess4j/trunk/ - scm:svn:https://github.com/nguyenq/tess4j/trunk/ - https://github.com/nguyenq/tess4j/trunk/ - - - - - Quan Nguyen - nguyenq@users.sf.net - - - O.J. Sousa Rodrigues - osoriojaques@gmail.com - +1 - - - - - - Dmitry Katsubo - dma_k@users.sf.net - - developer - contributor - - - - - - UTF-8 - Tess4J - http://tess4j.sourceforge.net/ - ${project.groupId}:${project.artifactId} - ${project.version} - Tess4J - - - - - nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.10.1 - - 1.8 - 1.8 - false - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M8 - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.4.1 - - false - - - https://docs.oracle.com/en/java/javase/12/docs/api/ - - - - - - org.apache.maven.plugins - maven-resources-plugin - 3.3.0 - - true - - - - org.apache.maven.plugins - maven-jar-plugin - 3.3.0 - - - **/logback.xml - - - true - true - true - true - - true - true - - - ${project.url} - - - - Build-Information - - ${java.version} - ${java.vendor} - ${os.name} - - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - nexus - https://oss.sonatype.org/ - - - - - - - - org.junit.jupiter - junit-jupiter-api - 5.9.2 - test - - - org.testng - testng - 7.7.1 - test - - - net.java.dev.jna - jna - 5.13.0 - - - com.github.jai-imageio - jai-imageio-core - 1.4.0 - - - org.apache.pdfbox - pdfbox - 2.0.27 - - - org.apache.pdfbox - pdfbox-tools - 2.0.27 - - - org.apache.pdfbox - jbig2-imageio - 3.0.4 - - - commons-io - commons-io - 2.11.0 - - - net.sourceforge.lept4j - lept4j - 1.18.0 - - - org.jboss - jboss-vfs - 3.2.17.Final - - - - ch.qos.logback - logback-classic - 1.3.5 - test - - - org.slf4j - slf4j-api - 2.0.6 - - - + + + 4.0.0 + net.sourceforge.tess4j + tess4j + 5.7.0-SNAPSHOT + jar + + Tess4J - Tesseract for Java + http://tess4j.sourceforge.net + + # Tess4J + + ## Description: + + A Java JNA wrapper for Tesseract OCR API. + + Tess4J is released and distributed under the Apache License, v2.0. + + ## Features: + + The library provides optical character recognition (OCR) support for: + + TIFF, JPEG, GIF, PNG, and BMP image formats + Multi-page TIFF images + PDF document format + + + + org.sonatype.oss + oss-parent + 9 + + + + + Apache License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + Tess4J + http://tess4j.sourceforge.net + + + + scm:svn:https://github.com/nguyenq/tess4j/trunk/ + scm:svn:https://github.com/nguyenq/tess4j/trunk/ + https://github.com/nguyenq/tess4j/trunk/ + + + + + Quan Nguyen + nguyenq@users.sf.net + + + O.J. Sousa Rodrigues + osoriojaques@gmail.com + +1 + + + + + + Dmitry Katsubo + dma_k@users.sf.net + + developer + contributor + + + + + + UTF-8 + Tess4J + http://tess4j.sourceforge.net/ + ${project.groupId}:${project.artifactId} + ${project.version} + Tess4J + + + + + nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.10.1 + + 1.8 + 1.8 + false + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M8 + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.1 + + false + + + https://docs.oracle.com/en/java/javase/12/docs/api/ + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.3.0 + + true + + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + + **/logback.xml + + + true + true + true + true + + true + true + + + ${project.url} + + + + Build-Information + + ${java.version} + ${java.vendor} + ${os.name} + + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + nexus + https://oss.sonatype.org/ + + + + + + + + org.junit.jupiter + junit-jupiter-api + 5.9.2 + test + + + org.testng + testng + 7.7.1 + test + + + net.java.dev.jna + jna + 5.13.0 + + + com.github.jai-imageio + jai-imageio-core + 1.4.0 + + + org.apache.pdfbox + pdfbox + 2.0.27 + + + org.apache.pdfbox + pdfbox-tools + 2.0.27 + + + org.apache.pdfbox + jbig2-imageio + 3.0.4 + + + commons-io + commons-io + 2.11.0 + + + net.sourceforge.lept4j + lept4j + 1.18.0 + + + org.jboss + jboss-vfs + 3.2.17.Final + + + + ch.qos.logback + logback-classic + 1.4.6 + test + + + org.slf4j + slf4j-api + 2.0.7 + + + diff --git a/src/main/java/net/sourceforge/tess4j/util/LoadLibs.java b/src/main/java/net/sourceforge/tess4j/util/LoadLibs.java index d643cc39..52ecb30e 100644 --- a/src/main/java/net/sourceforge/tess4j/util/LoadLibs.java +++ b/src/main/java/net/sourceforge/tess4j/util/LoadLibs.java @@ -54,7 +54,7 @@ public class LoadLibs { /** * Native library name. */ - public static final String LIB_NAME = "libtesseract530"; + public static final String LIB_NAME = "libtesseract531"; public static final String LIB_NAME_NON_WIN = "tesseract"; private static final org.slf4j.Logger logger = LoggerFactory.getLogger(new LoggHelper().toString()); diff --git a/src/main/resources/versionchanges.txt b/src/main/resources/versionchanges.txt index a021d6a3..4d3335ef 100644 --- a/src/main/resources/versionchanges.txt +++ b/src/main/resources/versionchanges.txt @@ -230,3 +230,6 @@ Version 5.5.0 (26 December 2022) Version 5.6.0 (29 January 2023) - Update Leptonica 1.83.1 (lept4j-1.18.0) + +Version 5.7.0 (3 April 2023) +- Upgrade to Tesseract 5.3.1 diff --git a/src/main/resources/win32-x86-64/libtesseract530.dll b/src/main/resources/win32-x86-64/libtesseract531.dll similarity index 50% rename from src/main/resources/win32-x86-64/libtesseract530.dll rename to src/main/resources/win32-x86-64/libtesseract531.dll index 6258747c..07240546 100644 Binary files a/src/main/resources/win32-x86-64/libtesseract530.dll and b/src/main/resources/win32-x86-64/libtesseract531.dll differ diff --git a/src/main/resources/win32-x86/libtesseract530.dll b/src/main/resources/win32-x86/libtesseract531.dll similarity index 50% rename from src/main/resources/win32-x86/libtesseract530.dll rename to src/main/resources/win32-x86/libtesseract531.dll index c425ef97..1bba3245 100644 Binary files a/src/main/resources/win32-x86/libtesseract530.dll and b/src/main/resources/win32-x86/libtesseract531.dll differ diff --git a/src/test/java/net/sourceforge/tess4j/TessAPI1Test.java b/src/test/java/net/sourceforge/tess4j/TessAPI1Test.java index d10b7a37..3783d269 100644 --- a/src/test/java/net/sourceforge/tess4j/TessAPI1Test.java +++ b/src/test/java/net/sourceforge/tess4j/TessAPI1Test.java @@ -198,7 +198,7 @@ public void testTessBaseAPIGetComponentImages() throws Exception { @Test public void testTessVersion() { logger.info("TessVersion"); - String expResult = "5.3.0"; + String expResult = "5.3.1"; String result = TessAPI1.TessVersion(); logger.info(result); assertTrue(result.startsWith(expResult)); diff --git a/src/test/java/net/sourceforge/tess4j/TessAPITest.java b/src/test/java/net/sourceforge/tess4j/TessAPITest.java index 207fb9dd..bf2242af 100644 --- a/src/test/java/net/sourceforge/tess4j/TessAPITest.java +++ b/src/test/java/net/sourceforge/tess4j/TessAPITest.java @@ -201,7 +201,7 @@ public void testTessBaseAPIGetComponentImages() throws Exception { @Test public void testTessVersion() { logger.info("TessVersion"); - String expResult = "5.3.0"; + String expResult = "5.3.1"; String result = api.TessVersion(); logger.info(result); assertTrue(result.startsWith(expResult));