Mercurial > hg > nsaunier > traffic-intelligence
comparison python/moving.py @ 845:aa98e773ac91
minor
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 15 Jul 2016 11:35:27 -0400 |
| parents | 14e4ad7c7420 |
| children | 07fb949ff98f |
comparison
equal
deleted
inserted
replaced
| 844:5a68779d7777 | 845:aa98e773ac91 |
|---|---|
| 1563 images is a dictionary of images indexed by instant | 1563 images is a dictionary of images indexed by instant |
| 1564 With default parameters, the general (ped-bike-car) classifier will be used | 1564 With default parameters, the general (ped-bike-car) classifier will be used |
| 1565 | 1565 |
| 1566 Considered categories are the keys of speedProbabilities''' | 1566 Considered categories are the keys of speedProbabilities''' |
| 1567 if not hasattr(self, 'aggregatedSpeed') or not hasattr(self, 'userTypes'): | 1567 if not hasattr(self, 'aggregatedSpeed') or not hasattr(self, 'userTypes'): |
| 1568 print('Initilize the data structures for classification by HoG-SVM') | 1568 print('Initializing the data structures for classification by HoG-SVM') |
| 1569 self.initClassifyUserTypeHoGSVM(aggregationFunc, pedBikeCarSVM, bikeCarSVM, pedBikeSpeedTreshold, bikeCarSpeedThreshold, nInstantsIgnoredAtEnds) | 1569 self.initClassifyUserTypeHoGSVM(aggregationFunc, pedBikeCarSVM, bikeCarSVM, pedBikeSpeedTreshold, bikeCarSpeedThreshold, nInstantsIgnoredAtEnds) |
| 1570 | 1570 |
| 1571 if len(self.userTypes) != self.length() and images is not None: # if classification has not been done previously | 1571 if len(self.userTypes) != self.length() and images is not None: # if classification has not been done previously |
| 1572 for t in self.getTimeInterval(): | 1572 for t in self.getTimeInterval(): |
| 1573 if t not in self.userTypes: | 1573 if t not in self.userTypes: |
