|
Scanbot SDK
|
API for document detection and scanning. More...
Public Member Functions | |
| None | __init__ (self, *, Optional[DocumentScannerConfiguration] configuration=None) |
| Initialize the document detector. | |
| DocumentDetectionResult | run (self, *, ImageRef image) |
| Detect the document contour in the given image. | |
| DocumentScanningResult | scan (self, *, ImageRef image) |
| Detect the document contour in the given image and crop it. | |
| None | clear_result (self) |
| Clears the accumulated results. | |
API for document detection and scanning.
Required licence feature(s): DocumentScanner.
| None __init__ | ( | self, | |
| * | , | ||
| Optional[DocumentScannerConfiguration] | configuration = None ) |
Initialize the document detector.
| configuration | The configuration for the document detector. |
| None clear_result | ( | self | ) |
Clears the accumulated results.
Should be called after a document has been detected to the customers satisfaction to prevent a poisoned cache.
| DocumentDetectionResult run | ( | self, | |
| * | , | ||
| ImageRef | image ) |
Detect the document contour in the given image.
| image | The image to detect the document contour in. |
| DocumentScanningResult scan | ( | self, | |
| * | , | ||
| ImageRef | image ) |
Detect the document contour in the given image and crop it.
| image | The image to detect the document contour in. |