Skip to main content

find_similars

Creates, updates, deletes, gets or lists a find_similars resource.

Overview

Namefind_similars
TypeResource
Idazure.ai_vision_face.find_similars

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
confidencenumberConfidence value of the candidate. The higher confidence, the more similar. Range between [0,1]. Required.
faceIdstringfaceId of candidate face when find by faceIds. faceId is created by "Detect" and will expire 24 hours after the detection call.
persistedFaceIdstringpersistedFaceId of candidate face when find by faceListId or largeFaceListId. persistedFaceId in face list/large face list is persisted and will not expire.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
find_similarselectendpoint, api_versionGiven query face's faceId, to search the similar-looking faces from a faceId array. A faceId array contains the faces created by Detect. Please refer to https://learn.microsoft.com/rest/api/face/face-recognition-operations/find-similar for more details.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_versionstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client apiVersion parameter. (default: )
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )

SELECT examples

Given query face's faceId, to search the similar-looking faces from a faceId array. A faceId array contains the faces created by Detect. Please refer to https://learn.microsoft.com/rest/api/face/face-recognition-operations/find-similar for more details.

SELECT
confidence,
faceId,
persistedFaceId
FROM azure.ai_vision_face.find_similars
WHERE endpoint = '{{ endpoint }}' -- required
AND api_version = '{{ api_version }}' -- required
;