Class DPIBasedDewarpPolicy
java.lang.Object
com.microblink.blinkid.entities.recognizers.templating.DewarpPolicy
com.microblink.blinkid.entities.recognizers.templating.dewarpPolicies.DPIBasedDewarpPolicy
DPI based dewarp policy. Dewarp height will be calculated based on
actual physical size provided by the
com.microblink.blinkid.entities.detectors.quad.QuadWithSizeDetector
and requested DPI (dots per inch).
This policy is usually best for processor groups that prepare
image for output (e.g. ImageReturnProcessor
).-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default DPI that will be used with default constructor -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getDPI()
Returns the desired DPI as defined by this policy.protected void
setNativePolicy
(long nativeProcessorContext)
-
Field Details
-
DEFAULT_DPI
public static final int DEFAULT_DPIDefault DPI that will be used with default constructor- See Also:
-
-
Constructor Details
-
DPIBasedDewarpPolicy
public DPIBasedDewarpPolicy() -
DPIBasedDewarpPolicy
public DPIBasedDewarpPolicy(@IntRange(from=100L,to=400L) int desiredDPI) - Parameters:
desiredDPI
- Desired DPI (dots per inch
-
-
Method Details
-
setNativePolicy
protected void setNativePolicy(long nativeProcessorContext) - Specified by:
setNativePolicy
in classDewarpPolicy
-
getDPI
public int getDPI()Returns the desired DPI as defined by this policy.- Returns:
- the desired DPI
-