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
edff6741
Commit
edff6741
authored
Nov 16, 2010
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added default detector for winSize(64,128) for hog on gpu
parent
be54f123
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
system.cpp
modules/core/src/system.cpp
+2
-2
gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp
+1
-0
hog.cpp
modules/gpu/src/hog.cpp
+6
-0
hog.cpp
tests/gpu/src/hog.cpp
+2
-0
No files found.
modules/core/src/system.cpp
View file @
edff6741
...
...
@@ -528,8 +528,8 @@ CV_IMPL const char* cvErrorStr( int status )
case
CV_StsBadMemBlock
:
return
"Memory block has been corrupted"
;
case
CV_StsAssert
:
return
"Assertion failed"
;
case
CV_GpuNotSupported
:
return
"No GPU support"
;
case
CV_GpuApiCallError
:
return
"G
PU API error
"
;
case
CV_GpuNppCallError
:
return
"N
PP API error
"
;
case
CV_GpuApiCallError
:
return
"G
pu Api call
"
;
case
CV_GpuNppCallError
:
return
"N
pp Api call
"
;
};
sprintf
(
buf
,
"Unknown %s code %d"
,
status
>=
0
?
"status"
:
"error"
,
status
);
...
...
modules/gpu/include/opencv2/gpu/gpu.hpp
View file @
edff6741
...
...
@@ -995,6 +995,7 @@ namespace cv
double
getWinSigma
()
const
;
static
vector
<
float
>
getDefaultPeopleDetector
();
static
vector
<
float
>
getDefaultPeopleDetector_64x128
();
void
setSVMDetector
(
const
vector
<
float
>&
detector
);
bool
checkDetectorSize
()
const
;
...
...
modules/gpu/src/hog.cpp
View file @
edff6741
...
...
@@ -56,6 +56,7 @@ void cv::gpu::HOGDescriptor::detectMultiScale(const GpuMat&, vector<Rect>&, doub
int
cv
::
gpu
::
HOGDescriptor
::
numPartsWithin
(
int
,
int
,
int
)
{
throw_nogpu
();
return
0
;
}
cv
::
Size
cv
::
gpu
::
HOGDescriptor
::
numPartsWithin
(
cv
::
Size
,
cv
::
Size
,
cv
::
Size
)
{
throw_nogpu
();
return
cv
::
Size
();
}
std
::
vector
<
float
>
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector
()
{
throw_nogpu
();
return
std
::
vector
<
float
>
();
}
std
::
vector
<
float
>
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector_64x128
()
{
throw_nogpu
();
return
std
::
vector
<
float
>
();
}
#else
...
...
@@ -309,6 +310,11 @@ cv::Size cv::gpu::HOGDescriptor::numPartsWithin(cv::Size size, cv::Size part_siz
}
std
::
vector
<
float
>
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector
()
{
return
getDefaultPeopleDetector_64x128
();
}
std
::
vector
<
float
>
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector_64x128
()
{
static
const
float
detector
[]
=
{
0.05359386
f
,
-
0.14721455
f
,
-
0.05532170
f
,
0.05077307
f
,
...
...
tests/gpu/src/hog.cpp
View file @
edff6741
...
...
@@ -109,6 +109,8 @@ struct CV_GpuHogTest : public CvTest
cv
::
gpu
::
HOGDescriptor
hog
;
hog
.
setSVMDetector
(
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector
());
//cpu detector may be updated soon
//hog.setSVMDetector(cv::HOGDescriptor::getDefaultPeopleDetector());
std
::
vector
<
cv
::
Point
>
locations
;
...
...
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