BootstrapBlazor.OCR
8.0.0
Prefix Reserved
See the version list below for details.
dotnet add package BootstrapBlazor.OCR --version 8.0.0
NuGet\Install-Package BootstrapBlazor.OCR -Version 8.0.0
<PackageReference Include="BootstrapBlazor.OCR" Version="8.0.0" />
<PackageVersion Include="BootstrapBlazor.OCR" Version="8.0.0" />
<PackageReference Include="BootstrapBlazor.OCR" />
paket add BootstrapBlazor.OCR --version 8.0.0
#r "nuget: BootstrapBlazor.OCR, 8.0.0"
#:package BootstrapBlazor.OCR@8.0.0
#addin nuget:?package=BootstrapBlazor.OCR&version=8.0.0
#tool nuget:?package=BootstrapBlazor.OCR&version=8.0.0
Blazor 光学字符识别(OCR)/翻译/AI表格识别/Azure OpenAI/播放语音/文本转语音 组件
示例
https://blazor.app1.es/ocr
https://blazor.app1.es/aiform
https://blazor.app1.es/translate
使用方法:
nuget包
BootstrapBlazor.OCR_Imports.razor 文件 或者页面添加 添加组件库引用
@using BootstrapBlazor.ComponentsProgram.cs 文件添加
builder.Services.AddTransient<OcrService>(); builder.Services.AddTransient<AiFormService>(); builder.Services.AddTransient<TranslateService>(); builder.Services.AddTransient<StsService>();Key
appsettings.json或者其他配置文件添加配置"AzureCvKey": "AzureCvKey", "AzureCvUrl": "https://xxx.cognitiveservices.azure.com/", "AzureAiFormKey": "AzureAiFormKey", "AzureAiFormUrl": "https://xxx.cognitiveservices.azure.com/", "AzureTranslateKey": "AzureTranslateKey", "AzureTranslateUrl": "https://api.cognitive.microsofttranslator.com", "AzureSsKey": "AzureSsKey", "AzureSsUrl": "https://xxx.tts.speech.microsoft.com/cognitiveservices/v1", "AzureSsFetchTokenUri": "https://xxx.api.cognitive.microsoft.com/sts/v1.0/issueToken",Razor页面
Razor
@using BootstrapBlazor.Components <OCR ShowUI="true" ShowUI_Capture="true" Debug="true" OnResult="OnResult" /> <AiForm ShowUI="true" Debug="true" OnReadResult="OnResult2" /> <Translate /> <PlayAudio TextOrSSML="你好,Blazor!" /> @code{ List<string> res { get; set; } private Task OnResult(List<string> res) { this.res = res; StateHasChanged(); return Task.CompletedTask; } List<AnalyzedDocument>? models { get; set; } private Task OnResult2(List<AnalyzedDocument> models) { this.models = models; StateHasChanged(); return Task.CompletedTask; } }更多信息请参考
Bootstrap 风格的 Blazor UI 组件库 基于 Bootstrap 样式库精心打造,并且额外增加了 100 多种常用的组件,为您快速开发项目带来非一般的感觉
https://www.blazor.zone
更新历史
v7.1.0
- 添加翻译组件
v6.1.2
- 添加AI表格识别组件
Blazor 组件
AlexChow
今日头条 | 博客园 | 知乎 | Gitee | GitHub

| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Azure.AI.FormRecognizer (>= 4.0.0)
- BootstrapBlazor (>= 7.12.1)
- Microsoft.AspNetCore.Components.Web (>= 6.0.0)
- Microsoft.Azure.CognitiveServices.Vision.ComputerVision (>= 7.0.1)
- Microsoft.Extensions.Configuration (>= 6.0.1)
- Microsoft.Extensions.Configuration.UserSecrets (>= 6.0.1)
-
net7.0
- Azure.AI.FormRecognizer (>= 4.0.0)
- AzureOpenAIClient (>= 1.0.2)
- BootstrapBlazor (>= 7.12.1)
- Microsoft.AspNetCore.Components.Web (>= 7.0.0)
- Microsoft.Azure.CognitiveServices.Vision.ComputerVision (>= 7.0.1)
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Configuration.UserSecrets (>= 7.0.0)
-
net8.0
- Azure.AI.FormRecognizer (>= 4.0.0)
- AzureOpenAIClient (>= 1.0.2)
- BootstrapBlazor (>= 7.12.1)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
- Microsoft.Azure.CognitiveServices.Vision.ComputerVision (>= 7.0.1)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.UserSecrets (>= 8.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on BootstrapBlazor.OCR:
| Package | Downloads |
|---|---|
|
BlazorShared
BlazorMaui , 整合Blazor,BootstrapBlazor UI组件库,Maui的共享跨平台工程示例共享库 |
|
|
BootstrapBlazor.Densen.All
Blazor 组件懒人包 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on BootstrapBlazor.OCR:
| Repository | Stars |
|---|---|
|
densen2014/BlazorMaui
用 c # 和 Razor 创建本机移动应用和桌面应用。使用 Blazor.BB.Maui,可以快速开发共享代码库运行于 Windows (Winforms/WPF/UWP)、Android、iOS、macOS 的应用。
|
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.0 | 418 | 1/21/2025 |
| 8.1.0 | 320 | 10/10/2024 |
| 8.0.1 | 562 | 12/9/2023 |
| 8.0.0 | 362 | 11/15/2023 |
| 7.1.3 | 1,096 | 3/28/2023 |
| 7.1.1 | 429 | 3/25/2023 |
| 7.1.0 | 410 | 3/25/2023 |
| 7.0.9 | 620 | 3/15/2023 |
| 7.0.8 | 1,263 | 1/26/2023 |
| 7.0.7 | 453 | 1/24/2023 |
| 7.0.5 | 770 | 12/16/2022 |
| 7.0.4 | 696 | 12/7/2022 |
| 7.0.3 | 1,030 | 11/14/2022 |
| 7.0.2 | 518 | 11/13/2022 |
| 7.0.1 | 520 | 11/13/2022 |
| 7.0.0 | 628 | 11/9/2022 |
| 6.2.4 | 628 | 10/24/2022 |
| 6.2.3 | 561 | 10/24/2022 |
| 6.2.2 | 585 | 10/24/2022 |
| 6.2.1 | 757 | 10/12/2022 |