Launch a native scanner that detects page edges and crops documents.
Launch native document camera scanner with automatic edge detection, contrast enhancement, and cropping. Returns the scanned document as a base64-encoded image.
import nativine from 'nativine';
const { base64Image } = await nativine.scanner.scanDocument();
base64Image — The scanned document as a base64-encoded JPEG string. You can display it directly in an <img> tag or upload it to your server.