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
a84334cf
Commit
a84334cf
authored
Nov 01, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
brief soft cascade interface description
parent
2e8ed773
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
objdetect.hpp
modules/objdetect/include/opencv2/objdetect/objdetect.hpp
+16
-6
softcascade.cpp
modules/objdetect/src/softcascade.cpp
+1
-1
No files found.
modules/objdetect/include/opencv2/objdetect/objdetect.hpp
View file @
a84334cf
...
...
@@ -488,25 +488,31 @@ protected:
Ptr
<
MaskGenerator
>
maskGenerator
;
};
// ======================== soft cascade version ===================== //
/**
* \class SoftCascade
* \brief Implement soft (stageless) cascade.
*/
class
CV_EXPORTS
SoftCascade
{
public
:
/**
* \class Detection
* \brief Soft cascade detector result represintation.
*/
struct
CV_EXPORTS
Detection
{
cv
::
Rect
rect
;
float
confidence
;
int
kind
;
enum
{
PEDESTRIAN
=
1
};
//! Create detection from an object bounding rectangle and confidence. Only PEDESTRIAN type carrently supported.
//! Param r is a boundinf rectangle
//! param c is a confidence that object belongs to class k
//! Paral k is an object class
Detection
(
const
cv
::
Rect
&
r
,
const
float
c
,
int
k
=
PEDESTRIAN
)
:
rect
(
r
),
confidence
(
c
),
kind
(
k
)
{}
cv
::
Rect
rect
;
float
confidence
;
int
kind
;
};
//! An empty cascade will be created.
...
...
@@ -538,6 +544,10 @@ private:
int
scales
;
};
/**
* \class IntegralChannels
* \brief Create channel integrals for Soft Cascade detector.
*/
class
CV_EXPORTS
IntegralChannels
{
public
:
...
...
modules/objdetect/src/softcascade.cpp
View file @
a84334cf
...
...
@@ -55,7 +55,7 @@
#if defined WITH_DEBUG_OUT
# define dprintf(format, ...) \
do { printf(format, __VA_ARGS__); } while (0)
do { printf(format,
##
__VA_ARGS__); } while (0)
#else
# define dprintf(format, ...)
#endif
...
...
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