Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
0cbe2f2e
Commit
0cbe2f2e
authored
Feb 21, 2015
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3708 from StevenPuttemans:fix_traincascade_load_message
parents
3df13ff5
f5a14e55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
cascadeclassifier.cpp
apps/traincascade/cascadeclassifier.cpp
+7
-2
No files found.
apps/traincascade/cascadeclassifier.cpp
View file @
0cbe2f2e
...
...
@@ -169,6 +169,13 @@ bool CvCascadeClassifier::train( const string _cascadeDirName,
featureEvaluator
=
CvFeatureEvaluator
::
create
(
cascadeParams
.
featureType
);
featureEvaluator
->
init
(
(
CvFeatureParams
*
)
featureParams
,
numPos
+
numNeg
,
cascadeParams
.
winSize
);
stageClassifiers
.
reserve
(
numStages
);
}
else
{
// Make sure that if model parameters are preloaded, that people are aware of this,
// even when passing other parameters to the training command
cout
<<
"---------------------------------------------------------------------------------"
<<
endl
;
cout
<<
"Training parameters are pre-loaded from the parameter file in data folder!"
<<
endl
;
cout
<<
"Please empty this folder if you want to use a NEW set of training parameters."
<<
endl
;
cout
<<
"---------------------------------------------------------------------------------"
<<
endl
;
}
cout
<<
"PARAMETERS:"
<<
endl
;
cout
<<
"cascadeDirName: "
<<
_cascadeDirName
<<
endl
;
...
...
@@ -509,8 +516,6 @@ void CvCascadeClassifier::save( const string filename, bool baseFormat )
bool
CvCascadeClassifier
::
load
(
const
string
cascadeDirName
)
{
cout
<<
"Training parameters are loaded from the parameter file in data folder!"
<<
endl
;
cout
<<
"Please empty the data folder if you want to use your own set of parameters."
<<
endl
;
FileStorage
fs
(
cascadeDirName
+
CC_PARAMS_FILENAME
,
FileStorage
::
READ
);
if
(
!
fs
.
isOpened
()
)
return
false
;
...
...
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