Leaf.OCR.Models.v6 1.0.0

dotnet add package Leaf.OCR.Models.v6 --version 1.0.0
                    
NuGet\Install-Package Leaf.OCR.Models.v6 -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Leaf.OCR.Models.v6" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Leaf.OCR.Models.v6" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Leaf.OCR.Models.v6" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Leaf.OCR.Models.v6 --version 1.0.0
                    
#r "nuget: Leaf.OCR.Models.v6, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Leaf.OCR.Models.v6@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Leaf.OCR.Models.v6&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Leaf.OCR.Models.v6&version=1.0.0
                    
Install as a Cake Tool

Leaf.OCR.Models.v6

Leaf.OCR.Models.v6 是 Leaf.OCR 的配套模型资源包(PP-OCR v6),包含 OCR 推理所需的 ONNX 模型和字典文件。

安装

dotnet add package Leaf.OCR.Models.v6

目标框架

  • net8.0

内容

  • inference/onnx_ppocrv6m/det.onnx
  • inference/onnx_ppocrv6m/rec.onnx
  • inference/onnx_ppocrv6m/ppocrv6_dict.txt

安装后会通过 contentFiles 复制到应用输出目录,供 Leaf.OCR 运行时加载。

使用

// 使用 v6 模型
var ocr = new ONNXOCRService(logger, OCRModelVersion.V6);

// 或通过 DI
services.AddLeafOCR(OCRModelVersion.V6);

第三方声明

请参见 THIRD-PARTY-NOTICES.txt

许可证

请参见 LICENSE.txt

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 81 6/15/2026