@anytestforpm/ocr 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/ocr.js +2 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Install
2
2
  npm i @anytestforpm/ocr
3
3
  # Language Support
4
- Region VN IN ID BR MM
4
+ 支持地區為: VN IN ID BR MM TH EN
5
5
  # Usage Example
6
- 1.初始化OCR的辨識語系及API路由設定,取得后台設定檔
6
+ 1.初始化OCR的辨識語系及API路由設定,就會自動取得后台設定檔
7
7
  ```javascript
8
8
  import { initOCR } from '@anytestforpm/ocr';
9
9
 
10
10
  mounted() {
11
11
  //initOCR
12
- //@param {String} VN IN ID BR MM
12
+ //@param {String} VN IN ID BR MM ...
13
13
  //@param {String} API URL
14
14
  if (process.env.NODE_ENV === 'production') {
15
15
  initOCR('VN','https://your-api-domain/api/xxx');
package/ocr.js CHANGED
@@ -11,7 +11,8 @@ const OCR_LANGUAGE_MAP = {
11
11
  IN: "hin",
12
12
  BR: "por",
13
13
  EN: "eng",
14
- MM: "mya+eng"
14
+ MM: "mya+eng",
15
+ TH: "tha+eng"
15
16
  }
16
17
 
17
18
  const setResponseData = (val) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anytestforpm/ocr",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "ocr.js",
6
6
  "scripts": {