Python matcher Matcher raw handler

Matcher Raw handler.

class luna_python_matcher.app.handlers.matcher_raw_handler.MatcherRawHandler(request)[source]

Matcher raw handler allows to do similarity calculations for input descriptors .

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

async getMatchPayload()[source]

Get candidate and reference match structures

Raises:
  • VLException(Error.BadInputData) if msgpack unpack failed

  • VLException(Error.BadSdkDescriptor) if provided sdk descriptor is corrupted

  • VLException(Error.BadInputXpk) if provided xpk file is corrupted

  • VLException(Error.UnknownDescriptorVersion) if provided descriptor has incorrect version

  • VLException(Error.InvalidDescriptorLength) if descriptor length is incorrect

  • VLException(Error.VersionNotMatchWithVersionForMatching) if descriptor version is'nt supported for matching

Returns:

candidate and reference match structures

Return type:

Tuple[List[Tuple], List[Tuple]]

async post()[source]

Match each candidate descriptor with each reference descriptor. See spec_matcher_raw.

Returns:

response with matching results

Return type:

HTTPResponse