35#include "common/Export.h"
92 const unsigned int deviceId);
116 const unsigned int moduleIdx);
128 const unsigned int imageNum);
139 const unsigned int moduleIdx,
141 unsigned int* resultNum);
152 unsigned int resultNum);
163 const unsigned int moduleIdx,
165 unsigned int* resultNum);
176 unsigned int resultNum);
187 const unsigned int moduleIdx,
189 unsigned int* resultNum);
200 unsigned int resultNum);
211 const unsigned int moduleIdx,
213 unsigned int* resultNum);
224 unsigned int resultNum);
238 const unsigned int moduleIdx,
239 const unsigned int imageNum);
251 const unsigned int imageNum);
FloatPrecisionType
This enumeration defines the floating-point format.
Definition dl_definition.h:87
BackendType
This enumeration defines the backend type.
Definition dl_definition.h:77
StatusCode
This enumeration defines the codes of status.
Definition dl_definition.h:43
MMIND_DL_SDK_EXPORT StatusCode saveImage(const MMindImage *image, const char *path)
Save the image to a specified directory.
MMIND_DL_SDK_EXPORT void releaseObjectAndInstanceResult(ObjectAndInsResult **results, unsigned int resultNum)
Release the memory of the object detection or instance segmentation result. *.
MMIND_DL_SDK_EXPORT StatusCode infer(const Engine *engine, const MMindImage *images, const unsigned int imageNum)
Make image inference using the model package inference engine.
MMIND_DL_SDK_EXPORT StatusCode resultVisualization(const Engine *engine, const MMindImage *images, const unsigned int imageNum)
Draw all the model results onto the images.
MMIND_DL_SDK_EXPORT void releaseDefectSegmentationResult(DefectAndEdgeResult **results, unsigned int resultNum)
Release the memory of the defect segmentation result.
MMIND_DL_SDK_EXPORT void releaseClassificationResult(ClassificationResult **results, unsigned int resultNum)
Release the memory of the classification result.
MMIND_DL_SDK_EXPORT StatusCode getDefectSegmentataionResult(const Engine *engine, const unsigned int moduleIdx, DefectAndEdgeResult **results, unsigned int *resultNum)
Get the defect segmentation result.
MMIND_DL_SDK_EXPORT void releasePackInferEngine(const Engine *engine)
Release the memory of the model package inference engine.
MMIND_DL_SDK_EXPORT StatusCode setBatchSizeAndFloatPrecision(const Engine *engine, const unsigned int batchSize, const FloatPrecisionType floatPrecision, const unsigned int moduleIdx)
Set the batch size and floating-point precision of the inference engine.
MMIND_DL_SDK_EXPORT StatusCode showImage(const MMindImage *image, const char *windowName)
Visualize an image.
MMIND_DL_SDK_EXPORT void releaseImage(const MMindImage *image)
Release the memory of the image.
MMIND_DL_SDK_EXPORT StatusCode moduleResultVisualization(const Engine *engine, const MMindImage *images, const unsigned int moduleIdx, const unsigned int imageNum)
Draw the model results of the specified index onto the images.
MMIND_DL_SDK_EXPORT StatusCode createImage(const char *imagePath, MMindImage *image)
Create an image from its path.
MMIND_DL_SDK_EXPORT StatusCode getObjectAndInstanceResult(const Engine *engine, const unsigned int moduleIdx, ObjectAndInsResult **results, unsigned int *resultNum)
Get the object detection or instance segmentation result.
MMIND_DL_SDK_EXPORT StatusCode getClassificationResult(const Engine *engine, const unsigned int moduleIdx, ClassificationResult **results, unsigned int *resultNum)
Get the classification result.
MMIND_DL_SDK_EXPORT void releaseFastPositioningResult(FastPositioningResult **results, unsigned int resultNum)
Release the memory of the fast positioning result.
MMIND_DL_SDK_EXPORT StatusCode getFastPositioningResult(const Engine *engine, const unsigned int moduleIdx, FastPositioningResult **results, unsigned int *resultNum)
Get the fast positioning result.
MMIND_DL_SDK_EXPORT StatusCode createPackInferEngine(Engine *engine, const char *packPath, const BackendType backend, const unsigned int deviceId)
Create an engine for model package inference.
This struct defines the classification result.
Definition dl_result.h:101
This struct defines the defect segmentation and edge detection result.
Definition dl_result.h:111
This struct defines Engine.
Definition dl_definition.h:118
This struct defines the fast positioning result.
Definition dl_result.h:131
This struct defines Image.
Definition dl_definition.h:106
This struct defines the object detection and instance segmentation result.
Definition dl_result.h:121