src/Service/Baidu/OCRManager.php
public function idcard($images, array $options = [])
    {
        $this->supportUrl = false;

        return $this->request(self::IDCARD, $this->buildRequestParam($images, $options));
    }
public function idcard($images, array $options = [])
    {
        $this->supportUrl = false;

        return $this->request(self::IDCARD, $this->buildRequestParam($images, $options));
    }
身份证识别（不支持在线地址）

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

参数                     是否可选     类型        可选范围/说明
detect_direction          N       boolean      true/false 是否检测图像朝向，默认不检测
id_card_side              Y       string       front、back，front：身份证正面；back：身份证背面
detect_risk               N       boolan       true/false 是否开启身份证风险类型功能，默认false

@throws \RuntimeException

@return array