Vérifie si une image existe.
Description de l'opération
Remarques sur l'utilisation
Cette opération interroge les informations d'image dans une instance Image Search en se basant sur une image.
Limites de QPS
Vous pouvez consulter le nombre maximal de requêtes par seconde (QPS) par défaut pour les opérations de requête dans la console. Le QPS est basé sur votre achat et prend en charge 1 QPS, 5 QPS et 10 QPS.
Remarques sur la version du SDK
Le SDK Image Search est mis à niveau vers la version V3.1.1, qui prend en charge les fonctionnalités d'identification multi-sujets et de score de similarité. Pour plus d'informations, consultez SDK Java.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
imagesearch:CheckImageExists |
get |
*All Resource
|
Aucune | Aucune |
Syntaxe de la requête
POST HTTP/1.1
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| InstanceName |
string |
Oui |
Le nom de l'instance Image Search. Le nom peut comporter jusqu'à 20 caractères. Si vous avez acheté une instance Image Search, vous pouvez vous connecter à la console Image Search pour afficher le nom de l'instance. Si vous n'avez pas acheté d'instance Image Search, reportez-vous à Activer le service et Créer une instance. Remarque
Le nom de l'instance est différent de l'identifiant de l'instance. Veillez à bien les distinguer. |
demoinstance1 |
| ProductId |
string |
Oui |
L'identifiant du produit. |
2092061_1 |
| PicName |
string |
Oui |
Le nom de l'image. |
2092061_1 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
La réponse. |
||
| Msg |
string |
Le message d'erreur. |
success |
| RequestId |
string |
L'identifiant de la requête. |
B3137727-7D6E-488C-BA21-0E034C38A879 |
| Auctions |
object |
La description de tous les produits renvoyés. |
|
| ProductId |
string |
L'identifiant du produit. |
2092061_1 |
| PicName |
string |
Le nom de l'image. |
2092061_1.jpg |
| CategoryId |
integer |
La catégorie de l'image. |
88888888 |
| CustomContent |
string |
Le contenu personnalisé. |
zidingyi |
| IntAttr |
integer |
L'attribut entier. |
2 |
| IntAttr2 |
integer |
L'attribut entier. |
2 |
| StrAttr |
string |
L'attribut de chaîne. |
test |
| StrAttr2 |
string |
L'attribut de chaîne. |
test |
| StrAttr3 |
string |
L'attribut de chaîne. |
test |
| StrAttr4 |
string |
L'attribut de chaîne. |
test |
| IntAttr3 |
integer |
L'attribut entier. |
2 |
| IntAttr4 |
integer |
L'attribut entier. |
2 |
| Code |
integer |
Le code d'erreur. Valeurs valides :
|
0 |
| Success |
boolean |
Indique si la requête a réussi. |
true |
| Exists |
boolean |
Indique si l'image existe. |
true |
Exemples
JSON format
{
"Msg": "success",
"RequestId": "B3137727-7D6E-488C-BA21-0E034C38A879",
"Auctions": {
"ProductId": "2092061_1",
"PicName": "2092061_1.jpg",
"CategoryId": 88888888,
"CustomContent": "zidingyi",
"IntAttr": 2,
"IntAttr2": 2,
"StrAttr": "test",
"StrAttr2": "test",
"StrAttr3": "test",
"StrAttr4": "test",
"IntAttr3": 2,
"IntAttr4": 2
},
"Code": 0,
"Success": true,
"Exists": true
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | BadRequest | The request has invalid parameters. | Invalid parameter. |
| 400 | InstanceStatusError | Your instance is unavailable. | |
| 400 | TimeoutForTransferImage | Timeout after 5 seconds waiting for images transfer to complete. | |
| 400 | InvalidInstance | The specified instance name is invalid. | The instance name is invalid. |
| 400 | NoCaretSeperator | The body content is missing the ^ separator. | The request body is missing a required symbol. |
| 400 | EmptyMeta | The body content has an empty meta field. | The request body contains empty fields. |
| 400 | InvalidMetaItem | The meta field is invalid. | The metadata field is invalid. |
| 400 | NoPicList | The body content is missing the pic_list parameter. | The pic_list field is not specified. |
| 400 | InvalidPicList | The specified pic_list parameter is invalid. | The pic_list field is invalid. |
| 400 | NoSpecifiedPic | he content of an image is not specified in the HTTP POST body. | |
| 400 | NoSpecifiedSearchPic | The search image is not specified. | |
| 400 | InvalidCategory | The specified category is invalid. | The category ID is invalid. |
| 400 | OverflowMaxResultNum | The specified number of total results exceeds the maximum of 500. | The maximum return result limit of 500 has been exceeded. |
| 400 | OverflowMaxReturnNum | The specified number of results for each request exceeds the maximum of 100. | The number of results returned in a single request exceeds the limit of 100. |
| 400 | InvalidStartParameter | The specified parameter start is inavlid. | |
| 400 | InvalidNumParameter | The specified parameter num is invalid. | The num field is invalid. |
| 400 | NoSpecifiedAddPic | The image to insert is not specified. | |
| 400 | NoSpecifiedItemId | The item_id parameter is not specified. | |
| 400 | InvalidIntAttr | The specified int_attr field is invalid. | The int filter field is invalid. |
| 400 | UnsupportedPicFormat | The specified image format is invalid. | The image format is invalid. |
| 400 | InvalidFilterClause | The specified filtering condition is invalid. | The filter condition is invalid. |
| 400 | InstanceOverQuota | The number of items exceeds the limit. | The number of images in the instance exceeds the limit. |
| 400 | IncorrectOrientation | The image contains incorrect rotation flags in the meta data. | The image contains an unsupported rotation parameter. |
| 400 | UnsupportedPicPixels | The specified pixels is not supported. | The image pixel value is not supported. |
| 400 | SearchTimeout | The request is timed out. | |
| 400 | PicNotExist | The search picture does not exist. | |
| 400 | NoSpecifiedProductId | The parameter ProductId no specified. | |
| 400 | NoSpecifiedPicName | The parameter PicName no specified. | |
| 400 | NoSpecifiedPicContent | The parameter PicContent no specified. | |
| 400 | InvalidType | The specified parameter Type is not valid. | |
| 400 | InvalidProductId | The specified parameter ProductId is not valid. | |
| 400 | InvalidPicName | The specified parameter PicName is not valid. | |
| 400 | InvalidStrAttr | The specified parameter StrAttr is not valid. | Invalid StrAttr |
| 400 | InvalidCustomContent | The specified parameter CustomContent is not valid. | |
| 400 | InvalidPicContent | The specified parameter PicContent length greater than 2 * 1024 * 1024. | |
| 400 | InvalidStrAttr4 | The specified parameter StrAttr4 is not valid. | Invalid StrAttr4 |
| 400 | InvalidStrAttr3 | The specified parameter StrAttr3 is not valid. | Invalid StrAttr3 |
| 400 | InvalidStrAttr2 | The specified parameter StrAttr2 is not valid. | Invalid |
| 400 | InvalidIntAttr4 | The specified parameter IntAttr4 is not valid. | Invalid |
| 400 | InvalidIntAttr3 | The specified parameter IntAttr3 is not valid. | Invalid IntAttr3 |
| 400 | InvalidIntAttr2 | The specified parameter IntAttr2 is not valid. | Invalid IntAttr2 |
| 400 | UnsupportedOperationType | The specified action is not supported. | An internal error occurred: the action is not supported. |
| 400 | UnsupportedInstanceType | The instance type is not supported. | An internal error occurred: the instance type is not supported. |
| 500 | InternalError | An internal server error occurred. | |
| 500 | NetworkException | A network error occurred. | An internal error occurred due to a network exception. |
| 500 | RequestTimeout | The request is timeout. | |
| 500 | ExtractFeatureTimeout | The request was timed out while extracting features. | |
| 500 | AccessEngineFailed | An error occurred while accessing the search engine. | |
| 500 | InternalOssError | An internal OAS error occurred. | Internal error: An internal algorithm error occurred. |
| 500 | InternalSwiftError | An internal SWIFT error occurred. | Internal error: An internal MSMQ fault occurred. |
| 500 | InternalTableStoreError | An internal Table Store error occurred. | Internal error: A feature storage error occurred. |
| 403 | NoPermission | You are not authorized to perform this operation. | The action is unauthorized. |
| 403 | DeniedRequest | Your request was denied due to instance flow control. | The request was denied because the traffic throttling threshold of the instance was exceeded. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.