Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
e991db75
Commit
e991db75
authored
Sep 08, 2014
by
berak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed wildcards from fg/bg path in ICFDetector::train
parent
b41783a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
integral_channel_features.rst
modules/xobjdetect/doc/integral_channel_features.rst
+1
-1
icfdetector.cpp
modules/xobjdetect/src/icfdetector.cpp
+2
-2
No files found.
modules/xobjdetect/doc/integral_channel_features.rst
View file @
e991db75
...
...
@@ -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
...
...
modules/xobjdetect/src/icfdetector.cpp
View file @
e991db75
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment