Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slychief committed Jul 18, 2012
1 parent d6bc3af commit a141cd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pc-qa-matchbox/Python/MatchboxLib.py
Expand Up @@ -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")
Expand Down Expand Up @@ -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):

Expand Down

0 comments on commit a141cd3

Please sign in to comment.