Release Notes
Announcements
ci:CreateMediaJobs permission is required. For details, see Cloud Infinite action.cam:passrole permission is required. The asynchronous processing interface performs read and write operations on COS resources through the CAM "role". The PassRole permission is used for role passing. For details, refer to Cloud Access Management - Write Operation - PassRole API.POST /jobs HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Tag>ImageOCR</Tag><Input><Object>input/test.jpg</Object></Input><Operation><TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON</CallBackFormat></Request>
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Request | None. | Container for saving requests | Container | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Tag | Request | Create task Tag: ImageOCR | String | Yes |
Input | Request | Media information to be operated | Container | Yes |
Operation | Request | Operation rule | Container | Yes |
CallBack | Request | Job callback address, with a higher priority than the queue's callback address. When set to no, it indicates that the queue's callback address does not generate a callback. | String | No |
CallBackFormat | Request | Job callback format, JSON or XML, default is XML, priority is higher than the queue's callback format | String | No |
CallBackType | Request | Job callback type, Url or TDMQ, default is Url, priority is higher than the queue's callback type | String | No |
CallBackMqConfig | Request | Task callback TDMQ configuration, required when CallBackType is TDMQ. For details, see CallBackMqConfig. | Container | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Object | Request.Input | Pending file name | String | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
TemplateId | Request.Operation | OCR template ID | String | No |
UserData | Request.Operation | Pass through user information Printable ASCII code Length not exceeding 1024 | String | No |
JobLevel | Request.Operation | Task priority, level limit: 0, 1, 2. Higher level means higher task priority, default is 0. | String | No |
ImageOCR | Request.Operation | Container | No |
<Response><JobsDetail><Code>Success</Code><CreationTime>2023-11-25T08:47:39+0800</CreationTime><EndTime>-</EndTime><Input><BucketId>test-1234567890</BucketId><Object>pic/ocr1.png</Object><Region>ap-chongqing</Region></Input><JobId>a3c193f288b2c11eeb60f39de2f86f409</JobId><Message/><Operation><JobLevel>0</JobLevel><TemplateId>t1a545cd125ea04ec7a3cd455065d601cc</TemplateId><TemplateName>ImageOCR-34</TemplateName></Operation><QueueId>pcaffdc4229a543b296b10b22586a1e57</QueueId><StartTime>-</StartTime><State>Submitted</State><Tag>ImageOCR</Tag></JobsDetail></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None. | Container for saving results | Container |
Node Name (Keyword) | Parent Node | Description | Type |
JobsDetail | Response | Task details | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Code | Response.JobsDetail | Error code, meaningful only when State is Failed | String |
CreationTime | Response.JobsDetail | Task creation time | String |
EndTime | Response.JobsDetail | Task end time | String |
Input | Response.JobsDetail | Input resource address of the task | Container |
JobId | Response.JobsDetail | ID of the newly created task | String |
Message | Response.JobsDetail | Error description, meaningful only when State is Failed | String |
Operation | Response.JobsDetail | Operation rule | Container |
QueueId | Response.JobsDetail | String | |
StartTime | Response.JobsDetail | Task Start Time | String |
State | Response.JobsDetail | Task Status Submitted: Pending execution RUNNING: Running Success: Execution successful Failed: Execution failed Pause: Task pause. When the pause queue is triggered, the to-be-executed tasks will become paused state. Cancel: Task execution cancelled | String |
Tag | Response.JobsDetail | Newly created task Tag: ImageOCR | String |
Node Name (Keyword) | Parent Node | Description | Type |
Region | Response.JobsDetail.Input | Region of the storage bucket | String |
Object | Response.JobsDetail.Input | Output result filename | String |
BucketId | Response.JobsDetail.Input | Bucket for storing results | String |
Node Name (Keyword) | Parent Node | Description | Type |
JobLevel | Response.JobsDetail.Operation | Task priority | String |
TemplateId | Response.JobsDetail.Operation | Template ID of the task | String |
TemplateName | Response.JobsDetail.Operation | Template name of the task, return when TemplateId exists | String |
ImageOCR | Response.JobsDetail.Operation | In-request Request.Operation.ImageOCR | Container |
Detection | Response.JobsDetail.Operation | OCR result | Container |
UserData | Response.JobsDetail.Operation | Pass through user information | String |
Node Name (Keyword) | Parent Node | Description | Type |
TextDetections | Response.JobsDetail.Operation.Detection | Detected text information | Container array |
Language | Response.JobsDetail.Operation.Detection | Detected language type | String |
Angel | Response.JobsDetail.Operation.Detection | Image rotation angle (angle system), the horizontal direction of text is 0°; clockwise is positive, counterclockwise is negative | String |
PdfPageSize | Response.JobsDetail.Operation.Detection | When the image is a PDF, return the total number of pages of the PDF | Int |
Node Name (Keyword) | Parent Node | Description | Type |
DetectedText | Response.JobsDetail.Operation.Detection.TextDetections | Detected text row content | String |
Confidence | Response.JobsDetail.Operation.Detection.TextDetections | Confidence degree 0 ~100 | Int |
Polygon | Response.JobsDetail.Operation.Detection.TextDetections | text line coordinate, represented by four vertex coordinates | Container array |
ItemPolygon | Response.JobsDetail.Operation.Detection.TextDetections | pixel coordinate of the text line in the image after rotation correction, represented as (top-left corner x, top-left corner y, width, height) | Container array |
Words | Response.JobsDetail.Operation.Detection.TextDetections | Recognized character information includes characters (including character Character and character confidence degree confidence) | Container array |
WordPolygon | Response.JobsDetail.Operation.Detection.TextDetections | Array of character coordinates, represented by four vertex coordinates. Note: This field may return null, indicating no valid value is obtained. Supported recognition types take effect when handwriting. | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
X | Response.JobsDetail.Operation.Detection.Polygon | horizontal coordinate | Int |
Y | Response.JobsDetail.Operation.Detection.Polygon | vertical coordinate | Int |
Node Name (Keyword) | Parent Node | Description | Type |
X | Response.JobsDetail.Operation.Detection.ItemPolygon | top-left X | Int |
Y | Response.JobsDetail.Operation.Detection.ItemPolygon | top-left Y | Int |
Width | Response.JobsDetail.Operation.Detection.ItemPolygon | Width | Int |
Height | Response.JobsDetail.Operation.Detection.ItemPolygon | High | Int |
Node Name (Keyword) | Parent Node | Description | Type |
Confidence | Response.JobsDetail.Operation.Detection.Words | confidence degree 0 ~100 | Int |
Character | Response.JobsDetail.Operation.Detection.Words | possible character | String |
WordCoordPoint | Response.JobsDetail.Operation.Detection.Words | Four-point coordinate of the character in the original image, this parameter is valid only when the recognition type is general or accurate. | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
WordCoordinate | Response.JobsDetail.Operation.Detection.Words.WordCoordPoint | The coordinates of a single character in the original image are represented by four vertex coordinates, starting from the top-left corner and returned clockwise. | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
X | Response.JobsDetail.Operation.Detection.Words.WordCoordPoint.WordCoordinate | horizontal coordinate | Int |
Y | Response.JobsDetail.Operation.Detection.Words.WordCoordPoint.WordCoordinate | vertical coordinate | Int |
Node Name (Keyword) | Parent Node | Description | Type |
LeftTop | Response.JobsDetail.Operation.Detection.WordPolygon | Top-left vertex coordinate | Container array |
RightTop | Response.JobsDetail.Operation.Detection.WordPolygon | Top-right vertex coordinate | Container array |
LeftBottom | Response.JobsDetail.Operation.Detection.WordPolygon | Lower-left vertex coordinate | Container array |
RightBottom | Response.JobsDetail.Operation.Detection.WordPolygon | Top-right vertex coordinate | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
X | Response.JobsDetail.Operation.Detection.WordPolygon.LeftTop | horizontal coordinate | Int |
Y | Response.JobsDetail.Operation.Detection.WordPolygon.LeftTop | vertical coordinate | Int |
POST /jobs HTTP/1.1Authorization:q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=**************************************Host:test-1234567890.ci.ap-chongqing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Tag>ImageOCR</Tag><Input><Object>input/test.jpg</Object></Input><Operation><TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON</CallBackFormat></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Mon, 28 Jun 2022 15:23:12 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><Code>Success</Code><CreationTime>2023-11-25T08:47:39+0800</CreationTime><EndTime>-</EndTime><Input><BucketId>test-1234567890</BucketId><Object>pic/ocr1.png</Object><Region>ap-chongqing</Region></Input><JobId>a3c193f288b2c11eeb60f39de2f86f409</JobId><Message/><Operation><JobLevel>0</JobLevel><TemplateId>t1a545cd125ea04ec7a3cd455065d601cc</TemplateId><TemplateName>ImageOCR-34</TemplateName><UserData>This is my data.</UserData></Operation><QueueId>pcaffdc4229a543b296b10b22586a1e57</QueueId><StartTime>-</StartTime><State>Submitted</State><Tag>ImageOCR</Tag></JobsDetail></Response>
POST /jobs HTTP/1.1Authorization:q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=**************************************Host:test-1234567890.ci.ap-chongqing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Tag>ImageOCR</Tag><Input><Object>input/test.jpg</Object></Input><Operation><ImageOCR><Type>general</Type><LanguageType>zh</LanguageType><IsPdf>true</IsPdf><PdfPageNumber>2</PdfPageNumber><IsWord>true</IsWord></ImageOCR><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON</CallBackFormat></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Mon, 28 Jun 2022 15:23:12 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><Code>Success</Code><CreationTime>2023-11-25T08:47:39+0800</CreationTime><EndTime>-</EndTime><Input><BucketId>test-1234567890</BucketId><Object>pic/ocr1.png</Object><Region>ap-chongqing</Region></Input><JobId>a3c193f288b2c11eeb60f39de2f86f409</JobId><Message/><Operation><JobLevel>0</JobLevel><UserData>This is my data.</UserData><ImageOCR><Type>general</Type><LanguageType>zh</LanguageType><IsPdf>true</IsPdf><PdfPageNumber>2</PdfPageNumber><IsWord>true</IsWord></ImageOCR></Operation><QueueId>pcaffdc4229a543b296b10b22586a1e57</QueueId><StartTime>-</StartTime><State>Submitted</State><Tag>ImageOCR</Tag></JobsDetail></Response>
피드백