Unverified Commit c43f2c77 authored by Marius Göcke's avatar Marius Göcke
Browse files

fixes

parent 984b75b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,4 +4,4 @@ Version;SupportBegin;SupportEnd
1.1.0;2025-07-10T00:00:00;2027-10-09T00:00:00
1.0.2;2025-08-07T00:00:00;2027-11-06T00:00:00
1.2.0;2025-08-10T00:00:00;2027-11-09T00:00:00
1.2.1;2025-08-28T00:00:00;2027-11-27T00:00:00
 No newline at end of file
1.3.0;2025-08-28T00:00:00;2027-11-27T00:00:00
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ services:
  simpleocr:
    container_name: simpleocr
    env_file: Variables.env
    image: simpleocr:1.2.0
    image: simpleocr:1.3.0
    ports:
    - 443:443
    volumes:
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
    codeunitspecificationversion="2.9.4"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://projects.aniondev.de/PublicProjects/Common/ProjectTemplates/-/raw/v2.9.4/Conventions/RepositoryStructure/CommonProjectStructure/codeunit.xsd" enabled="true">
    <cps:name>SimpleOCR</cps:name>
    <cps:version>1.2.0</cps:version>
    <cps:version>1.3.0</cps:version>
    <cps:codeunitownername>Marius Göcke</cps:codeunitownername>
    <cps:codeunitowneremailaddress>marius.goecke@gmail.com</cps:codeunitowneremailaddress>
    <cps:properties codeunithastestablesourcecode="false" codeunithasupdatabledependencies="false"
+1 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" ?>
<cps:codeunit xmlns:cps="https://projects.aniondev.de/PublicProjects/Common/ProjectTemplates/-/tree/main/Conventions/RepositoryStructure/CommonProjectStructure" codeunitspecificationversion="2.9.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://projects.aniondev.de/PublicProjects/Common/ProjectTemplates/-/raw/v2.9.4/Conventions/RepositoryStructure/CommonProjectStructure/codeunit.xsd" enabled="true">
    <cps:name>SimpleOCRCLI</cps:name>
    <cps:version>1.2.0</cps:version>
    <cps:version>1.3.0</cps:version>
    <cps:codeunitownername>Marius Göcke</cps:codeunitownername>
    <cps:codeunitowneremailaddress>marius.goecke@gmail.com</cps:codeunitowneremailaddress>
    <cps:properties codeunithastestablesourcecode="true" codeunithasupdatabledependencies="true" throwexceptionifcodeunitfilecannotbevalidated="true" developmentstate="Maintenance-updates only" description="SimpleOCRCLI is a simple standalone-CLI for SimpleOCR.">
+2 −2
Original line number Diff line number Diff line
@@ -21,8 +21,8 @@ namespace SimpleOCR.CLI.Core.Runner
        {
            SimpleOCR.Library.Core.IOCRService ocrService = new SimpleOCR.Library.Core.OCRService(this._Options.OCRDataFolder, GeneralLogger.CreateUsingConsole());
            ocrService.Initialize();
            (FileType fileType, byte[] content) = SimpleOCR.Library.Core.Misc.Utilities.LoadFile(_Options.File);
            content = fileType.Accept(new ToPictureVisitor(content));
            (FileType fileType, byte[] content,string mimeType) = SimpleOCR.Library.Core.Misc.Utilities.LoadFile(_Options.File);
            content = fileType.Accept(new ToPictureVisitor(content,mimeType));
            string result = ocrService.GetOCRContent(content, new HashSet<string>(this._Options.Languages));
            if(this._Options.Outputfile == null)
            {
Loading