Skip to content

激活OCR模型 - OcrActivateModel

函数简介

将指定 OCR 模型设为当前实例的默认 active 模型。未传 modelHandle 的兼容接口(Ocr / OcrFromBmpData 等)使用 active 模型。

接口名称

OcrActivateModel

DLL 调用

int OcrActivateModel(long ola, long modelHandle);

参数说明

参数名类型说明
ola长整数型OLAPlug 对象指针。
modelHandle长整数型要激活的句柄;内置 mobile 为 0

返回值

返回值说明
1成功
0失败(句柄无效或模型未就绪)

注意事项

项目说明
Ex 系列OcrEx / OcrFromBmpDataEx 等已显式传 modelHandle,不必先激活。
查询OcrGetActiveModel / OcrListModelsActiveModel
与预热激活可能做一次内部 prime,与 OcrWarmupModel 独立。