45class MMindInferEnginePrivate;
202 std::vector<MMindImage>& images);
205 MMindInferEnginePrivate* d_ptr;
StatusCode setInferDeviceType(const InferDeviceType type)
Sets the inference device type.
StatusCode moduleResultVisualization(const std::string &moduleName, std::vector< MMindImage > &images)
Draws results of a specific module onto the input images.
StatusCode create(const std::wstring &dlkpackPath)
Creates an inference engine for the specified model package.
StatusCode load()
Loads the model into memory and prepares it for inference.
StatusCode setBatchSize(const std::string &moduleName, const unsigned int batchSize)
Sets the batch size for a specific module.
~MMindInferEngine()
Destroys the MMindInferEngine object and releases resources.
StatusCode setRuntimeConfigs(const std::string &runtimeConfigs)
Sets runtime configurations (e.g., thresholds for unsupervised segmentation).
StatusCode infer(const std::vector< MMindImage > &images)
Performs inference on the input images.
void release()
Releases all resources held by the inference engine.
StatusCode setDeviceId(const unsigned int deviceId)
Sets the GPU device ID for inference.
MMindInferEngine()
Constructs a new MMindInferEngine object.
StatusCode setFloatPrecision(const std::string &moduleName, const PrecisionType floatPrecisionType)
Sets the float precision type for a specific module.
StatusCode resultVisualization(std::vector< MMindImage > &images)
Draws all module results onto the input images.
std::vector< std::string > moduleNames() const
Gets the list of all module names in the loaded model package.
StatusCode getModuleResult(const std::string &moduleName, std::vector< MMindResult > &results)
Gets inference results for a specific module.
#define MMIND_DL_SDK_CC_API
MBlobValue blobValueFromContour(const MContour &contour)
Computes region feature values (area, width, height, aspect ratio, etc.) for a contour.
mmind::base::StatusCode StatusCode
Represents a contour with hierarchical structure and associated blob features.
Represents the generic result data structure for algorithm modules.
std::vector< MRotatedBbox > bboxes
std::vector< MContour > contours