Package io.anyline2.camera
Class ImageReceiver
-
- All Implemented Interfaces:
public class ImageReceiverA helper class for receiving images.
Do NOT store this class when received from the ImageListener, the underlying image may be changed.
-
-
Method Summary
Modifier and Type Method Description AbstractAnylineImagegetRawImage()Get the full frame as an AnylineYuvImage. AnylineYuvImagegetYuvImage(boolean grayOnly)Get the full frame as an AnylineYuvImage. AnylineYuvImagegetYuvImage(@NonNull() Rect cropRect, boolean grayOnly)Get the frame cropped to the given rect (relative to the frame in the view's orientation). -
-
Method Detail
-
getRawImage
AbstractAnylineImage getRawImage()
Get the full frame as an AnylineYuvImage.
- Returns:
the full frame as an AnylineYuvImage.
-
getYuvImage
@NonNull() AnylineYuvImage getYuvImage(boolean grayOnly)
Get the full frame as an AnylineYuvImage.
Prefer getYuvImage, if only a some part of the frame is required (faster)
- Parameters:
grayOnly- true if image can be gray only (faster), false to also get colors- Returns:
the full frame as an AnylineYuvImage.
-
getYuvImage
@NonNull() AnylineYuvImage getYuvImage(@NonNull() Rect cropRect, boolean grayOnly)
Get the frame cropped to the given rect (relative to the frame in the view's orientation).
- Parameters:
cropRect- the rect to crop relative to the camera frame in the orientation of the view.grayOnly- true if image can be gray only (faster), false to also get colors- Returns:
the frame cropped to the given rect
-
-
-
-