Loading SimpleOCR/SimpleOCR/Dockerfile +2 −6 Original line number Diff line number Diff line ARG image_debian FROM ${image_debian} ARG CodeUnitVersion ARG DotNetRuntime Loading @@ -15,12 +16,7 @@ RUN mkdir /Workspace && \ mkdir /Workspace/Other/Certificates && \ mkdir /Workspace/Other/EntryPoint && \ apt-get update && \ apt-get install -y curl nginx git libreoffice-core libreoffice-writer libreoffice-calc wget nano libleptonica-dev libtesseract-dev && \ LEPT_SO=$(find /usr/lib -name "libleptonica.so" | head -1) && \ ln -sf "$LEPT_SO" "$(dirname "$LEPT_SO")/libleptonica-1.82.0.so" && \ TESS_SO=$(find /usr/lib -name "libtesseract.so" | head -1) && \ ln -sf "$TESS_SO" "$(dirname "$TESS_SO")/libtesseract50.so" && \ ldconfig apt-get install -y curl nginx git libreoffice-core libreoffice-writer libreoffice-calc wget nano libgomp1 tesseract-ocr libpng-dev libjpeg-dev libtiff-dev libwebp-dev ghostscript WORKDIR /Workspace/Other/EntryPoint Loading SimpleOCRCLI/SimpleOCRCLI/SimpleOCRCLI.csproj +2 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,8 @@ <PackageReference Include="GRYLibrary" Version="2.0.12" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.5" /> <PackageReference Include="Tesseract" Version="5.2.0" /> <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.12.0" /> <PackageReference Include="Magick.NET.Core" Version="14.12.0" /> <Reference Include="SimpleOCRLibrary"> <HintPath>..\Other\Resources\DependentCodeUnits\SimpleOCRLibrary\BuildResult_DotNet_$(NETCoreSdkRuntimeIdentifier)\SimpleOCRLibrary.dll</HintPath> </Reference> Loading SimpleOCRCLI/SimpleOCRCLITests/SimpleOCRCLITests.csproj +2 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,8 @@ <PackageReference Include="MSTest.TestAdapter" Version="4.1.0" /> <PackageReference Include="MSTest.TestFramework" Version="4.1.0" /> <PackageReference Include="Tesseract" Version="5.2.0" /> <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.12.0" /> <PackageReference Include="Magick.NET.Core" Version="14.12.0" /> <Reference Include="SimpleOCRLibrary"> <HintPath>..\Other\Resources\DependentCodeUnits\SimpleOCRLibrary\BuildResult_DotNet_$(NETCoreSdkRuntimeIdentifier)\SimpleOCRLibrary.dll</HintPath> </Reference> Loading SimpleOCRLibrary/Other/Resources/TestCoverageBadges/badge_shieldsio_linecoverage_blue.svg +1 −1 Original line number Diff line number Diff line <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="96" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="96" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h61v20H0z"/><path fill="#0374B5" d="M61 0h35v20H61z"/><path fill="url(#b)" d="M0 0h96v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="315" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="510">coverage</text><text x="315" y="140" transform="scale(.1)" textLength="510">coverage</text><text x="775" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="250">35%</text><text x="775" y="140" transform="scale(.1)" textLength="250">35%</text></g></svg> No newline at end of file <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="96" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="96" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h61v20H0z"/><path fill="#0374B5" d="M61 0h35v20H61z"/><path fill="url(#b)" d="M0 0h96v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="315" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="510">coverage</text><text x="315" y="140" transform="scale(.1)" textLength="510">coverage</text><text x="775" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="250">42%</text><text x="775" y="140" transform="scale(.1)" textLength="250">42%</text></g></svg> No newline at end of file SimpleOCRLibrary/SimpleOCRLibrary/Misc/TesseractCall/TesseractByCLI.cs 0 → 100644 +15 −0 Original line number Diff line number Diff line namespace SimpleOCR.Library.Core.Misc.TesseractCall { internal class TesseractByCLI : TesseractCallBase { public override void Accept(ITesseractCallBaseVisitor visitor) { visitor.Handle(this); } public override T Accept<T>(ITesseractCallBaseVisitor<T> visitor) { return visitor.Handle(this); } } } Loading
SimpleOCR/SimpleOCR/Dockerfile +2 −6 Original line number Diff line number Diff line ARG image_debian FROM ${image_debian} ARG CodeUnitVersion ARG DotNetRuntime Loading @@ -15,12 +16,7 @@ RUN mkdir /Workspace && \ mkdir /Workspace/Other/Certificates && \ mkdir /Workspace/Other/EntryPoint && \ apt-get update && \ apt-get install -y curl nginx git libreoffice-core libreoffice-writer libreoffice-calc wget nano libleptonica-dev libtesseract-dev && \ LEPT_SO=$(find /usr/lib -name "libleptonica.so" | head -1) && \ ln -sf "$LEPT_SO" "$(dirname "$LEPT_SO")/libleptonica-1.82.0.so" && \ TESS_SO=$(find /usr/lib -name "libtesseract.so" | head -1) && \ ln -sf "$TESS_SO" "$(dirname "$TESS_SO")/libtesseract50.so" && \ ldconfig apt-get install -y curl nginx git libreoffice-core libreoffice-writer libreoffice-calc wget nano libgomp1 tesseract-ocr libpng-dev libjpeg-dev libtiff-dev libwebp-dev ghostscript WORKDIR /Workspace/Other/EntryPoint Loading
SimpleOCRCLI/SimpleOCRCLI/SimpleOCRCLI.csproj +2 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,8 @@ <PackageReference Include="GRYLibrary" Version="2.0.12" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.5" /> <PackageReference Include="Tesseract" Version="5.2.0" /> <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.12.0" /> <PackageReference Include="Magick.NET.Core" Version="14.12.0" /> <Reference Include="SimpleOCRLibrary"> <HintPath>..\Other\Resources\DependentCodeUnits\SimpleOCRLibrary\BuildResult_DotNet_$(NETCoreSdkRuntimeIdentifier)\SimpleOCRLibrary.dll</HintPath> </Reference> Loading
SimpleOCRCLI/SimpleOCRCLITests/SimpleOCRCLITests.csproj +2 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,8 @@ <PackageReference Include="MSTest.TestAdapter" Version="4.1.0" /> <PackageReference Include="MSTest.TestFramework" Version="4.1.0" /> <PackageReference Include="Tesseract" Version="5.2.0" /> <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.12.0" /> <PackageReference Include="Magick.NET.Core" Version="14.12.0" /> <Reference Include="SimpleOCRLibrary"> <HintPath>..\Other\Resources\DependentCodeUnits\SimpleOCRLibrary\BuildResult_DotNet_$(NETCoreSdkRuntimeIdentifier)\SimpleOCRLibrary.dll</HintPath> </Reference> Loading
SimpleOCRLibrary/Other/Resources/TestCoverageBadges/badge_shieldsio_linecoverage_blue.svg +1 −1 Original line number Diff line number Diff line <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="96" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="96" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h61v20H0z"/><path fill="#0374B5" d="M61 0h35v20H61z"/><path fill="url(#b)" d="M0 0h96v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="315" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="510">coverage</text><text x="315" y="140" transform="scale(.1)" textLength="510">coverage</text><text x="775" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="250">35%</text><text x="775" y="140" transform="scale(.1)" textLength="250">35%</text></g></svg> No newline at end of file <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="96" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="96" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h61v20H0z"/><path fill="#0374B5" d="M61 0h35v20H61z"/><path fill="url(#b)" d="M0 0h96v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="315" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="510">coverage</text><text x="315" y="140" transform="scale(.1)" textLength="510">coverage</text><text x="775" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="250">42%</text><text x="775" y="140" transform="scale(.1)" textLength="250">42%</text></g></svg> No newline at end of file
SimpleOCRLibrary/SimpleOCRLibrary/Misc/TesseractCall/TesseractByCLI.cs 0 → 100644 +15 −0 Original line number Diff line number Diff line namespace SimpleOCR.Library.Core.Misc.TesseractCall { internal class TesseractByCLI : TesseractCallBase { public override void Accept(ITesseractCallBaseVisitor visitor) { visitor.Handle(this); } public override T Accept<T>(ITesseractCallBaseVisitor<T> visitor) { return visitor.Handle(this); } } }