Skip to content

Commit 80cf96f

Browse files
author
Michaël Villeneuve
committed
Update readme
1 parent 44fa7e2 commit 80cf96f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ class YourComponent extends Component {
6565
| contrast | `1` | `float` | Increase or decrease camera contrast. Normal as default |
6666

6767
## Each rectangle detection
68-
| Prop | Params | Type | Description |
69-
| :------ | :------: | :--------:| :--------|
70-
| onRectangleDetect | `{ stableCounter, lastDetectionType }` | `object` | See below |
68+
| Props | Params | Type | Description |
69+
|-------------------|----------------------------------------|----------|-------------|
70+
| onRectangleDetect | `{ stableCounter, lastDetectionType }` | `object` | See below |
7171

7272
The returned object includes the following keys :
7373

74-
`stableCounter`
75-
---
74+
- `stableCounter`
75+
7676
Number of correctly formated rectangle found (this number triggers capture once it goes above `detectionCountBeforeCapture`)
7777

78-
`lastDetectionType`
79-
---
78+
- `lastDetectionType`
79+
8080
Enum (0, 1 or 2) corresponding to the type of rectangle found
8181
0. Correctly formated rectangle
8282
1. Wrong perspective, bad angle
@@ -86,7 +86,7 @@ Enum (0, 1 or 2) corresponding to the type of rectangle found
8686
## Returned image
8787

8888
| Prop | Params | Type | Description |
89-
| :----------- | :-------: | :--------:| :----------|
89+
| :----------- |:-------:| :--------:| :----------|
9090
| onPictureTaken | `data` | `object` | Returns the captured image in an object `{ image: 'BASE64 string'}` |
9191

9292

0 commit comments

Comments
 (0)