diff --git a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp index 1e7ab4e966..90951919a9 100644 --- a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp +++ b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp @@ -688,7 +688,7 @@ struct Feature int y; ///< y offset int label; ///< Quantization - Feature() {} + Feature() : x(0), y(0), label(0) {} Feature(int x, int y, int label) : x(x), y(y), label(label) {} void read(const FileNode& fn);