Integrate native AI-powered document edge detection, automatic perspective cropping, OCR text extraction, and PDF export.
Integrate AI-powered document scanning into your mobile application. Nativine embeds native Machine Learning document scanner SDKs, delivering real-time edge detection, perspective perspective cropping, shadow removal, and PDF export.
Mobile document scanning is vital for fintech, insurance, legal, and enterprise workflow apps. Nativine's native AI Document Scanner plugin utilizes device GPU/NPU cores for instant document capture:
To launch the AI Document Scanner camera interface from JavaScript, call nativine.documentScanner.scan():
nativine.documentScanner.scan({
maxPages: 5,
outputFormat: 'pdf',
enableOcr: true,
callback: 'onDocumentScanned',
onError: 'onScanError'
});
function onDocumentScanned(result) {
console.log("PDF File URI:", result.pdfUri);
console.log("Extracted OCR Text:", result.extractedText);
}
| Parameter | Type | Description |
|---|---|---|
maxPages | integer | Optional. Maximum pages allowed in a single multi-page scan session. |
outputFormat | string | Optional. Output file format (pdf, jpg, png, default: pdf). |
Yes. All edge detection, perspective warping, and OCR processing happen 100% locally on the device GPU without sending images to external cloud servers.
Yes. The bridge returns local file URIs that can be submitted via standard web HTML form multipart data or JS fetch() requests.