Duplicate Image Detection API Documentation

API Summery :

This API provides a service to process the input images, compare and save the image signatures into a special database, thus we allow one to identify any duplicate or near duplicate images.


Duplicate Image Detection Features:

Very fast 300 to 500 mill seconds search time
Large scale Easily handle millions to even over 20 millions images
Dynamically adding & deleting items You can add, modify, and delete your image and related meta data dynamically. Searchable immediately after successful adding

Application scenarios:

stock image platforms, photo community sites, image sharing Apps



API end point : http://apisim20.wozhitu.com:8084/vsearchtech/api/v1.0/apidup_search

image format requirement: JPG format 300 – 800 pix

Http method : POST

Request Parameters(body) :

Parameter Name Type Required Parameter Location Description Description
apikey string Yes header API Key None
fmt string No header Response format: json or xml json
minscore float No header Minimum similarity score between result images and input image. For example, 1.0 is 100% similar, 0.95 is 95% similar 0.90

Request Parameters(body) :

Parameter Name Type Required Parameter Location Description Description
photo file Yes body Image for uploading None


Detailed use of tutorials



API end point : http://apisim20.wozhitu.com:8084/vsearchtech/api/v1.0/apidup_search

image format requirement: JPG format 300 – 800 pix

Http method : POST

Request Parameters(body) :

Parameter Name Type Required Parameter Location Description Description
apikey string Yes header API Key None
imgurl string Yes header Image URL None
fmt string No header Response format: json or xml json
minscore float No header Minimum similarity score between result images and input image. For example, 1.0 is 100% similar, 0.95 is 95% similar 0.90


API end point : http://apisim20.wozhitu.com:8084/vsearchtech/api/v1.0/apidup_additem

image format requirement:JPG format 300 – 1200 pix

Http method : POST

Request Parameters(body) :

Parameter Name Type Required Parameter Location Description Description
apikey string Yes header API Key None
imgname string Yes header Image name, must be unique. Example 123.jpg None
fmt String No header Response format: json or xml json

Parameter Name Type Required Parameter Location Description Description
photo file Yes body Image for uploading None


Detailed use of tutorials

API end point : http://apisim20.wozhitu.com:8084/vsearchtech/api/v1.0/apidup_additem

image format requirement: JPG format 300 – 1200 pix

Http method : POST

Request Parameters(body) :

Parameter Name Type Required Parameter Location Description Description
apikey string Yes header API Key None
imgname string Yes header Image name, must be unique. Example 123.jpg None
imgurl string Yes header Image URL None
fmt String No header Response format: json or xml json


API end point : http://apisim20.wozhitu.com:8084/vsearchtech/api/v1.0/apidup_deleteitem

Http method : POST

Request Parameters(body) :

Parameter Name Type Required Parameter Location Description Description
apikey string Yes header API Key None
imgname string Yes header Image name, must be unique. Example 123.jpg None
fmt string Yes header Response format: json or xml json


API end point : http://apisim20.wozhitu.com:8084/vsearchtech/api/v1.0/apidup_detail

Http method : POST or GET

Request Parameters(body/header) :

Parameter Name Type Required Parameter Location Description Default Value
apikey string Yes header API Key None
imgname string Yes header Image name, must be unique. Example 123.jpg None
fmt string Yes header Response format: json or xml json


API end point :http://apisim20.wozhitu.com:8084/vsearchtech/api/v1.0/apidup_browse

Image format requirement: JPG format 300 – 800 pix

Request Parameters: POST or GET

Request Parameters(body/header) :

Parameter Name Type Required Parameter Location Description Default Value
apikey string Yes body/header API Key None
catid int No body/header Category ID (1 – 3000 integer) 0 (means all categories)
lang string No body/header Language: zh - Chinese;en - English zh
fmt string No body/header Response format: json or xml json
subject string No body/header input keywords, used for image + keywords hybrid search. None
labeland string No body/header Image labels, positive integer,separated by comma.Example: 65,58,408 None
labelor string No body/header OR logic labels for input image,positive integer,Example:305,38,5 None
labelnot string No body/header NOT logic labels for input image,positive integer,Example:345,368,45 None
p string No body The pth page shows the pth page, p is greater than or equal to 1 positive integer 1
numperpage string No body Show how many pages per page, should be a positive integer 16
maxitems string No body A total of how many show a total show, should be a positive integer 200



JSON Response Example:

{ resultList": [ { "class":"vs.vscommon.ImageSearchResultEntry", "imgName":"1392125321.jpg", "imgRelativePath":"0_All/41_xyz/0_All_Categories/227_e2/1392125321.jpg", "imgUrl":"http://www.xyz.cn/images/front/v/pic2/e2/04/1392125321.jpg", "info":null, "keyword":"Study,Signature", "productPageUrl":"http://www.xyz.cn/r/photo/view/id/1392125321/", "score":0.9785203, "tagsList":null, "title":"Gold pen signing contract" }, { "class":"vs.vscommon.ImageSearchResultEntry", "imgName":"1204325791.jpg", "imgRelativePath":"0_All/41_xyz/0_All_Categories/53_34/1204325791.jpg", "imgUrl":"http://www.xyz.cn/images/front/v/pic2/34/ce/1204325791.jpg", "info":null, "keyword":"white,animal,local", "productPageUrl":"http://www.xyz.cn/r/photo/view/id/1204325791/", "score":0.978022, "tagsList":null, "title":"Small fish in glass of water isolated"} ] }



Download Java resources
Download Python resources
Download Php resources

Error Code Reference:


Error Codes Related to Access Control:
API_CODE_ERROR_exceeded_access_total Exceeded API access limit in total
API_CODE_ERROR_exceeded_access_frequency Exceeded API access frequency limit
API_CODE_ERROR_exceeded_access_frequency_min Exceeded API access limit per minute
API_CODE_ERROR_exceeded_access_frequency_hr Exceeded API access limit per hour
API_CODE_ERROR_exceeded_access_frequency_day Exceeded API access limit per day
API_CODE_ERROR_exceeded_access_frequency_month xceeded API access limit per month
API_CODE_ERROR_two_API_calls_time_too_close Two API calls are too close in time
IMAGE_INDEX_CODE_ERROR_IMAGE_EXCEED_MAX_DOCS_PER_UID Exceeded max number of images in index per user
API_CODE_ERROR_not_allow_write_index Pause in adding image to index (server might be in maintain service, please wait )

Error Codes Related to Wrong Parameters:
API_CODE_ERROR_invalid_apikey Invalid apikey
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_imgName Invalid image name
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_imgUrl Invalid image URL
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_catid_must_be_1_to_3000 Invalid image category (Must be 1-3000 Integer)
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_labels_must_be_positive_integer Invalid label(Must be positive integer)
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_FIELDS_any_field_must_not_have_double_quote Invalid image data, must not have double quote
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_LANG Invalid language parameter(must be zh for Chinese or en for English)
IMAGE_INDEX_CODE_ERROR_DOWNLOAD_IMAGE Error in downloading image, please check provided image URL
IMAGE_INDEX_CODE_ERROR_IMAGE_SIZE_TOO_BIG Image size is too big(image must be 400 – 800PIX JPG format)
IMAGE_INDEX_DELETE_IMG_CODE_ERROR_NOT_FOUND_ITEM Error in deleting, image not found