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
c4188581
Commit
c4188581
authored
Dec 15, 2010
by
Kirill Kornyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug #762 fixed
parent
e7f491ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
createsamples.cpp
modules/haartraining/createsamples.cpp
+3
-0
cvhaartraining.cpp
modules/haartraining/cvhaartraining.cpp
+2
-1
objdetect.hpp
modules/objdetect/include/opencv2/objdetect/objdetect.hpp
+1
-2
cascadedetect.cpp
modules/objdetect/src/cascadedetect.cpp
+1
-1
No files found.
modules/haartraining/createsamples.cpp
View file @
c4188581
...
...
@@ -49,6 +49,7 @@
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <ctime>
using
namespace
std
;
...
...
@@ -76,6 +77,8 @@ int main( int argc, char* argv[] )
int
width
=
24
;
int
height
=
24
;
srand
(
time
(
0
));
if
(
argc
==
1
)
{
printf
(
"Usage: %s
\n
[-info <collection_file_name>]
\n
"
...
...
modules/haartraining/cvhaartraining.cpp
View file @
c4188581
...
...
@@ -1354,8 +1354,9 @@ void icvGetNextFromBackgroundData( CvBackgroundData* data,
// printf( "Open background image: %s\n", data->filename[data->last] );
//#endif /* CV_VERBOSE */
img
=
cvLoadImage
(
data
->
filename
[
data
->
last
++
],
0
)
;
data
->
last
=
rand
()
%
data
->
count
;
data
->
last
%=
data
->
count
;
img
=
cvLoadImage
(
data
->
filename
[
data
->
last
],
0
);
if
(
!
img
)
continue
;
data
->
round
+=
data
->
last
/
data
->
count
;
...
...
modules/objdetect/include/opencv2/objdetect/objdetect.hpp
View file @
c4188581
...
...
@@ -311,11 +311,10 @@ public:
Size
minSize
=
Size
(),
Size
maxSize
=
Size
()
);
bool
isOldFormatCascade
()
const
;
virtual
Size
getOriginalWindowSize
()
const
;
int
getFeatureType
()
const
;
bool
setImage
(
const
Mat
&
);
bool
setImage
(
const
Mat
&
);
protected
:
virtual
bool
detectSingleScale
(
const
Mat
&
image
,
int
stripCount
,
Size
processingRectSize
,
...
...
modules/objdetect/src/cascadedetect.cpp
View file @
c4188581
...
...
@@ -872,7 +872,7 @@ Size CascadeClassifier::getOriginalWindowSize() const
bool
CascadeClassifier
::
setImage
(
const
Mat
&
image
)
{
featureEvaluator
->
setImage
(
image
,
data
.
origWinSize
);
return
featureEvaluator
->
setImage
(
image
,
data
.
origWinSize
);
}
void
CascadeClassifier
::
detectMultiScale
(
const
Mat
&
image
,
vector
<
Rect
>&
objects
,
...
...
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