init()

Description

Creates a DcsDocument object from UIImage.

Syntax

func init(image:UIImage)

Parameters

image:UIImage The image data to create object from.

Return value

Any

Remarks

When image is not nil, it will detect the boundary of the document and process it asynchorously. init will return immediately, in other words, it doesn't wait for the process to finish. At this time, isReady returns NO. When the process is done, isReady returns YES.

Exceptions

Circumstance Exception thrown
Image is nil DcsValueNotValidException
Some operations to DcsDocument are done before isReady turns true. DcsDocumentNotReadyException

 

Is this page helpful?

Leave a Reply

Your email address will not be published.