AI相关

本地部署了minerU,然后java调用后获取到中间产物:

cn.hutool.core.io.FileUtil;cn.hutool.http.HttpRequest;cn.hutool.http.HttpResponse;com.fasterxml.jackson.databind.JsonNode;com.fasterxml.jackson.databind.ObjectMapper;java.io.File;java.util.HashMap;jav


pom引入hutool依赖:

<dependency>
    <groupId>cn.hutool</groupId>
    <artifactId>hutool-all</artifactId>
    <version>5.8.25</version> <!-- 使用最新稳定版 -->
</dependency>

java代码

cn.hutool.core.io.FileUtil;
cn.hutool.http.HttpRequest;
cn.hutool.http.HttpResponse;
com.fasterxml.jackson.databind.JsonNode;
com.fasterxml.jackson.databind.ObjectMapper;

java.io.File;
java.util.HashMap;
java.util.Map;

MinerUApiExample {
    String = ; String = ;
    String = ; ObjectMapper = ObjectMapper();

    (String[] args) {
        {
            File pdfFile = File(); (pdfFile);

        } (Exception e) {
            e.printStackTrace();
        }
    }

    (File fil

原创不易,完成人机校验,阅读全文

相关推荐