craftar. Capture
new craftar.Capture(htmlElement)
Capture.js, line 9
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.
Name | Type | Description |
---|---|---|
htmlElement |
DomElement | optional
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. |
Extends
- EventEmitter
Methods
-
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.
Fires:
Events
-
error
Capture.js, line 50 -
Fired when an error occurs during capture startup
Name Type Description error
Object Details of the error.
-
started
Capture.js, line 40 -
Fired when the capture started successfully
Comments
0 comments
Article is closed for comments.