@things-factory/reference-app 4.0.12 → 4.0.17
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.
- package/attachments/03176f83-6c50-4850-ab43-e6765b259afd.png +0 -0
- package/attachments/2b963bee-3ca5-4a86-95b7-e557b7eba8eb.html +5695 -0
- package/attachments/4880d6fb-7045-4c50-bfb9-daf83ecf6cc1.png +0 -0
- package/attachments/5bcde766-32e5-4cdc-ad9b-9e0139c122f4.txt +673 -0
- package/attachments/6f9d5fd4-6546-40c6-90c0-0207233ad12f.json +145 -0
- package/attachments/a1aaa123-4c8d-485e-9975-5b5b4add6a30.png +0 -0
- package/attachments/{02d2c4ea-147a-411e-a34e-5dbd96eea3f8.jpeg → a518af54-7d8f-43c1-95f7-4a4353b3afc5.jpeg} +0 -0
- package/attachments/{0554c8c2-aefe-4ce5-b030-94c643976577.jpeg → b2331d78-f55d-4b9e-8aae-34f80c1252b3.jpeg} +0 -0
- package/attachments/b9a3e2fd-fe83-4394-8fc8-66478443f65e.png +0 -0
- package/attachments/be3d2cd7-d236-45af-b512-4f141c8e2cfc.pptx +0 -0
- package/attachments/d211b356-1619-4f2b-9b10-ed46b4fd82de.png +0 -0
- package/attachments/d445e1a1-a048-49d7-96f2-284ac00fe96a.png +0 -0
- package/attachments/d462b12b-d519-4d6c-861a-f56d2494b135.png +0 -0
- package/attachments/f63986fb-bef5-4b55-a342-6fd4abf26739.png +0 -0
- package/client/components/ocr-viewpart.js +26 -10
- package/client/pages/label-scan-page.js +3 -4
- package/db.sqlite +0 -0
- package/dist-server/service/reference/lambda-call.js +13 -18
- package/dist-server/service/reference/lambda-call.js.map +1 -1
- package/dist-server/service/reference/reference-query.js +3 -3
- package/dist-server/service/reference/reference-query.js.map +1 -1
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +3 -13
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +15 -25
- package/logs/application-2021-12-13-00.log +5 -0
- package/logs/{connections-2021-11-23-19.log → connections-2021-11-29-20.log} +0 -0
- package/logs/{connections-2021-11-24-10.log → connections-2021-11-29-21.log} +0 -0
- package/logs/{connections-2021-11-24-17.log → connections-2021-11-29-23.log} +0 -0
- package/logs/{connections-2021-11-24-18.log → connections-2021-12-04-12.log} +0 -0
- package/logs/{connections-2021-12-06-18.log → connections-2021-12-13-00.log} +0 -0
- package/package.json +43 -43
- package/server/service/reference/lambda-call.ts +11 -16
- package/server/service/reference/reference-query.ts +3 -3
- package/attachments/05284c84-1330-4b54-a698-bcd3020d9d90.png +0 -0
- package/attachments/0598f578-ddd9-4b8c-8726-74ea5fe13778.jpeg +0 -0
- package/attachments/09fd9f4d-1909-4fbb-b5bd-b3604dd44d83.pdf +0 -0
- package/attachments/0c759fb7-b15a-4eba-b55f-1c97c9320e12.jpeg +0 -0
- package/attachments/0ca13d71-3df4-4932-b834-0057a6454776.jpeg +0 -0
- package/attachments/0fe94be8-c2bf-44ea-b8bd-3b2e5d65cb07.png +0 -0
- package/attachments/105aff20-62d2-41ae-a9ab-8ea1eb03a064.jpeg +0 -0
- package/attachments/124d6ef2-6ab9-4963-8b0b-5f8607b79a5b.png +0 -0
- package/attachments/1e647161-13ff-4540-9115-0fe383860516.jpeg +0 -0
- package/attachments/1e7fec94-e08f-468e-af89-e108904e4401.png +0 -0
- package/attachments/1ee44a5b-b946-4609-bf09-bc4f741325f1.png +0 -0
- package/attachments/2b1cfec6-4d1c-4130-8ac5-5dffa64ac4d5.png +0 -0
- package/attachments/3a328a7f-b7fd-4ea1-9c4c-005e24e1e897.png +0 -0
- package/attachments/3c562896-8cc8-489b-8760-5109602b631a.jpeg +0 -0
- package/attachments/426bd3d4-aaec-496c-8d20-a84692d574dc.jpeg +0 -0
- package/attachments/4412432a-b79b-49b8-81b2-af6b927703b4.png +0 -0
- package/attachments/5427ece0-13b3-48a8-ac14-b25dcfae3cd9.jpeg +0 -0
- package/attachments/56aad6a3-e99d-4186-985b-d8d3ccd4ab68.jpeg +0 -0
- package/attachments/5a4d23c9-6fa0-43ce-87d1-27fbb252438d.jpeg +0 -0
- package/attachments/5a564ed4-1858-4656-8d88-b6a490bc0309.jpeg +0 -0
- package/attachments/5d34b97a-61b9-472f-a88f-636b85c1e45c.jpeg +0 -0
- package/attachments/5dc41b95-4970-4221-accb-86afa94b4f3b.png +0 -0
- package/attachments/60ca3d2a-cfa4-4f14-b952-a96be9f64f96.png +0 -0
- package/attachments/62232866-32ef-43fe-b84b-993d074c173d.png +0 -0
- package/attachments/6309383a-7c72-4a2c-8fb9-b14fe4f1905a.jpeg +0 -0
- package/attachments/63142721-6030-4889-b52d-d21e8ddd52cd.jpeg +0 -0
- package/attachments/6a284a40-de4a-4e79-adbb-fe2ac6f123d4.png +0 -0
- package/attachments/6b1839fa-098b-4881-9d26-f950282f0ee7.pdf +0 -0
- package/attachments/6cb59217-600f-47a1-91fc-299c27e5e248.png +0 -0
- package/attachments/6da5c66a-08a0-409b-8f35-1a953cf44c3f.jpeg +0 -0
- package/attachments/70bd97b9-0cfe-4c43-9cba-3c0dbedfff70.jpeg +0 -0
- package/attachments/71a71839-5521-456b-8eee-134b5f0a6c1c.jpeg +0 -0
- package/attachments/7f4f78ba-bfe5-466c-88b4-b31824263b84.png +0 -0
- package/attachments/82214212-6296-4c73-812f-18a509368247.jpeg +0 -0
- package/attachments/8488bba6-353a-4f77-84be-1526c92f7b7f.png +0 -0
- package/attachments/891d2e46-a01d-408d-b715-4513fcb52240.jpeg +0 -0
- package/attachments/8a240663-dffe-4c20-a6a0-51e4561c2037.png +0 -0
- package/attachments/8b82bd3d-10ed-4c9e-94d5-7f01400b1fe1.jpeg +0 -0
- package/attachments/8cee2fe7-1bb9-48b1-b759-1efd0164b8c9.jpeg +0 -0
- package/attachments/90ea058c-ed47-4802-a694-bce0e86c217f.png +0 -0
- package/attachments/92be3157-e6b1-4104-b86c-4e510895a71e.jpeg +0 -0
- package/attachments/93a9638b-34b6-4625-9a23-dc088d5ed615.jpeg +0 -0
- package/attachments/9c92e78d-afcb-4d62-b51e-f73f15211314.png +0 -0
- package/attachments/a64d028e-7e33-4455-a1c4-f294250b5650.png +0 -0
- package/attachments/b1008da4-9e8a-4360-9600-2aeca8e4503a.pdf +0 -0
- package/attachments/b174f420-3f33-463a-8efd-6abad2f709fe.jpeg +0 -0
- package/attachments/b27517ec-f2ac-4735-9d8a-353af2fa5f67.png +0 -0
- package/attachments/b3b99d3b-6e95-4ac8-a349-b4bcf5d78dcd.png +0 -0
- package/attachments/b6c2d24d-8f18-4925-bc2d-4d3bffad4a02.png +0 -0
- package/attachments/b8a5d357-e196-4c32-8059-6d9b94470672.jpeg +0 -0
- package/attachments/b93a5d06-7395-4409-8680-64e8fa9542bb.jpeg +0 -0
- package/attachments/bacf8fe2-a3ef-433b-a00d-f154378db75a.png +0 -0
- package/attachments/c47bf238-810c-489b-bc2e-c942033b2ac3.png +0 -0
- package/attachments/c5953130-2bc7-4f73-ab00-835e10658027.png +0 -0
- package/attachments/c66e06b2-32d5-416e-bc8a-c057cf938491.png +0 -0
- package/attachments/c7e77261-cfa2-48e8-8135-383cb0487901.jpeg +0 -0
- package/attachments/cc7892b9-fca6-49f9-a10b-3febeef83fd2.png +0 -0
- package/attachments/d179dc14-baf5-4549-b79e-580ce6b9b897.jpeg +0 -0
- package/attachments/d5ac154b-8c03-4456-9296-e9ce0b24c9ac.png +0 -0
- package/attachments/dbf0459a-4f1a-44c6-a4fc-d73adc3e4cfa.png +0 -0
- package/attachments/de9e417e-9636-41c7-8e27-49ff2c759ddb.jpeg +0 -0
- package/attachments/e5bfd176-32ac-48c0-ad7c-d65478950e28.jpeg +0 -0
- package/attachments/e6fcee2a-cdda-4131-8f9c-90b1fa06a4f4.png +0 -0
- package/attachments/f8a9e56b-6205-4dc8-991e-eec568403810.jpeg +0 -0
- package/config.development.js +0 -7
- package/logs/application-2021-12-06-18.log +0 -9
- package/logs/application-2021-12-06-19.log +0 -12
- package/logs/application-2021-12-07-18.log +0 -5
- package/logs/connections-2021-12-06-19.log +0 -0
- package/logs/connections-2021-12-07-18.log +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "simple-switch",
|
|
4
|
+
"left": 119.16099773242632,
|
|
5
|
+
"top": 38.95691609977326,
|
|
6
|
+
"width": 99.99999999999974,
|
|
7
|
+
"height": 40.00000000000001,
|
|
8
|
+
"thumbnailColor": "#ffffff",
|
|
9
|
+
"onColor": "#2196f3",
|
|
10
|
+
"offColor": "#cccccc",
|
|
11
|
+
"rotation": 0,
|
|
12
|
+
"id": "input1"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "input-text",
|
|
16
|
+
"top": 91.57596371882084,
|
|
17
|
+
"left": 119.72789115646258,
|
|
18
|
+
"width": 255.64625850340076,
|
|
19
|
+
"height": 30,
|
|
20
|
+
"paddingLeft": 7,
|
|
21
|
+
"paddingRight": 7,
|
|
22
|
+
"fontSize": 14,
|
|
23
|
+
"fillStyle": "white",
|
|
24
|
+
"fontColor": "#585858",
|
|
25
|
+
"strokeStyle": "rgba(0,0,0,.4)",
|
|
26
|
+
"lineWidth": 1,
|
|
27
|
+
"lineDash": "solid",
|
|
28
|
+
"textAlign": "left",
|
|
29
|
+
"rotation": 0,
|
|
30
|
+
"id": "input2",
|
|
31
|
+
"mappings": [
|
|
32
|
+
{
|
|
33
|
+
"rule": "value",
|
|
34
|
+
"target": "(self)",
|
|
35
|
+
"property": "value"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "text",
|
|
41
|
+
"left": 7.4829931972789225,
|
|
42
|
+
"top": 43.934240362811806,
|
|
43
|
+
"width": 95.91836734693874,
|
|
44
|
+
"height": 50,
|
|
45
|
+
"text": "Input 1",
|
|
46
|
+
"fillStyle": "#fff",
|
|
47
|
+
"strokeStyle": "#000",
|
|
48
|
+
"alpha": 1,
|
|
49
|
+
"hidden": false,
|
|
50
|
+
"lineWidth": 5,
|
|
51
|
+
"lineDash": "solid",
|
|
52
|
+
"lineCap": "butt",
|
|
53
|
+
"textAlign": "left",
|
|
54
|
+
"textBaseline": "top",
|
|
55
|
+
"textWrap": false,
|
|
56
|
+
"fontFamily": "serif",
|
|
57
|
+
"fontSize": 30,
|
|
58
|
+
"rotation": 0
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "text",
|
|
62
|
+
"left": 7.4829931972789225,
|
|
63
|
+
"top": 94.72789115646262,
|
|
64
|
+
"width": 95.91836734693874,
|
|
65
|
+
"height": 50,
|
|
66
|
+
"text": "Input 2",
|
|
67
|
+
"fillStyle": "#fff",
|
|
68
|
+
"strokeStyle": "#000",
|
|
69
|
+
"alpha": 1,
|
|
70
|
+
"hidden": false,
|
|
71
|
+
"lineWidth": 5,
|
|
72
|
+
"lineDash": "solid",
|
|
73
|
+
"lineCap": "butt",
|
|
74
|
+
"textAlign": "left",
|
|
75
|
+
"textBaseline": "top",
|
|
76
|
+
"textWrap": false,
|
|
77
|
+
"fontFamily": "serif",
|
|
78
|
+
"fontSize": 30,
|
|
79
|
+
"rotation": 0
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "rect",
|
|
83
|
+
"left": 251.70068027210883,
|
|
84
|
+
"top": 252.4943310657596,
|
|
85
|
+
"width": 120.29478458049894,
|
|
86
|
+
"height": 32.42630385487533,
|
|
87
|
+
"fillStyle": "#fff",
|
|
88
|
+
"strokeStyle": "#000",
|
|
89
|
+
"alpha": 1,
|
|
90
|
+
"hidden": false,
|
|
91
|
+
"lineWidth": 1,
|
|
92
|
+
"lineDash": "solid",
|
|
93
|
+
"lineCap": "butt",
|
|
94
|
+
"rotation": 0,
|
|
95
|
+
"text": "OK",
|
|
96
|
+
"shadow": {
|
|
97
|
+
"left": 5,
|
|
98
|
+
"top": 5,
|
|
99
|
+
"blurSize": 5,
|
|
100
|
+
"color": "rgb(217, 13, 75)"
|
|
101
|
+
},
|
|
102
|
+
"event": {
|
|
103
|
+
"tap": {
|
|
104
|
+
"pressed": true,
|
|
105
|
+
"action": "close-scene"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"data": {
|
|
109
|
+
"result1": true,
|
|
110
|
+
"result2": "성공했습니다."
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "rect",
|
|
115
|
+
"left": 119.72789115646259,
|
|
116
|
+
"top": 252.4943310657596,
|
|
117
|
+
"width": 120.29478458049883,
|
|
118
|
+
"height": 32.42630385487533,
|
|
119
|
+
"fillStyle": "#fff",
|
|
120
|
+
"strokeStyle": "#000",
|
|
121
|
+
"alpha": 1,
|
|
122
|
+
"hidden": false,
|
|
123
|
+
"lineWidth": 1,
|
|
124
|
+
"lineDash": "solid",
|
|
125
|
+
"lineCap": "butt",
|
|
126
|
+
"rotation": 0,
|
|
127
|
+
"text": "NOT OK",
|
|
128
|
+
"shadow": {
|
|
129
|
+
"left": 5,
|
|
130
|
+
"top": 5,
|
|
131
|
+
"blurSize": 5,
|
|
132
|
+
"color": "rgb(5, 61, 55)"
|
|
133
|
+
},
|
|
134
|
+
"event": {
|
|
135
|
+
"tap": {
|
|
136
|
+
"pressed": true,
|
|
137
|
+
"action": "close-scene"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"data": {
|
|
141
|
+
"result1": false,
|
|
142
|
+
"result2": "실패했습니다."
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
]
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -55,6 +55,30 @@ class OCRViewPart extends LitElement {
|
|
|
55
55
|
`
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
extractInfosResultParser(response) {
|
|
59
|
+
const ocrResult = response.ocr?.result || []
|
|
60
|
+
const barcodeResult = response.barcode?.result || []
|
|
61
|
+
// const results = ocrResult.concat(barcodeResult)
|
|
62
|
+
if (ocrResult.length != barcodeResult.length) {
|
|
63
|
+
console.warn('ocr and barcode result size are different. It could be loss of information.')
|
|
64
|
+
}
|
|
65
|
+
const resultSize = Math.min(ocrResult.length, barcodeResult.length)
|
|
66
|
+
|
|
67
|
+
let results = []
|
|
68
|
+
for (let i = 0; i < resultSize; i++) {
|
|
69
|
+
try {
|
|
70
|
+
let boundaries = JSON.parse(ocrResult[i].boundaries)
|
|
71
|
+
boundaries = boundaries.concat(JSON.parse(barcodeResult[i].boundaries))
|
|
72
|
+
let texts = ocrResult[i].texts.concat(barcodeResult[i].texts)
|
|
73
|
+
results.push({ boundaries, texts })
|
|
74
|
+
} catch(err) {
|
|
75
|
+
console.error(err)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return results
|
|
80
|
+
}
|
|
81
|
+
|
|
58
82
|
async upload(e) {
|
|
59
83
|
FILES = this._files = e.detail
|
|
60
84
|
|
|
@@ -72,16 +96,8 @@ class OCRViewPart extends LitElement {
|
|
|
72
96
|
|
|
73
97
|
if (!response.errors) {
|
|
74
98
|
const helper = this.shadowRoot.querySelector('ox-ocr-helper')
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const barcodes = result.barcode.result
|
|
78
|
-
|
|
79
|
-
RESULT = helper.result = ocrs.map((result, idx) => {
|
|
80
|
-
return {
|
|
81
|
-
texts: [...ocrs[idx].texts, ...barcodes[idx].texts],
|
|
82
|
-
boundaries: [...JSON.parse(ocrs[idx].boundaries), ...JSON.parse(barcodes[idx].boundaries)]
|
|
83
|
-
}
|
|
84
|
-
})
|
|
99
|
+
helper.result = this.extractInfosResultParser(response.data.ocrRequest)
|
|
100
|
+
// console.log('helper.result', helper.result)
|
|
85
101
|
} else {
|
|
86
102
|
document.dispatchEvent(
|
|
87
103
|
new CustomEvent('notify', {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import '@things-factory/barcode-ui'
|
|
2
|
-
import '@operato/input/dist/src/ox-input-barcode'
|
|
3
|
-
|
|
4
|
-
import { css, html } from 'lit-element'
|
|
5
|
-
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
2
|
+
import '@operato/input/dist/src/ox-input-barcode.js'
|
|
6
3
|
|
|
7
4
|
import { PageView, store } from '@things-factory/shell'
|
|
5
|
+
import { css, html } from 'lit-element'
|
|
8
6
|
|
|
7
|
+
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
9
8
|
import { referencePageStyles } from './reference-page-styles'
|
|
10
9
|
|
|
11
10
|
class LabelScanPage extends connect(store)(PageView) {
|
package/db.sqlite
CHANGED
|
Binary file
|
|
@@ -3,32 +3,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.extractInfos = void 0;
|
|
7
7
|
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
8
8
|
const env_1 = require("@things-factory/env");
|
|
9
9
|
const utils_1 = require("@things-factory/utils");
|
|
10
10
|
const appSyncConfig = env_1.config.get('awsAppSync');
|
|
11
|
-
async function
|
|
11
|
+
async function extractInfos(images) {
|
|
12
|
+
const extraction = {
|
|
13
|
+
success_count: true,
|
|
14
|
+
failure_count: true,
|
|
15
|
+
result: {
|
|
16
|
+
boundaries: true,
|
|
17
|
+
texts: true
|
|
18
|
+
}
|
|
19
|
+
};
|
|
12
20
|
const query = utils_1.gqlBuilder.jsonToGraphQLQuery({
|
|
13
21
|
mutation: {
|
|
14
22
|
extractInfos: {
|
|
15
23
|
__args: {
|
|
16
24
|
images
|
|
17
25
|
},
|
|
18
|
-
ocr:
|
|
19
|
-
|
|
20
|
-
result: {
|
|
21
|
-
boundaries: true,
|
|
22
|
-
texts: true
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
barcode: {
|
|
26
|
-
success_count: true,
|
|
27
|
-
result: {
|
|
28
|
-
boundaries: true,
|
|
29
|
-
texts: true
|
|
30
|
-
}
|
|
31
|
-
}
|
|
26
|
+
ocr: extraction,
|
|
27
|
+
barcode: extraction
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
30
|
});
|
|
@@ -44,7 +40,7 @@ async function interpretImages(images) {
|
|
|
44
40
|
const jsonRes = await response.json();
|
|
45
41
|
return jsonRes;
|
|
46
42
|
}
|
|
47
|
-
exports.
|
|
43
|
+
exports.extractInfos = extractInfos;
|
|
48
44
|
// @deprecated
|
|
49
45
|
function getRequestBody(images) {
|
|
50
46
|
// @things-factory/utils gqlBuilder.buildArgs 와 유사
|
|
@@ -63,7 +59,6 @@ function getRequestBody(images) {
|
|
|
63
59
|
success_count
|
|
64
60
|
failure_count
|
|
65
61
|
results {
|
|
66
|
-
key_values
|
|
67
62
|
boundaries
|
|
68
63
|
texts
|
|
69
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambda-call.js","sourceRoot":"","sources":["../../../server/service/reference/lambda-call.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA8B;AAE9B,6CAA4C;AAC5C,iDAAkD;AAElD,MAAM,aAAa,GAAG,YAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;AAEvC,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"lambda-call.js","sourceRoot":"","sources":["../../../server/service/reference/lambda-call.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA8B;AAE9B,6CAA4C;AAC5C,iDAAkD;AAElD,MAAM,aAAa,GAAG,YAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;AAEvC,KAAK,UAAU,YAAY,CAAC,MAAM;IACvC,MAAM,UAAU,GAAG;QACjB,aAAa,EAAE,IAAI;QACnB,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE;YACN,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,IAAI;SACZ;KACF,CAAA;I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./lambda-call");
|
|
|
22
22
|
const debug = require('debug')('things-factory:reference-app');
|
|
23
23
|
let ReferenceQuery = class ReferenceQuery {
|
|
24
24
|
async ocrRequest(_, images, context) {
|
|
25
|
-
var _a
|
|
25
|
+
var _a;
|
|
26
26
|
const { domain, user, tx } = context.state;
|
|
27
27
|
const all = Promise.all(images);
|
|
28
28
|
if ((images === null || images === void 0 ? void 0 : images.length) > 0) {
|
|
@@ -42,9 +42,9 @@ let ReferenceQuery = class ReferenceQuery {
|
|
|
42
42
|
const formatArr = mimetype.split('/');
|
|
43
43
|
return { data: image, name: filename, format: formatArr[formatArr.length - 1] };
|
|
44
44
|
}));
|
|
45
|
-
const res = await (0, lambda_call_1.
|
|
45
|
+
const res = await (0, lambda_call_1.extractInfos)(files);
|
|
46
46
|
console.log('interpretImages response', JSON.stringify(res, null, ' '));
|
|
47
|
-
return (
|
|
47
|
+
return (_a = res.data) === null || _a === void 0 ? void 0 : _a.extractInfos;
|
|
48
48
|
}
|
|
49
49
|
return [];
|
|
50
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference-query.js","sourceRoot":"","sources":["../../../server/service/reference/reference-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,+CAA8D;AAE9D,qEAA+E;AAC/E,iDAAkE;AAClE,iDAA6C;AAE7C,+
|
|
1
|
+
{"version":3,"file":"reference-query.js","sourceRoot":"","sources":["../../../server/service/reference/reference-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,+CAA8D;AAE9D,qEAA+E;AAC/E,iDAAkE;AAClE,iDAA6C;AAE7C,+CAA4C;AAE5C,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,8BAA8B,CAAC,CAAA;AAG9D,IAAa,cAAc,GAA3B,MAAa,cAAc;IAEzB,KAAK,CAAC,UAAU,CACN,CAAC,EAET,MAAoB,EACb,OAAY;;QAEnB,MAAM,EA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6B,EAAE,CAAC;IAEzE,WAAA,IAAA,mBAAI,GAAE,CAAA;IACN,WAAA,IAAA,kBAAG,EAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,8BAAa,CAAC,CAAC,CAAA;IAEpC,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;gDA+BP;AAYD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;IAC7D,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAK,WAAA,IAAA,kBAAG,EAAC,KAAK,CAAC,CAAA;IAAe,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;mDAe7D;AAhEU,cAAc;IAD1B,IAAA,uBAAQ,GAAE;GACE,cAAc,CAiE1B;AAjEY,wCAAc"}
|
|
@@ -6,19 +6,9 @@
|
|
|
6
6
|
"auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
|
-
"date":
|
|
10
|
-
"name": "logs/application-2021-12-
|
|
11
|
-
"hash": "
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"date": 1638785300521,
|
|
15
|
-
"name": "logs/application-2021-12-06-19.log",
|
|
16
|
-
"hash": "b4b397e740c5c28a3ab8c801fd6658ff"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"date": 1638870081374,
|
|
20
|
-
"name": "logs/application-2021-12-07-18.log",
|
|
21
|
-
"hash": "4cc64d074f8373ed8f05e6cabb419761"
|
|
9
|
+
"date": 1639322563864,
|
|
10
|
+
"name": "logs/application-2021-12-13-00.log",
|
|
11
|
+
"hash": "2511fe14facd48328e0702ea54987434"
|
|
22
12
|
}
|
|
23
13
|
]
|
|
24
14
|
}
|
|
@@ -6,39 +6,29 @@
|
|
|
6
6
|
"auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
|
-
"date":
|
|
10
|
-
"name": "logs/connections-2021-11-
|
|
11
|
-
"hash": "
|
|
9
|
+
"date": 1638185239795,
|
|
10
|
+
"name": "logs/connections-2021-11-29-20.log",
|
|
11
|
+
"hash": "e28d199b30bde6b88967362fb318a103"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
"date":
|
|
15
|
-
"name": "logs/connections-2021-11-
|
|
16
|
-
"hash": "
|
|
14
|
+
"date": 1638189721660,
|
|
15
|
+
"name": "logs/connections-2021-11-29-21.log",
|
|
16
|
+
"hash": "679163fc1c530a8fd14dcbfc617300a4"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"date":
|
|
20
|
-
"name": "logs/connections-2021-11-
|
|
21
|
-
"hash": "
|
|
19
|
+
"date": 1638194624575,
|
|
20
|
+
"name": "logs/connections-2021-11-29-23.log",
|
|
21
|
+
"hash": "92bf1c2c4738bc05921cefe0e860c4fa"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"date":
|
|
25
|
-
"name": "logs/connections-2021-
|
|
26
|
-
"hash": "
|
|
24
|
+
"date": 1638588025596,
|
|
25
|
+
"name": "logs/connections-2021-12-04-12.log",
|
|
26
|
+
"hash": "db210c324f72a98be8b697f2793027f1"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"date":
|
|
30
|
-
"name": "logs/connections-2021-12-
|
|
31
|
-
"hash": "
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"date": 1638785303642,
|
|
35
|
-
"name": "logs/connections-2021-12-06-19.log",
|
|
36
|
-
"hash": "ee793684ecc87d1b8e9f97b01c0bc30b"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"date": 1638870082934,
|
|
40
|
-
"name": "logs/connections-2021-12-07-18.log",
|
|
41
|
-
"hash": "577f2d2bc9e2ededbef8e499e292dcc1"
|
|
29
|
+
"date": 1639322570514,
|
|
30
|
+
"name": "logs/connections-2021-12-13-00.log",
|
|
31
|
+
"hash": "6e9d1b586019937239ea4fbdad5e3683"
|
|
42
32
|
}
|
|
43
33
|
]
|
|
44
34
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
2021-12-12T15:22:48.187Z info: File Storage is Ready.
|
|
2
|
+
2021-12-12T15:22:56.228Z info: Database connection established
|
|
3
|
+
2021-12-12T15:22:59.256Z info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
4
|
+
2021-12-12T15:22:59.256Z info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
5
|
+
2021-12-12T15:27:44.868Z error: Only absolute URLs are supported
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/reference-app",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.17",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -37,51 +37,51 @@
|
|
|
37
37
|
"docker:run": "docker run -it -p 4000:3000 hatiolab/reference-app:latest"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hatiolab/things-scene": "^2.7.
|
|
40
|
+
"@hatiolab/things-scene": "^2.7.28",
|
|
41
41
|
"@material/mwc-checkbox": "^0.25.3",
|
|
42
|
-
"@operato/data-grist": "^0.2.
|
|
43
|
-
"@operato/ghost-print": "^0.2.
|
|
44
|
-
"@operato/input": "^0.2.
|
|
45
|
-
"@operato/ocr": "^0.2.
|
|
46
|
-
"@operato/popup": "^0.2.
|
|
47
|
-
"@operato/pull-to-refresh": "^0.2.
|
|
48
|
-
"@operato/scene-chartjs": "^0.0.
|
|
49
|
-
"@operato/scene-clock": "^0.0.
|
|
50
|
-
"@operato/scene-
|
|
51
|
-
"@operato/scene-
|
|
52
|
-
"@operato/scene-
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@things-factory/
|
|
56
|
-
"@things-factory/
|
|
57
|
-
"@things-factory/
|
|
58
|
-
"@things-factory/
|
|
59
|
-
"@things-factory/
|
|
60
|
-
"@things-factory/
|
|
61
|
-
"@things-factory/
|
|
62
|
-
"@things-factory/
|
|
63
|
-
"@things-factory/
|
|
64
|
-
"@things-factory/
|
|
65
|
-
"@things-factory/
|
|
66
|
-
"@things-factory/
|
|
67
|
-
"@things-factory/
|
|
68
|
-
"@things-factory/
|
|
69
|
-
"@things-factory/
|
|
70
|
-
"@things-factory/
|
|
71
|
-
"@things-factory/
|
|
72
|
-
"@things-factory/
|
|
73
|
-
"@things-factory/
|
|
42
|
+
"@operato/data-grist": "^0.2.49",
|
|
43
|
+
"@operato/ghost-print": "^0.2.49",
|
|
44
|
+
"@operato/input": "^0.2.49",
|
|
45
|
+
"@operato/ocr": "^0.2.49",
|
|
46
|
+
"@operato/popup": "^0.2.49",
|
|
47
|
+
"@operato/pull-to-refresh": "^0.2.49",
|
|
48
|
+
"@operato/scene-chartjs": "^0.0.20",
|
|
49
|
+
"@operato/scene-clock": "^0.0.20",
|
|
50
|
+
"@operato/scene-gauge": "^0.0.20",
|
|
51
|
+
"@operato/scene-indoor-map": "^0.0.20",
|
|
52
|
+
"@operato/scene-progressbar": "^0.0.20",
|
|
53
|
+
"@operato/scene-random": "^0.0.20",
|
|
54
|
+
"@operato/scene-switch": "^0.0.20",
|
|
55
|
+
"@things-factory/api": "^4.0.17",
|
|
56
|
+
"@things-factory/apptool-ui": "^4.0.17",
|
|
57
|
+
"@things-factory/auth-ui": "^4.0.17",
|
|
58
|
+
"@things-factory/board-service": "^4.0.17",
|
|
59
|
+
"@things-factory/board-ui": "^4.0.17",
|
|
60
|
+
"@things-factory/context-ui": "^4.0.17",
|
|
61
|
+
"@things-factory/dashboard": "^4.0.17",
|
|
62
|
+
"@things-factory/export-ui": "^4.0.17",
|
|
63
|
+
"@things-factory/export-ui-excel": "^4.0.17",
|
|
64
|
+
"@things-factory/grist-ui": "^4.0.17",
|
|
65
|
+
"@things-factory/help": "^4.0.17",
|
|
66
|
+
"@things-factory/i18n-ui": "^4.0.17",
|
|
67
|
+
"@things-factory/integration-ui": "^4.0.17",
|
|
68
|
+
"@things-factory/lite-menu": "^4.0.17",
|
|
69
|
+
"@things-factory/more-ui": "^4.0.17",
|
|
70
|
+
"@things-factory/notification": "^4.0.17",
|
|
71
|
+
"@things-factory/oauth2-client": "^4.0.17",
|
|
72
|
+
"@things-factory/print-ui": "^4.0.17",
|
|
73
|
+
"@things-factory/resource-ui": "^4.0.17",
|
|
74
|
+
"@things-factory/scene-form": "^4.0.17",
|
|
74
75
|
"@things-factory/scene-half-roundrect": "^4.0.9",
|
|
75
|
-
"@things-factory/scene-
|
|
76
|
-
"@things-factory/scene-
|
|
77
|
-
"@things-factory/
|
|
78
|
-
"@things-factory/setting-
|
|
79
|
-
"@things-factory/
|
|
80
|
-
"@things-factory/
|
|
81
|
-
"@things-factory/system-ui": "^4.0.12"
|
|
76
|
+
"@things-factory/scene-news-ticker": "^4.0.17",
|
|
77
|
+
"@things-factory/scene-tab": "^4.0.17",
|
|
78
|
+
"@things-factory/setting-base": "^4.0.17",
|
|
79
|
+
"@things-factory/setting-ui": "^4.0.17",
|
|
80
|
+
"@things-factory/shell": "^4.0.17",
|
|
81
|
+
"@things-factory/system-ui": "^4.0.17"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@things-factory/builder": "^4.0.
|
|
84
|
+
"@things-factory/builder": "^4.0.17"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "a82db9fc895f18855244c3d09383758608e03e19"
|
|
87
87
|
}
|
|
@@ -5,27 +5,23 @@ import { gqlBuilder } from '@things-factory/utils'
|
|
|
5
5
|
|
|
6
6
|
const appSyncConfig = config.get('awsAppSync')
|
|
7
7
|
|
|
8
|
-
export async function
|
|
8
|
+
export async function extractInfos(images) {
|
|
9
|
+
const extraction = {
|
|
10
|
+
success_count: true,
|
|
11
|
+
failure_count: true,
|
|
12
|
+
result: {
|
|
13
|
+
boundaries: true,
|
|
14
|
+
texts: true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
9
17
|
const query = gqlBuilder.jsonToGraphQLQuery({
|
|
10
18
|
mutation: {
|
|
11
19
|
extractInfos: {
|
|
12
20
|
__args: {
|
|
13
21
|
images
|
|
14
22
|
},
|
|
15
|
-
ocr:
|
|
16
|
-
|
|
17
|
-
result: {
|
|
18
|
-
boundaries: true,
|
|
19
|
-
texts: true
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
barcode: {
|
|
23
|
-
success_count: true,
|
|
24
|
-
result: {
|
|
25
|
-
boundaries: true,
|
|
26
|
-
texts: true
|
|
27
|
-
}
|
|
28
|
-
}
|
|
23
|
+
ocr: extraction,
|
|
24
|
+
barcode: extraction
|
|
29
25
|
}
|
|
30
26
|
}
|
|
31
27
|
})
|
|
@@ -64,7 +60,6 @@ function getRequestBody(images) {
|
|
|
64
60
|
success_count
|
|
65
61
|
failure_count
|
|
66
62
|
results {
|
|
67
|
-
key_values
|
|
68
63
|
boundaries
|
|
69
64
|
texts
|
|
70
65
|
}
|
|
@@ -5,7 +5,7 @@ import { Attachment, createAttachments } from '@things-factory/attachment-base'
|
|
|
5
5
|
import { publishProgress, ScalarAny } from '@things-factory/shell'
|
|
6
6
|
import { sleep } from '@things-factory/utils'
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { extractInfos } from './lambda-call'
|
|
9
9
|
|
|
10
10
|
const debug = require('debug')('things-factory:reference-app')
|
|
11
11
|
|
|
@@ -41,9 +41,9 @@ export class ReferenceQuery {
|
|
|
41
41
|
return { data: image, name: filename, format: formatArr[formatArr.length - 1] }
|
|
42
42
|
})
|
|
43
43
|
)
|
|
44
|
-
const res = await
|
|
44
|
+
const res = await extractInfos(files)
|
|
45
45
|
console.log('interpretImages response', JSON.stringify(res, null, ' '))
|
|
46
|
-
return res.data?.
|
|
46
|
+
return res.data?.extractInfos
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
return []
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|