Package io.scanbot.sdk.camera
Class FrameHandler.Frame
-
- All Implemented Interfaces:
public final class FrameHandler.Frame
Represents captured frame data and bounds.
-
-
Field Summary
Fields Modifier and Type Field Description private final ByteArray
frame
private final Integer
width
private final Integer
height
private final Integer
frameOrientation
private final Rect
finderRect
private final RectF
visibleRect
private final Integer
finderInnerThresholdPx
private final Integer
finderOuterThresholdPx
-
Method Summary
Modifier and Type Method Description final ByteArray
getFrame()
final Integer
getWidth()
final Integer
getHeight()
final Integer
getFrameOrientation()
final Rect
getFinderRect()
final RectF
getVisibleRect()
final Integer
getFinderInnerThresholdPx()
final Integer
getFinderOuterThresholdPx()
Boolean
equals(Object other)
Integer
hashCode()
-
-
Constructor Detail
-
FrameHandler.Frame
FrameHandler.Frame(ByteArray frame, Integer width, Integer height, Integer frameOrientation, Rect finderRect, RectF visibleRect, Integer finderInnerThresholdPx, Integer finderOuterThresholdPx)
- Parameters:
frame
- image in NV21 formatwidth
- width of the imageheight
- height of the imageframeOrientation
- orientation of the image (in degrees)finderRect
- finder overlay areavisibleRect
- visible preview areafinderInnerThresholdPx
- inner finder thresholdfinderOuterThresholdPx
- outer finder threshold
-
-
Method Detail
-
getFrameOrientation
final Integer getFrameOrientation()
-
getFinderRect
final Rect getFinderRect()
-
getVisibleRect
final RectF getVisibleRect()
-
getFinderInnerThresholdPx
final Integer getFinderInnerThresholdPx()
-
getFinderOuterThresholdPx
final Integer getFinderOuterThresholdPx()
-
-
-
-