Package io.anyline2.camera
Class ImageReceiver
-
- All Implemented Interfaces:
public class ImageReceiver
A 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 AnylineYuvImage
getRawYuvImage()
Get the full frame as an AnylineYuvImage. AnylineYuvImage
getYuvImage(boolean greyOnly)
Get the full frame as an AnylineYuvImage. AnylineYuvImage
getYuvImage(@NonNull() Rect cropRect, boolean greyOnly)
Get the frame cropped to the given rect (relative to the frame in the view's orientation). -
-
Method Detail
-
getRawYuvImage
AnylineYuvImage getRawYuvImage()
Get the full frame as an AnylineYuvImage.
- Returns:
the full frame as an AnylineYuvImage.
-
getYuvImage
@NonNull() AnylineYuvImage getYuvImage(boolean greyOnly)
Get the full frame as an AnylineYuvImage.
Prefer getYuvImage, if only a some part of the frame is required (faster)
- Parameters:
greyOnly
- true if image can be grey only (faster), false to also get colors- Returns:
the full frame as an AnylineYuvImage.
-
getYuvImage
@NonNull() AnylineYuvImage getYuvImage(@NonNull() Rect cropRect, boolean greyOnly)
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.greyOnly
- true if image can be grey only (faster), false to also get colors- Returns:
the frame cropped to the given rect
-
-
-
-