'Initialize seven segments processing.'

def __init__(self, hass, camera_entity, config, name):

    self.hass = hass
    self._camera_entity = camera_entity
    if name:
        self._name = name
    else:
        self._name = 'SevenSegement    OCR    {0}'.format(split_entity_id(camera_entity)[1])
    self._state = None
    self.filepath = os.path.join(self.hass.config.config_dir, 'ocr.png')
    crop = ['crop', str(config[CONF_X_POS]), str(config[CONF_Y_POS]), str(config[CONF_WIDTH]), str(config[CONF_HEIGHT])]
    digits = ['-d', str(config[CONF_DIGITS])]
    rotate = ['rotate', str(config[CONF_ROTATE])]
    threshold = ['-t', str(config[CONF_THRESHOLD])]
    extra_arguments = config[CONF_EXTRA_ARGUMENTS].split('    ')
    self._command = ((((([config[CONF_SSOCR_BIN]] + crop) + digits) + threshold) + rotate) + extra_arguments)
    self._command.append(self.filepath)
