FeedbackResult

data class FeedbackResult(val userAction: UserAction, val corners: Array<IntArray> = emptyArray(), val glareCorners: Array<IntArray> = emptyArray(), val warnings: List<UserAction> = emptyList(), val metaData: MiSnapController.FeedbackResult.Metadata? = null)

Results of analyzing a Frame whose quality is not enough.

Constructors

Link copied to clipboard
constructor(userAction: UserAction, corners: Array<IntArray> = emptyArray(), glareCorners: Array<IntArray> = emptyArray(), warnings: List<UserAction> = emptyList(), metaData: MiSnapController.FeedbackResult.Metadata? = null)

Types

Link copied to clipboard
data class Metadata(val luma: Int? = null)

Describes complementary information about a FeedbackResult.

Properties

Link copied to clipboard

An array that represents the four corners of a document, if detected.

Link copied to clipboard

An array that represents the four corners of a glare box, if detected.

Link copied to clipboard

Additional information about the result.

Link copied to clipboard

A UserAction that represents the most important warning suggested to fix to get a good quality frame.

Link copied to clipboard

A complete list of UserAction representing the actions that the user must perform to meet the frame quality criteria.