comparison scripts/process.py @ 1006:2cf861106d17

bug corrected
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sun, 03 Jun 2018 00:44:35 -0400
parents 666b38437d9a
children 192de96e5255
comparison
equal deleted inserted replaced
1005:666b38437d9a 1006:2cf861106d17
71 else: 71 else:
72 pool = Pool(args.nProcesses) 72 pool = Pool(args.nProcesses)
73 for vs in videoSequences: 73 for vs in videoSequences:
74 if not (parentDir/vs.getDatabaseFilename()).exists(): 74 if not (parentDir/vs.getDatabaseFilename()).exists():
75 if args.configFilename is None: 75 if args.configFilename is None:
76 configFilename = vs.cameraView.getTrackingConfigurationFilename() 76 configFilename = str(parentDir/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)) 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: