ha4t.aircv.error 源代码

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Declaration:
    Define all BaseError Classes used in aircv.
"""


[文档] class BaseError(Exception): """Base class for exceptions in this module.""" def __init__(self, message=""): self.message = message def __repr__(self): return repr(self.message)
[文档] class FileNotExistError(BaseError): """Image does not exist."""
[文档] class TemplateInputError(BaseError): """Resolution input is not right."""
[文档] class NoSIFTModuleError(BaseError): """Resolution input is not right."""
[文档] class NoSiftMatchPointError(BaseError): """Exception raised for errors 0 sift points found in the input images."""
[文档] class SiftResultCheckError(BaseError): """Exception raised for errors 0 sift points found in the input images."""
[文档] class HomographyError(BaseError): """In homography, find no mask, should kill points which is duplicate."""
[文档] class NoModuleError(BaseError): """Resolution input is not right."""
[文档] class NoMatchPointError(BaseError): """Exception raised for errors 0 keypoint found in the input images."""
[文档] class MatchResultCheckError(BaseError): """Exception raised for errors 0 keypoint found in the input images."""