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:
@@ -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, ' - ',
|
||||
|
||||
Reference in New Issue
Block a user