Loading SimpleOCR/SimpleOCR/Dockerfile +1 −1 Original line number Diff line number Diff line FROM mcr.microsoft.com/dotnet/aspnet:9.0 FROM mcr.microsoft.com/dotnet/aspnet:10.0 RUN mkdir /Workspace && \ mkdir /Workspace/Data && \ Loading SimpleOCRCLI/SimpleOCRCLI/SimpleOCRCLI.csproj +5 −5 Original line number Diff line number Diff line <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net9.0</TargetFramework> <TargetFramework>net10.0</TargetFramework> <Authors>Marius Göcke</Authors> <Version>1.5.0</Version> <AssemblyVersion>1.5.0</AssemblyVersion> Loading Loading @@ -58,12 +58,12 @@ <ErrorReport>none</ErrorReport> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.10" /> <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.4" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.6" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.1" /> <PackageReference Include="CommandLineParser" Version="2.9.1" /> <PackageReference Include="GRYLibrary" Version="0.12.173" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.10" /> <PackageReference Include="GRYLibrary" Version="1.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" /> <PackageReference Include="Tesseract" Version="5.2.0" /> <Reference Include="SimpleOCRLibrary"> <HintPath>..\Other\Resources\DependentCodeUnits\SimpleOCRLibrary\BuildResult_DotNet_win-x64\SimpleOCRLibrary.dll</HintPath> Loading SimpleOCRCLI/SimpleOCRCLITests/SimpleOCRCLITests.csproj +8 −8 Original line number Diff line number Diff line <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net9.0</TargetFramework> <TargetFramework>net10.0</TargetFramework> <Authors>Marius Göcke</Authors> <Version>1.5.0</Version> <AssemblyVersion>1.5.0</AssemblyVersion> Loading Loading @@ -64,13 +64,13 @@ <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> <PackageReference Include="Microsoft.CodeCoverage" Version="18.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.10" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.10" /> <PackageReference Include="Microsoft.Extensions.Options" Version="9.0.10" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" /> <PackageReference Include="MSTest.TestAdapter" Version="4.0.1" /> <PackageReference Include="MSTest.TestFramework" Version="4.0.1" /> <PackageReference Include="Microsoft.CodeCoverage" Version="18.0.1" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.0" /> <PackageReference Include="Microsoft.Extensions.Options" Version="10.0.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" /> <PackageReference Include="MSTest.TestAdapter" Version="4.0.2" /> <PackageReference Include="MSTest.TestFramework" Version="4.0.2" /> <PackageReference Include="Tesseract" Version="5.2.0" /> <Reference Include="SimpleOCRLibrary"> <HintPath>..\Other\Resources\DependentCodeUnits\SimpleOCRLibrary\BuildResult_DotNet_win-x64\SimpleOCRLibrary.dll</HintPath> Loading SimpleOCRLibrary/Other/Build/SimpleOCRLibrary.nuspec +5 −5 Original line number Diff line number Diff line Loading @@ -10,9 +10,9 @@ <copyright>Copyright © 2025 by Marius Göcke</copyright> <description>SimpleOCRLibrary is a simple OCR-library.</description> <summary>SimpleOCRLibrary is a simple OCR-library.</summary> <license type="file">lib/net8/SimpleOCRLibrary.License.txt</license> <license type="file">lib/net10/SimpleOCRLibrary.License.txt</license> <dependencies> <group targetFramework="net8" /> <group targetFramework="net10" /> </dependencies> <projectUrl>https://projects.aniondev.de/PublicProjects/Common/SimpleOCR</projectUrl> <repository type="git" Loading @@ -21,11 +21,11 @@ <readme>Documentation\ReadMe.md</readme> </metadata> <files> <file src="../Artifacts/BuildResult_DotNet_win-x64/SimpleOCRLibrary.dll" target="lib/net8" /> <file src="../Artifacts/BuildResult_DotNet_win-x64/SimpleOCRLibrary.dll" target="lib/net10" /> <file src="../Artifacts/BuildResult_DotNet_win-x64/SimpleOCRLibrary.License.txt" target="lib/net8" /> target="lib/net10" /> <file src="../Artifacts/BuildResult_DotNet_win-x64/SimpleOCRLibrary.deps.json" target="lib/net8" /> target="lib/net10" /> <file src="..\..\ReadMe.md" target="Documentation\" /> </files> </package> SimpleOCRLibrary/SimpleOCRLibrary/OCRService.cs +16 −5 Original line number Diff line number Diff line using GRYLibrary.Core.Exceptions; using GRYLibrary.Core.APIServer.Utilities; using GRYLibrary.Core.Exceptions; using GRYLibrary.Core.Logging.GRYLogger; using GRYLibrary.Core.Misc; using SimpleOCR.Library.Core.Other; Loading @@ -16,6 +17,9 @@ namespace SimpleOCR.Library.Core { public bool IsInitialized { get; private set; } public InitializationState InitializationState => throw new NotImplementedException(); private readonly IOCRServiceConfiguration _Configuration; private readonly IGRYLog _Log; public OCRService(IOCRServiceConfiguration oCRServiceConfiguration, IGRYLog log) Loading Loading @@ -107,14 +111,21 @@ namespace SimpleOCR.Library.Core this.Initialize(); } public bool IsAvailable() public void Dispose() { return this.IsInitialized; //nothing to do } public void Dispose() public (bool, Exception?) IsAvailable() { //nothing to do if (this.IsInitialized) { return (true, null); } else { return (false, new Exception("Not initalized yet.")); } } } } Loading
SimpleOCR/SimpleOCR/Dockerfile +1 −1 Original line number Diff line number Diff line FROM mcr.microsoft.com/dotnet/aspnet:9.0 FROM mcr.microsoft.com/dotnet/aspnet:10.0 RUN mkdir /Workspace && \ mkdir /Workspace/Data && \ Loading
SimpleOCRCLI/SimpleOCRCLI/SimpleOCRCLI.csproj +5 −5 Original line number Diff line number Diff line <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net9.0</TargetFramework> <TargetFramework>net10.0</TargetFramework> <Authors>Marius Göcke</Authors> <Version>1.5.0</Version> <AssemblyVersion>1.5.0</AssemblyVersion> Loading Loading @@ -58,12 +58,12 @@ <ErrorReport>none</ErrorReport> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.10" /> <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.4" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.6" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.1" /> <PackageReference Include="CommandLineParser" Version="2.9.1" /> <PackageReference Include="GRYLibrary" Version="0.12.173" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.10" /> <PackageReference Include="GRYLibrary" Version="1.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" /> <PackageReference Include="Tesseract" Version="5.2.0" /> <Reference Include="SimpleOCRLibrary"> <HintPath>..\Other\Resources\DependentCodeUnits\SimpleOCRLibrary\BuildResult_DotNet_win-x64\SimpleOCRLibrary.dll</HintPath> Loading
SimpleOCRCLI/SimpleOCRCLITests/SimpleOCRCLITests.csproj +8 −8 Original line number Diff line number Diff line <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net9.0</TargetFramework> <TargetFramework>net10.0</TargetFramework> <Authors>Marius Göcke</Authors> <Version>1.5.0</Version> <AssemblyVersion>1.5.0</AssemblyVersion> Loading Loading @@ -64,13 +64,13 @@ <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> <PackageReference Include="Microsoft.CodeCoverage" Version="18.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.10" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.10" /> <PackageReference Include="Microsoft.Extensions.Options" Version="9.0.10" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" /> <PackageReference Include="MSTest.TestAdapter" Version="4.0.1" /> <PackageReference Include="MSTest.TestFramework" Version="4.0.1" /> <PackageReference Include="Microsoft.CodeCoverage" Version="18.0.1" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.0" /> <PackageReference Include="Microsoft.Extensions.Options" Version="10.0.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" /> <PackageReference Include="MSTest.TestAdapter" Version="4.0.2" /> <PackageReference Include="MSTest.TestFramework" Version="4.0.2" /> <PackageReference Include="Tesseract" Version="5.2.0" /> <Reference Include="SimpleOCRLibrary"> <HintPath>..\Other\Resources\DependentCodeUnits\SimpleOCRLibrary\BuildResult_DotNet_win-x64\SimpleOCRLibrary.dll</HintPath> Loading
SimpleOCRLibrary/Other/Build/SimpleOCRLibrary.nuspec +5 −5 Original line number Diff line number Diff line Loading @@ -10,9 +10,9 @@ <copyright>Copyright © 2025 by Marius Göcke</copyright> <description>SimpleOCRLibrary is a simple OCR-library.</description> <summary>SimpleOCRLibrary is a simple OCR-library.</summary> <license type="file">lib/net8/SimpleOCRLibrary.License.txt</license> <license type="file">lib/net10/SimpleOCRLibrary.License.txt</license> <dependencies> <group targetFramework="net8" /> <group targetFramework="net10" /> </dependencies> <projectUrl>https://projects.aniondev.de/PublicProjects/Common/SimpleOCR</projectUrl> <repository type="git" Loading @@ -21,11 +21,11 @@ <readme>Documentation\ReadMe.md</readme> </metadata> <files> <file src="../Artifacts/BuildResult_DotNet_win-x64/SimpleOCRLibrary.dll" target="lib/net8" /> <file src="../Artifacts/BuildResult_DotNet_win-x64/SimpleOCRLibrary.dll" target="lib/net10" /> <file src="../Artifacts/BuildResult_DotNet_win-x64/SimpleOCRLibrary.License.txt" target="lib/net8" /> target="lib/net10" /> <file src="../Artifacts/BuildResult_DotNet_win-x64/SimpleOCRLibrary.deps.json" target="lib/net8" /> target="lib/net10" /> <file src="..\..\ReadMe.md" target="Documentation\" /> </files> </package>
SimpleOCRLibrary/SimpleOCRLibrary/OCRService.cs +16 −5 Original line number Diff line number Diff line using GRYLibrary.Core.Exceptions; using GRYLibrary.Core.APIServer.Utilities; using GRYLibrary.Core.Exceptions; using GRYLibrary.Core.Logging.GRYLogger; using GRYLibrary.Core.Misc; using SimpleOCR.Library.Core.Other; Loading @@ -16,6 +17,9 @@ namespace SimpleOCR.Library.Core { public bool IsInitialized { get; private set; } public InitializationState InitializationState => throw new NotImplementedException(); private readonly IOCRServiceConfiguration _Configuration; private readonly IGRYLog _Log; public OCRService(IOCRServiceConfiguration oCRServiceConfiguration, IGRYLog log) Loading Loading @@ -107,14 +111,21 @@ namespace SimpleOCR.Library.Core this.Initialize(); } public bool IsAvailable() public void Dispose() { return this.IsInitialized; //nothing to do } public void Dispose() public (bool, Exception?) IsAvailable() { //nothing to do if (this.IsInitialized) { return (true, null); } else { return (false, new Exception("Not initalized yet.")); } } } }