diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index 3060d61fbf..cce5d27ac3 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -218,7 +218,7 @@ void HOGDescriptor::copyTo(HOGDescriptor& c) const c.histogramNormType = histogramNormType; c.L2HysThreshold = L2HysThreshold; c.gammaCorrection = gammaCorrection; - c.svmDetector = svmDetector; + c.setSVMDetector(svmDetector); c.nlevels = nlevels; c.signedGradient = signedGradient; }