Capture Capture module allows to create a canvas element that contains a video capture and can be used by the CloudRecognition to perform visual searches in FinderMode. This module uses EventEmitter to produce events when the capture is started or an error is produced.
A dom video element from your view to add the video capture to. This parameter is optional, if it is not passed, one will be assigned to the domElement attribute.
start()Capture.js, line 117
Start capturing. This function trigers a started event when the capture has started and is ready to attach to the FinderMode.
errorCapture.js, line 50
Fired when an error occurs during capture startup
Name Type Description
Details of the error.
startedCapture.js, line 40
Fired when the capture started successfully