def transform(self): pass def load(self): pass if __name__ == '__main__': args = Arguments(description='a script to upload images to tineye labs' 'and scrape extracted color information. ' 'You can pass a director name. ' 'If no director name ' 'is passed, the script defaults to all directors.') args.add_argument( '--director', help='a single director name', ) director = args.get('--director', None) if not director: directors = ['christopher_nolan', 'coen_brothers', 'david_lynch', 'francis_ford_coppola', 'spike_jonze', 'wes_anderson',] else: directors = [director] image_path = '/Users/marswilliams/wesandersone/images/'
def load(self): pass if __name__ == '__main__': args = Arguments(description='a script to extract color information from ' 'film stills and create a color cube to determine ' 'the dominant colors. ' 'You can pass a director name. ' 'If no director name ' 'is passed, the script defaults to all directors.') args.add_argument( '--director', help='a single director name', ) director = args.get('--director', None) directors = list() if not director: directors = [ 'christopher_nolan', 'coen_brothers', 'david_lynch', 'francis_ford_coppola', 'spike_jonze', 'wes_anderson', ] else:
pass def load(self): pass if __name__ == '__main__': args = Arguments(description='a script to extract color information ' 'from film stills and determine dominant ' 'colors with k-means clustering. ' 'You can pass a director name. ' 'If no director name ' 'is passed, the script defaults to all directors.') args.add_argument( '--director', help='a single director name', ) args.add_argument( '--num_clusters', help='an integer value that ' 'represents the number of clusters', type=int ) director = args.get('--director', None) num_clusters = args.get('--num_clusters', 15) if not director: directors = ['christopher_nolan', 'coen_brothers', 'david_lynch',