Permalink
Browse files

Bug Fix

  • Loading branch information...
1 parent d6bc3af commit a141cd34aed871567b05e82fcc87c68dab51e67c slychief committed Jul 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pc-qa-matchbox/Python/MatchboxLib.py
@@ -198,7 +198,7 @@ def extractFeatures(config, collectiondir, sdk, numThreads = 1, clahe = 1, featd
if re.search(SUPPORTED_IMAGE_TYPES, infile, re.IGNORECASE) == None:
continue
- job_desc = [config['BIN_EXTRACTFEATURES'], "-o", "SIFTComparison", '--sdk', '{0}'.format(sdk), '--clahe', '{0}'.format(clahe), '--precluster', '{0}'.format(precluster)]
+ job_desc = [config['BIN_EXTRACTFEATURES'], "-o", "SIFTComparison", '--sdk', str(sdk), '--clahe', str(clahe), '--precluster', str(precluster)]
if len(featdir) > 0:
job_desc.append("-d")
@@ -353,7 +353,7 @@ def findDuplicates(config, filesA, filesB, limit = 0, numThreads = 1):
def calculateBoW(config, featdir, filter, clusterCenters = 0, bowsize = 1000):
- call([config['BIN_TRAIN'], "-b", bowsize, "--precluster", '{0}'.format(clusterCenters), "--filter", filter, "-o", "{0}/{1}".format(featdir,BOW_FILE_NAME), featdir])
+ call([config['BIN_TRAIN'], "-b", str(bowsize), "--precluster", '{0}'.format(clusterCenters), "--filter", filter, "-o", "{0}/{1}".format(featdir,BOW_FILE_NAME), featdir])
def clearDirectory(path):

0 comments on commit a141cd3

Please sign in to comment.