# extract bow histograms # if (args['action'] == 'bowhist') or (args['action'] == 'all'): print "\n=== extract BoW Histograms from directory {0} ===\n".format(args['dir']) feature_directory = args['dir'] if len(args['featdir']) > 0: feature_directory = args['featdir'] MatchboxLib.extractBoWHistograms(config, args['dir'], args['threads'], feature_directory, args['binary']) # =============================================================================== # action: compare # =============================================================================== # # compare bow histograms and display duplicates # if (args['action'] == 'compare') or (args['action'] == 'all'): print "\n=== compare images from directory {0} ===\n".format(args['dir']) feature_directory = args['dir'] if len(args['featdir']) > 0: feature_directory = args['featdir'] # MatchboxLib.pyFindDuplicates(config, dir, args['csv']) MatchboxLib.pyFindDuplicates_SpatialVerification_fast(config, feature_directory, args['csv'], args['threads'], args['binary'], args['benchmark'])
# =============================================================================== # action: bowhist # =============================================================================== # # extract bow histograms # if (args['action'] == 'bowhist') or (args['action'] == 'all'): print "\n=== extract BoW Histograms from directory {0} ===\n".format( collection_directory) MatchboxLib.extractBoWHistograms(config, collection_directory, args['threads'], feature_directory, args['binary']) # =============================================================================== # action: compare # =============================================================================== # # compare bow histograms and display duplicates # if (args['action'] == 'compare') or (args['action'] == 'all'): print "\n=== compare images from directory {0} ===\n".format( args['dir']) MatchboxLib.pyFindDuplicates_SpatialVerification_fast( config, feature_directory, args['threads'], args['binary'], args['verbose'])