|
@@ -5263,8 +5263,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
@Override
|
|
@Override
|
|
@Async
|
|
@Async
|
|
public boolean atuoOCR(String ids) throws Exception {
|
|
public boolean atuoOCR(String ids) throws Exception {
|
|
- //String url="/mnt/sdc/AutoPdf/";
|
|
|
|
- String url="D:\\AutoPdf\\";
|
|
|
|
|
|
+ String url="/mnt/sdc/AutoPdf/";
|
|
|
|
+ //String url="D:\\AutoPdf\\";
|
|
List<Long> idsList = Func.toLongList(ids);
|
|
List<Long> idsList = Func.toLongList(ids);
|
|
List<ArchivesAuto> archivesAutoList = this.list(new LambdaQueryWrapper<ArchivesAuto>().in(ArchivesAuto::getId, idsList));
|
|
List<ArchivesAuto> archivesAutoList = this.list(new LambdaQueryWrapper<ArchivesAuto>().in(ArchivesAuto::getId, idsList));
|
|
for (ArchivesAuto auto : archivesAutoList) {
|
|
for (ArchivesAuto auto : archivesAutoList) {
|
|
@@ -5332,9 +5332,11 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
}
|
|
}
|
|
|
|
|
|
public List<String> extractTextFromPDF(String pdfFilePath) throws IOException, InterruptedException {
|
|
public List<String> extractTextFromPDF(String pdfFilePath) throws IOException, InterruptedException {
|
|
- String PYTHON_SCRIPT_PATH = "C:\\Users\\hc01\\AppData\\Local\\Programs\\Python\\Python310\\Python\\pdfTextExtractorWindows.py";
|
|
|
|
- String PYTHON_INTERPRETER = "C:\\Users\\hc01\\AppData\\Local\\Programs\\Python\\Python310\\python.exe";
|
|
|
|
|
|
+// String PYTHON_SCRIPT_PATH = "C:\\Users\\hc01\\AppData\\Local\\Programs\\Python\\Python310\\Python\\pdfTextExtractorWindows.py";
|
|
|
|
+// String PYTHON_INTERPRETER = "C:\\Users\\hc01\\AppData\\Local\\Programs\\Python\\Python310\\python.exe";
|
|
|
|
|
|
|
|
+ String PYTHON_SCRIPT_PATH = "/www/wwwlogs/python/pdfTextExtractorWindows.py";
|
|
|
|
+ String PYTHON_INTERPRETER = "python3";
|
|
String[] command = {
|
|
String[] command = {
|
|
PYTHON_INTERPRETER,
|
|
PYTHON_INTERPRETER,
|
|
PYTHON_SCRIPT_PATH,
|
|
PYTHON_SCRIPT_PATH,
|