Mercurial > hg > nsaunier > traffic-intelligence
comparison python/cvutils.py @ 235:584613399513
added script and functions to remove object tables
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 05 Jul 2012 23:32:14 -0400 |
| parents | ab1a11176d7b |
| children | eb4525853030 |
comparison
equal
deleted
inserted
replaced
| 234:2d34060db2e9 | 235:584613399513 |
|---|---|
| 136 key = -1 | 136 key = -1 |
| 137 ret = True | 137 ret = True |
| 138 frameNum = firstFrameNum | 138 frameNum = firstFrameNum |
| 139 capture.set(cv2.cv.CV_CAP_PROP_POS_FRAMES, firstFrameNum) | 139 capture.set(cv2.cv.CV_CAP_PROP_POS_FRAMES, firstFrameNum) |
| 140 while ret and key!= 113: # 'q' | 140 while ret and key!= 113: # 'q' |
| 141 print('capture') | |
| 142 ret, img = capture.read() | 141 ret, img = capture.read() |
| 143 if ret: | 142 if ret: |
| 144 print('frame {0}'.format(frameNum)) | 143 print('frame {0}'.format(frameNum)) |
| 145 for obj in objects: | 144 for obj in objects: |
| 146 if obj.existsAtInstant(frameNum): | 145 if obj.existsAtInstant(frameNum): |
