Rozpoznávání obličeje (SmartFace)

SmartFace REST API

HTTP API pro rozpoznávání obličeje (SmartFace): kamery, watchlisty, členové, obličeje, videozáznamy a detekce.

Toto je REST API pro rozpoznávání obličeje (SmartFace). REST API služby Biometric Identification Service (LFIS) je samostatná služba.

Specifikace OpenAPI 3.0.1 (swagger.json)

Ve zkratce
OpenAPI
3.0.1
Verze
v5_4.43.0.10149
Endpointy
84

Camera

Retrieves the camera by its Id.

GET /api/v1/Cameras/{id}

Parameters

  • id — path, string (uuid), required. Id of the camera.

Responses

  • 200 — Returns the found camera. Camera
  • 404 — The camera with given Id was not found. ProblemDetails

Deletes a camera by its id.

DELETE /api/v1/Cameras/{id}

Parameters

  • id — path, string (uuid), required. Id of the camera.

Responses

  • 204 — The camera with given id was deleted successfully.
  • 404 — The camera with given id was not found. ProblemDetails

Retrieves all cameras.

GET /api/v1/Cameras

Responses

  • 200 — Returns the found cameras. array of Camera

Creates a new camera.

POST /api/v1/Cameras

Supported values for FaceDetectorResourceId are:

none, cpu, gpu, accurate_cpu, accurate_gpu, cpu_remote, gpu_remote, any_remote, accurate_cpu_remote, accurate_gpu_remote, accurate_any_remote

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Supported values for PedestrianDetectorResourceId are:

none, cpu_remote, gpu_remote, any_remote, sfe_object_cpu_remote, sfe_object_gpu_remote, sfe_object_any_remote

Supported values for SpoofDetectorResourceIds are:

none, liveness_distant_cpu_remote, liveness_distant_gpu_remote, liveness_distant_any_remote, liveness_nearby_cpu_remote, liveness_nearby_gpu_remote, liveness_nearby_any_remote

Supported values for PedestrianExtractorResourceId are:

cpu, gpu, any, none

Supported values for PalmDetectorResourceId are:

none, cpu

Supported values for PalmTemplateGeneratorResourceId are:

cpu

Supported values for PalmSpoofDetectorResourceId are:

none, liveness_any_remote

Supported values for ObjectDetectorResourceId are:

none, sfe_object_cpu_remote, sfe_object_gpu_remote, sfe_object_any_remote

Supported values for FaceSaveStrategy are:

Balanced, None, All, MatchedOnly

Supported values for PedestrianSaveStrategy are:

Balanced, None, All

Supported values for ObjectSaveStrategy are:

Balanced, None, All, MatchedOnly

Request

New camera configuration.

JSON, required. CameraCreateRequest

  • name — string, minLength 1, default camera name, required
  • source — string, minLength 1, default rtsp://user:password@cameraHostnameOrIp:554/Streaming/Channels/101, required
  • enabled — boolean, nullable, default false
  • faceDetectorConfig — FaceDetectorConfigCreateRequest
  • faceDetectorResourceId — string, nullable, default cpu
  • pedestrianDetectorConfig — PedestrianDetectorConfigCreateRequest
  • palmDetectorConfig — PalmDetectorConfigCreateRequest
  • pedestrianDetectorResourceId — string, nullable, default none
  • pedestrianExtractorResourceId — string, nullable, default none
  • templateGeneratorResourceId — string, nullable, default cpu
  • palmDetectorResourceId — string, nullable, default none
  • palmTemplateGeneratorResourceId — string, nullable, default cpu
  • redetectionTime — integer (int32), nullable, default 500
  • templateGenerationTime — integer (int32), nullable, default 500
  • trackMotionOptimization — string, nullable, default track.motion_optimization.history_long.fast
  • trackSpeedAccuracyMode — string, nullable, default accurate
  • faceSaveStrategy — string, nullable, default FirstFace, BestFace
  • pedestrianSaveStrategy — string, nullable, default Best
  • maskImagePath — string, nullable
  • saveFrameImageData — boolean, nullable, default true
  • imageQuality — integer (int32), nullable, default 90
  • mpeG1PreviewEnabled — boolean, nullable, default true
  • mpeG1PreviewPort — integer (int32), nullable
  • mpeG1VideoBitrate — integer (int32), nullable, default 450000
  • previewMaxDimension — integer (int32), nullable, default 640
  • serviceName — string, nullable
  • spoofDetectorResourceIds — array of string, nullable
  • palmSpoofDetectorResourceIds — array of string, nullable
  • spoofDetectorConfig — CameraSpoofDetectorConfigCreateRequest
  • palmSpoofDetectorConfig — CameraPalmSpoofDetectorConfigCreateRequest
  • previewAttributesConfig — PreviewAttributesConfigCreateRequest
  • objectDetectorResourceId — string, nullable, default none
  • objectSaveStrategy — string, nullable, default Best
  • objectDetectorConfig — ObjectDetectorConfigCreateRequest

Responses

  • 201 — The new camera was created successfully. Camera
  • 400 — The sent request was not valid. ProblemDetails
  • 409 — There was a conflict while creating the new camera. ProblemDetails

Updates the specified camera.

PUT /api/v1/Cameras

Supported values for FaceDetectorResourceId are:

none, cpu, gpu, accurate_cpu, accurate_gpu, cpu_remote, gpu_remote, any_remote, accurate_cpu_remote, accurate_gpu_remote, accurate_any_remote

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Supported values for PedestrianDetectorResourceId are:

none, cpu_remote, gpu_remote, any_remote, sfe_object_cpu_remote, sfe_object_gpu_remote, sfe_object_any_remote

Supported values for SpoofDetectorResourceIds are:

none, liveness_distant_cpu_remote, liveness_distant_gpu_remote, liveness_distant_any_remote, liveness_nearby_cpu_remote, liveness_nearby_gpu_remote, liveness_nearby_any_remote

Supported values for PedestrianExtractorResourceId are:

cpu, gpu, any, none

Supported values for PalmDetectorResourceId are:

none, cpu

Supported values for PalmTemplateGeneratorResourceId are:

cpu

Supported values for PalmSpoofDetectorResourceId are:

none, liveness_any_remote

Supported values for ObjectDetectorResourceId are:

none, sfe_object_cpu_remote, sfe_object_gpu_remote, sfe_object_any_remote

Supported values for FaceSaveStrategy are:

Balanced, None, All, MatchedOnly

Supported values for PedestrianSaveStrategy are:

Balanced, None, All

Supported values for ObjectSaveStrategy are:

Balanced, None, All, MatchedOnly

Request

New camera configuration.

JSON, required. CameraUpdateRequest

  • id — string (uuid), required
  • name — string, required
  • source — string, required
  • enabled — boolean, required
  • faceDetectorConfig — VideoFaceDetectorConfig, required
  • pedestrianDetectorConfig — VideoPedestrianDetectorConfig
  • palmDetectorConfig — VideoPalmDetectorConfig
  • faceDetectorResourceId — string, required
  • templateGeneratorResourceId — string, required
  • pedestrianDetectorResourceId — string, nullable
  • pedestrianExtractorResourceId — string, nullable
  • palmDetectorResourceId — string, nullable
  • palmTemplateGeneratorResourceId — string, nullable
  • redetectionTime — integer (int32), required
  • templateGenerationTime — integer (int32), required
  • trackMotionOptimization — string, required
  • trackSpeedAccuracyMode — string, nullable
  • faceSaveStrategy — string, required
  • pedestrianSaveStrategy — string, nullable
  • maskImagePath — string, nullable, required
  • saveFrameImageData — boolean, required
  • imageQuality — integer (int32), required
  • mpeG1PreviewEnabled — boolean, required
  • mpeG1PreviewPort — integer (int32), required
  • mpeG1VideoBitrate — integer (int32), required
  • previewMaxDimension — integer (int32), required
  • spoofDetectorResourceIds — array of string, nullable
  • spoofDetectorConfig — CameraSpoofDetectorConfigUpdateRequest
  • palmSpoofDetectorResourceIds — array of string, nullable
  • palmSpoofDetectorConfig — CameraPalmSpoofDetectorConfigUpdateRequest
  • previewAttributesConfig — PreviewAttributesConfigUpdateRequest
  • objectDetectorResourceId — string, nullable
  • objectSaveStrategy — string, nullable
  • objectDetectorConfig — ObjectDetectorConfigUpdateRequest

Responses

  • 200 — Returns the newly updated camera. Camera
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The camera was not found. ProblemDetails

Retrieves tracklets with faces as a paged collection by their camera Id.

GET /api/v1/Cameras/{id}/Tracklets

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string (uuid), required. Id of the camera.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found tracklets. TrackletPagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The camera with given Id was not found. ProblemDetails

Retrieves frames as a paged collection by their camera Id.

GET /api/v1/Cameras/{id}/Frames

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string (uuid), required. Id of the camera.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found frames. FramePagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The camera with given Id was not found. ProblemDetails

Detection

Detects pedestrians and objects on the image

POST /api/v1/Detect

Supported values for PedestrianDetectorResourceId are:

none, sfe_object_cpu_remote, sfe_object_gpu_remote, sfe_object_any_remote

Supported values for ObjectDetectorResourceId are:

none, sfe_object_cpu_remote, sfe_object_gpu_remote, sfe_object_any_remote

Parameters

  • X-Session-Id — header, string (uuid), minLength 1, maxLength 36. All TCS Transaction(s) that this action creates will have their SessionId set to the value from this header. If no value is provided, the SessionId will be set to the TransactionId.

Request

Detection Request

JSON, required. DetectionRequest

  • image — ImageData, required
  • pedestrianDetectorResourceId — string, minLength 1, default none, required
  • pedestrianDetectorConfig — PedestrianDetectorConfigCreateRequest
  • objectDetectorResourceId — string, minLength 1, default none, required
  • objectDetectorConfig — ObjectDetectorConfigCreateRequest
  • includeCrops — boolean, default false

Responses

  • 200 — Returns all detected pedestrians and objects on image. DetectionResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request Timeout ProblemDetails

EdgeStream

Retrieves the EdgeStream by its Id.

GET /api/v1/EdgeStreams/{id}

Parameters

  • id — path, string (uuid), required. Id of the EdgeStream.

Responses

  • 200 — Returns the found EdgeStream. EdgeStream
  • 404 — The EdgeStream with given Id was not found. ProblemDetails

Deletes a EdgeStream by its id.

DELETE /api/v1/EdgeStreams/{id}

Parameters

  • id — path, string (uuid), required. Id of the EdgeStream.

Responses

  • 204 — The EdgeStream with given id was deleted successfully.
  • 404 — The EdgeStream with given id was not found. ProblemDetails

Retrieves all EdgeStreams.

GET /api/v1/EdgeStreams

Responses

  • 200 — Returns the found EdgeStreams. array of EdgeStream

Creates a new EdgeStream.

POST /api/v1/EdgeStreams

Supported values for FaceSaveStrategy are:

Balanced, All, MatchedOnly, None

Supported values for PedestrianSaveStrategy are:

Balanced, None, All

Supported values for ObjectSaveStrategy are:

Balanced, All, MatchedOnly, None

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Supported values for SpoofDetectorResourceIds are:

none, liveness_distant_cpu_remote, liveness_distant_gpu_remote, liveness_distant_any_remote, liveness_nearby_cpu_remote, liveness_nearby_gpu_remote, liveness_nearby_any_remote

Supported values for PalmSpoofDetectorResourceIds are:

none, liveness_any_remote

Request

New EdgeStream configuration.

JSON, required. EdgeStreamCreateRequest

  • enabled — boolean, default false
  • name — string, minLength 1, default unspecified, required
  • clientId — string, minLength 1, required
  • saveFrameImageData — boolean, default false
  • templateGeneratorResourceId — string, nullable, default cpu
  • faceSaveStrategy — string, nullable, default FirstFace, BestFace
  • pedestrianSaveStrategy — string, nullable, default Balanced
  • spoofDetectorResourceIds — array of string, nullable
  • palmSpoofDetectorResourceIds — array of string, nullable
  • spoofDetectorConfig — EdgeStreamSpoofDetectorConfigCreateRequest
  • palmSpoofDetectorConfig — EdgeStreamPalmSpoofDetectorConfigCreateRequest
  • settings — EdgeStreamSettingsCreateRequest
  • objectSaveStrategy — string, nullable, default Balanced

Responses

  • 201 — The new EdgeStream was created successfully. EdgeStream
  • 400 — The sent request was not valid. ProblemDetails
  • 409 — There was a conflict while creating the EdgeStream. ProblemDetails

Updates the specified EdgeStream.

PUT /api/v1/EdgeStreams

Supported values for FaceSaveStrategy are:

Balanced, All, MatchedOnly, None

Supported values for PedestrianSaveStrategy are:

Balanced, None, All

Supported values for ObjectSaveStrategy are:

Balanced, All, MatchedOnly, None

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Supported values for SpoofDetectorResourceIds are:

none, liveness_distant_cpu_remote, liveness_distant_gpu_remote, liveness_distant_any_remote, liveness_nearby_cpu_remote, liveness_nearby_gpu_remote, liveness_nearby_any_remote

Supported values for PalmSpoofDetectorResourceIds are:

none, liveness_any_remote

Request

New EdgeStream configuration.

JSON, required. EdgeStreamUpdateRequest

  • id — string (uuid), required
  • clientId — string, required
  • enabled — boolean, required
  • name — string, required
  • saveFrameImageData — boolean, nullable
  • templateGeneratorResourceId — string, required
  • faceSaveStrategy — string, required
  • pedestrianSaveStrategy — string, nullable
  • spoofDetectorResourceIds — array of string, nullable
  • palmSpoofDetectorResourceIds — array of string, nullable
  • spoofDetectorConfig — EdgeStreamSpoofDetectorConfigUpdateRequest
  • palmSpoofDetectorConfig — EdgeStreamPalmSpoofDetectorConfigUpdateRequest
  • settings — EdgeStreamSettingsUpdateRequest
  • objectSaveStrategy — string, nullable

Responses

  • 200 — Returns the newly updated EdgeStream. EdgeStream
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The EdgeStream was not found. ProblemDetails

Synchronize settings stored in platform database to MQTT.

POST /api/v1/EdgeStreams/Settings/Synchronize

Responses

  • 204 — No Content

Retrieves watchlist synchronization settings for the specified EdgeStream.

GET /api/v1/EdgeStreams/{id}/WatchlistSynchronization

Parameters

  • id — path, string (uuid), required

Responses

  • 200 — Returns the found settings. EdgeStreamWatchlistSynchronization
  • 404 — The EdgeStream with given Id was not found. ProblemDetails

Sets the watchlist synchronization for the specified EdgeStream.

PUT /api/v1/EdgeStreams/{id}/WatchlistSynchronization

Supported values for watchlistSyncOption are:

None, All, Selected

Parameters

  • id — path, string (uuid), required

Request

Settings for watchlist synchronization

JSON, required. EdgeStreamWatchlistSynchronizationRequest

  • watchlistSyncOption — string, minLength 1, default None, required
  • watchlistIds — array of string, nullable

Responses

  • 200 — OK EdgeStreamWatchlistSynchronization
  • 400 — Bad Request ProblemDetails
  • 404 — Not Found ProblemDetails

Face

Retrieves the face by its Id.

GET /api/v1/Faces/{id}

Parameters

  • id — path, string (uuid), required. Id of the face.

Responses

  • 200 — Returns the found face. Face
  • 404 — The face with given Id was not found. ProblemDetails

Deletes the face by its Id.

DELETE /api/v1/Faces/{id}

Parameters

  • id — path, string (uuid), required. Id of the face to delete.

Responses

  • 204 — The face with given Id was deleted successfully.
  • 404 — The face with given Id was not found. ProblemDetails

Retrieves faces as a paged collection.

GET /api/v1/Faces

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found faces. FacePagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Searches for similar stored faces based on the given image.

POST /api/v1/Faces/Search

Supported values for FaceDetectorResourceId are:

cpu, gpu, any, accurate_cpu, accurate_gpu, accurate_any

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Request

Request containing reference image to be searched.

JSON, required. FaceSearchRequest

  • image — ImageData, required
  • threshold — integer (int32), default 30
  • faceDetectorConfig — FaceSearchDetectorConfig
  • faceDetectorResourceId — string, default cpu
  • templateGeneratorResourceId — string, default cpu

Responses

  • 200 — Returns the face match results. SearchInFacesResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Not Found ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Checks liveness of one face on the given image.

POST /api/v1/Faces/SpoofCheck

Supported values for FaceDetectorResourceId are:

cpu, gpu, any, accurate_cpu, accurate_gpu, accurate_any

Supported values for SpoofDetectorResourceId are:

liveness_distant_any_remote, liveness_distant_cpu_remote, liveness_distant_gpu_remote
liveness_nearby_any_remote, liveness_nearby_cpu_remote, liveness_nearby_gpu_remote

SpoofCheckConfig.KeepEvaluatingConditionsAfterFirstFail is used

to evaluate all conditions supplied with Nearby/Distant LivenessConditions.

When true it can have slight performance impact, because all conditions are evaluated

Parameters

  • X-Session-Id — header, string (uuid), minLength 1, maxLength 36. All TCS Transaction(s) that this action creates will have their SessionId set to the value from this header. If no value is provided, the SessionId will be set to the TransactionId.

Request

Request containing reference image to be checked and configuration.

JSON, required. SpoofCheckRequest

  • image — ImageData, required
  • faceDetectorConfig — FaceSearchDetectorConfig
  • faceDetectorResourceId — string, default cpu
  • spoofDetectorResourceIds — array of string
  • spoofCheckConfig — SpoofCheckConfig

Responses

  • 200 — Returns the liveness result. SpoofCheckResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Calculates confidence that two faces on sent photos belong to the same person.

POST /api/v1/Faces/Verify

Supported values for FaceDetectorResourceId are:

cpu, gpu, any, accurate_cpu, accurate_gpu, accurate_any

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Request

Request containing images with faces to be compared

JSON, required. VerificationRequest

  • probeImage — FaceProbe, required
  • referenceImage — FaceProbe, required

Responses

  • 200 — Returns the verification result. VerificationResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Frame

Retrieves the frame by its Id.

GET /api/v1/Frames/{id}

Parameters

  • id — path, string (uuid), required. Id of the frame.

Responses

  • 200 — Returns the found frame. Frame
  • 404 — The frame with given Id was not found. ProblemDetails

Deletes the frame by its Id.

DELETE /api/v1/Frames/{id}

Parameters

  • id — path, string (uuid), required. Id of the frame to delete.

Responses

  • 204 — The frame with given Id was deleted successfully.
  • 404 — The frame with given Id was not found. ProblemDetails

Retrieves frames as a paged collection.

GET /api/v1/Frames

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found frames. FramePagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Image

Retrieves the image by its Id.

GET /api/v1/Images/{id}

Two optional parameters can be specified that allow the image to be resize to given values. More specifically, minSize will resize the smaller edge to minSize, maxSize will resize the larger edge to maxSize.

Parameters

  • id — path, string (uuid), required. Id of the image.
  • minSize — query, integer (int32). Minimum size of the smaller edge.
  • maxSize — query, integer (int32). Maximum size of the larger edge.

Responses

  • 200 — Returns requested image string (binary)
  • 400 — The sent request was not valid.
  • 404 — The image with given Id was not found.

Individual

Retrieves the individual by its Id.

GET /api/v1/Individuals/{id}

Parameters

  • id — path, string (uuid), required. Id of the individual.

Responses

  • 200 — Returns the found individual. Individual
  • 404 — The individual with given Id was not found. ProblemDetails

Deletes the individual by its Id.

DELETE /api/v1/Individuals/{id}

Parameters

  • id — path, string (uuid), required. Id of the individual to delete.

Responses

  • 204 — The individual with given Id was deleted successfully.
  • 404 — The individual with given id was not found. ProblemDetails

Retrieves individuals as a paged collection.

GET /api/v1/Individuals

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found individuals. IndividualPagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Retrieves the tracklets with faces by their individual Id.

GET /api/v1/Individuals/{id}/Tracklets

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string (uuid), required. Id of the individual.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found tracklets. TrackletPagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The individual with given Id was not found. ProblemDetails

Searches for individuals by image in the specified grouping.

POST /api/v1/Individuals/Search

Supported values for FaceDetectorResourceId are:

cpu, gpu, any, accurate_cpu, accurate_gpu, accurate_any

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Request

Request containing image, grouping id and resources.

JSON, required. SearchInIndividualsRequest

  • image — ImageData, required
  • groupingId — string (uuid), required
  • matchThreshold — integer (int32)
  • faceDetectorConfig — FaceDetectorConfig
  • faceDetectorResourceId — string
  • templateGeneratorResourceId — string

Responses

  • 200 — The corresponding individuals were returned. SearchInIndividualsResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Splits specified individual, assigns specified tracklets to the newly created individual.

POST /api/v1/Individuals/Split

Specified tracklets must be part of the previous individual.

Request

Request containing tracklets and previous individual id.

JSON, required. SplitIndividualsRequest

  • trackletsIds — array of string (uuid), required
  • previousIndividualId — string (uuid), required

Responses

  • 200 — The newly created individual was returned. SplitIndividualsResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Merges multiple individuals into one individual.

POST /api/v1/Individuals/Merge

Individuals are merged into a individual, whose id is the first id in the request array of individuals.

Request

Request containing array of individuals to be merged.

JSON, required. MergeIndividualsRequest

  • individualIds — array of string (uuid), required

Responses

  • 200 — The merged individual was returned. MergeIndividualsResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

LiveGrouping

Retrieves the live grouping by its id.

GET /api/v1/LiveGroupings/{groupingId}

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping.

Responses

  • 200 — Returns the found live grouping. LiveGrouping
  • 404 — The live grouping with given Id was not found. ProblemDetails

Deletes a live grouping by its id.

DELETE /api/v1/LiveGroupings/{groupingId}

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping.

Responses

  • 204 — The live grouping was deleted successfully.
  • 404 — The live grouping was not found. ProblemDetails
  • 409 — There was a conflict while deleting live grouping. ProblemDetails

Retrieves all live groupings.

GET /api/v1/LiveGroupings

Responses

  • 200 — Returns the found live groupings. array of LiveGrouping

Creates a new live grouping.

POST /api/v1/LiveGroupings

Request

Request containing live grouping properties

JSON, required. LiveGroupingCreateRequest

  • config — LiveGroupingConfigCreateRequest
  • description — string, nullable

Responses

  • 201 — Live grouping was created successfully. LiveGrouping
  • 400 — Bad Request ProblemDetails
  • 409 — There was a conflict while creating live grouping. ProblemDetails

Updates the specified live grouping.

PUT /api/v1/LiveGroupings

Request

New live grouping configuration.

JSON, required. LiveGroupingUpdateRequest

  • config — LiveGroupingConfigUpdateRequest, required
  • id — string (uuid), required
  • description — string, nullable, required

Responses

  • 200 — Returned the newly updated live grouping. LiveGrouping
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The live grouping was not found. ProblemDetails

Retrieves streams belonging to a live grouping with given id.

GET /api/v1/LiveGroupings/{groupingId}/Streams

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping.

Responses

  • 200 — Returned the found cameras and edge streams. LiveGroupingStreams
  • 404 — The live grouping with given Id was not found. ProblemDetails

Retrieves cameras belonging to a live grouping with given id.

GET /api/v1/LiveGroupings/{groupingId}/Cameras

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping.

Responses

  • 200 — Returned the found cameras. array of Camera
  • 404 — The live grouping with given Id was not found. ProblemDetails

Retrieves the individuals belonging to a live grouping with given id.

GET /api/v1/LiveGroupings/{groupingId}/Individuals

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returned the found individuals. IndividualPagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The live grouping with given Id was not found. ProblemDetails

Retrieves the frames belonging to a live grouping with given id.

GET /api/v1/LiveGroupings/{groupingId}/Frames

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returned the found individuals. FramePagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The live grouping with given Id was not found. ProblemDetails

Links specified streams to a given live grouping.

POST /api/v1/LiveGroupings/{groupingId}/LinkStreams

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping.

Request

Request containing camera ids.

JSON, required. LinkInputRequest

  • ids — array of string (uuid), required

Responses

  • 204 — The streams were successfully linked to the live grouping.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The live grouping or cameras were not found. ProblemDetails

Unlink specified streams from a live grouping.

POST /api/v1/LiveGroupings/{groupingId}/UnlinkStreams

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping

Request

Request containing camera ids.

JSON, required. LinkInputRequest

  • ids — array of string (uuid), required

Responses

  • 204 — The streams were successfully unlinked from the live grouping.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The live grouping or cameras were not found. ProblemDetails

Links specified cameras to a given live grouping.

POST /api/v1/LiveGroupings/{groupingId}/LinkCameras

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping.

Request

Request containing camera ids.

JSON, required. LinkInputRequest

  • ids — array of string (uuid), required

Responses

  • 204 — The cameras were successfully linked to the live grouping.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The live grouping or cameras were not found. ProblemDetails

Unlink specified cameras from a live grouping.

POST /api/v1/LiveGroupings/{groupingId}/UnlinkCameras

Parameters

  • groupingId — path, string (uuid), required. Id of the live grouping

Request

Request containing camera ids.

JSON, required. LinkInputRequest

  • ids — array of string (uuid), required

Responses

  • 204 — The camera(s) were successfully unlinked from the live grouping.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The live grouping or cameras were not found. ProblemDetails

Palms

Checks liveness of one palm on the given image.

POST /api/v1/Palms/SpoofCheck

Supported values for PalmDetectorResourceId are:

cpu

Supported values for SpoofDetectorResourceId are:

liveness_any_remote

Parameters

  • X-Session-Id — header, string (uuid), minLength 1, maxLength 36. All TCS Transaction(s) that this action creates will have their SessionId set to the value from this header. If no value is provided, the SessionId will be set to the TransactionId.

Request

Request containing reference palm image to be checked and configuration.

JSON, required. PalmSpoofCheckRequest

  • image — ImageData, required
  • palmDetectorConfig — SinglePalmDetectorConfig
  • palmDetectorResourceId — string, default cpu
  • spoofDetectorResourceIds — array of string
  • spoofCheckConfig — PalmSpoofCheckConfig

Responses

  • 200 — Returns the liveness result. PalmSpoofCheckResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Calculates confidence that two palms on sent photos belong to the same person.

POST /api/v1/Palms/Verify

Supported values for PalmDetectorResourceId are:

cpu

Request

Request containing images with palms to be compared.

JSON, required. PalmVerificationRequest

  • probeImage — PalmProbe, required
  • referenceImage — PalmProbe, required

Responses

  • 200 — Returns the verification result. PalmVerificationResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Pedestrian

Retrieves the pedestrian by its Id.

GET /api/v1/Pedestrians/{id}

Parameters

  • id — path, string (uuid), required. Id of the pedestrian.

Responses

  • 200 — Returns the found pedestrian. Pedestrian
  • 404 — The pedestrian with given Id was not found. ProblemDetails

Deletes the pedestrian by its Id.

DELETE /api/v1/Pedestrians/{id}

Parameters

  • id — path, string (uuid), required. Id of the pedestrian to delete.

Responses

  • 204 — The pedestrian with given Id was deleted successfully.
  • 404 — The pedestrian with given Id was not found. ProblemDetails

Retrieves pedestrians as a paged collection.

GET /api/v1/Pedestrians

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found pedestrians. PedestrianPagedCollection
  • 400 — The sent request was not valid. ProblemDetails

RecordGrouping

Retrieves a record grouping by its id.

GET /api/v1/RecordGroupings/{groupingId}

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.

Responses

  • 200 — Returns the found record grouping. RecordGrouping
  • 404 — The record grouping with given Id was not found. ProblemDetails

Deletes a record grouping by its id.

DELETE /api/v1/RecordGroupings/{groupingId}

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.

Responses

  • 204 — The record grouping was deleted successfully.
  • 404 — The record grouping was not found. ProblemDetails
  • 409 — There was a conflict while deleting record grouping. ProblemDetails

Retrieves all record groupings.

GET /api/v1/RecordGroupings

Responses

  • 200 — Returns the found record groupings. array of RecordGrouping

Creates a new record grouping.

POST /api/v1/RecordGroupings

Request

Request containing new record grouping configuration.

JSON, required. RecordGroupingCreateRequest

  • config — RecordGroupingConfigCreateRequest
  • description — string, nullable

Responses

  • 201 — The new record grouping was created successfully. RecordGrouping
  • 400 — Bad Request ProblemDetails
  • 409 — There was a conflict while creating the new camera. ProblemDetails

Updates a specified record grouping.

PUT /api/v1/RecordGroupings

Request

New record grouping configuration.

JSON, required. RecordGrouping

  • config — RecordGroupingConfig, required
  • id — string (uuid), required
  • description — string, nullable, required

Responses

  • 200 — Returns the newly updated record grouping. RecordGrouping
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The record grouping was not found. ProblemDetails

Retrieves video records belonging to record grouping with given id.

GET /api/v1/RecordGroupings/{groupingId}/VideoRecords

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.

Responses

  • 200 — Returns the found video records. array of VideoRecord
  • 404 — The video records or record grouping were not found. ProblemDetails

Retrieves individuals belonging to a record grouping with given id.

GET /api/v1/RecordGroupings/{groupingId}/Individuals

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found individuals. IndividualPagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The record grouping with given Id was not found. ProblemDetails

Retrieves frames belonging to a record grouping with given id.

GET /api/v1/RecordGroupings/{groupingId}/Frames

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found frames. FramePagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The record grouping with given Id was not found. ProblemDetails

Uploads the image to a specified record grouping.

POST /api/v1/RecordGroupings/{groupingId}/Image

Supported values for FaceDetectorResourceId are:

cpu, gpu, any, accurate_cpu, accurate_gpu, accurate_any

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.

Request

Request containing image data.

JSON, required. UploadedImageRequest

  • imageData — ImageData, required
  • faceDetectorConfig — FaceDetectorConfig
  • faceDetectorResourceId — string

Responses

  • 201 — The new image was uploaded successfully. UploadedImageResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 409 — There was a conflict while uploading the image. ProblemDetails

Retrieves the state of the record grouping.

GET /api/v1/RecordGroupings/{groupingId}/State

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.

Responses

  • 200 — OK GroupingState

Triggers a start of the record grouping.

POST /api/v1/RecordGroupings/{groupingId}/Trigger

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.

Responses

  • 204 — The record grouping started successfully.
  • 400 — The sent request was not valid. ProblemDetails

Links specified video records to a given record grouping.

POST /api/v1/RecordGroupings/{groupingId}/LinkVideoRecords

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping.

Request

Request containing video record ids.

JSON, required. LinkInputRequest

  • ids — array of string (uuid), required

Responses

  • 204 — The video record(s) were successfully linked to the record grouping.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The record grouping or video records were not found. ProblemDetails

Unlinks specified video records from a record grouping.

POST /api/v1/RecordGroupings/{groupingId}/UnlinkVideoRecords

Parameters

  • groupingId — path, string (uuid), required. Id of the record grouping

Request

Request containing video records ids.

JSON, required. LinkInputRequest

  • ids — array of string (uuid), required

Responses

  • 204 — The video record(s) were successfully unlinked from the record grouping.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The record grouping or video records were not found. ProblemDetails

SetupDataStorage

Retrieves the current video data storage config.

GET /api/v1/Setup/DataStorage/Video

Responses

  • 200 — Video data storage config was returned successfully. VideoDataStorageConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Video data storage config was not found. ProblemDetails

Updates the video data storage config with specified values.

PUT /api/v1/Setup/DataStorage/Video

Request

The new video data storage configuration.

JSON, required. VideoDataStorageConfig

  • storageMode — VideoDataStorageMode, required

Responses

  • 200 — Video data storage config was updated successfully. VideoDataStorageConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Video data storage config was not found. ProblemDetails

SetupDbCleanup

Retrieves current database cleanup config.

GET /api/v1/Setup/DbCleanup

Responses

  • 200 — Database cleanup config was returned successfully. DbCleanupConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Database cleanup config was not found. ProblemDetails

Updates the database cleanup config with specified values.

PUT /api/v1/Setup/DbCleanup

Request

The new database cleanup configuration.

JSON, required. DbCleanupConfigUpdateRequest

  • cleanupAmount — integer (int32), nullable
  • enabled — boolean, required
  • maxFramesCount — integer (int32), nullable, required
  • maxImageDataAge — integer (int32), nullable, required
  • cleanupStart — string (date-span), nullable, required
  • deleteSql — boolean, nullable, required
  • deleteMatchResults — boolean, nullable, required

Responses

  • 200 — Database cleanup config was updated successfully. DbCleanupConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Database cleanup config was not found. ProblemDetails

SetupFeatures

Retrieves current features config.

GET /api/v1/Setup/Features

Responses

  • 200 — Features config was returned successfully. FaceFeaturesConfigFeaturesConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Features config was not found. ProblemDetails

Updates the features config with specified values.

PUT /api/v1/Setup/Features

Request

The new features configuration.

JSON, required. FeaturesConfigUpdateRequestFeaturesConfig

  • faceFeaturesConfig — FeaturesConfigUpdateRequest, required

Responses

  • 200 — Features config was updated successfully. FaceFeaturesConfigFeaturesConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Features config was not found. ProblemDetails

SetupPreview

Retrieves current preview config.

GET /api/v1/Setup/Preview

Responses

  • 200 — Preview config was returned successfully. PreviewConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Preview config was not found. ProblemDetails

Updates the preview config with specified values.

PUT /api/v1/Setup/Preview

Default value for FaceBoundingBoxColor is #ecec5e

Default value for PedestrianBoundingBoxColor is #80b5ff

Default value for ObjectBoundingBoxColor is #e638d3

Request

The new preview configuration.

JSON, required. PreviewConfig

  • faceBoundingBoxColor — string, required
  • pedestrianBoundingBoxColor — string, required
  • objectBoundingBoxColor — string, nullable

Responses

  • 200 — Preview config was updated successfully. PreviewConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Preview config was not found. ProblemDetails

SetupSearchSessionsCleanup

Retrieves current search sessions cleanup config.

GET /api/v1/Setup/SearchSessionsCleanup

Responses

  • 200 — Search sessions cleanup config was returned successfully. SearchSessionsCleanupConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Search sessions cleanup config was not found. ProblemDetails

Updates the search sessions cleanup config with specified values.

PUT /api/v1/Setup/SearchSessionsCleanup

Request

The new search sessions cleanup configuration.

JSON, required. SearchSessionsCleanupConfig

  • enabled — boolean, required
  • maxItemsCount — integer (int32), nullable, required
  • maxSessionAge — string (date-span), nullable, required
  • interval — string (date-span), nullable, required

Responses

  • 200 — Search sessions cleanup config was updated successfully. SearchSessionsCleanupConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Search sessions cleanup config was not found. ProblemDetails

SetupWatchlistAutoLearn

Retrieves the current watchlist autolearn config.

GET /api/v1/Setup/Watchlists/AutoLearn

Responses

  • 200 — Watchlist autolearn config was returned successfully. WatchlistAutoLearnConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Watchlist autolearn config was not found. ProblemDetails

Updates the watchlist autolearn config with specified values.

PUT /api/v1/Setup/Watchlists/AutoLearn

Request

The new watchlist autolearn configuration.

JSON, required. WatchlistAutoLearnConfig

  • enabled — boolean, required
  • executionStartTime — string (date-span), nullable, required
  • maxAutoLearnFacesCount — integer (int32), required
  • selectionThreshold — integer (int32), required
  • maskedSelectionThreshold — integer (int32)
  • noFaceMaskConfidenceThreshold — number (double)
  • faceMaskConfidenceThreshold — number (double)

Responses

  • 200 — Watchlist autolearn config was updated successfully. WatchlistAutoLearnConfig
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Watchlist autolearn config was not found. ProblemDetails

Tracklet

Retrieves the tracklet by its id.

GET /api/v1/Tracklet/{id}

Parameters

  • id — path, string (uuid), required. Id of the tracklet.

Responses

  • 200 — Tracklet was returned successfully. Tracklet
  • 404 — The tracklet with specified id was not found. ProblemDetails

Deletes the tracklets by its id.

DELETE /api/v1/Tracklet/{id}

Parameters

  • id — path, string (uuid), required. Id of the tracklet to delete.

Responses

  • 204 — The tracklet with given Id was deleted successfully.
  • 404 — The tracklet with given Id was not found. ProblemDetails

Retrieves tracklets as a paged collection.

GET /api/v1/Tracklet

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found tracklets. TrackletPagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Retrieves faces for given tracklet id as a paged collection.

GET /api/v1/Tracklet/{id}/Faces

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string (uuid), required. Id of the tracklet.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found faces. FacePagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Version

Retrieves the version information.

GET /api/v1/Version

Responses

  • 200 — Version information was returned successfully. VersionInfo

VideoRecord

Retrieve a video record by its id.

GET /api/v1/VideoRecords/{id}

Parameters

  • id — path, string (uuid), required. Id of the video record.

Responses

  • 200 — Returned the found video record. VideoRecord
  • 404 — Video record with specified id was not found. ProblemDetails

Deletes a video record by its id.

DELETE /api/v1/VideoRecords/{id}

Parameters

  • id — path, string (uuid), required. Id of the video record.

Responses

  • 204 — Video record was deleted successfully.
  • 404 — Specified video record was not found. ProblemDetails

Retrieves all video records.

GET /api/v1/VideoRecords

Responses

  • 200 — Returned the found video records. array of VideoRecord

Creates a video record.

POST /api/v1/VideoRecords

Supported values for FaceSaveStrategy are:

FirstFace, BestFace, "FirstFace, BestFace", All, MatchedOnly

Request

Request specifying video record properties.

JSON, required. VideoRecordCreateRequest

  • name — string, minLength 1, required
  • source — string, minLength 1, required
  • enabled — boolean, nullable
  • recordedAt — string (date-time), nullable
  • faceDetectorConfig — FaceDetectorConfigCreateRequest
  • faceDetectorResourceId — string, nullable
  • templateGeneratorResourceId — string, nullable
  • redetectionTime — integer (int32), nullable
  • templateGenerationTime — integer (int32), nullable
  • trackMotionOptimization — string, nullable
  • faceSaveStrategy — string, nullable
  • maskImagePath — string, nullable
  • saveFrameImageData — boolean, nullable
  • imageQuality — integer (int32), nullable
  • mpeG1PreviewEnabled — boolean, nullable
  • mpeG1PreviewPort — integer (int32), nullable
  • mpeG1VideoBitrate — integer (int32), nullable
  • previewMaxDimension — integer (int32), nullable
  • matchingConfig — VideoRecordMatchingConfigCreateRequest
  • description — string, nullable

Responses

  • 201 — Video record was created successfully. VideoRecord
  • 400 — The sent request was not valid. ProblemDetails

Upserts the specified video record with given values.

PUT /api/v1/VideoRecords

Supported values for FaceSaveStrategy are:

FirstFace, BestFace, "FirstFace, BestFace", All, MatchedOnly

Request

New video record values.

JSON, required. VideoRecordUpdateRequest

  • id — string (uuid), required
  • name — string, required
  • source — string, required
  • enabled — boolean, required
  • recordedAt — string (date-time)
  • faceDetectorConfig — VideoFaceDetectorConfig, required
  • faceDetectorResourceId — string, nullable
  • templateGeneratorResourceId — string, nullable
  • redetectionTime — integer (int32), required
  • templateGenerationTime — integer (int32), required
  • trackMotionOptimization — string, nullable
  • faceSaveStrategy — string, nullable
  • maskImagePath — string, nullable, required
  • saveFrameImageData — boolean, required
  • imageQuality — integer (int32), required
  • mpeG1PreviewEnabled — boolean
  • mpeG1PreviewPort — integer (int32)
  • mpeG1VideoBitrate — integer (int32)
  • previewMaxDimension — integer (int32)
  • matchingConfig — VideoRecordMatchingConfigUpdateRequest
  • description — string, nullable

Responses

  • 200 — Video record was updated successfully. VideoRecord
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Specified video record was not found. ProblemDetails

Retrieves tracklets belonging to a video record with the given id.

GET /api/v1/VideoRecords/{id}/Tracklets

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string (uuid), required. Id of the video record.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found tracklets. TrackletPagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Video record with given id was not found. ProblemDetails

Retrieves the frames belonging to video record with the given id.

GET /api/v1/VideoRecords/{id}/Frames

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string (uuid), required. Id of the video record.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found frames. FramePagedCollection
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Video record with given id was not found. ProblemDetails

Clears the data produced by the video record (faces, tracklet, matches...) and set the state back to `Ready`

POST /api/v1/VideoRecords/{id}/Clear

Parameters

  • id — path, string (uuid), required. Id of the video record.

Responses

  • 204 — Video record data was cleaned successfully.
  • 404 — Specified video record was not found. ProblemDetails

Retrieves the tags of specified video record

GET /api/v1/VideoRecords/{id}/Tags

Parameters

  • id — path, string (uuid), required. Id of the video record.

Responses

  • 200 — Returns the found tags. VideoRecordTags
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Specified video record was not found. ProblemDetails

Updates the tags of specified video record

PUT /api/v1/VideoRecords/{id}/Tags

Parameters

  • id — path, string (uuid), required. Id of the video record.

Request

New tags for video record

JSON, required. VideoRecordTagsUpdateRequest

  • tags — array of string, required

Responses

  • 200 — Video record was updated successfully with tags VideoRecordTags
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Specified video record was not found. ProblemDetails

Watchlist

Retrieves the watchlists as a paged collection.

GET /api/v1/Watchlists

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found watchlists. WatchlistPagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Creates a new watchlist.

POST /api/v1/Watchlists

When setting PreviewColor, hexadecimal format is necessary to use, e.g. #012abc or #01a.

Request

Request containing watchlist name and threshold.

JSON, required. WatchlistCreateRequest

  • displayName — string, maxLength 200, required
  • fullName — string, maxLength 200, required
  • threshold — integer (int32), min 0, max 100
  • palmThreshold — integer (int32), nullable, min 0, max 100
  • previewColor — string, nullable

Responses

  • 201 — Watchlist was created successfully. Watchlist
  • 400 — The sent request was not valid. ProblemDetails
  • 409 — There was a conflict while creating the new watchlist. ProblemDetails

Upserts the watchlist.

PUT /api/v1/Watchlists

If the watchlist with specified Id does not exist, it creates it with the requested Id. If the watchlist with specified Id exists, it updates it.

When setting PreviewColor, hexadecimal format is necessary to use, e.g. #012abc or #01a.

Request

Request containing watchlist properties.

JSON, required. WatchlistUpsertRequest

  • id — string, minLength 1, required
  • displayName — string, maxLength 200, required
  • fullName — string, maxLength 200, required
  • threshold — integer (int32), min 0, max 100
  • palmThreshold — integer (int32), nullable, min 0, max 100
  • previewColor — string, nullable

Responses

  • 200 — Watchlist was updated successfully. Watchlist
  • 400 — The sent request was not valid. ProblemDetails

Retrieves the watchlist by its id.

GET /api/v1/Watchlists/{id}

Parameters

  • id — path, string, required. Id of the watchlist.

Responses

  • 200 — Returns the found watchlist. Watchlist
  • 404 — The watchlist with given id was not found. ProblemDetails

Deletes a watchlist by its id.

DELETE /api/v1/Watchlists/{id}

Parameters

  • id — path, string, required. Id of the watchlist.

Responses

  • 204 — The delete operation accepted. The watchlist with given id will be deleted in the background.
  • 404 — The watchlist with given id was not found. ProblemDetails

Retrieves the watchlist members belonging to a watchlist with specified watchlist id as a paged collection.

GET /api/v1/Watchlists/{id}/WatchlistMembers

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string, required. Id of the watchlist.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found watchlist members. WatchlistMemberPagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Searches for matching watchlist members by provided image of face/s.

POST /api/v1/Watchlists/Search

Supported values for FaceDetectorResourceId are:

cpu, gpu, any, accurate_cpu, accurate_gpu, accurate_any

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Supported values for SpoofDetectorResourceId are:

none,
liveness_distant_any_remote, liveness_distant_cpu_remote, liveness_distant_gpu_remote
liveness_nearby_any_remote, liveness_nearby_cpu_remote, liveness_nearby_gpu_remote

Supported values for FaceValidationMode are:

none, predefined

Parameters

  • X-Session-Id — header, string (uuid), minLength 1, maxLength 36. All TCS Transaction(s) that this action creates will have their SessionId set to the value from this header. If no value is provided, the SessionId will be set to the TransactionId.

Request

Request containing searching image and ids of watchlists to be searched.

JSON, required. SearchInWatchlistRequest

  • image — ImageData, required
  • watchlistIds — array of string, nullable
  • threshold — integer (int32), default 40
  • maxResultCount — integer (int32), default 1
  • faceDetectorConfig — FaceDetectorConfig
  • faceDetectorResourceId — string, default cpu
  • templateGeneratorResourceId — string, default cpu
  • faceMaskConfidenceRequest — FaceMaskConfidenceRequest
  • faceFeaturesConfig — WatchlistSearchFaceFeaturesRequestConfig
  • spoofDetectorResourceIds — array of string
  • spoofCheckConfig — WatchlistSpoofCheckConfig
  • faceValidationMode — string, nullable, default none

Responses

  • 200 — Returns the match results. array of SearchInWatchlistResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Watchlists with specified ids were not found. ProblemDetails
  • 408 — Request has timed out. ProblemDetails
  • 422 — Detected face did not pass validation and is not suitable to perform search. ProblemDetails

Searches for matching watchlist members by provided face template/s.

POST /api/v1/Watchlists/SearchByTemplate

Parameters

  • X-Session-Id — header, string (uuid), minLength 1, maxLength 36. All TCS Transaction(s) that this action creates will have their SessionId set to the value from this header. If no value is provided, the SessionId will be set to the TransactionId.

Request

Request containing face template and ids of watchlists to be searched.

JSON, required. SearchInWatchlistByTemplateRequest

  • template — string (byte), required
  • watchlistIds — array of string, nullable
  • threshold — integer (int32), default 40
  • maxResultCount — integer (int32), default 1

Responses

  • 200 — Returns the match results. SearchInWatchlistByTemplateResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Watchlists with specified ids were not found. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Searches for matching watchlist members by provided image of palm/s.

POST /api/v1/Watchlists/SearchByPalm

Supported values for PalmDetectorResourceId are:

cpu

Supported values for SpoofDetectorResourceId are:

none, liveness_any_remote

Parameters

  • X-Session-Id — header, string (uuid), minLength 1, maxLength 36. All TCS Transaction(s) that this action creates will have their SessionId set to the value from this header. If no value is provided, the SessionId will be set to the TransactionId.

Request

Request containing searching image and ids of watchlists to be searched.

JSON, required. SearchByPalmInWatchlistRequest

  • image — ImageData, required
  • watchlistIds — array of string, nullable
  • threshold — integer (int32), default 40
  • maxResultCount — integer (int32), default 1
  • palmDetectorConfig — PalmDetectorConfig
  • palmDetectorResourceId — string, default cpu
  • spoofDetectorResourceIds — array of string
  • spoofCheckConfig — PalmSpoofCheckConfig
  • palmValidationMode — string, nullable, default none

Responses

  • 200 — Returns the match results. array of SearchByPalmInWatchlistResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Watchlists with specified ids were not found. ProblemDetails
  • 408 — Request has timed out. ProblemDetails
  • 409 — Palm modality is not enabled in license. ProblemDetails
  • 422 — Detected palm did not pass validation and is not suitable to perform search. ProblemDetails

Searches for matching watchlist members by provided palm template/s.

POST /api/v1/Watchlists/SearchByPalmTemplate

Parameters

  • X-Session-Id — header, string (uuid), minLength 1, maxLength 36. All TCS Transaction(s) that this action creates will have their SessionId set to the value from this header. If no value is provided, the SessionId will be set to the TransactionId.

Request

Request containing palm template and ids of watchlists to be searched.

JSON, required. SearchByPalmInWatchlistByTemplateRequest

  • template — string (byte), required
  • watchlistIds — array of string, nullable
  • threshold — integer (int32), default 40
  • maxResultCount — integer (int32), default 1

Responses

  • 200 — Returns the match results. SearchByPalmInWatchlistByTemplateResponse
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — Watchlists with specified ids were not found. ProblemDetails
  • 408 — Request has timed out. ProblemDetails
  • 409 — Palm modality is not enabled in license. ProblemDetails

WatchlistMember

Retrieves the watchlist members as a paged collection.

GET /api/v1/WatchlistMembers

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found watchlist members. WatchlistMemberPagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Creates a new watchlist member.

POST /api/v1/WatchlistMembers

Request

Request specifying watchlist member properties.

JSON, required. WatchlistMemberCreateRequest

  • displayName — string, nullable, maxLength 200
  • fullName — string, nullable, maxLength 200
  • note — string, nullable
  • labels — array of Label, nullable
  • privacy — PrivacyData

Responses

  • 201 — Watchlist member was created successfully. WatchlistMember
  • 400 — The sent request was not valid. ProblemDetails
  • 409 — There was a conflict while creating the new watchlist member. ProblemDetails

Upserts the watchlist member.

PUT /api/v1/WatchlistMembers

If the watchlist member with specified Id does not exist, it creates it with the requested Id. If the watchlist member with specified Id exists, it updates it.

Request

Request specifying which watchlist member should be updated and how to update it.

JSON, required. WatchlistMemberUpsertRequest

  • id — string, minLength 1, required
  • displayName — string, nullable, maxLength 200
  • fullName — string, nullable, maxLength 200
  • note — string, nullable
  • labels — array of Label, nullable
  • privacy — PrivacyData

Responses

  • 200 — Watchlist member was updated successfully. WatchlistMember
  • 400 — The sent request was not valid. ProblemDetails

Retrieves the watchlist member by its id.

GET /api/v1/WatchlistMembers/{id}

Parameters

  • id — path, string, required. Id of the watchlist member.

Responses

  • 200 — Returns the found watchlist member. WatchlistMember
  • 404 — The watchlist member with given id was not found. ProblemDetails

Deletes a watchlist member by its id.

DELETE /api/v1/WatchlistMembers/{id}

Parameters

  • id — path, string, required. Id of the watchlist member.

Responses

  • 204 — The watchlist member with given id was deleted successfully.
  • 404 — The watchlist member with given id was not found. ProblemDetails

Retrieves faces for given watchlist member id as a paged collection.

GET /api/v1/WatchlistMembers/{id}/Faces

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string, required. Id of the watchlist member.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found faces. FacePagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Retrieves palms for given watchlist member id as a paged collection.

GET /api/v1/WatchlistMembers/{id}/Palms

Page number, page size and sorting order can be specified. You can also show total items count.

Parameters

  • id — path, string, required. Id of the watchlist member.
  • Ascending — query, boolean
  • PageNumber — query, integer (int32), min 1
  • PageSize — query, integer (int32), min 1
  • ShowTotalCount — query, boolean

Responses

  • 200 — Returns the found palms. PalmPagedCollection
  • 400 — The sent request was not valid. ProblemDetails

Links specified watchlist members to a given watchlist.

POST /api/v1/WatchlistMembers/LinkToWatchlist

Request

Request specifying watchlist member ids and watchlist id

JSON, required. WatchlistMembersLinkRequest

  • watchlistId — string, minLength 1, required
  • watchlistMembersIds — array of string, required

Responses

  • 204 — Watchlist members were successfully linked to the watchlist.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The watchlist or watchlist members were not found. ProblemDetails

Unlinks specified watchlist members for a given watchlist.

POST /api/v1/WatchlistMembers/UnlinkFromWatchlist

Request

Request specifying watchlist member ids and watchlist id

JSON, required. WatchlistMembersLinkRequest

  • watchlistId — string, minLength 1, required
  • watchlistMembersIds — array of string, required

Responses

  • 204 — Watchlist members were successfully unlinked from the watchlist.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The watchlist or watchlist members were not found. ProblemDetails

Registers a watchlist member.

POST /api/v1/WatchlistMembers/Register

Supported values for FaceDetectorResourceId are:

cpu, gpu, any, accurate_cpu, accurate_gpu, accurate_any

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Supported values for PalmDetectorResourceId are:

cpu

Supported values for FaceValidationMode are:

none, predefined

Supported values for PalmSide are:

Left, Right, Unspecified

Supported values for Modality are:

Face, Palm

Request

Request specifying watchlist member register details.

JSON, required. RegisterWatchlistMemberRequest

  • id — string, minLength 1, required
  • images — array of RegistrationImageData, required
  • watchlistIds — array of string, required
  • faceDetectorConfig — FaceDetectorConfig
  • faceDetectorResourceId — string, nullable, default cpu
  • templateGeneratorResourceId — string, nullable, default cpu
  • keepAutoLearnPhotos — boolean, default false
  • displayName — string, nullable
  • fullName — string, nullable
  • note — string, nullable
  • labels — array of Label, nullable
  • faceValidationMode — string, nullable, default predefined
  • palmValidationMode — string, nullable, default predefined
  • palmDetectorResourceId — string, nullable, default cpu
  • palmDetectorConfig — PalmDetectorConfig
  • privacy — PrivacyData

Responses

  • 201 — Watchlist members was registered successfully. WatchlistMemberWithRelatedData
  • 400 — The sent request was not valid. ProblemDetails
  • 408 — Request has timed out. ProblemDetails
  • 409 — A concurrent transient error occurred, or the license conditions were not met. ProblemDetails
  • 422 — Detected face or palm did not pass validation and is not suitable for use. ProblemDetails
  • 429 — Too many requests. ProblemDetails

Adds a specified face to a given watchlist member.

POST /api/v1/WatchlistMembers/{id}/AddFaceFromSystem

Supported values for FaceValidationMode are:

none, predefined

Parameters

  • id — path, string, required. The watchlist member id.

Request

Request specifying face id to add.

JSON, required. FaceWatchlistMemberLinkingRequest

  • faceId — string (uuid), required
  • faceValidationMode — string, minLength 1, default predefined, required

Responses

  • 204 — The face was successfully added to the watchlist member.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The face or watchlist member were not found. ProblemDetails
  • 409 — There was a conflict adding the specified face to the watchlist member. ProblemDetails
  • 422 — Face did not pass validation and is not suitable for use. ProblemDetails

Adds a specified face to a given watchlist member.

POST /api/v1/WatchlistMembers/{id}/AddNewFace

Supported values for FaceDetectorResourceId are:

cpu, gpu, any, accurate_cpu, accurate_gpu, accurate_any

Supported values for TemplateGeneratorResourceId are:

cpu, gpu, any

Supported values for FaceValidationMode are:

none, predefined

Parameters

  • id — path, string, required. The watchlist member id.

Request

The image with face to add with configuration.

JSON, required. AddNewFaceRequest

  • imageData — FaceRegistrationImageData, required
  • faceDetectorConfig — FaceDetectorConfig
  • faceDetectorResourceId — string
  • templateGeneratorResourceId — string
  • faceValidationMode — string, nullable, default predefined

Responses

  • 201 — The created face which was added to the watchlist member. Face
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The watchlist member were not found. ProblemDetails
  • 408 — Request has timed out. ProblemDetails
  • 409 — There was a conflict adding the new face to the watchlist member. ProblemDetails
  • 422 — Face did not pass validation and is not suitable for use. ProblemDetails

Adds a specified palm to a given watchlist member.

POST /api/v1/WatchlistMembers/{id}/AddNewPalm

Supported values for PalmDetectorResourceId are:

cpu

Supported values for PalmSide are:

Left, Right, Unspecified

Parameters

  • id — path, string, required. The watchlist member id.

Request

The image with palm to add with configuration.

JSON, required. AddNewPalmRequest

  • imageData — PalmRegistrationImageData, required
  • palmDetectorConfig — PalmDetectorConfig
  • palmDetectorResourceId — string
  • palmValidationMode — string, nullable, default predefined

Responses

  • 201 — The created palm which was added to the watchlist member. Palm
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The watchlist member were not found. ProblemDetails
  • 408 — Request has timed out. ProblemDetails
  • 409 — Conflict ProblemDetails
  • 422 — Detected palm did not pass validation and is not suitable to perform search. ProblemDetails

Adds a specified palm to a given watchlist member.

POST /api/v1/WatchlistMembers/{id}/AddPalmFromSystem

Parameters

  • id — path, string, required. The watchlist member id.

Request

Request specifying palm id to add.

JSON, required. PalmWatchlistMemberLinkingRequest

  • palmId — string (uuid), required
  • palmValidationMode — string, nullable, default predefined

Responses

  • 204 — The palm was successfully added to the watchlist member.
  • 400 — Bad Request ProblemDetails
  • 404 — The palm or watchlist member were not found. ProblemDetails
  • 409 — Conflict ProblemDetails
  • 422 — Detected palm did not pass validation and is not suitable to perform search. ProblemDetails

Removes a face from a watchlist member.

POST /api/v1/WatchlistMembers/{id}/RemoveFace

Parameters

  • id — path, string, required. The watchlist member id.

Request

Request specifying face id to remove.

JSON, required. FaceWatchlistMemberRemoveRequest

  • faceId — string (uuid), required

Responses

  • 204 — The face was successfully removed from watchlist member.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The face or watchlist member was not found. ProblemDetails
  • 408 — Request has timed out. ProblemDetails

Removes a palm from a watchlist member.

POST /api/v1/WatchlistMembers/{id}/RemovePalm

Parameters

  • id — path, string, required. The watchlist member id.

Request

Request specifying palm id to remove.

JSON, required. PalmWatchlistMemberRemoveRequest

  • palmId — string (uuid), required

Responses

  • 204 — The palm was successfully removed from watchlist member.
  • 400 — The sent request was not valid. ProblemDetails
  • 404 — The palm or watchlist member was not found. ProblemDetails
  • 408 — Request Timeout ProblemDetails

Creates a new TOTP secret for the watchlist member.

POST /api/v1/WatchlistMembers/{id}/Totp/CreateAndStoreTotpSecret

Parameters

  • id — path, string, required. The watchlist member id.

Responses

  • 200 — TOTP secret was successfully generated. TotpSecretResponse
  • 404 — The watchlist member was not found. ProblemDetails