def __init__(self, device, img_width, img_height):
    self.device_index = device
    self.img_width = img_width
    self.img_height = img_height
    self.name = ('cv_webcam(%s)' % device)
    self.camera = None
def __init__(self, device, img_width, img_height):
    self.device_index = device
    self.img_width = img_width
    self.img_height = img_height
    self.name = ('cv_webcam(%s)' % device)
    self.camera = None