Loading ReadMe.md +12 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,18 @@ ## General SimpleOCR is a simple OCR-service. SImpleOCR fully depends on [tessdata](https://github.com/tesseract-ocr/tessdata_best). ## Supported formats The following file-types are currently supported: - jpg - png - pdf - doc - docx - xls - xlsx ## Build Loading SimpleOCR/Other/Reference/ReferenceContent/Examples/MinimalDockerComposeFile/docker-compose.yml +2 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ services: container_name: simpleocr env_file: Variables.env image: simpleocr:1.5.2 environment: - EnforceVerbose ports: - 443:443 volumes: Loading SimpleOCR/SimpleOCR/Dockerfile +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ RUN mkdir /Workspace && \ mkdir /Workspace/Other/Certificates && \ mkdir /Workspace/Other/EntryPoint && \ apt-get update && \ apt-get install -y curl nginx git libreoffice libreoffice-writer libreoffice-calc libreoffice-impress fonts-dejavu fonts-liberation nano libgomp1 tesseract-ocr libpng-dev libjpeg-dev libtiff-dev libwebp-dev ghostscript apt-get install -y curl nginx git wget libreoffice libreoffice-writer libreoffice-calc libreoffice-impress fonts-dejavu fonts-liberation nano libgomp1 tesseract-ocr libpng-dev libjpeg-dev libtiff-dev libwebp-dev ghostscript # TODO install a certain version of libreoffice etc. which is defined in the dependencies-folder and which can be updated by a script. WORKDIR /Workspace/Other/EntryPoint Loading SimpleOCR/SimpleOCR/EntryPoint.sh +4 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,10 @@ if [[ -n "${InitialEnableEndpointMetricsValue}" ]]; then argument+=" --InitialEnableEndpointMetricsValue $InitialEnableEndpointMetricsValue" fi if [[ -n "${EnforceVerbose}" ]]; then argument+=" --EnforceVerbose" fi { cd /Workspace/Application/Backend && dotnet ./SimpleOCRService.dll $argument; } & wait -n Loading SimpleOCRCLI/SimpleOCRCLI/Runner/RunDownloader.cs +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ namespace SimpleOCR.CLI.Core.Runner protected override string RunImplementation() { SimpleOCR.Library.Core.IOCRService ocrService = new SimpleOCR.Library.Core.OCRService(new SimpleOCR.Library.Core.OCRServiceConfiguration() { DataFolder = Utilities.GetTargetFolder(_Options.TargetFolder) }, _Log); SimpleOCR.Library.Core.IOCRService ocrService = new SimpleOCR.Library.Core.OCRService(new SimpleOCR.Library.Core.OCRServiceConfiguration() { DataFolder = Utilities.GetTargetFolder(_Options.TargetFolder) }, _Log,_Options.Verbose); ocrService.DownloadOCRData(); return string.Empty; } Loading Loading
ReadMe.md +12 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,18 @@ ## General SimpleOCR is a simple OCR-service. SImpleOCR fully depends on [tessdata](https://github.com/tesseract-ocr/tessdata_best). ## Supported formats The following file-types are currently supported: - jpg - png - pdf - doc - docx - xls - xlsx ## Build Loading
SimpleOCR/Other/Reference/ReferenceContent/Examples/MinimalDockerComposeFile/docker-compose.yml +2 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ services: container_name: simpleocr env_file: Variables.env image: simpleocr:1.5.2 environment: - EnforceVerbose ports: - 443:443 volumes: Loading
SimpleOCR/SimpleOCR/Dockerfile +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ RUN mkdir /Workspace && \ mkdir /Workspace/Other/Certificates && \ mkdir /Workspace/Other/EntryPoint && \ apt-get update && \ apt-get install -y curl nginx git libreoffice libreoffice-writer libreoffice-calc libreoffice-impress fonts-dejavu fonts-liberation nano libgomp1 tesseract-ocr libpng-dev libjpeg-dev libtiff-dev libwebp-dev ghostscript apt-get install -y curl nginx git wget libreoffice libreoffice-writer libreoffice-calc libreoffice-impress fonts-dejavu fonts-liberation nano libgomp1 tesseract-ocr libpng-dev libjpeg-dev libtiff-dev libwebp-dev ghostscript # TODO install a certain version of libreoffice etc. which is defined in the dependencies-folder and which can be updated by a script. WORKDIR /Workspace/Other/EntryPoint Loading
SimpleOCR/SimpleOCR/EntryPoint.sh +4 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,10 @@ if [[ -n "${InitialEnableEndpointMetricsValue}" ]]; then argument+=" --InitialEnableEndpointMetricsValue $InitialEnableEndpointMetricsValue" fi if [[ -n "${EnforceVerbose}" ]]; then argument+=" --EnforceVerbose" fi { cd /Workspace/Application/Backend && dotnet ./SimpleOCRService.dll $argument; } & wait -n Loading
SimpleOCRCLI/SimpleOCRCLI/Runner/RunDownloader.cs +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ namespace SimpleOCR.CLI.Core.Runner protected override string RunImplementation() { SimpleOCR.Library.Core.IOCRService ocrService = new SimpleOCR.Library.Core.OCRService(new SimpleOCR.Library.Core.OCRServiceConfiguration() { DataFolder = Utilities.GetTargetFolder(_Options.TargetFolder) }, _Log); SimpleOCR.Library.Core.IOCRService ocrService = new SimpleOCR.Library.Core.OCRService(new SimpleOCR.Library.Core.OCRServiceConfiguration() { DataFolder = Utilities.GetTargetFolder(_Options.TargetFolder) }, _Log,_Options.Verbose); ocrService.DownloadOCRData(); return string.Empty; } Loading