BorderDetectionImageView

Displays a detected document quadrangle on top of an image and lets the user adjust its corners.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet)

Types

Link copied to clipboard

Receives corner focus changes while the user adjusts the quadrangle.

Properties

Link copied to clipboard

Quadrangle currently displayed by the view.

Functions

Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent): Boolean

Handles corner dragging to update the displayed quadrangle.

Link copied to clipboard

Set listener for focus/unfocus events. Can be used to update a magnifier view, for instance.

Link copied to clipboard

Set color of the overlay

Link copied to clipboard

Sets the overlay color from a color resource.