IOcrService interface
小于 1 分钟
IOcrService interface
OCR 识别服务。
public interface IOcrServiceMembers
| name | description |
|---|---|
| CurrentOcrModelKey | 当前正在使用的 OCR 模型键。 |
| DownloadProgress | 当前下载进度(0-100);未知时为 null。 |
| DownloadStatusText | 当前下载状态文本。 |
| IsDownloading | 当前是否存在模型下载任务。 |
| event DownloadStateChanged | 下载状态变更事件。 |
| CancelDownload() | 取消当前模型下载任务。 |
| DownloadModelAsync(…) | 下载指定 OCR 模型。 |
| GetAvailableModels() | 获取可用 OCR 模型列表。 |
| IsModelInstalled(…) | 判断指定模型是否已完整安装。 |
| RecognizeText(…) | 识别图像中的文本。 |
| TryDeleteModel(…) | 尝试删除本地 OCR 模型。 |
| TrySwitchOcrModel(…) | 尝试切换当前 OCR 模型。 |
See Also
- namespace neo_bpsys_wpf.Core.Abstractions.Services
