DocumentLibrary.loadModelBuffer Method¶
Module: DocumentLibrary
Definition¶
Loads a model into memory from the specified buffer.
@staticmethod
load_model_buffer(model_buffer: bytearray, document_model: DocumentModel, processing_unit: ProcessingUnit) -> None
Parameters
model_bufferbytearrayin A buffer containing the AI model to be loaded.document_modelDocumentModelin Doc model to load.processing_unitProcessingUnitin The processing unit to use for the model.
Exceptions
An error has occurred during Document Library execution.
static void loadModelBuffer(Uint8List? modelBuffer, DocumentModel documentModel, ProcessingUnit processingUnit)
Parameters
modelBufferUint8Listin A buffer containing the AI model to be loaded.documentModelDocumentModelin Doc model to load.processingUnitProcessingUnitin The processing unit to use for the model.
Exceptions
An error has occurred during Document Library execution.
public static void LoadModelBuffer(byte[] modelBuffer, DocumentModel documentModel, ProcessingUnit processingUnit)
Parameters
modelBufferbyte[]in A buffer containing the AI model to be loaded.documentModelDocumentModelin Doc model to load.processingUnitProcessingUnitin The processing unit to use for the model.
Exceptions
An error has occurred during Document Library execution.
public static void loadModelBuffer(byte[] modelBuffer, DocumentModel documentModel, ProcessingUnit processingUnit) throws DocumentException
Parameters
modelBufferbyte[]in A buffer containing the AI model to be loaded.documentModelDocumentModelin Doc model to load.processingUnitProcessingUnitin The processing unit to use for the model.
Exceptions
An error has occurred during Document Library execution.
public static func loadModelBuffer(modelBuffer: [UInt8], documentModel: DocumentModel, processingUnit: ProcessingUnit) throws
Parameters
modelBuffer[UInt8]in A buffer containing the AI model to be loaded.documentModelDocumentModelin Doc model to load.processingUnitProcessingUnitin The processing unit to use for the model.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentLibrary_LoadModelBuffer (
unsigned char * modelBuffer,
int modelBufferSize,
id3DocumentModel eDocumentModel,
id3DocumentProcessingUnit eProcessingUnit)
Parameters
modelBufferunsigned char *in A buffer containing the AI model to be loaded.modelBufferSizeintin Size of the ‘modelBuffer’ buffer.eDocumentModelid3DocumentModelin Doc model to load.eProcessingUnitid3DocumentProcessingUnitin The processing unit to use for the model.
Returns