GiniVisionDebug

This class allows you to enable and disable debugging for the Gini Vision Library.

Debugging is disabled by default.

Warning: Don't forget to disable debugging before releasing.

If debug is enabled:

  • The reviewed jpegs are written to a folder called {@code ginivisionlib} in your app's external directory.

public final class GiniVisionDebug

Functions

disable
Link copied to clipboard

Disables debugging for the Gini Vision Library.

static void disable()
enable
Link copied to clipboard

Enables debugging for the Gini Vision Library.

static void enable()
writeDocumentToFile
Link copied to clipboard

Helper for writing a document to file. Has no effect if debugging is disabled.

The filename consists of a timestamp concatenated with the suffix. Ex.: if suffix is "_original" then {@code 1469541253_original.jpeg}

Destination directory is {@code ginivisionlib} inside your apps external files directory: {@code /sdcard/Android/data/your.app.id/files/ginivisionlib/}

static void writeDocumentToFile(Context context, Document document, String suffix)