Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 904:8f60ecfc2f06
work in progress, almost ready
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 22 Jun 2017 18:08:46 -0400 |
parents | 1fc901d983ed |
children | 3a06007a4bb7 |
line wrap: on
line diff
--- a/python/moving.py Thu Jun 22 17:02:03 2017 -0400 +++ b/python/moving.py Thu Jun 22 18:08:46 2017 -0400 @@ -1583,7 +1583,7 @@ with an added px or py for width and height (around the box)) computes HOG on this cropped image (with parameters rescaleSize, orientations, pixelsPerCell, cellsPerBlock) and applies the SVM model on it''' - croppedImg, yCropMin, yCropMax, xCropMin, xCropMax = cvutils.imageBox(img, self, instant, homography, width, height, px, py, minNPixels) + croppedImg = cvutils.imageBox(img, self, instant, homography, width, height, px, py, minNPixels) if croppedImg is not None and len(croppedImg) > 0: hog = cvutils.HOG(croppedImg, rescaleSize, orientations, pixelsPerCell, cellsPerBlock, blockNorm, visualize=False, normalize=False) self.userTypes[instant] = int(self.appearanceClassifier.predict(hog))