You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,22 @@ Work in progress...
15
15
The plugin aims to be used with iOS version >= 7.
16
16
17
17
## Usage
18
-
The plugin offers two functions `isDetecting` and `setPattern`.
18
+
The plugin offers the functions `startProcessing`, `isDetecting` and `setPattern`.
19
+
20
+
`startProcessing` - the plugin will process the video frames captured by the camera if the inputed argument is `true`, if the argument is `false` no frames will be processed. Calls on success if the argument is set and on error if no value set.
21
+
**Note:** the plugins start with this option true.
22
+
```javascript
23
+
startProcessing(true or false, successCallback, errorCallback);
24
+
```
25
+
19
26
`isDetecting` - the plugin will callback on success function if detecting the pattern or on error function if it's not.
20
27
```javascript
21
28
isDetecting(successCallback, errorCallback);
22
29
```
30
+
`setDetectionTimeout` - this function will set a timeout (**in seconds**) in which the processing of the frames will not occur. Calls on success if the argument is set and on error if no value set.
`setPattern` - sets the new pattern target to be detected. Calls on success if the pattern is set and on error if no pattern set. The input pattern must be a base64 image.
0 commit comments