JavaCV引用jar精简pom配置

发布于:2024-12-18 ⋅ 阅读:(20) ⋅ 点赞:(0)

1、

  <properties>
        <java.version>11</java.version>
        <javacpp.platform.macosx-x86_64>macosx-x86_64</javacpp.platform.macosx-x86_64>
        <javacpp.platform.linux-x86_64>linux-x86_64</javacpp.platform.linux-x86_64>
        <javacpp.platform.windows-x86_64>windows-x86_64</javacpp.platform.windows-x86_64>
        <javacv.version>1.5.11</javacv.version>
        <javacv.ffmpeg.version>7.1-1.5.11</javacv.ffmpeg.version>
        <javacv.opencv.version>4.10.0-1.5.11</javacv.opencv.version>
    </properties>

2、

       <!-- https://mvnrepository.com/artifact/org.bytedeco/javacv -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacv</artifactId>
            <version>${javacv.version}</version>
        </dependency>
        <!--javacv 精简依赖  只依赖windows64位ffmpeg-->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacpp</artifactId>
            <version>${javacv.version}</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>ffmpeg</artifactId>
            <version>${javacv.ffmpeg.version}</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/opencv-platform -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>opencv</artifactId>
            <version>4.10.0-1.5.11</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/tesseract -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>tesseract</artifactId>
            <version>5.5.0-1.5.11</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/openblas -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>openblas</artifactId>
            <version>0.3.28-1.5.11</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>


        <!-- https://mvnrepository.com/artifact/org.bytedeco/leptonica -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>leptonica</artifactId>
            <version>1.85.0-1.5.11</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.bytedeco/flycapture -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>flycapture</artifactId>
            <version>2.13.3.31-1.5.9</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.bytedeco/libdc1394 -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>libdc1394</artifactId>
            <version>2.2.6-1.5.9</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/libfreenect -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>libfreenect</artifactId>
            <version>0.5.7-1.5.9</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.bytedeco/libfreenect2 -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>libfreenect2</artifactId>
            <version>0.2.0-1.5.9</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/librealsense -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>librealsense</artifactId>
            <version>1.12.4-1.5.9</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/librealsense2 -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>librealsense2</artifactId>
            <version>2.53.1-1.5.9</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/videoinput -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>videoinput</artifactId>
            <version>0.200-1.5.9</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/artoolkitplus -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>artoolkitplus</artifactId>
            <version>2.3.1-1.5.9</version>
            <classifier>${javacpp.platform.windows-x86_64}</classifier>
        </dependency>



        <!--javacv 精简依赖  只依赖windows64位ffmpeg-->