--- title: "名刺" slug: "ai-application-service-ocr-ocrdocumentocr-namecard" tags: ["CLOVA OCR"] updated: 2026-09-17T09:57:17Z published: 2026-09-17T09:57:17Z canonical: "api.ncloud-docs.com/ai-application-service-ocr-ocrdocumentocr-namecard" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # 名刺 Classic/VPC環境で利用できます。 特化モデルエンジンを使用して名刺の入力情報(key-value)を認識し、抽出します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | POST | /name-card | ### リクエストヘッダ CLOVA OCR APIで共通して使用されるヘッダの詳細は、[CLOVA OCRのリクエストヘッダ](/docs/ja/ai-application-service-ocr#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストボディ リクエストボディの説明は次の通りです。 #### `Content-Type: application/json`の場合 リクエストヘッダの`Content-Type`が`application/json`の場合のリクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `version` | String | Required | バージョン情報 - `V2`のみ使用 | | `requestId` | String | Required | 任意の API呼び出しの UUID | | `timestamp` | Integer | Required | 任意の APIの呼び出し時刻(Timestamp) | | `images` | Array | Required | imagesの詳細情報: [images](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#images1) | #### `Content-Type: multipart/form-data`の場合 リクエストヘッダの`Content-Type`が`multipart/form-data`の場合のリクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `message` | Object | Required | リクエストデータ情報 | | `message.version` | String | Required | バージョン情報 - `V2`のみ使用 | | `message.requestId` | String | Required | 任意の API呼び出しの UUID | | `message.timestamp` | Integer | Required | 任意の APIの呼び出し時刻(Timestamp) | | `message.images` | Array | Required | imagesの詳細情報: [images](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#images1) | | `file` | File | Required | OCR認識画像ファイル | #### `images` `images`の説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `format` | String | Required | 画像の形式 - `jpg` \| `jpeg` \| `png` \| `pdf` \| `tif` \| `tiff` - 画像: `jpg`、`jpeg`、`png` - 単一ページ: `pdf`、`tif`、`tiff` - 画像の形式のうち、1つを選択して入力 | | `name` | String | Required | 任意の画像名 - 画像の識別とレスポンス結果の確認時に使用 | | `data` | String | Required | Base64でエンコードされた画像データ - `Content-Type: application/json`の場合に入力可能 | ### リクエスト例 リクエストのサンプルコードは次の通りです。 #### `Content-Type: application/json`の場合 リクエストヘッダの`Content-Type`が`application/json`の場合のリクエストのサンプルコードは次の通りです。 ``` curl --location --request POST 'https://cbgrx5natw.apigw.ntruss.com/custom/v1/{DomainId}/{InvokeKey}/document/name-card' \ --header 'Content-Type: application/json' \ --header 'X-OCR-SECRET: {アプリの登録時に発行された Secret Key}' \ --data '{ "version": "V2", "requestId": "1234", "timestamp": 0, "images": [ { "format": "jpg", "name": "namecard_test2", "data": "{Base64でエンコードされた画像データ}" } ] }' ``` #### `Content-Type: multipart/form-data`の場合 リクエストヘッダの`Content-Type`が`multipart/form-data`の場合のリクエストのサンプルコードは次の通りです。 ``` curl --location --request POST 'https://cbgrx5natw.apigw.ntruss.com/custom/v1/{DomainId}/{InvokeKey}/document/name-card' \ --header 'X-OCR-SECRET: {アプリの登録時に発行された Secret Key}' \ --header 'Content-Type: multipart/form-data' \ --form 'message="{\"version\": \"V2\", \"requestId\": \"1234\", \"timestamp\": 1724832750462, \"images\": [{\"format\": \"jpg\", \"name\": \"namecard_test\"}]}"' \ --form 'file={file}.jpg"' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `version` | String | - | バージョン情報 - `V2`のみ使用 | | `requestId` | String | - | API呼び出し UUID | | `timestamp` | Integer | - | APIの呼び出し時刻(Timestamp) | | `images` | Array | - | imagesの詳細情報: [images](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#images2) | #### `images` `images`の説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `uid` | String | - | 名刺画像の UID - API有効性検査時に使用 | | `name` | String | - | 名刺の画像名 - 画像の識別とレスポンス結果の確認時に使用 | | `inferResult` | String | - | 名刺の画像認識結果 - `SUCCESS` \| `FAILURE` \| `ERROR` - `SUCCESS`: 認識成功 - `FAILURE`: 認識失敗 - `ERROR`: 認識処理例外 | | `message` | String | - | 結果メッセージ | | `validationResult` | Object | - | 有効性検査の結果情報 | | `validationResult.result` | String | - | 有効性検査の結果コード - `NO_REQUESTED` \| `UNCHECKED` \| `ERROR` \| `VALID` \| `INVALID` - `NO_REQUESTED`: 検証をリクエストしていない(有効性検査失敗) - `UNCHECKED`: 検証の有無を確認できない - `ERROR`: 検証中にエラー発生(有効性検査失敗) - `VALID`: 検証中にエラー発生(有効性検査成功) - `INVALID`: 検証合格失敗 | | `validationResult.message` | String | - | 有効性検査結果の詳細メッセージ - 必ずしも返される値ではない | | `convertedImageInfo` | Object | - | 変換後の画像情報 - `format`が`pdf`または`tiff`の場合 - 座標は呼び出し画像ファイルを基準に設定 | | `convertedImageInfo.width` | Integer | - | 変換後画像の横長 | | `convertedImageInfo.height` | Integer | - | 変換後画像の縦長 | | `convertedImageInfo.pageIndex` | Integer | - | 変換後画像ページインデックス | | `nameCard` | Object | - | 名刺の詳細情報 | | `nameCard.meta` | Object | - | メタ情報 | | `nameCard.meta.estimatedLanguage` | String | - | OCR推定言語 - `ko` \| `en` \| `ja` - `ko`:韓国語 - `en`: 英語 - `ja`: 日本語 | | `nameCard.result` | Object | - | 名刺の OCR認識結果: [result](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#result) | #### `result` `result`の説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `name` | Array | - | 氏名情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `nameFurigana` | Array | - | フリガナ情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 - フリガナ情報(`nameCard.meta.estimatedLanguage`)が日本語(`ja`)の場合にのみ返す | | `company` | Array | - | 会社情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `address` | Array | - | 住所情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `position` | Array | - | 役職連携 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `department` | Array | - | 部署情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `mobile` | Array | - | 携帯電話情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `tel` | Array | - | 電話情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `fax` | Array | - | FAX情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `email` | Array | - | メール情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | | `homepage` | Array | - | ホームページ情報 - [共通オブジェクト情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#%EA%B3%B5%ED%86%B5%EA%B0%9D%EC%B2%B4%EC%A0%95%EB%B3%B4)を参照 | #### 共通オブジェクト情報 共通オブジェクトの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `text` | String | - | 認識結果のテキスト | | `keyText` | String | - | 認識結果のテキストのキー | | `confidenceScore` | Float | - | 認識結果のテキストの信頼度 - 0~1 - 信頼度が高いほどテキストの精度が高い | | `boundingPoly` | Object | - | Bounding Poly情報 | | `boundingPolys` | Array | - | boundingPolyの詳細情報: [boundingPolys](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#boundingpolys) | | `maskingPolys` | Array | - | maskingPolyの詳細情報: [maskingPolys](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#maskingpolys) | #### `boundingPolys` `boundingPolys`の説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `vertices` | Array | - | [verticesの詳細情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#vertices) | #### `maskingPolys` `maskingPolys`の説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `vertices` | Array | - | [verticesの詳細情報](/docs/ja/ai-application-service-ocr-ocrdocumentocr-namecard#vertices) | #### `vertices` `vertices`の説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `x` | Float | - | X軸の座標 | | `y` | Float | - | Y軸の座標 | ### レスポンスステータスコード CLOVA OCR APIで共通して使用されるレスポンスステータスコードの詳細は、[CLOVA OCRの共通レスポンスステータスコード](/docs/ja/ai-application-service-ocr-ocrdocumentocr#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 #### 成功 呼び出しに成功した場合のレスポンスのサンプルコードは次の通りです。 ``` { "version": "V2", "requestId": "1234", "timestamp": 1725235494383, "images": [ { "uid": "{uid}", "name": "namecard_test", "inferResult": "SUCCESS", "message": "SUCCESS", "validationResult": { "result": "NO_REQUESTED" }, "nameCard": { "meta": { "estimatedLanguage": "ko" }, "result": { "name": [ { "text": "キム**", "keyText": "", "confidenceScore": 0.0, "boundingPolys": [ { "vertices": [ { "x": 92.0, "y": 103.0 }, { "x": 218.0, "y": 103.0 }, { "x": 218.0, "y": 141.0 }, { "x": 92.0, "y": 141.0 } ] } ], "maskingPolys": [] } ], "company": [ { "text": "** **代理店", "keyText": "", "confidenceScore": 0.0, "boundingPolys": [ { "vertices": [ { "x": 90.0, "y": 255.0 }, { "x": 237.0, "y": 255.0 }, { "x": 237.0, "y": 284.0 }, { "x": 90.0, "y": 284.0 } ] } ], "maskingPolys": [] } ], "address": [ { "text": "ソウル特別市***", "keyText": "", "confidenceScore": 0.0, "boundingPolys": [ { "vertices": [ { "x": 91.0, "y": 287.0 }, { "x": 376.0, "y": 287.0 }, { "x": 376.0, "y": 312.0 }, { "x": 91.0, "y": 312.0 } ] } ], "maskingPolys": [] } ], "position": [ { "text": "****", "keyText": "", "confidenceScore": 0.0, "boundingPolys": [ { "vertices": [ { "x": 226.0, "y": 114.0 }, { "x": 300.0, "y": 114.0 }, { "x": 300.0, "y": 138.0 }, { "x": 226.0, "y": 138.0 } ] } ], "maskingPolys": [] } ], "mobile": [ { "text": "010********", "keyText": "", "confidenceScore": 0.0, "boundingPolys": [ { "vertices": [ { "x": 88.0, "y": 145.0 }, { "x": 300.0, "y": 145.0 }, { "x": 300.0, "y": 175.0 }, { "x": 88.0, "y": 175.0 } ] } ] } ], "tel": [ { "text": "02-****-****", "keyText": "", "confidenceScore": 0.0, "boundingPolys": [ { "vertices": [ { "x": 89.0, "y": 311.0 }, { "x": 264.0, "y": 311.0 }, { "x": 264.0, "y": 333.0 }, { "x": 89.0, "y": 333.0 } ] } ] } ], "fax": [ { "text": "02-****-****", "keyText": "", "confidenceScore": 0.0, "boundingPolys": [ { "vertices": [ { "x": 89.0, "y": 334.0 }, { "x": 264.0, "y": 334.0 }, { "x": 264.0, "y": 358.0 }, { "x": 89.0, "y": 358.0 } ] } ] } ], "email": [ { "text": "****@****.net", "keyText": "", "confidenceScore": 0.0, "boundingPolys": [ { "vertices": [ { "x": 137.0, "y": 359.0 }, { "x": 312.0, "y": 359.0 }, { "x": 312.0, "y": 382.0 }, { "x": 137.0, "y": 382.0 } ] } ], "maskingPolys": [] } ] } } } ] } ``` #### 失敗 呼び出しに失敗した場合のレスポンスのサンプルコードは次の通りです。 ``` { "version": "V2", "requestId": "1234", "timestamp": 1725235840459, "images": [ { "uid": "{uid}", "name": "namecard_test2", "inferResult": "ERROR", "message": "Read page:0 error.", "validationResult": { "result": "NO_REQUESTED" } } ] } ```