File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
modules/wechat_qrcode/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ class WeChatQRCode::Impl {
35
35
* @param points succussfully decoded qrcode with bounding box points.
36
36
* @return vector<string>
37
37
*/
38
- std::vector<std::string> decode (const Mat& img, std::vector<Mat>& candidate_points,
38
+ std::vector<std::string> decode (const Mat& img,
39
+ const std::vector<Mat>& candidate_points,
39
40
std::vector<Mat>& points);
40
41
int applyDetector (const Mat& img, std::vector<Mat>& points);
41
42
Mat cropObj (const Mat& img, const Mat& point, Align& aligner);
@@ -123,13 +124,14 @@ float WeChatQRCode::getScaleFactor() {
123
124
return p->scaleFactor ;
124
125
};
125
126
126
- vector<string> WeChatQRCode::Impl::decode (const Mat& img, vector<Mat>& candidate_points,
127
+ vector<string> WeChatQRCode::Impl::decode (const Mat& img,
128
+ const vector<Mat>& candidate_points,
127
129
vector<Mat>& points) {
128
130
if (candidate_points.size () == 0 ) {
129
131
return vector<string>();
130
132
}
131
133
vector<string> decode_results;
132
- for (auto & point : candidate_points) {
134
+ for (const auto & point : candidate_points) {
133
135
Mat cropped_img;
134
136
Align aligner;
135
137
if (use_nn_detector_) {
You can’t perform that action at this time.
0 commit comments