Adds a sample image or a text label to a specific entity within a recognition library.
Operation description
-
This operation is supported only in the China (Beijing), China (Shanghai), China (Hangzhou), and China (Shenzhen) regions.
-
Callable up to 50 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions. 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 type of recognition this sample is for.
|
landmark |
| LibId |
string |
Yes |
The ID of the recognition library. |
*************24b47865c6************** |
| EntityId |
string |
Yes |
The ID of the specific entity within the library. |
**************544cb84754************ |
| ImageUrl |
string |
No |
The URL of the sample image. |
https://example.com/sample.png |
| LabelPrompt |
string |
No |
The custom text label. |
Full frontal view |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| SampleId |
string |
The ID of the sample. |
**************4d2ba728e2f************** |
| RequestId |
string |
The request ID. |
******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.