Matcher handler

Matcher handler.

class luna_api.app.handlers.matcher_handler.MatcherBodiesHandler(request)[source]

Matcher handler allows to submit tasks to a service that searches for faces similar to a given reference by matching them. See spec matcher.

Resource: “/{api_version}/matcher/bodies”

checkTokenPermissions()[source]

Description see checkTokenPermissions().

Return type:

None

static getUnallowedMatchingSource(inputJson, permissions)[source]

Get unallowed matching source if exists :param inputJson: input json from request :param permissions: token permissions

Returns:

unallowed matching source

Return type:

Optional[Literal[‘event’]]

class luna_api.app.handlers.matcher_handler.MatcherFacesHandler(request)[source]

Matcher handler allows to submit tasks to a service that searches for faces similar to a given reference by matching them. See spec_matcher.

Resource: “/{api_version}/matcher/faces”

checkTokenPermissions()[source]

Description see checkTokenPermissions().

Return type:

None

static getUnallowedMatchingSource(inputJson, permissions)[source]

Get unallowed matching source if exists :param inputJson: input json from request :param permissions: token permissions

Returns:

unallowed matching source

Return type:

Optional[Literal[‘face’, ‘event’, ‘attribute’]]

class luna_api.app.handlers.matcher_handler.RawMatcherHandler(request)[source]

Match each candidate descriptor with each reference descriptor. See spec matcher raw.

Resource: “/{api_version}/matcher/raw”

checkTokenPermissions()[source]

Description see checkTokenPermissions().

Return type:

None