Commit e991db75 authored by berak's avatar berak

removed wildcards from fg/bg path in ICFDetector::train

parent b41783a9
......@@ -183,7 +183,7 @@ Train detector.
.. ocv:function:: void ICFDetector::train(const String& pos_path, const String& bg_path, ICFDetectorParams params = ICFDetectorParams())
:param pos_path: path to folder with images of objects
:param pos_path: path to folder with images of objects (wildcards like /my/path/*.png are allowed)
:param bg_path: path to folder with background images
:param params: parameters for detector training
......
......@@ -68,10 +68,10 @@ void ICFDetector::train(const String& pos_path,
ICFDetectorParams params)
{
vector<String> pos_filenames;
glob(pos_path + "/*.png", pos_filenames);
glob(pos_path, pos_filenames);
vector<String> bg_filenames;
glob(bg_path + "/*.jpg", bg_filenames);
glob(bg_path, bg_filenames);
model_n_rows_ = params.model_n_rows;
model_n_cols_ = params.model_n_cols;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment