Search for objects in the system
FindFace Multi allows you to search for faces, bodies, and vehicles (collectively referred to as “objects”) throughout the entire system.
You can search for a specific object in one of the following ways:
by uploading a photo
by an event ID
by an object ID
by a cluster ID
To search for an object by uploading a photo, follow these steps:
Upload a photo with the
POST /detectmethod: attach the source image file and send thePOSTrequest.Check the response: it will include the
idof the detected object and the coordinates of the object’s bounding box (bbox).If the image contains multiple objects, select the one of interest and copy its
idvalue.Use one of the following methods to search for that object:
GET /cards/humans/(to search in records of individuals)GET /cards/cars/(to search in records of vehicles)GET /events/faces/(to search in face events)GET /events/bodies/(to search in body events)GET /events/cars/(to search in car events)GET /clusters/faces/(to search in face clusters)GET /clusters/bodies/(to search in body clusters)GET /clusters/cars/(to search in vehicle clusters)
In the
looks_likeparameter of the chosen method, specify the copiedidin the following format:detection:<detection_id>. The specifiedidmust correspond to the object type supported by the chosen method. For example, if you use theGET /cards/humans/method, the specifiedidmust be the ID of a face or body.If necessary, narrow the search by specifying additional filtering parameters such as a watch list (
watch_lists,matched_lists), confidence threshold (threshold), and more.Send the
GETrequest. The response will contain the search results. For example, if you use theGET /cards/humans/method to search by theidof a face detected in the photo, the method will return one or more records, each including thelooks_likeobject with thematched_objectparameter that holds the ID of a face similar to the one you are searching for. Example.
Alternatively, instead of uploading a photo, you can search for an object directly by using an event ID, object ID, or cluster ID, as follows:
Choose one of the methods listed in step 4 above.
- In the
looks_likeparameter of the chosen method, specify one or more search expressions. Each expression must follow the format{face|body|car}{event|object|cluster}:<id>, whereface,body, andcarindicate the object type.The specified expressions must contain only an object type supported by the chosen method. Valid expressions for each method are shown in the table below.
Note
If necessary, the expressions listed below can be specified in the looks_like parameter together with the detection:<detection_id> expression.
Method |
Valid expressions for the |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|