CreateRecognitionSample
Adds recognition sample images or text labels to a specified custom entity for subsequent recognition and matching.
Operation description
-
This operation is currently supported only in the China (Beijing), China (Shanghai), China (Hangzhou), and China (Shenzhen) regions.
-
The QPS limit per user for this operation is 50. If this limit is exceeded, API calls are throttled, which may affect your services. Make API calls at a reasonable frequency. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:CreateRecognitionSample |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Algorithm |
string |
Yes |
The recognition type. Valid values:
|
landmark |
| LibId |
string |
Yes |
The ID of the recognition library. |
*************24b47865c6************** |
| EntityId |
string |
Yes |
The ID of the entity. |
**************544cb84754************ |
| ImageUrl |
string |
No |
The URL of the sample image. |
https://example.com/sample.png |
| LabelPrompt |
string |
No |
The text prompt for the custom label. |
Full front view |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| SampleId |
string |
The ID of the created sample. |
**************4d2ba728e2f************** |
| RequestId |
string |
The ID of the request. |
******11-DB8D-4A9A-875B-275798****** |
Examples
Success response
JSON format
{
"SampleId": "**************4d2ba728e2f**************",
"RequestId": "******11-DB8D-4A9A-875B-275798******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | errorMsg:%s | |
| 500 | InternalError | errorMsg:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.