loadModel method
Load OCR model from file paths.
detParam - path to detection model param file
detModel - path to detection model bin file
recParam - path to recognition model param file
recModel - path to recognition model bin file
sizeid - target size index (0=320, 1=400, 2=480, 3=560, 4=640)
cpugpu - 0=CPU, 1=GPU, 2=GPU(Turnip)
Implementation
Future<bool> loadModel({
required String detParam,
required String detModel,
required String recParam,
required String recModel,
int sizeid = 0,
int cpugpu = 0,
}) {
return OcrPlatform.instance.loadModel(
detParam: detParam,
detModel: detModel,
recParam: recParam,
recModel: recModel,
sizeid: sizeid,
cpugpu: cpugpu,
);
}