def METHOD_NAME(self, image: numpy.ndarray):
    data = self.payload
    data['base64Image'] = 'data:image/jpg;base64,' + \
        base64.b64encode(cv2.imencode('.jpg', image)[1].tobytes()).decode()
    retry_times = 1
    while True:
        try:
            r = requests.post(
                self.endpoint,
                data=data,
                timeout=self.timeout,
            )
            break
        except Exception as e:
            logger.warning(e)
            logger.debug(traceback.format_exc())
            retry_times -= 1
            if retry_times > 0:
                logger.warning('重试中……')
            else:
                logger.warning('无网络或网络故障，无法连接到 OCR Space')
                return []
    try:
        return self._parse(r.json())
    except Exception as e:
        logger.debug(e)
        return []