Class FixedDewarpPolicy
java.lang.Object
com.microblink.blinkid.entities.recognizers.templating.DewarpPolicy
com.microblink.blinkid.entities.recognizers.templating.dewarpPolicies.FixedDewarpPolicy
Fixed dewarp policy. Dewarp height will be exactly as defined by its dewarpHeight.
This policy is usually best for processor groups that use legacy BlinkOCR.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default dewarp height value used when using default constructor. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the desired dewarp height (in pixels) as specified by this policy.protected void
setNativePolicy
(long nativeProcessorContext)
-
Field Details
-
DEFAULT_DEWARP_HEIGHT
public static final int DEFAULT_DEWARP_HEIGHTDefault dewarp height value used when using default constructor.- See Also:
-
-
Constructor Details
-
FixedDewarpPolicy
public FixedDewarpPolicy() -
FixedDewarpPolicy
public FixedDewarpPolicy(@IntRange(from=1L,to=65535L) int dewarpHeight) - Parameters:
dewarpHeight
- Desired dewarp height in pixels. Note that if device does not support given dewarp height, the max supported by the device will be used.
-
-
Method Details
-
setNativePolicy
protected void setNativePolicy(long nativeProcessorContext) - Specified by:
setNativePolicy
in classDewarpPolicy
-
getDewarpHeight
public int getDewarpHeight()Returns the desired dewarp height (in pixels) as specified by this policy.- Returns:
- the desired dewarp height
-