Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.height = kwargs.get('height', 0)
self.path = kwargs.get('path', '')
self.transform = kwargs.get('transform', None)
self.annotation_styles = kwargs.get('annotation_styles', {})
self.colorspace = 'BGR'
if 'colorspace' in kwargs:
self.colorspace = kwargs['colorspace']
if self.colorspace not in ('BGR', 'RGB'):
raise Exception("Parameter colorspace must be either 'RGB' or 'BGR'")
self.max_repeats = 0
self.watchlist = WatchList()