<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 身份證文字識別 ![](https://img.kancloud.cn/c4/2f/c42ff6c68189213d7f5158c070aa0f01_222x175.png =x120) > 支持對二代居民身份證正反面的關鍵字段識別,包括姓名、性別、民族、出生日期、住址、 身份證號、簽發機關、有效期限,準確率98%以上 >[danger] 身份證文字識別 不能替代身份證認證,僅用于提取相關信息進一步進行身份認證。 ## 接口費用( [點擊購買](https://market.topthink.com/product/105)) > 最低 0.012元/次 ## 接口調用([調用須知](https://docs.topthink.com/think-api/1835086)) ### 請求地址 ``` POST https://api.topthink.com/ocr/id_card_text ``` ### 請求參數 | 名稱 | 必填 | 類型 | 說明 | | --- | --- | --- | --- | | appCode| 是 |string| 用戶授權碼,參考[API調用](https://docs.topthink.com/think-api/1835086) | | image | 是 | string | 身份證照片,請確保身份證內容信息清晰可見。支持url或base64,圖片大小不能大于2M,圖片類型建議jpg格式,1M左右 | | imageType| 是 | string | 圖片類型,枚舉值:URL-圖片路徑;BASE64 –圖片BASE64編碼 | | ocrType| 是 | string | ocr類型,0表示身份證正面,1表示身份證反面 | | detectRisk| 否 | string | 是否開啟身份證風險類型(身份證復印件)功能,默認不開啟,即:false。可選值:true-開啟;false-不開啟 | ### 返回`data`參數 | 名稱 | 類型 | 說明 | | --- | --- | --- | | \- | \- | 見返回數據示例 | ## SDK調用 ``` $client = new Client("YourAppCode"); $result = $client->ocrIdcardText() ->withImage('圖像數據') ->withImageType('URL') ->withOcrType(0) ->request(); dump($result); ``` 身份證正面識別結果示例: ``` { "code": 0, "message": "成功", "data":{ "address": "地址", "birth": "出生日期", "name": "姓名", "cardNum": "身份證編號", "sex": "性別", "nation": "民族", "imageStatus": "圖像狀態", "riskType": "身份證風險類型", "direction": "圖像方向" } } ``` 身份證背面識別結果示例: ``` { "code": 0, "message": "成功", "data":{ "issuingDate": "20130501",/*簽發日期*/ "issuingAuthority": "東臺市公安局",/*簽發機關*/ "expiryDate": "20180501",/*失效日期*/ "imageStatus": "圖像狀態", "riskType": "身份證風險類型", "direction": "圖像方向" } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看