From 1613aa45bcb2bddda8543b85baa40ecced6be29c Mon Sep 17 00:00:00 2001 From: "marina.kolpakova" Date: Wed, 30 Jan 2013 10:54:58 +0400 Subject: [PATCH] fix python bindings --- modules/python/CMakeLists.txt | 1 + modules/softcascade/misc/sft.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/python/CMakeLists.txt b/modules/python/CMakeLists.txt index 4d07221..d36b6d8 100644 --- a/modules/python/CMakeLists.txt +++ b/modules/python/CMakeLists.txt @@ -34,6 +34,7 @@ set(opencv_hdrs "${OPENCV_MODULE_opencv_features2d_LOCATION}/include/opencv2/features2d/features2d.hpp" "${OPENCV_MODULE_opencv_calib3d_LOCATION}/include/opencv2/calib3d/calib3d.hpp" "${OPENCV_MODULE_opencv_objdetect_LOCATION}/include/opencv2/objdetect/objdetect.hpp" + "${OPENCV_MODULE_opencv_softcascade_LOCATION}/include/opencv2/softcascade/softcascade.hpp" "${OPENCV_MODULE_opencv_contrib_LOCATION}/include/opencv2/contrib/contrib.hpp") if(HAVE_opencv_nonfree) diff --git a/modules/softcascade/misc/sft.py b/modules/softcascade/misc/sft.py index 358c670..019044f 100644 --- a/modules/softcascade/misc/sft.py +++ b/modules/softcascade/misc/sft.py @@ -23,8 +23,8 @@ def convert2detections(rects, confs, crop_factor = 0.125): """ Create new instance of soft cascade.""" def cascade(min_scale, max_scale, nscales, f): - # where we use nms cv::SCascade::DOLLAR == 2 - c = cv2.SCascade(min_scale, max_scale, nscales, 2) + # where we use nms cv::SoftCascadeDetector::DOLLAR == 2 + c = cv2.SoftCascadeDetector(min_scale, max_scale, nscales, 2) xml = cv2.FileStorage(f, 0) dom = xml.getFirstTopLevelNode() assert c.load(dom) -- 2.7.4