Class PaddleOcrInitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.itextpdf.commons.exceptions.ITextException
com.itextpdf.pdfocr.exceptions.PdfOcrException
com.itextpdf.pdfocr.onnx.exceptions.PaddleOcrInitException
- All Implemented Interfaces:
-
Serializable
Exception class for exceptions during PaddleOCR initialization.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPaddleOcrInitException(String message) Creates newPaddleOcrInitExceptioninstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic PaddleOcrInitExceptionCreates an exception for cases, when the detection model does not return quads.static PaddleOcrInitExceptionCreates an exception to assertchannel_firstis set tofalse.static PaddleOcrInitExceptionCreates an exception for cases, when the detection model uses an unsupported method for resizing input images.static PaddleOcrInitExceptionCreates an exception for cases, when an expected pre-processing operation is missing in the configuration file.static PaddleOcrInitExceptionCreates an exception for cases, when the detection model uses an unsupported score calculation method.static PaddleOcrInitExceptionunexpectedMeanChannelCount(int expectedCount) Creates an exception for cases, when the size of the array of means for normalization has an unexpected size.static PaddleOcrInitExceptionCreates an exception for cases, when an unexpected post-processor is specified in the configuration file.static PaddleOcrInitExceptionunexpectedStdChannelCount(int expectedCount) Creates an exception for cases, when the size of the array of standard deviations for normalization has an unexpected size.static PaddleOcrInitExceptionCreates an exception for cases, when the detection model uses an unsupported pre-processing step for input images.Methods inherited from class com.itextpdf.pdfocr.exceptions.PdfOcrException
getMessage, getMessageParams, setMessageParamsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PaddleOcrInitException
Creates newPaddleOcrInitExceptioninstance.- Parameters:
-
message- exception message
-
-
Method Details
-
boxTypeIsNotSupported
Creates an exception for cases, when the detection model does not return quads.- Returns:
- the created exception
-
channelFirstIsNotSupported
Creates an exception to assertchannel_firstis set tofalse.- Returns:
- the created exception
-
imageShapeIsNotSupported
Creates an exception for cases, when the detection model uses an unsupported method for resizing input images.- Returns:
- the created exception
-
preProcessorOperationMissing
Creates an exception for cases, when an expected pre-processing operation is missing in the configuration file.- Parameters:
-
name- name of the missing pre-processing operation - Returns:
- the created exception
-
scoreModeIsNotSupported
Creates an exception for cases, when the detection model uses an unsupported score calculation method.- Returns:
- the created exception
-
unexpectedMeanChannelCount
Creates an exception for cases, when the size of the array of means for normalization has an unexpected size.- Parameters:
-
expectedCount- expected size of the array - Returns:
- the created exception
-
unexpectedPostProcessorType
Creates an exception for cases, when an unexpected post-processor is specified in the configuration file.- Parameters:
-
name- name of the post-processor that was found - Returns:
- the created exception
-
unexpectedStdChannelCount
Creates an exception for cases, when the size of the array of standard deviations for normalization has an unexpected size.- Parameters:
-
expectedCount- expected size of the array - Returns:
- the created exception
-
useDilationIsNotSupported
Creates an exception for cases, when the detection model uses an unsupported pre-processing step for input images.- Returns:
- the created exception
-