Class NoUpScalingDewarpPolicy
java.lang.Object
com.microblink.blinkid.entities.recognizers.templating.DewarpPolicy
com.microblink.blinkid.entities.recognizers.templating.dewarpPolicies.NoUpScalingDewarpPolicy
No upscaling dewarp policy. Dewarp height will be calculated in a way
that no part of image will be up-scaled. However, if dewarp height
calculated in this way is larger than value defined by maxAllowedDewarpHeight,
then maxAllowedDewarpHeight will be used for dewarp height, effectively scaling
down the image.
This policy is usually best for processor groups that use DEEP OCR,
hologram detection or NN-based classification.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default max allowed dewarp height used when using default constructor. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the max allowed dewarp height as specified by this policy.protected void
setNativePolicy
(long nativeProcessorContext)
-
Field Details
-
DEFAULT_MAX_ALLOWED_DEWARPED_HEIGHT
public static final int DEFAULT_MAX_ALLOWED_DEWARPED_HEIGHTDefault max allowed dewarp height used when using default constructor.- See Also:
-
-
Constructor Details
-
NoUpScalingDewarpPolicy
public NoUpScalingDewarpPolicy() -
NoUpScalingDewarpPolicy
public NoUpScalingDewarpPolicy(@IntRange(from=1L,to=65535L) int maxAllowedDewarpHeight) - Parameters:
maxAllowedDewarpHeight
- Max allowed dewarp height.
-
-
Method Details
-
setNativePolicy
protected void setNativePolicy(long nativeProcessorContext) - Specified by:
setNativePolicy
in classDewarpPolicy
-
getMaxAllowedDewarpHeight
public int getMaxAllowedDewarpHeight()Returns the max allowed dewarp height as specified by this policy.- Returns:
- the max allowed dewarp height
-