Processing documents

When documents have been detected and captured into Dynamsoft camera image viewer, you can start processing them. You can:

  1. Copy one of them to a document editor by calling the method editDocument()

    /* Show the first document in the document editor */
    imageViewer.image.editDocument('DocumentEditorContainer', 0); 
    
  2. Adjust the contrast of the document using adjustContrast()
    /* Adjust the contrast of the document */
    documentEditor.document.adjustContrast(10); 
    
  3. Adjust the brightness of the document using adjustBrightness()

    /* Adjust the brightness of the document */
    documentEditor.document.adjustBrightness(10); 
    
  4. Rotate the document by 90 degrees clockwise/counter-clockwise.

    documentEditor.document.rotateRight(); // Rotate the document by 90 degrees clockwise
    documentEditor.document.rotateLeft();  // Rotate the document by 90 degrees counter-clockwise
    
  5. Convert the document to a colored or grey document.

    documentEditor.document.toColor(); // Convert to a colored document
    documentEditor.document.toGrey();  // Convert to a grey document
    

Related methods

Is this page helpful?

Leave a Reply

Your email address will not be published.