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
8c06a275
Commit
8c06a275
authored
Aug 13, 2011
by
Alexander Mordvintsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use default HOG people detector
minor cleaning
parent
431daf59
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
browse.py
samples/python2/browse.py
+1
-1
people_hog.txt
samples/python2/people_hog.txt
+0
-0
peopledetect.py
samples/python2/peopledetect.py
+3
-4
No files found.
samples/python2/browse.py
View file @
8c06a275
...
...
@@ -34,5 +34,5 @@ def onmouse(event, x, y, flags, param):
cv2
.
imshow
(
'zoom'
,
zoom
)
cv2
.
imshow
(
'preview'
,
small
)
cv2
.
setMouseCallback
(
'preview'
,
onmouse
,
None
)
cv2
.
setMouseCallback
(
'preview'
,
onmouse
)
cv2
.
waitKey
()
samples/python2/people_hog.txt
deleted
100644 → 0
View file @
431daf59
This diff is collapsed.
Click to expand it.
samples/python2/peopledetect.py
View file @
8c06a275
...
...
@@ -27,11 +27,10 @@ if __name__ == '__main__':
print
help_message
# TODO should use built-in detector data
text
=
""
.
join
(
open
(
'people_hog.txt'
)
.
readlines
()[
1
:])
data
=
np
.
fromstring
(
text
,
sep
=
','
)
hog
=
cv2
.
HOGDescriptor
()
hog
.
setSVMDetector
(
data
)
data
=
cv2
.
HOGDescriptor_getDefaultPeopleDetector
()
data
=
np
.
float64
(
data
.
ravel
())
# BUG
hog
.
setSVMDetector
(
data
)
for
fn
in
it
.
chain
(
*
map
(
glob
,
sys
.
argv
[
1
:])):
print
fn
,
' - '
,
...
...
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