mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #23109 from seanm:misc-warnings
* Fixed clang -Wnewline-eof warnings * Fixed all trivial clang -Wextra-semi and -Wc++98-compat-extra-semi warnings * Removed trailing semi from various macros * Fixed various -Wunused-macros warnings * Fixed some trivial -Wdocumentation warnings * Fixed some -Wdocumentation-deprecated-sync warnings * Fixed incorrect indentation * Suppressed some clang warnings in 3rd party code * Fixed QRCodeEncoder::Params documentation. --------- Co-authored-by: Alexander Smorkalov <alexander.smorkalov@xperience.ai>
This commit is contained in:
@@ -730,19 +730,21 @@ public:
|
||||
ECI_UTF8 = 26
|
||||
};
|
||||
|
||||
/** @brief QR code encoder parameters.
|
||||
@param version The optional version of QR code (by default - maximum possible depending on
|
||||
the length of the string).
|
||||
@param correction_level The optional level of error correction (by default - the lowest).
|
||||
@param mode The optional encoding mode - Numeric, Alphanumeric, Byte, Kanji, ECI or Structured Append.
|
||||
@param structure_number The optional number of QR codes to generate in Structured Append mode.
|
||||
*/
|
||||
/** @brief QR code encoder parameters. */
|
||||
struct CV_EXPORTS_W_SIMPLE Params
|
||||
{
|
||||
CV_WRAP Params();
|
||||
|
||||
//! The optional version of QR code (by default - maximum possible depending on the length of the string).
|
||||
CV_PROP_RW int version;
|
||||
|
||||
//! The optional level of error correction (by default - the lowest).
|
||||
CV_PROP_RW CorrectionLevel correction_level;
|
||||
|
||||
//! The optional encoding mode - Numeric, Alphanumeric, Byte, Kanji, ECI or Structured Append.
|
||||
CV_PROP_RW EncodeMode mode;
|
||||
|
||||
//! The optional number of QR codes to generate in Structured Append mode.
|
||||
CV_PROP_RW int structure_number;
|
||||
};
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ struct CV_EXPORTS_W_SIMPLE DetectorParameters {
|
||||
useAruco3Detection = false;
|
||||
minSideLengthCanonicalImg = 32;
|
||||
minMarkerLengthRatioOriginalImg = 0.0;
|
||||
};
|
||||
}
|
||||
|
||||
/** @brief Read a new set of DetectorParameters from FileNode (use FileStorage.root()).
|
||||
*/
|
||||
|
||||
@@ -192,7 +192,7 @@ class CV_EXPORTS DetectionBasedTracker
|
||||
{
|
||||
lastPositions.push_back(rect);
|
||||
id=getNextId();
|
||||
};
|
||||
}
|
||||
|
||||
static int getNextId()
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ model download link: https://github.com/opencv/opencv_zoo/tree/master/models/fac
|
||||
class CV_EXPORTS_W FaceDetectorYN
|
||||
{
|
||||
public:
|
||||
virtual ~FaceDetectorYN() {};
|
||||
virtual ~FaceDetectorYN() {}
|
||||
|
||||
/** @brief Set the size for the network input, which overwrites the input size of creating model. Call this method when the size of input image does not match the input size when creating model
|
||||
*
|
||||
@@ -99,7 +99,7 @@ model download link: https://github.com/opencv/opencv_zoo/tree/master/models/fac
|
||||
class CV_EXPORTS_W FaceRecognizerSF
|
||||
{
|
||||
public:
|
||||
virtual ~FaceRecognizerSF() {};
|
||||
virtual ~FaceRecognizerSF() {}
|
||||
|
||||
/** @brief Definition of distance used for calculating the distance between two face features
|
||||
*/
|
||||
|
||||
@@ -692,7 +692,7 @@ static void _identifyCandidates(InputArray grey,
|
||||
|
||||
/**
|
||||
* Line fitting A * B = C :: Called from function refineCandidateLines
|
||||
* @param nContours, contour-container
|
||||
* @param nContours contour-container
|
||||
*/
|
||||
static Point3f _interpolate2Dline(const vector<Point2f>& nContours){
|
||||
CV_Assert(nContours.size() >= 2);
|
||||
@@ -748,10 +748,8 @@ static Point2f _getCrossPoint(Point3f nLine1, Point3f nLine2){
|
||||
|
||||
/**
|
||||
* Refine Corners using the contour vector :: Called from function detectMarkers
|
||||
* @param nContours, contour-container
|
||||
* @param nCorners, candidate Corners
|
||||
* @param camMatrix, cameraMatrix input 3x3 floating-point camera matrix
|
||||
* @param distCoeff, distCoeffs vector of distortion coefficient
|
||||
* @param nContours contour-container
|
||||
* @param nCorners candidate Corners
|
||||
*/
|
||||
static void _refineCandidateLines(vector<Point>& nContours, vector<Point2f>& nCorners){
|
||||
vector<Point2f> contour2f(nContours.begin(), nContours.end());
|
||||
|
||||
@@ -25,7 +25,7 @@ public:
|
||||
|
||||
net.setPreferableBackend(backend_id);
|
||||
net.setPreferableTarget(target_id);
|
||||
};
|
||||
}
|
||||
void alignCrop(InputArray _src_img, InputArray _face_mat, OutputArray _aligned_img) const override
|
||||
{
|
||||
Mat face_mat = _face_mat.getMat();
|
||||
@@ -39,13 +39,13 @@ public:
|
||||
}
|
||||
Mat warp_mat = getSimilarityTransformMatrix(src_point);
|
||||
warpAffine(_src_img, _aligned_img, warp_mat, Size(112, 112), INTER_LINEAR);
|
||||
};
|
||||
}
|
||||
void feature(InputArray _aligned_img, OutputArray _face_feature) override
|
||||
{
|
||||
Mat inputBolb = dnn::blobFromImage(_aligned_img, 1, Size(112, 112), Scalar(0, 0, 0), true, false);
|
||||
net.setInput(inputBolb);
|
||||
net.forward(_face_feature);
|
||||
};
|
||||
}
|
||||
double match(InputArray _face_feature1, InputArray _face_feature2, int dis_type) const override
|
||||
{
|
||||
Mat face_feature1 = _face_feature1.getMat(), face_feature2 = _face_feature2.getMat();
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
throw std::invalid_argument("invalid parameter " + std::to_string(dis_type));
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
Mat getSimilarityTransformMatrix(float src[5][2]) const {
|
||||
|
||||
@@ -703,7 +703,7 @@ bool QRCodeEncoderImpl::stringToBits(const std::string& input_info)
|
||||
default:
|
||||
return encodeAuto(input_info, payload);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
void QRCodeEncoderImpl::eccGenerate(vector<vector<uint8_t> > &data_blocks, vector<vector<uint8_t> > &ecc_blocks)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user