# Class DocumentScanner

java.lang.Object
com.codename1.ai.vision.DocumentScanner

All Implemented Interfaces:
  `VisionAnalyzer<DocumentScanResult>, AutoCloseable`

public final class DocumentScanner extends Object
Creates reusable document-boundary and perspective-correction analyzers.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DocumentScanner()`
  `DocumentScanner(VisionOptions options)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final void`
  `close()`
  `final boolean`
  `isSupported()`
  `final AsyncResource<DocumentScanResult>`
  `process(VisionImage image)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DocumentScanner

    public DocumentScanner()

  - ### DocumentScanner

    public DocumentScanner(VisionOptions options)

- ## Method Details

  - ### isSupported

    public final boolean isSupported()
    Specified by:
      `isSupported` in interface `VisionAnalyzer<T>`

  - ### process

    public final AsyncResource<DocumentScanResult> process(VisionImage image)
    Specified by:
      `process` in interface `VisionAnalyzer<T>`

  - ### close

    public final void close()
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `VisionAnalyzer<T>`