camshift.py sample

small cleaning
This commit is contained in:
Alexander Mordvintsev
2011-08-15 01:36:41 +00:00
parent a0d73eadd3
commit 5bc5d9a47e
2 changed files with 31 additions and 12 deletions

View File

@@ -28,9 +28,7 @@ if __name__ == '__main__':
print help_message
hog = cv2.HOGDescriptor()
data = cv2.HOGDescriptor_getDefaultPeopleDetector()
data = np.float64(data.ravel()) # BUG
hog.setSVMDetector( data )
hog.setSVMDetector( cv2.HOGDescriptor_getDefaultPeopleDetector() )
for fn in it.chain(*map(glob, sys.argv[1:])):
print fn, ' - ',