35#include "common/Export.h"
92 const unsigned int deviceId);
116 const unsigned int moduleIdx);
128 const float nonDefectThreshold,
129 const unsigned int moduleIdx);
141 const unsigned int imageNum);
152 const unsigned int moduleIdx,
154 unsigned int* resultNum);
165 unsigned int resultNum);
176 const unsigned int moduleIdx,
178 unsigned int* resultNum);
189 unsigned int resultNum);
200 const unsigned int moduleIdx,
202 unsigned int* resultNum);
213 unsigned int resultNum);
224 const unsigned int moduleIdx,
226 unsigned int* resultNum);
237 unsigned int resultNum);
248 const unsigned int moduleIdx,
250 unsigned int* resultNum);
261 unsigned int resultNum);
272 const unsigned int moduleIdx,
274 unsigned int* resultNum);
285 unsigned int resultNum);
320 const unsigned int moduleIdx,
321 const unsigned int imageNum);
333 const unsigned int imageNum);
FloatPrecisionType
This enumeration defines the floating-point format.
Definition dl_definition.h:88
BackendType
This enumeration defines the backend type.
Definition dl_definition.h:79
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 getUnsupSegResult(const Engine *engine, const unsigned int moduleIdx, UnsupSegResult **results, unsigned int *resultNum)
Get the unsupervised segmentation result.
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 void releaseTextDetectionResult(TextDetectionResult **results, unsigned int resultNum)
Release the memory of the text detection result.
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 getTextDetectionResult(const Engine *engine, const unsigned int moduleIdx, TextDetectionResult **results, unsigned int *resultNum)
Get the text detection result.
MMIND_DL_SDK_EXPORT StatusCode createImage(const char *imagePath, MMindImage *image)
Create an image from its path.
MMIND_DL_SDK_EXPORT StatusCode setUnsupSegParam(const Engine *engine, const float defectThreshold, const float nonDefectThreshold, const unsigned int moduleIdx)
Set the defect threshold and non-defect threshold for the unsupervised segmentation.
MMIND_DL_SDK_EXPORT void releaseTextRecognitionResult(TextRecognitionResult **results, unsigned int resultNum)
Release the memory of the text recognition result.
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 getTextRecognitionResult(const Engine *engine, const unsigned int moduleIdx, TextRecognitionResult **results, unsigned int *resultNum)
Get the text recognition 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.
MMIND_DL_SDK_EXPORT void releaseUnsupSegResult(UnsupSegResult **results, unsigned int resultNum)
Release the memory of the unsupervised segmentation result.
This struct defines the classification result.
Definition dl_result.h:96
This struct defines the defect segmentation and edge detection result.
Definition dl_result.h:106
This struct defines Engine.
Definition dl_definition.h:134
This struct defines the fast positioning result.
Definition dl_result.h:126
This struct defines Image.
Definition dl_definition.h:122
This struct defines the object detection and instance segmentation result.
Definition dl_result.h:116
This struct defines the text detection result.
Definition dl_result.h:147
This struct defines the text recognition result.
Definition dl_result.h:136
This struct defines the unsupervised segmentation result.
Definition dl_result.h:157