Source code for luna_api.app.handlers.matcher_handler

""" Matcher handler. """

from app.handlers.base_handler import PythonMatcherServiceBaseHandler


[docs]class MatcherFacesHandler(PythonMatcherServiceBaseHandler): """ Matcher handler allows to submit tasks to a service that searches for faces similar to a given reference by matching them. See `spec_matcher <_static/api.html#tag/matchFaces>`_. Resource: "/{api_version}/matcher/faces" """ allowedMethods = ("POST",)
[docs]class RawMatcherHandler(PythonMatcherServiceBaseHandler): """ Match each candidate descriptor with each reference descriptor. See `spec matcher raw <_static/api.html#tag/matchingRaw>`_. Resource: "/{api_version}/matcher/raw" """ allowedMethods = ("POST",)
[docs]class MatcherBodiesHandler(PythonMatcherServiceBaseHandler): """ Matcher handler allows to submit tasks to a service that searches for faces similar to a given reference by matching them. See `spec matcher <_static/api.html#tag/matchBodies>`_. Resource: "/{api_version}/matcher/bodies" """ allowedMethods = ("POST",)