Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/process.py @ 1005:666b38437d9a
bug corrected
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Sun, 03 Jun 2018 00:42:13 -0400 |
| parents | 75601be6019f |
| children | 2cf861106d17 |
comparison
equal
deleted
inserted
replaced
| 1004:75601be6019f | 1005:666b38437d9a |
|---|---|
| 75 if args.configFilename is None: | 75 if args.configFilename is None: |
| 76 configFilename = vs.cameraView.getTrackingConfigurationFilename() | 76 configFilename = vs.cameraView.getTrackingConfigurationFilename() |
| 77 else: | 77 else: |
| 78 configFilename = args.configFilename | 78 configFilename = args.configFilename |
| 79 if vs.cameraView.cameraType is None: | 79 if vs.cameraView.cameraType is None: |
| 80 pool.apply_async(cvutils.tracking, args = (configFilename, args.process == 'object', str(parentDir.absolute()/vs.getVideoSequenceFilename()), str(parentDir.absolute()/vs.getDatabaseFilename()), str(parentDir.absolute()/vs.cameraView.getHomographyFilename()), str(parentDir.absolute()/vs.cameraView.getMaskFilename()), False, None, None, True)) | 80 pool.apply_async(cvutils.tracking, args = (configFilename, args.process == 'object', str(parentDir.absolute()/vs.getVideoSequenceFilename()), str(parentDir.absolute()/vs.getDatabaseFilename()), str(parentDir.absolute()/vs.cameraView.getHomographyFilename()), str(parentDir.absolute()/vs.cameraView.getMaskFilename()), False, None, None)) |
| 81 else: | 81 else: |
| 82 pool.apply_async(cvutils.tracking, args = (configFilename, args.process == 'object', str(parentDir.absolute()/vs.getVideoSequenceFilename()), str(parentDir.absolute()/vs.getDatabaseFilename()), str(parentDir.absolute()/vs.cameraView.getHomographyFilename()), str(parentDir.absolute()/vs.cameraView.getMaskFilename()), True, vs.cameraView.cameraType.intrinsicCameraMatrix, vs.cameraView.cameraType.distortionCoefficients, True)) | 82 pool.apply_async(cvutils.tracking, args = (configFilename, args.process == 'object', str(parentDir.absolute()/vs.getVideoSequenceFilename()), str(parentDir.absolute()/vs.getDatabaseFilename()), str(parentDir.absolute()/vs.cameraView.getHomographyFilename()), str(parentDir.absolute()/vs.cameraView.getMaskFilename()), True, vs.cameraView.cameraType.intrinsicCameraMatrix, vs.cameraView.cameraType.distortionCoefficients)) |
| 83 else: | 83 else: |
| 84 print('SQLite already exists: {}'.format(parentDir/vs.getDatabaseFilename())) | 84 print('SQLite already exists: {}'.format(parentDir/vs.getDatabaseFilename())) |
| 85 pool.close() | 85 pool.close() |
| 86 pool.join() | 86 pool.join() |
| 87 | 87 |
