Text Recognition
After a successful scan of a document, you can get the detected text of the entire document or single pages.
Initialization
- Follow the Getting started guide
- Initialize the Docutain Flutter SDK as described here
Get the detected text
In order to get the detected text of the entire document, call the following line of code:
bool rcScan = await DocutainSdkUi.scanDocument(scanConfig);
if(rcScan){
final text = await DocutainSdkDocumentDataReader.getText();
}
In order to get the detected text of a specific page, specify the page number:
bool rcScan = await DocutainSdkUi.scanDocument(scanConfig);
if(rcScan){
final text = await DocutainSdkDocumentDataReader.getText(pageNumber: 1);
}