Package org.hildan.ocr
Class NoAcceptableMatchException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class NoAcceptableMatchException extends Exception
Thrown when no reference image from the given list has matched a sub-image with sufficient score. This often means that a reference image is missing for the character in question. The unmatchedSubImage is available on this exception so it can be saved and manually labeled.
-
-
Field Summary
Fields Modifier and Type Field Description private final BufferedImageunmatchedSubImageprivate final BufferedImageoriginalImageprivate final Throwablecauseprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description NoAcceptableMatchException(BufferedImage unmatchedSubImage, BufferedImage originalImage)
-
Method Summary
Modifier and Type Method Description final BufferedImagegetUnmatchedSubImage()final BufferedImagegetOriginalImage()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NoAcceptableMatchException
NoAcceptableMatchException(BufferedImage unmatchedSubImage, BufferedImage originalImage)
-
-
Method Detail
-
getUnmatchedSubImage
final BufferedImage getUnmatchedSubImage()
-
getOriginalImage
final BufferedImage getOriginalImage()
-
-
-
-