我不能使用 pypdfocr 在 Alfresco 上 OCR 文件。
大家好,我从 Alfresco 开始,我在 Alfresco 中配置 pypdfocr 和使用它时遇到了一些困难。
我在 Ubunto 18.04.5 LTS 上安装了 Alfresco,使用以下命令:
wget https://download.alfresco.com/release/community/201707-build-00028/alfresco-community-installer-201707-linux-x64.bin
我已经完成了所有必要的配置,在各自的文件夹中添加了文件 repo.jar 和 share.jar:
/opt/alfresco-community/modules/platform/simple-ocr-repo-2.3.1.jar
/opt/alfresco-community/modules/share/simple-ocr-share-2.3.1.jar
我在 alfresco-global.properties 中添加了属性:
# PYPDFOCR
ocr.command = /opt/alfresco-community/scripts/ocr.sh
ocr.output.verbose = true
ocr.output.file.prefix.command =
ocr.extra.commands = -v -l por
ocr.server.os = linux
我创建了上面代码中调用的脚本:
#!/usr/bin/env bash
# set -o xtrace # Uncomment for debugging / troubleshooting
array = ("$ @")
unset "array [$ {# array [@]} - 1]"
/usr/local/bin/pypdfocr "$ {array [@]}"
我安装了这样的依赖项:apt install gcc libjpeg-dev minizip zlib1g-dev python-dev
但是,当我尝试在 Alfresco 中执行 OCR 时,我在 /tomcat/logs/ 中收到以下消息:
任何帮助将不胜感激
**** 我试图通过安装更多依赖项来解决,但是它没有用:
apt-get install wget gcc gcc-c ++ make autoconf automake libtool libjpeg-devel libpng-devel libtiff-devel zlib-devel ocaml ImageMagick ImageMagick-devel
我收到以下消息:
E: Unable to locate package gcc-c +
E: Couldn't find any package by regex 'gcc-c +'
E: Unable to locate package libjpeg-devel
E: Unable to locate package libpng-devel
E: Unable to locate package libtiff-devel
E: Unable to locate package zlib-devel
E: Unable to locate package ImageMagick
E: Unable to locate package ImageMagick-devel