32 #include <opencv2/opencv.hpp>
35 #include <opencv2/opencv.hpp>
42 #if defined GEOM_SHAPEREC_EXPORTS || defined GEOMShapeRec_EXPORTS
43 #define GEOM_SHAPEREC_EXPORT __declspec( dllexport )
45 #define GEOM_SHAPEREC_EXPORT __declspec( dllimport )
48 #define GEOM_SHAPEREC_EXPORT
107 void SetPath(
const std::string& );
108 void SetROI(
const QRect& );
111 std::vector<cv::Vec4i>
GetLines() {
return lines; };
117 std::string CroppImage();
#define GEOM_SHAPEREC_EXPORT
Definition: ShapeRec_FeatureDetector.hxx:48
Parameters for the contour detection.
Definition: ShapeRec_FeatureDetector.hxx:75
int ratio
Definition: ShapeRec_FeatureDetector.hxx:81
bool L2gradient
Definition: ShapeRec_FeatureDetector.hxx:82
int lowThreshold
Definition: ShapeRec_FeatureDetector.hxx:80
Parameters for the contour detection.
Definition: ShapeRec_FeatureDetector.hxx:86
int histType
Definition: ShapeRec_FeatureDetector.hxx:93
double threshold
Definition: ShapeRec_FeatureDetector.hxx:94
double maxThreshold
Definition: ShapeRec_FeatureDetector.hxx:95
int * histSize
Definition: ShapeRec_FeatureDetector.hxx:92
int smoothSize
Definition: ShapeRec_FeatureDetector.hxx:91
Parameters for the corners detection.
Definition: ShapeRec_FeatureDetector.hxx:62
int typeCriteria
Definition: ShapeRec_FeatureDetector.hxx:69
double epsilon
Definition: ShapeRec_FeatureDetector.hxx:71
double minDistance
Definition: ShapeRec_FeatureDetector.hxx:68
int maxIter
Definition: ShapeRec_FeatureDetector.hxx:70
double qualityLevel
Definition: ShapeRec_FeatureDetector.hxx:67
Definition: ShapeRec_FeatureDetector.hxx:99
int cornerCount
Definition: ShapeRec_FeatureDetector.hxx:127
int GetImgWidth()
Definition: ShapeRec_FeatureDetector.hxx:115
int GetImgHeight()
Definition: ShapeRec_FeatureDetector.hxx:114
std::vector< cv::Vec4i > GetLines()
Definition: ShapeRec_FeatureDetector.hxx:111
std::vector< std::vector< cv::Point > > CvContoursArray
Definition: ShapeRec_FeatureDetector.hxx:103
int GetCornerCount()
Definition: ShapeRec_FeatureDetector.hxx:113
CvRect rect
Definition: ShapeRec_FeatureDetector.hxx:134
std::vector< cv::Vec4i > lines
Definition: ShapeRec_FeatureDetector.hxx:131
CvPoint2D32f * GetCorners()
Definition: ShapeRec_FeatureDetector.hxx:109
std::vector< cv::Vec4i > GetContoursHierarchy()
Definition: ShapeRec_FeatureDetector.hxx:112
std::vector< cv::Vec4i > hierarchy
Definition: ShapeRec_FeatureDetector.hxx:130
std::string imagePath
Definition: ShapeRec_FeatureDetector.hxx:124
int imgWidth
Definition: ShapeRec_FeatureDetector.hxx:133
int imgHeight
Definition: ShapeRec_FeatureDetector.hxx:132
CvContoursArray GetContours()
Definition: ShapeRec_FeatureDetector.hxx:110
CvContoursArray contours
Definition: ShapeRec_FeatureDetector.hxx:129
CvPoint2D32f * corners
Definition: ShapeRec_FeatureDetector.hxx:126
std::vector< cv::Point > CvContour
Definition: ShapeRec_FeatureDetector.hxx:102
Parameters for the contour/corners detection.
Definition: ShapeRec_FeatureDetector.hxx:52
int findContoursMethod
Definition: ShapeRec_FeatureDetector.hxx:58
int kernelSize
Definition: ShapeRec_FeatureDetector.hxx:57