src/Service/TencentAI/OCRManager.php
public function idcard($image, array $options = [])
    {
        if (! isset($options['card_type']) || ! in_array($options['card_type'], [0, 1], true)) {
            $options['card_type'] = 0;
        }

        return $this->request(self::URL_OCR_IDCARD, $image, $options);
    }
public function idcard($image, array $options = [])
    {
        if (! isset($options['card_type']) || ! in_array($options['card_type'], [0, 1], true)) {
            $options['card_type'] = 0;
        }

        return $this->request(self::URL_OCR_IDCARD, $image, $options);
    }
身份证OCR识别

@param  string|\SplFileInfo|array $images
@param  array $options

参数        是否可选     类型        描述
card_type   Y            int         身份证图片类型，0-正面，1-反面

@see https://cloud.tencent.com/document/product/641/12423

@return array