FisFilter_DL_LocateText_Deploy
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | DL_OCR |
Loads a deep learning model and prepares its execution on a specific target device.
Syntax
void fil::FisFilter_DL_LocateText_Deploy ( const ftl::Optional<fil::ReadCharactersModelDirectory>& inModelDirectory, const fil::LocateTextPretrainedModel::Type inPretrainedModelType, const ftl::Optional<fil::DeviceKind::Type>& inDeviceType, const int inDeviceIndex, const ftl::Optional<fil::LocateTextDeployHint>& inExecutionHint, fil::LocateTextModelId& outModelId )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inModelDirectory | const Optional<ReadCharactersModelDirectory>& | NIL | A Read Characters model stored in a specific disk directory. If not set, model is chosen on the basis of inPretrainedModelType. | ||
inPretrainedModelType | const LocateTextPretrainedModel::Type | ||||
inDeviceType | const Optional<DeviceKind::Type>& | NIL | A type of a device selected for deploying and executing the model. If not set, device depending on version (CPU/GPU) of installed Deep Learning add-on is selected. | ||
inDeviceIndex | const int | 0 - | 0 | An index of a device selected for deploying and executing the model. | |
inExecutionHint | const Optional<LocateTextDeployHint>& | NIL | |||
outModelId | LocateTextModelId& | Identifier of the deployed model |