def __init__(self, config):
        self._config = config
        self._device = \
                self._new_capture_device(config['camera']['device_index'])
        self.set_dimensions(
            config['camera']['width'],
            config['camera']['height'],
        )