1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

updated Python samples from trunk

This commit is contained in:
Vadim Pisarevsky
2011-08-16 18:31:43 +00:00
parent 280012472b
commit 8d6d592c0b
5 changed files with 146 additions and 827 deletions
+1 -4
View File
@@ -27,11 +27,8 @@ 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)
hog.setSVMDetector( cv2.HOGDescriptor_getDefaultPeopleDetector() )
for fn in it.chain(*map(glob, sys.argv[1:])):
print fn, ' - ',