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
## Authors: Gaspare Ferraro, Renzo Sala, Simone Ponte, Paolo Macco
3
3
4
4
BCR Library is a javascript library, using the OCR engine Tesseract.JS, that extracts name, company name, job, address, phone numbers, email and web address out of a business card picture.
@@ -22,17 +22,91 @@ If you use cordova, you can add the `browser` platform and run it (it works on o
22
22
# Reference
23
23
24
24
## Methods
25
-
### Init method
26
-
`bcr.initialize();`
25
+
### Init methods
26
+
`bcr.initialize(crop, language, width, height);`
27
+
28
+
Initialize the bcr reader.
29
+
30
+
Where:
31
+
32
+
-**STRING**`crop`: the crop strategy (see [languages](#languages)), default `languages.GERMAN`.
33
+
-**STRING**`language`: the language trained data (see [cropStrategy](#cropStrategy)), default `cropStrategy.SMART`.
34
+
-**NUMBER**`width`: max internal width, default `2160`.
35
+
-**NUMBER**`height`: max internal height, default `1440`.
36
+
- Return Promise about JS loading.
37
+
38
+
---------------
39
+
40
+
`initializeForBCR(dynamicInclude);`
41
+
42
+
Initialize bcr reader given the ocr from google mobile vision text recognition API (cordova-plugin-mobile-ocr).
43
+
44
+
Where:
45
+
-**BOOL**`dynamicInclude`: if the references are not included externally (default `true`).
0 commit comments