<?xml version="1.0" encoding="UTF-8"?>
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>com.xindao.ocr</groupId>
|
<artifactId>ocr-tool</artifactId>
|
<version>1.0-SNAPSHOT</version>
|
|
<properties>
|
<java.version>1.8</java.version>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.target>8</maven.compiler.target>
|
|
<springboot.version>2.6.13</springboot.version>
|
<djl.version>0.32.0</djl.version>
|
<spring-boot.version>2.6.13</spring-boot.version>
|
<easyexcel.version>3.3.4</easyexcel.version>
|
|
<smartjavaai.version>1.0.24</smartjavaai.version>
|
|
<javacv.version>1.5.10</javacv.version>
|
|
<javacv.platform.macosx-arm64>macosx-arm64</javacv.platform.macosx-arm64>
|
<javacv.platform.linux-x86_64>linux-x86_64</javacv.platform.linux-x86_64>
|
<javacv.platform.linux-arm64>linux-arm64</javacv.platform.linux-arm64>
|
<javacv.platform.windows-x86_64>windows-x86_64</javacv.platform.windows-x86_64>
|
|
<djl.platform.windows-x86_64>win-x86_64</djl.platform.windows-x86_64>
|
<djl.platform.linux-x86_64>linux-x86_64</djl.platform.linux-x86_64>
|
<djl.platform.linux-aarch64>linux-aarch64</djl.platform.linux-aarch64>
|
<djl.platform.osx-aarch64>osx-aarch64</djl.platform.osx-aarch64>
|
</properties>
|
|
<url>https://github.com/geekwenjie/SmartJavaAI</url>
|
<licenses>
|
<license>
|
<name>MIT License</name>
|
<url>https://opensource.org/licenses/MIT</url>
|
</license>
|
</licenses>
|
|
<dependencies>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
<version>${springboot.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba</groupId>
|
<artifactId>easyexcel</artifactId>
|
<version>${easyexcel.version}</version>
|
<exclusions>
|
<exclusion>
|
<groupId>commons-io</groupId>
|
<artifactId>commons-io</artifactId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<dependency>
|
<groupId>org.testng</groupId>
|
<artifactId>testng</artifactId>
|
<version>7.4.0</version>
|
<scope>test</scope>
|
</dependency>
|
<dependency>
|
<groupId>commons-beanutils</groupId>
|
<artifactId>commons-beanutils</artifactId>
|
<version>1.9.4</version>
|
</dependency>
|
<dependency>
|
<groupId>org.apache.commons</groupId>
|
<artifactId>commons-lang3</artifactId>
|
<version>3.9</version>
|
</dependency>
|
<dependency>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
<version>1.18.4</version>
|
</dependency>
|
<dependency>
|
<groupId>org.slf4j</groupId>
|
<artifactId>slf4j-api</artifactId>
|
<version>1.7.30</version>
|
</dependency>
|
<dependency>
|
<groupId>commons-cli</groupId>
|
<artifactId>commons-cli</artifactId>
|
<version>1.9.0</version>
|
</dependency>
|
<dependency>
|
<groupId>commons-io</groupId>
|
<artifactId>commons-io</artifactId>
|
<version>2.17.0</version>
|
</dependency>
|
<!-- Apache Commons Pool2 -->
|
<dependency>
|
<groupId>org.apache.commons</groupId>
|
<artifactId>commons-pool2</artifactId>
|
<version>2.12.0</version>
|
</dependency>
|
<dependency>
|
<groupId>cn.hutool</groupId>
|
<artifactId>hutool-system</artifactId>
|
<version>5.8.16</version>
|
</dependency>
|
<dependency>
|
<groupId>cn.hutool</groupId>
|
<artifactId>hutool-setting</artifactId>
|
<version>5.8.16</version>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba</groupId>
|
<artifactId>fastjson</artifactId>
|
<version>1.2.83</version>
|
</dependency>
|
<dependency>
|
<groupId>org.apache.pdfbox</groupId>
|
<artifactId>pdfbox</artifactId>
|
<version>2.0.28</version>
|
</dependency>
|
|
|
|
<!--OCR相关依赖-->
|
<dependency>
|
<groupId>cn.smartjavaai</groupId>
|
<artifactId>common</artifactId>
|
<version>${smartjavaai.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>dom4j</groupId>
|
<artifactId>dom4j</artifactId>
|
<version>1.6.1</version>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl</groupId>
|
<artifactId>api</artifactId>
|
<version>${djl.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl</groupId>
|
<artifactId>model-zoo</artifactId>
|
<version>${djl.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl.huggingface</groupId>
|
<artifactId>tokenizers</artifactId>
|
<version>${djl.version}</version>
|
</dependency>
|
<!-- MXNet -->
|
<dependency>
|
<groupId>ai.djl.mxnet</groupId>
|
<artifactId>mxnet-model-zoo</artifactId>
|
<version>${djl.version}</version>
|
</dependency>
|
<!-- Pytorch -->
|
<dependency>
|
<groupId>ai.djl.pytorch</groupId>
|
<artifactId>pytorch-model-zoo</artifactId>
|
<version>${djl.version}</version>
|
</dependency>
|
<!-- TensorFlow -->
|
<dependency>
|
<groupId>ai.djl.tensorflow</groupId>
|
<artifactId>tensorflow-model-zoo</artifactId>
|
<version>${djl.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl.pytorch</groupId>
|
<artifactId>pytorch-engine</artifactId>
|
<version>${djl.version}</version>
|
<scope>runtime</scope>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl.tensorflow</groupId>
|
<artifactId>tensorflow-engine</artifactId>
|
<version>${djl.version}</version>
|
<scope>runtime</scope>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl.mxnet</groupId>
|
<artifactId>mxnet-engine</artifactId>
|
<version>${djl.version}</version>
|
<scope>runtime</scope>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl.onnxruntime</groupId>
|
<artifactId>onnxruntime-engine</artifactId>
|
<version>${djl.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl.opencv</groupId>
|
<artifactId>opencv</artifactId>
|
<version>${djl.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>gov.nist.math</groupId>
|
<artifactId>jama</artifactId>
|
<version>1.0.3</version>
|
</dependency>
|
<dependency>
|
<groupId>org.bytedeco</groupId>
|
<artifactId>javacv</artifactId>
|
<version>1.5.10</version>
|
</dependency>
|
<dependency>
|
<groupId>ai.djl.pytorch</groupId>
|
<artifactId>pytorch-jni</artifactId>
|
<version>2.5.1-0.32.0</version>
|
<scope>runtime</scope>
|
</dependency>
|
<!-- windows平台 (保留对应平台的配置,可以减小包大小)-->
|
<dependency>
|
<groupId>org.bytedeco</groupId>
|
<artifactId>javacpp</artifactId>
|
<version>${javacv.version}</version>
|
<classifier>${javacv.platform.windows-x86_64}</classifier>
|
</dependency>
|
|
<dependency>
|
<groupId>org.bytedeco</groupId>
|
<artifactId>openblas</artifactId>
|
<version>0.3.26-1.5.10</version>
|
<classifier>${javacv.platform.windows-x86_64}</classifier>
|
</dependency>
|
|
<dependency>
|
<groupId>org.bytedeco</groupId>
|
<artifactId>opencv</artifactId>
|
<version>4.9.0-1.5.10</version>
|
<classifier>${javacv.platform.windows-x86_64}</classifier>
|
</dependency>
|
|
<dependency>
|
<groupId>ai.djl.pytorch</groupId>
|
<artifactId>pytorch-native-cpu</artifactId>
|
<classifier>${djl.platform.windows-x86_64}</classifier>
|
<version>2.5.1</version>
|
<scope>runtime</scope>
|
</dependency>
|
|
|
|
<!-- linux x86 平台 (保留对应平台的配置,可以减小包大小)-->
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>javacpp</artifactId>-->
|
<!-- <version>${javacv.version}</version>-->
|
<!-- <classifier>${javacv.platform.linux-x86_64}</classifier>-->
|
<!-- </dependency>-->
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>ffmpeg</artifactId>-->
|
<!-- <version>6.1.1-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.linux-x86_64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>openblas</artifactId>-->
|
<!-- <version>0.3.26-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.linux-x86_64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>opencv</artifactId>-->
|
<!-- <version>4.9.0-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.linux-x86_64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>ai.djl.pytorch</groupId>-->
|
<!-- <artifactId>pytorch-native-cpu</artifactId>-->
|
<!-- <classifier>${djl.platform.linux-x86_64}</classifier>-->
|
<!-- <version>2.5.1</version>-->
|
<!-- <scope>runtime</scope>-->
|
<!-- </dependency>-->
|
<!-- <dependency>-->
|
<!-- <groupId>ai.djl.pytorch</groupId>-->
|
<!-- <artifactId>pytorch-native-cpu-precxx11</artifactId>-->
|
<!-- <classifier>${djl.platform.linux-x86_64}</classifier>-->
|
<!-- <version>2.5.1</version>-->
|
<!-- <scope>runtime</scope>-->
|
<!-- </dependency>-->
|
|
|
<!-- macOS M系列 平台 (保留对应平台的配置,可以减小包大小)-->
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>javacpp</artifactId>-->
|
<!-- <version>${javacv.version}</version>-->
|
<!-- <classifier>${javacv.platform.macosx-arm64}</classifier>-->
|
<!-- </dependency>-->
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>ffmpeg</artifactId>-->
|
<!-- <version>6.1.1-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.macosx-arm64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>openblas</artifactId>-->
|
<!-- <version>0.3.26-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.macosx-arm64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>opencv</artifactId>-->
|
<!-- <version>4.9.0-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.macosx-arm64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>ai.djl.pytorch</groupId>-->
|
<!-- <artifactId>pytorch-native-cpu</artifactId>-->
|
<!-- <classifier>${djl.platform.osx-aarch64}</classifier>-->
|
<!-- <version>2.5.1</version>-->
|
<!-- <scope>runtime</scope>-->
|
<!-- </dependency>-->
|
|
|
<!-- linux aarch64 平台 (保留对应平台的配置,可以减小包大小)-->
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>javacpp</artifactId>-->
|
<!-- <version>${javacv.version}</version>-->
|
<!-- <classifier>${javacv.platform.linux-arm64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>ffmpeg</artifactId>-->
|
<!-- <version>6.1.1-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.linux-arm64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>openblas</artifactId>-->
|
<!-- <version>0.3.26-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.linux-arm64}</classifier>-->
|
<!-- </dependency>-->
|
|
<!-- <dependency>-->
|
<!-- <groupId>org.bytedeco</groupId>-->
|
<!-- <artifactId>opencv</artifactId>-->
|
<!-- <version>4.9.0-1.5.10</version>-->
|
<!-- <classifier>${javacv.platform.linux-arm64}</classifier>-->
|
<!-- </dependency>-->
|
</dependencies>
|
|
<build>
|
<resources>
|
<resource>
|
<directory>src/main/resources</directory>
|
<filtering>true</filtering>
|
<includes>
|
<include>logback-spring.xml</include>
|
</includes>
|
</resource>
|
<resource>
|
<directory>src/main/resources</directory>
|
<filtering>false</filtering>
|
<includes>
|
<include>PP_OCRv5/**</include>
|
</includes>
|
</resource>
|
</resources>
|
<plugins>
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
<version>3.8.1</version>
|
<configuration>
|
<source>1.8</source>
|
<target>1.8</target>
|
<encoding>UTF-8</encoding>
|
</configuration>
|
</plugin>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<version>${spring-boot.version}</version>
|
<configuration>
|
<mainClass>com.xindao.ocr.OcrToolApplication</mainClass>
|
</configuration>
|
<executions>
|
<execution>
|
<id>repackage</id>
|
<goals>
|
<goal>repackage</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
</plugins>
|
</build>
|
|
|
<!-- 必须添加:SCM信息 -->
|
<scm>
|
<connection>scm:git:git://github.com/geekwenjie/SmartJavaAI.git</connection>
|
<developerConnection>scm:git:ssh://github.com/geekwenjie/SmartJavaAI.git</developerConnection>
|
<url>http://github.com/geekwenjie/SmartJavaAI/tree/master</url>
|
</scm>
|
|
<developers>
|
<developer>
|
<name>dengwenjie</name>
|
<email>775747758@qq.com</email>
|
<roles>
|
<role>Project Manager</role>
|
<role>Architect</role>
|
</roles>
|
</developer>
|
</developers>
|
|
</project>
|