-
public final class DocumentCropper
-
-
Constructor Summary
Constructors Constructor Description DocumentCropper(ByteArray imageBytes)
-
Method Summary
-
-
Constructor Detail
-
DocumentCropper
DocumentCropper(ByteArray imageBytes)
-
-
Method Detail
-
basicCrop
final ByteArray basicCrop(List<PointF> uiCorners, Float viewWidth, Float viewHeight, Float paddingPercent)
Maps the UI guiding lines, expands them outward by a fixed percentage, flattens the perspective natively, and returns a compressed JPEG ByteArray.
- Parameters:
uiCorners- Exactly 4 points representing the guiding lines from your UI overlay.viewWidth- The actual width of your camera preview layout view.viewHeight- The actual height of your camera preview layout view.paddingPercent- The percentage to scale outward from the center (e.g., 0.08f for 8%).
-
-
-
-