FaceStream

by VisionLabs

API для распознавания лиц, биометрической идентификации и интеграции computer vision.

📦 Другие
Компания
VisionLabs
Сайт компании
visionlabs.ai ↗
Обзор API
Методы
55
Группы
21
Версия API
v.1.1.15

VisionLabs LUNA Streams API. The API version is 1. Service is intended for creation and management streams. "Stream" is an user logical entity. Default port: 5160. OpenAPI specification is the only valid document providing up to date information about the service LUNA Streams. The specification can be used: By document...

Разделы
streams 8 streams V2 8 groups 6 groups V2 6 queue 3 queue V2 3 documents 2 documents V2 2 preview 2 preview V2 2 streams logs 2 streams logs V2 2 config 1 config V2 1 health 1 linker 1 linker V2 1 metrics 1 plugins 1 plugins V2 1 version 1
Методы API
streams
8 методов
GET /1/streams
get streams

Get streams according to filters. The results are sorted by stream creation order, the oldest streams shown first.

Параметры
Luna-Request-Id header string account_id query stream_ids query array<object> stream_id__gte query stream_id__lt query names query array<object> reference query string statuses query array<string>
Ответы
200 OK. 400 Bad request. 500 Internal server error.
POST /1/streams
create stream

Create stream.

Параметры
Luna-Request-Id header string Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
201 Create success. 400 Bad request. 403 License problem. 500 Internal server error.
DELETE /1/streams
delete streams

Delete streams matching specified filters (OR).

Параметры
Luna-Request-Id header string account_id query
Тело запроса
required · application/json
Ответы
204 Delete success. 400 Bad request. 500 Internal server error.
GET /1/streams/count
count streams

Count streams according to the filters.

Параметры
Luna-Request-Id header string account_id query stream_ids query array<object> names query array<object> reference query string statuses query array<string> create_time__gte query string create_time__lt query string
Ответы
200 OK 400 Bad request. 500 Internal server error.
GET /1/streams/{stream_id}
get stream

Get the stream by ID.

Параметры
Luna-Request-Id header string stream_id path string required account_id query
Ответы
200 OK. 404 Stream not found. 500 Internal server error.
PUT /1/streams/{stream_id}
put stream

Update existing stream. You should specify all the fields required for the stream in the request.

Параметры
Luna-Request-Id header string stream_id path string required Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
200 Put success. 400 Bad request. 403 License problem. 404 Stream not found. 500 Internal server error.
PATCH /1/streams/{stream_id}
update stream

Update stream fields: description , status .

Параметры
Luna-Request-Id header string stream_id path string required account_id query Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
204 Update success. 400 Bad request. 403 License problem. 404 Stream not found. 500 Internal server error.
DELETE /1/streams/{stream_id}
remove stream

Remove the stream by ID.

Параметры
Luna-Request-Id header string stream_id path string required account_id query
Ответы
204 Delete success. 404 Stream not found. 500 Internal server error.
streams V2
8 методов
GET /2/streams
get streams

Get streams according to filters. The results are sorted by stream creation order, the oldest streams shown first.

Параметры
Luna-Request-Id header string account_id query stream_ids query array<object> names query array<object> reference query string statuses query array<string> create_time__gte query string create_time__lt query string
Ответы
200 OK. 400 Bad request. 500 Internal server error.
POST /2/streams
create stream

Create stream .

Параметры
Luna-Request-Id header string Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
201 Create success. 400 Bad request. 403 License problem. 500 Internal server error.
DELETE /2/streams
delete streams

Delete streams matching specified filters (OR).

Параметры
Luna-Request-Id header string account_id query
Тело запроса
required · application/json
Ответы
204 Delete success. 400 Bad request. 500 Internal server error.
GET /2/streams/count
count streams

Count streams according to the filters.

Параметры
Luna-Request-Id header string account_id query stream_ids query array<object> names query array<object> reference query string statuses query array<string> create_time__gte query string create_time__lt query string
Ответы
200 OK 400 Bad request. 500 Internal server error.
GET /2/streams/{stream_id}
get stream

Get the stream by ID.

Параметры
Luna-Request-Id header string stream_id path string required account_id query
Ответы
200 OK. 404 Stream not found. 500 Internal server error.
PUT /2/streams/{stream_id}
put stream

Update existing stream. You should specify all the fields required for the stream in the request.

Параметры
Luna-Request-Id header string stream_id path string required Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
200 Put success. 400 Bad request. 403 License problem. 404 Stream not found. 500 Internal server error.
PATCH /2/streams/{stream_id}
update stream

Update stream fields: description , status .

Параметры
Luna-Request-Id header string stream_id path string required account_id query Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
204 Update success. 400 Bad request. 403 License problem. 404 Stream not found. 500 Internal server error.
DELETE /2/streams/{stream_id}
remove stream

Remove the stream by ID.

Параметры
Luna-Request-Id header string stream_id path string required account_id query
Ответы
204 Delete success. 404 Stream not found. 500 Internal server error.
groups
6 методов
GET /1/groups
get groups

Get groups according to filters. The results are sorted by group creation order, the oldest group shown first.

Параметры
Luna-Request-Id header string group_ids query array<object> group_names query array<string> account_id query page query integer page_size query integer
Ответы
200 OK. 400 Bad request. 500 Internal server error.
POST /1/groups
create group

Create group.

Параметры
Luna-Request-Id header string Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
201 Create success. 400 Bad request. 409 Conflict 500 Internal server error.
GET /1/groups/count
get group count

Count of groups according to the filters.

Параметры
Luna-Request-Id header string group_ids query array<object> group_names query array<string> account_id query
Ответы
200 OK 400 Bad request. 500 Internal server error.
GET /1/groups/{group_id}
get group

Get the group by name.

Параметры
Luna-Request-Id header string account_id query group_id path string required
Ответы
200 OK. 400 Bad request. 404 Group not found. 500 Internal server error.
PATCH /1/groups/{group_id}
update group

Update group fields: description

Параметры
Luna-Request-Id header string account_id query group_id path string required Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
204 Update success. 400 Bad request. 404 Group not found. 500 Internal server error.
DELETE /1/groups/{group_id}
remove group

Remove the group by name.

Параметры
Luna-Request-Id header string account_id query group_id path string required
Ответы
204 Delete success. 400 Bad request. 404 Group not found. 500 Internal server error.
groups V2
6 методов
GET /2/groups
get groups

Get groups according to filters. The results are sorted by group creation order, the oldest group shown first.

Параметры
Luna-Request-Id header string group_ids query array<object> group_names query array<string> account_id query page query integer page_size query integer
Ответы
200 OK. 400 Bad request. 500 Internal server error.
POST /2/groups
create group

Create group.

Параметры
Luna-Request-Id header string Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
201 Create success. 400 Bad request. 409 Conflict 500 Internal server error.
GET /2/groups/count
get group count

Count of groups according to the filters.

Параметры
Luna-Request-Id header string group_ids query array<object> group_names query array<string> account_id query
Ответы
200 OK 400 Bad request. 500 Internal server error.
GET /2/groups/{group_id}
get group

Get the group by name.

Параметры
Luna-Request-Id header string account_id query group_id path string required
Ответы
200 OK. 400 Bad request. 404 Group not found. 500 Internal server error.
PATCH /2/groups/{group_id}
update group

Update group fields: description

Параметры
Luna-Request-Id header string account_id query group_id path string required Content-Type header enum(application/json)
Тело запроса
required · application/json
Ответы
204 Update success. 400 Bad request. 404 Group not found. 500 Internal server error.
DELETE /2/groups/{group_id}
remove group

Remove the group by name.

Параметры
Luna-Request-Id header string account_id query group_id path string required
Ответы
204 Delete success. 400 Bad request. 404 Group not found. 500 Internal server error.
queue
3 методов
POST /1/streams/processing/feedback
post feedback on streams

Post information about streams processing.

Параметры
Luna-Request-Id header string Content-Type header enum(application/json)
Тело запроса
application/json
Ответы
200 OK. 400 Bad request. 500 Internal server error.
GET /1/streams/processing/queue
check the streams processing queue

See the streams in the queue.

Параметры
Luna-Request-Id header string limit query integer required stream_ids query array<object> names query array<object> group_ids query array<object> group_names query array<string>
Ответы
200 OK. 400 Bad request. 500 Internal server error.
POST /1/streams/processing/queue
get some streams from the queue

Receive streams from the queue. The streams are received according to the specified filters. The following actions are performed upon the request: The streams are marked as "in progress". The streams are deleted from the Streams Processing...

Параметры
Luna-Request-Id header string Content-Type header enum(application/json)
Тело запроса
application/json
Ответы
200 OK. 400 Bad request. 500 Internal server error.
queue V2
3 методов
POST /2/streams/processing/feedback
post feedback on streams

Post information about streams processing.

Параметры
Luna-Request-Id header string Content-Type header enum(application/json)
Тело запроса
application/json
Ответы
200 OK. 400 Bad request. 500 Internal server error.
GET /2/streams/processing/queue
check the streams processing queue

See the streams in the queue.

Параметры
Luna-Request-Id header string limit query integer required stream_ids query array<object> names query array<object> group_ids query array<object> group_names query array<string>
Ответы
200 OK. 400 Bad request. 500 Internal server error.
POST /2/streams/processing/queue
get some streams from the queue

Receive streams from the queue. The streams are received according to the specified filters. The following actions are performed upon the request: The streams are marked as "in progress". The streams are deleted from the Streams Processing...

Параметры
Luna-Request-Id header string Content-Type header enum(application/json)
Тело запроса
application/json
Ответы
200 OK. 400 Bad request. 500 Internal server error.
documents
2 методов
GET /1/docs/dev
get development manual

Get sphinx documentation Development Manual . After the request you will be redirected to the page /docs/dev/index.html

Параметры
Accept header enum(application/json, application/msgpack) Luna-Request-Id header string
Ответы
200 OK 500 Internal server error.
GET /1/docs/spec
get openapi documentation

Get service OpenApi documentation. If Accept request header is of type application/x yaml, returns documentation in yaml format or returns html documentation, if Accept Type is text/html

Параметры
Luna-Request-Id header string Accept header enum(application/x-yaml, text/html) required
Ответы
200 OK 415 Unsupported Media Type 500 Internal server error.
documents V2
2 методов
GET /2/docs/dev
get development manual

Get sphinx documentation Development Manual . After the request you will be redirected to the page /docs/dev/index.html

Параметры
Accept header enum(application/json, application/msgpack) Luna-Request-Id header string
Ответы
200 OK 500 Internal server error.
GET /2/docs/spec
get openapi documentation

Get service OpenApi documentation. If Accept request header is of type application/x yaml, returns documentation in yaml format or returns html documentation, if Accept Type is text/html

Параметры
Luna-Request-Id header string Accept header enum(application/x-yaml, text/html) required
Ответы
200 OK 415 Unsupported Media Type 500 Internal server error.
preview
2 методов
GET /1/streams/{stream_id}/preview/handler/frame
get last frame preview

Get stream last frame preview. To add preview for stream, use "post feedback on streams" request to create last frame preview.

Параметры
Luna-Request-Id header string stream_id path string required account_id query
Ответы
200 OK. 404 Not found. 500 Internal server error.
GET /1/streams/{stream_id}/preview/handler/live
get live preview

Get stream live preview. To add preview for stream, use "post feedback on streams" request to create live preview.

Параметры
Luna-Request-Id header string stream_id path string required account_id query
Ответы
200 OK. 404 Not found. 500 Internal server error.
preview V2
2 методов
GET /2/streams/{stream_id}/preview/handler/frame
get last frame preview

Get stream last frame preview. To add preview for stream, use "post feedback on streams" request to create last frame preview.

Параметры
Luna-Request-Id header string stream_id path string required
Ответы
200 OK. 404 Not found. 500 Internal server error.
GET /2/streams/{stream_id}/preview/handler/live
get live preview

Get stream live preview. To add preview for stream, use "post feedback on streams" request to create live preview.

Параметры
Luna-Request-Id header string stream_id path string required
Ответы
200 OK. 404 Not found. 500 Internal server error.
streams logs
2 методов
GET /1/streams/logs
get streams logs

Get streams logs according to filters. The results are sorted by log creation order, the new streams logs shown first.

Параметры
Luna-Request-Id header string account_id query stream_ids query array<object> statuses query array<string> targets query array<enum(stream_id, status, error)> log_time__lt query string log_time__gte query string page query integer
Ответы
200 OK. 400 Bad request. 500 Internal server error.
DELETE /1/streams/logs
delete stream logs

Delete streams logs older than specified date excluding last log entry. Also you can run streams logs auto deletion by using LUNA STREAMS LOGS CLEAR INTERVAL setting. For more information see development documentation.

Параметры
Luna-Request-Id header string log_time__lt query string
Ответы
200 OK. 400 Bad request. 500 Internal server error.
streams logs V2
2 методов
GET /2/streams/logs
get streams logs

Get streams logs according to filters. The results are sorted by log creation order, the new streams logs shown first.

Параметры
Luna-Request-Id header string account_id query stream_ids query array<object> statuses query array<string> targets query array<enum(stream_id, status, error)> log_time__lt query string log_time__gte query string page query integer
Ответы
200 OK. 400 Bad request. 500 Internal server error.
DELETE /2/streams/logs
delete stream logs

Delete streams logs older than specified date excluding last log entry.

Параметры
Luna-Request-Id header string log_time__lt query string
Ответы
200 OK. 400 Bad request. 500 Internal server error.
config
1 методов
GET /1/config
get service configuration

Get service configuration. Passwords and tokens will be hidden in the response.

Параметры
Luna-Request-Id header string Accept header enum(application/json, text/plain)
Ответы
200 OK 415 Unsupported media type. 500 Internal server error.
config V2
1 методов
GET /2/config
get service configuration

Get service configuration. Passwords and tokens will be hidden in the response.

Параметры
Luna-Request-Id header string Accept header enum(application/json, text/plain)
Ответы
200 OK 415 Unsupported media type. 500 Internal server error.
health
1 методов
GET /healthcheck
get health

Get health of service.

Параметры
Luna-Request-Id header string include_luna_services query enum(0, 1)
Ответы
200 OK 500 Internal server error. 502 Unhealthy.
linker
1 методов
PATCH /1/linker
attach (or detach) streams to a group

Attach (or detach) streams to a group.

Параметры
Luna-Request-Id header string account_id query Content-Type header enum(application/json)
Тело запроса
application/json
Ответы
204 Operation succeeded 400 Bad request. 500 Internal server error.
linker V2
1 методов
PATCH /2/linker
attach (or detach) streams to a group

Attach (or detach) streams to a group.

Параметры
Luna-Request-Id header string account_id query Content-Type header enum(application/json)
Тело запроса
application/json
Ответы
204 Operation succeeded 400 Bad request. 500 Internal server error.
metrics
1 методов
GET /metrics
get service requests statistics

Get statistics of success and failed requests to the service in prometheus format.

Параметры
Luna-Request-Id header string
Ответы
200 OK. 403 Forbidden. 500 Internal server error.
plugins
1 методов
GET /1/plugins
get list of plugins

Get list of service plugins

Параметры
Luna-Request-Id header string
Ответы
200 OK. 500 Internal server error.
plugins V2
1 методов
GET /2/plugins
get list of plugins

Get list of service plugins

Параметры
Luna-Request-Id header string
Ответы
200 OK. 500 Internal server error.
version
1 методов
GET /version
get version

Get service version.

Параметры
Luna-Request-Id header string
Ответы
200 OK 500 Internal server error.

Похожие API