Mech-DLK SDK C++ API 2.0.2
C++ API reference documentation for secondary development with Mech-DLK
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
MMIndResult.h
Go to the documentation of this file.
1/*******************************************************************************
2 *BSD 3-Clause License
3 *
4 *Copyright (c) 2016-2023, Mech-Mind Robotics
5 *All rights reserved.
6 *
7 *Redistribution and use in source and binary forms, with or without
8 *modification, are permitted provided that the following conditions are met:
9 *
10 *1. Redistributions of source code must retain the above copyright notice, this
11 * list of conditions and the following disclaimer.
12 *
13 *2. Redistributions in binary form must reproduce the above copyright notice,
14 * this list of conditions and the following disclaimer in the documentation
15 * and/or other materials provided with the distribution.
16 *
17 *3. Neither the name of the copyright holder nor the names of its
18 * contributors may be used to endorse or promote products derived from
19 * this software without specific prior written permission.
20 *
21 *THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 *AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 *IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 *DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25 *FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 *DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 *SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 *CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 *OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 *OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 ******************************************************************************/
32
33#pragma once
34
35#include <string>
36#include <vector>
37#include "MMindImage.h"
38
39namespace mmind::dl {
40
45{
46 int x;
47 int y;
48};
49
54{
55 float startX;
56 float startY;
57 float endX;
58 float endY;
59};
60
65{
66 float upperLeftX;
67 float upperLeftY;
70 float confidence;
71 int label;
72};
73
78{
79 size_t contourNum = 0;
80 std::vector<std::vector<MMindPoint>> contourPoints;
81};
82
87{
90};
91
96{
97 std::vector<int> labels;
98 std::vector<float> confidences;
99};
100
105{
106 std::vector<MMindBbox> bboxes;
108};
109
114{
115 std::vector<double> angle;
116 std::vector<MMindKeyPoints> keyPoints;
117};
122{
123 std::vector<MMIndClassificationResult>
125 std::vector<MMIndDefectAndEdgeResult>
127 std::vector<MMindObjectAndInsResult>
129 std::vector<MMindFastPositioningResult>
131};
132
133} // namespace mmind::dl
Definition common.h:34
Defines the classification result.
Definition MMIndResult.h:96
std::vector< float > confidences
Confidence of the corresponding category.
Definition MMIndResult.h:98
std::vector< int > labels
Category label.
Definition MMIndResult.h:97
Defines the defect segmentation and edge detection results.
Definition MMIndResult.h:87
MMindImage confidenceMat
Confidence map of the segmentation result.
Definition MMIndResult.h:89
MMindContour mask
Contour of the segmentation result.
Definition MMIndResult.h:88
Defines the information on the bounding box.
Definition MMIndResult.h:65
float upperLeftY
Y-coordinate of the upper-left corner.
Definition MMIndResult.h:67
int label
Label of the bounding box.
Definition MMIndResult.h:71
float lowerRightY
Y-coordinate of the lower-right corner.
Definition MMIndResult.h:69
float confidence
Confidence of the bounding box.
Definition MMIndResult.h:70
float upperLeftX
X-coordinate of the upper-left corner.
Definition MMIndResult.h:66
float lowerRightX
X-coordinate of the lower-right corner.
Definition MMIndResult.h:68
Defines the information on the mask contour.
Definition MMIndResult.h:78
size_t contourNum
The number of contours.
Definition MMIndResult.h:79
std::vector< std::vector< MMindPoint > > contourPoints
Contour points.
Definition MMIndResult.h:80
Defines the fast positioning result.
Definition MMIndResult.h:114
std::vector< MMindKeyPoints > keyPoints
Result of keypoint detection.
Definition MMIndResult.h:116
std::vector< double > angle
Result of the rotation angle.
Definition MMIndResult.h:115
Definition MMindImage.h:40
Defines the information on fast positioning keypoints.
Definition MMIndResult.h:54
float startX
X-coordinate of the starting point for fast positioning.
Definition MMIndResult.h:55
float startY
Y-coordinate of the starting point for fast positioning.
Definition MMIndResult.h:56
float endY
Y-coordinate of the end point for fast positioning.
Definition MMIndResult.h:58
float endX
X-coordinate of the end point for fast positioning.
Definition MMIndResult.h:57
Defines the object detection and instance segmentation result.
Definition MMIndResult.h:105
MMindContour insMask
Contour of the segmentation result.
Definition MMIndResult.h:107
std::vector< MMindBbox > bboxes
Result of the bounding box.
Definition MMIndResult.h:106
Defines the information on contour points.
Definition MMIndResult.h:45
int x
The x-coordinate of the contour point.
Definition MMIndResult.h:46
int y
The y-coordinate of the contour point.
Definition MMIndResult.h:47
Defines storing inference results.
Definition MMIndResult.h:122
std::vector< MMIndDefectAndEdgeResult > defectAndEdgeResults
List of defect segmentation results.
Definition MMIndResult.h:126
std::vector< MMindFastPositioningResult > fastPositioningResults
List of fast positioning results.
Definition MMIndResult.h:130
std::vector< MMindObjectAndInsResult > objecAndInsResults
List of object detection or instance segmentation results.
Definition MMIndResult.h:128
std::vector< MMIndClassificationResult > classificationResults
List of classification results.
Definition MMIndResult.h:124