Exemple #1
0
    # extract bow histograms
    #
    if (args['action'] == 'bowhist') or (args['action'] == 'all'):
        
        print "\n=== extract BoW Histograms from directory {0} ===\n".format(args['dir'])

        dir = args['dir']
        
        if len(args['featdir']) > 0:
            dir = args['featdir']

        MatchboxLib.extractBoWHistograms(config,args['dir'], args['threads'], dir)

    # ===============================================================================
    # 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(dir)

        dir = args['dir']
        
        if len(args['featdir']) > 0:
            dir = args['featdir']
            
        #MatchboxLib.pyFindDuplicates(config, dir, args['csv'])
        MatchboxLib.pyFindDuplicates_SpatialVerification(config, dir, args['csv'])