tencent cloud

Cloud Object Storage

最新情報とお知らせ
製品アップデート情報
製品のお知らせ
製品概要
製品概要
機能概要
応用シナリオ
製品の優位性
基本概念
リージョンとアクセスドメイン名
仕様と制限
製品の課金
課金概要
課金方式
課金項目
無料利用枠
記帳例
請求書の確認とダウンロード
お支払い遅れについて
よくある質問
クイックスタート
コンソールクイックスタート
COSBrowserクイックスタート
ユーザーガイド
リクエストの作成
バケット
オブジェクト
データ管理
バッチ処理
グローバルアクセラレーション
監視とアラーム
運用管理センター
データ処理
インテリジェントツールボックス使用ガイド
データワークフロー
アプリ統合
ツールガイド
ツール概要
環境のインストールと設定
COSBrowserツール
COSCLIツール
COSCMDツール
COS Migrationツール
FTP Serverツール
Hadoopツール
COSDistCpツール
HDFS TO COSツール
オンラインツール (Onrain Tsūru)
セルフ診断ツール
実践チュートリアル
概要
アクセス制御と権限管理
パフォーマンスの最適化
AWS S3 SDKを使用したCOSアクセス
データディザスタリカバリバックアップ
ドメイン名管理の実践
画像処理の実践
COSオーディオビデオプレーヤーの実践
データセキュリティ
データ検証
COSコスト最適化ソリューション
サードパーティアプリケーションでのCOSの使用
移行ガイド
サードパーティクラウドストレージのデータをCOSへ移行
データレークストレージ
クラウドネイティブデータレイク
メタデータアクセラレーション
データアクセラレーター GooseFS
データ処理
データ処理概要
画像処理
メディア処理
コンテンツ審査
ファイル処理
ドキュメントプレビュー
トラブルシューティング
RequestId取得の操作ガイド
パブリックネットワーク経由でのCOSへのファイルアップロード速度の遅さ
COSへのアクセス時に403エラーコードが返される
リソースアクセス異常
POST Objectの一般的な異常
セキュリティとコンプライアンス
データ災害復帰
データセキュリティ
クラウドアクセスマネジメント
よくある質問
よくあるご質問
一般的な問題
従量課金に関するご質問
ドメインコンプライアンスに関するご質問
バケット設定に関する質問
ドメイン名とCDNに関するご質問
ファイル操作に関するご質問
権限管理に関するご質問
データ処理に関するご質問
データセキュリティに関するご質問
署名付きURLに関するご質問
SDKクラスに関するご質問
ツール類に関するご質問
APIクラスに関するご質問
Agreements
Service Level Agreement
プライバシーポリシー
データ処理とセキュリティ契約
連絡先
用語集
ドキュメントCloud Object Storage

Submitting Tasks

フォーカスモード
フォントサイズ
最終更新日: 2026-01-09 22:30:47

Feature Overview

Submit a card OCR task.

Authorization Guide

When submitting an ID Card Recognition task using a sub-account, you need to set action to ci:CreateMediaJobs in the authorization policy. For all operation APIs supported by Cloud Infinite, please refer to action.
Also, you need to grant the cam:PassRole permission for role passing, making it easy for the asynchronous processing API to perform read and write operations on COS resource through CAM's "role".

Service Activation

Using this feature requires enabling Cloud Infinite in advance and binding a bucket. For details, see Binding CI.
Using this feature requires enabling AI Content Recognition service in advance through console or API.

Use Limits

When using this API, please first confirm the relevant restrictions. For details, see Specifications and Limits.

Fee Description

This API is a paid service. The incurred costs will be collected by Cloud Infinite. For detailed billing information, see Content Recognition Expenses.

Request

Request Sample

POST /jobs HTTP/1.1
Host: <BucketName-APPID>.ci.<Region>.myqcloud.com
Date: <GMT Date>
Authorization: <Auth String>
Content-Length: <length>
Content-Type: application/xml

<body>
Note:
Authorization: Auth String. For details, see Request Signature documentation.
When used with a sub-account, the required permissions must be granted. For details, see Authorization Granularity Details.

Request Header

This API only uses common request headers. For details, see Common Request Headers documentation.

Request Body

The implementation of this request operation requires the following request body.
<Request>
<Tag>ImageLicenseRec</Tag>
<Input>
<Object>input/test.doc</Object>
</Input>
<Operation>
<ImageLicenseRec>
<CardType>IDCard</CardType>
</ImageLicenseRec>
<UserData>This is my data.</UserData>
<JobLevel>0</JobLevel>
</Operation>
<CallBack>http://callback.demo.com</CallBack>
<CallBackFormat>JSON</CallBackFormat>
</Request>
The data content is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Required
Request
None
Container for saving requests
Container
Yes
The data description of container Request is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Required
Tag
Request
Tag for creating a task: ImageLicenseRec
String
Yes
Input
Request
Object information to be operated
Container
Yes
Operation
Request
Operation rules
Container
Yes
CallBackFormat
Request
Task callback format, JSON or XML, default XML, which has a higher priority than the callback format of the queue
String
No
CallBackType
Request
Task callback type, URL or TDMQ, default URL, which has a higher priority than the callback type of the queue
String
No
CallBack
Request
Task callback address, which has a higher priority than the callback address of the queue. When set to "no", the callback address will not trigger a callback.
String
No
CallBackMqConfig
Request
Task callback TDMQ configuration, required when CallBackType is TDMQ. For details, see CallBackMqConfig.
Container
No
The data description of container Input is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Required
Object
Request.Input
File path
String
Yes
The data description of container Operation is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Required
ImageLicenseRec
Request.Operation
Card OCR task parameters
Container
Yes
UserData
Request.Operation
Pass through user information in printable ASCII code, with length not exceeding 1024
String
No
JobLevel
Request.Operation
Task priority, level limit: 0, 1, 2. Higher level indicate higher task priority, default is 0.
String
No
The data description of container ImageLicenseRec is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Required
CardType
Request.Operation.ImageLicenseRec
Card OCR type, value is:
IDCard: refers to identity card
DriverLicense: refers to driving license
String
Yes

Response

Response Header

This API only returns common response headers. For details, see Common Response Headers documentation.

Response Body

The response body is returned as application/xml. An example including the complete node data is shown below:
<Response>
<JobsDetail>
<Code>Success</Code>
<Message/>
<JobId>ac7c990a00bf211ed946af9e0691f2b7a</JobId>
<State>Submitted</State>
<CreationTime>2022-06-27T14:44:10+0800</CreationTime>
<StartTime>-</StartTime>
<EndTime>-</EndTime>
<QueueId>pcd463e1467964d39ad2d3f66aacd8199</QueueId>
<Tag>ImageLicenseRec</Tag>
<Input>
<BucketId>test-123456789</BucketId>
<Object>input/test.jpg</Object>
<Region>ap-chongqing</Region>
</Input>
<Operation>
<ImageLicenseRec>
<CardType>IDCard</CardType>
</ImageLicenseRec>
<ImageLicenseRecResult>
<Code>Success</Code>
<State>Success</State>
<InputObjectName>input/test.jpg</InputObjectName>
<InputObjectUrl>https://test-123456789.cos.ap-chongqing.myqcloud.com/input/test.jpg</InputObjectUrl>
<Status>1</Status>
<IdInfo>
<Name>Name</Name>
<DetectedText>xxx</DetectedText>
<Score>99</Score>
<Location>
<Point>553,439</Point>
<Point>553,576</Point>
<Point>989,576</Point>
<Point>989,439</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Gender</Name>
<DetectedText>Male</DetectedText>
<Score>98</Score>
<Location>
<Point>541,597</Point>
<Point>541,723</Point>
<Point>798,723</Point>
<Point>798,597</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Ethnicity</Name>
<DetectedText>Han</DetectedText>
<Score>98</Score>
<Location>
<Point>1032,599</Point>
<Point>1032,725</Point>
<Point>1265,725</Point>
<Point>1265,599</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Birth (Date)</Name>
<DetectedText>December 1, 1974</DetectedText>
<Score>99</Score>
<Location>
<Point>532,748</Point>
<Point>532,906</Point>
<Point>1346,906</Point>
<Point>1346,748</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Address</Name>
<DetectedText>Hu’nan Province xxxxx</DetectedText>
<Score>99</Score>
<Location>
<Point>534,931</Point>
<Point>534,1253</Point>
<Point>1587,1253</Point>
<Point>1587,931</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Identification Number (ID Number)</Name>
<DetectedText>43xxxx</DetectedText>
<Score>99</Score>
<Location>
<Point>842,1372</Point>
<Point>842,1615</Point>
<Point>2284,1615</Point>
<Point>2284,1372</Point>
</Location>
</IdInfo>
<ImageLicenseRecResult>
<UserData>This is my data.</UserData>
<JobLevel>0</JobLevel>
</Operation>
</JobsDetail>
</Response>
The data content is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Response
None
Container for saving results
Container
The content of container node Response:
Node Name (Keyword)
Parent Node
Description
Type
JobsDetail
Response
Task detailed information
Container
The content of container node JobsDetail:
Node Name (Keyword)
Parent Node
Description
Type
Code
Response.JobsDetail
Error code, which takes effect when State is Failed
String
Message
Response.JobsDetail
Error description, which takes effect when State is Failed
String
JobId
Response.JobsDetail
ID of the newly created task
String
Tag
Response.JobsDetail
Tag for the newly created task: ImageOCR
String
State
Response.JobsDetail
Task status, which can be one of the following: Submitted, Running, Success, Failed, Pause, Cancel
String
CreationTime
Response.JobsDetail
Task creation time
String
StartTime
Response.JobsDetail
Task start time
String
EndTime
Response.JobsDetail
Task end time
String
QueueId
Response.JobsDetail
Queue ID of the task
String
Input
Response.JobsDetail
Same as Request.Input in the request
Container
Operation
Response.JobsDetail
Operation rule
Container
The content of container node Operation:
Node Name (Keyword)
Parent Node
Description
Type
ImageLicenseRec
Response.JobsDetail.Operation
Same as Request.Operation.ImageLicenseRec in the request
Container
ImageLicenseRecResult
Response.JobsDetail.Operation
Card OCR result
Container
UserData
Response.JobsDetail.Operation
Pass through user information
String
JobLevel
Response.JobsDetail.Operation
Task priority
String
The content of container node ImageLicenseRecResult:
Node Name (Keyword)
Parent Node
Description
Type
State
Response.JobsDetail.Operation.ImageLicenseRecResult
Current node's task status, either Success or Failed
Container
Code
Response.JobsDetail.Operation.ImageLicenseRecResult
Error code, which takes effect when State is Failed
Container
Message
Response.JobsDetail.Operation.ImageLicenseRecResult
Error description, which takes effect when State is Failed
Container
InputObjectName
Response.JobsDetail.Operation.ImageLicenseRecResult
Current node's input object name
String
InputObjectUrl
Response.JobsDetail.Operation.ImageLicenseRecResult
Current node's input object URL
String
Status
Response.JobsDetail.Operation.ImageLicenseRecResult
Card OCR result
1: Result is detected
0: No result is detected
String
IdInfo
Response.JobsDetail.Operation.ImageLicenseRecResult
Card OCR information
Container
The content of container node IdInfo:
Node Name (Keyword)
Parent Node
Description
Type
Name
Response.JobsDetail.Operation.ImageLicenseRecResult.IdInfo
Field name
String
Score
Response.JobsDetail.Operation.ImageLicenseRecResult.IdInfo
Confidence degree of the field, value range: [0-100], the higher the value, the higher the probability
Integer
Location
Response.JobsDetail.Operation.ImageLicenseRecResult.IdInfo
Coordinate of the field
Container
DetectedText
Response.JobsDetail.Operation.ImageLicenseRecResult.IdInfo
Field content
String
The content of container node Location:
Node Name (Keyword)
Parent Node
Description
Type
Point
Response.JobsDetail.Operation.ImageLicenseRecResult.IdInfo.Location
Coordinate point (X coordinate, Y coordinate)
String

Error Codes

This request returns common error responses and error codes. For more information, see Error Codes.

Practical Example

Request

POST /jobs HTTP/1.1
Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=28e9a4986df11bed0255e97ff90500557e0ea057
Host: test-1234567890.ci.ap-beijing.myqcloud.com
Content-Length: 166
Content-Type: application/xml

<Request>
<Tag>ImageLicenseRec</Tag>
<Input>
<Object>input/test.jpg</Object>
</Input>
<Operation>
<ImageLicenseRec>
<CardType>IDCard</CardType>
</ImageLicenseRec>
<UserData>This is my data.</UserData>
<JobLevel>0</JobLevel>
</Operation>
<CallBack>http://callback.demo.com</CallBack>
<CallBackFormat>JSON</CallBackFormat>
</Request>

Response

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 230
Connection: keep-alive
Date: Mon, 28 Jun 2022 15:23:12 GMT
Server: tencent-ci
x-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****

<Response>
<JobsDetail>
<Code>Success</Code>
<Message/>
<JobId>ac7c990a00bf211ed946af9e0691f2b7a</JobId>
<State>Submitted</State>
<CreationTime>2022-06-27T14:44:10+0800</CreationTime>
<StartTime>-</StartTime>
<EndTime>-</EndTime>
<QueueId>pcd463e1467964d39ad2d3f66aacd8199</QueueId>
<Tag>ImageLicenseRec</Tag>
<Input>
<BucketId>test-123456789</BucketId>
<Object>input/test.jpg</Object>
<Region>ap-chongqing</Region>
</Input>
<Operation>
<ImageLicenseRec>
<CardType>IDCard</CardType>
</ImageLicenseRec>
<ImageLicenseRecResult>
<Code>Success</Code>
<State>Success</State>
<InputObjectName>input/test.jpg</InputObjectName>
<InputObjectUrl>https://test-123456789.cos.ap-chongqing.myqcloud.com/input/test.jpg</InputObjectUrl>
<Status>1</Status>
<IdInfo>
<Name>Name</Name>
<DetectedText>xxx</DetectedText>
<Score>99</Score>
<Location>
<Point>553,439</Point>
<Point>553,576</Point>
<Point>989,576</Point>
<Point>989,439</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Gender</Name>
<DetectedText>Male</DetectedText>
<Score>98</Score>
<Location>
<Point>541,597</Point>
<Point>541,723</Point>
<Point>798,723</Point>
<Point>798,597</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Ethnicity</Name>
<DetectedText>Han</DetectedText>
<Score>98</Score>
<Location>
<Point>1032,599</Point>
<Point>1032,725</Point>
<Point>1265,725</Point>
<Point>1265,599</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Birth (Date)</Name>
<DetectedText>December 1, 1974</DetectedText>
<Score>99</Score>
<Location>
<Point>532,748</Point>
<Point>532,906</Point>
<Point>1346,906</Point>
<Point>1346,748</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Address</Name>
<DetectedText>Hu’nan Province xxxxx</DetectedText>
<Score>99</Score>
<Location>
<Point>534,931</Point>
<Point>534,1253</Point>
<Point>1587,1253</Point>
<Point>1587,931</Point>
</Location>
</IdInfo>
<IdInfo>
<Name>Identification Number (ID Number)</Name>
<DetectedText>43xxxx</DetectedText>
<Score>99</Score>
<Location>
<Point>842,1372</Point>
<Point>842,1615</Point>
<Point>2284,1615</Point>
<Point>2284,1372</Point>
</Location>
</IdInfo>
<ImageLicenseRecResult>
<UserData>This is my data.</UserData>
<JobLevel>0</JobLevel>
</Operation>
</JobsDetail>
</Response>


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック