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
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
utilsbecause 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