Skip to main content

Utilities | Web Document and Barcode Scanner

In addition to numerous view and image processing functions, Scanbot Web SDK also features various utility functions.

Please note that utilities are available after initialization, under the instance returned by initialize, therefore, if ScanbotSDK initialization fails, utilities are not available either.

  • isCameraSupported() โ€“ Checks whether the browser or device supports camera access. Please note that this functionality is specifically located under utils because ScanbotSDK cannot guarantee the reliability of this functionality. Browsers and their functions are, by design, not backward compatible or future-proof. In niche situations (browsers, devices) it is bound to produce false positives. Other SDK features (import image, apply a filter, etc. are still available even if the camera is not)
  • flash() โ€“ Simple flash animation that you can call in the detection callback to add a bit of flare to your application