@getyoti/react-face-capture 0.3.1 → 0.4.0

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/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@getyoti/react-face-capture",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Face capture module to collect picture and data for Yoti AI API",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "start": "NODE_ENV=development webpack-dev-server --config ./tools/webpack-dev-config.babel.js",
8
- "build": "NODE_ENV=production webpack --config ./tools/webpack-prod-config.babel.js && npm run copy-assets",
8
+ "build:react": "NODE_ENV=production webpack --config ./tools/webpack-prod-config.babel.js && npm run copy-assets",
9
+ "build:vanilla": "cd ./vanilla-face-capture && npm run build && cp -R ./dist/ ../dist/vanilla/",
10
+ "build": "npm run build:react && npm run build:vanilla",
9
11
  "lint": "prettier 'src/**/*.{js,jsx,json,md,css,scss,html}' --write && eslint --ext .jsx,.js src",
10
12
  "lint:fix": "npm run lint -- --fix",
11
13
  "test": "jest --config ./tools/jest.config.json",
@@ -24,10 +26,6 @@
24
26
  },
25
27
  "author": "Yoti LTD",
26
28
  "license": "Yoti Face Capture Licence",
27
- "engines": {
28
- "node": "10.15.1",
29
- "npm": "6.4.1"
30
- },
31
29
  "dependencies": {
32
30
  "@lingui/macro": "3.6.0",
33
31
  "@lingui/react": "3.6.0",
@@ -0,0 +1,197 @@
1
+ [
2
+ {
3
+ "weights": [
4
+ {
5
+ "name": "conv0/filters",
6
+ "shape": [3, 3, 3, 16],
7
+ "dtype": "float32",
8
+ "quantization": {
9
+ "dtype": "uint8",
10
+ "scale": 0.009007044399485869,
11
+ "min": -1.2069439495311063
12
+ }
13
+ },
14
+ {
15
+ "name": "conv0/bias",
16
+ "shape": [16],
17
+ "dtype": "float32",
18
+ "quantization": {
19
+ "dtype": "uint8",
20
+ "scale": 0.005263455241334205,
21
+ "min": -0.9211046672334858
22
+ }
23
+ },
24
+ {
25
+ "name": "conv1/depthwise_filter",
26
+ "shape": [3, 3, 16, 1],
27
+ "dtype": "float32",
28
+ "quantization": {
29
+ "dtype": "uint8",
30
+ "scale": 0.004001977630690033,
31
+ "min": -0.5042491814669441
32
+ }
33
+ },
34
+ {
35
+ "name": "conv1/pointwise_filter",
36
+ "shape": [1, 1, 16, 32],
37
+ "dtype": "float32",
38
+ "quantization": {
39
+ "dtype": "uint8",
40
+ "scale": 0.013836609615999109,
41
+ "min": -1.411334180831909
42
+ }
43
+ },
44
+ {
45
+ "name": "conv1/bias",
46
+ "shape": [32],
47
+ "dtype": "float32",
48
+ "quantization": {
49
+ "dtype": "uint8",
50
+ "scale": 0.0015159862590771096,
51
+ "min": -0.30926119685173037
52
+ }
53
+ },
54
+ {
55
+ "name": "conv2/depthwise_filter",
56
+ "shape": [3, 3, 32, 1],
57
+ "dtype": "float32",
58
+ "quantization": {
59
+ "dtype": "uint8",
60
+ "scale": 0.002666276225856706,
61
+ "min": -0.317286870876948
62
+ }
63
+ },
64
+ {
65
+ "name": "conv2/pointwise_filter",
66
+ "shape": [1, 1, 32, 64],
67
+ "dtype": "float32",
68
+ "quantization": {
69
+ "dtype": "uint8",
70
+ "scale": 0.015265831292844286,
71
+ "min": -1.6792414422128714
72
+ }
73
+ },
74
+ {
75
+ "name": "conv2/bias",
76
+ "shape": [64],
77
+ "dtype": "float32",
78
+ "quantization": {
79
+ "dtype": "uint8",
80
+ "scale": 0.0020280554598453,
81
+ "min": -0.37113414915168985
82
+ }
83
+ },
84
+ {
85
+ "name": "conv3/depthwise_filter",
86
+ "shape": [3, 3, 64, 1],
87
+ "dtype": "float32",
88
+ "quantization": {
89
+ "dtype": "uint8",
90
+ "scale": 0.006100742489683862,
91
+ "min": -0.8907084034938438
92
+ }
93
+ },
94
+ {
95
+ "name": "conv3/pointwise_filter",
96
+ "shape": [1, 1, 64, 128],
97
+ "dtype": "float32",
98
+ "quantization": {
99
+ "dtype": "uint8",
100
+ "scale": 0.016276211832083907,
101
+ "min": -2.0508026908425725
102
+ }
103
+ },
104
+ {
105
+ "name": "conv3/bias",
106
+ "shape": [128],
107
+ "dtype": "float32",
108
+ "quantization": {
109
+ "dtype": "uint8",
110
+ "scale": 0.003394414279975143,
111
+ "min": -0.7637432129944072
112
+ }
113
+ },
114
+ {
115
+ "name": "conv4/depthwise_filter",
116
+ "shape": [3, 3, 128, 1],
117
+ "dtype": "float32",
118
+ "quantization": {
119
+ "dtype": "uint8",
120
+ "scale": 0.006716050119961009,
121
+ "min": -0.8059260143953211
122
+ }
123
+ },
124
+ {
125
+ "name": "conv4/pointwise_filter",
126
+ "shape": [1, 1, 128, 256],
127
+ "dtype": "float32",
128
+ "quantization": {
129
+ "dtype": "uint8",
130
+ "scale": 0.021875603993733724,
131
+ "min": -2.8875797271728514
132
+ }
133
+ },
134
+ {
135
+ "name": "conv4/bias",
136
+ "shape": [256],
137
+ "dtype": "float32",
138
+ "quantization": {
139
+ "dtype": "uint8",
140
+ "scale": 0.0041141652009066415,
141
+ "min": -0.8187188749804216
142
+ }
143
+ },
144
+ {
145
+ "name": "conv5/depthwise_filter",
146
+ "shape": [3, 3, 256, 1],
147
+ "dtype": "float32",
148
+ "quantization": {
149
+ "dtype": "uint8",
150
+ "scale": 0.008423839597141042,
151
+ "min": -0.9013508368940915
152
+ }
153
+ },
154
+ {
155
+ "name": "conv5/pointwise_filter",
156
+ "shape": [1, 1, 256, 512],
157
+ "dtype": "float32",
158
+ "quantization": {
159
+ "dtype": "uint8",
160
+ "scale": 0.030007277283014035,
161
+ "min": -3.8709387695088107
162
+ }
163
+ },
164
+ {
165
+ "name": "conv5/bias",
166
+ "shape": [512],
167
+ "dtype": "float32",
168
+ "quantization": {
169
+ "dtype": "uint8",
170
+ "scale": 0.008402082966823203,
171
+ "min": -1.4871686851277068
172
+ }
173
+ },
174
+ {
175
+ "name": "conv8/filters",
176
+ "shape": [1, 1, 512, 25],
177
+ "dtype": "float32",
178
+ "quantization": {
179
+ "dtype": "uint8",
180
+ "scale": 0.028336129469030042,
181
+ "min": -4.675461362389957
182
+ }
183
+ },
184
+ {
185
+ "name": "conv8/bias",
186
+ "shape": [25],
187
+ "dtype": "float32",
188
+ "quantization": {
189
+ "dtype": "uint8",
190
+ "scale": 0.002268134028303857,
191
+ "min": -0.41053225912299807
192
+ }
193
+ }
194
+ ],
195
+ "paths": ["tiny_face_detector_model-shard1"]
196
+ }
197
+ ]
@@ -0,0 +1 @@
1
+ ._1BAMDen_YLcifIe4T1Qv-_{display:flex;height:100%;justify-content:center;position:absolute;top:0;width:100%}._1e9w5ipw5j_XUcEv_CJUlO{display:block;height:100%;margin:auto;position:absolute}._2W6OS2MmM9HFQCXWdJ8ASr{box-sizing:border-box;position:absolute}._2W6OS2MmM9HFQCXWdJ8ASr._2R1kfrIDlFyYzv1nDgZcTN{height:43.5%;top:28.3%}._2W6OS2MmM9HFQCXWdJ8ASr.TwXhRfznW400Ln2BpPUbd{height:71.7%;top:11.5%}._3UWaUYYyQc5VbvW6HKIRHv{align-items:center;box-sizing:border-box;color:#333b40;display:flex;font-family:sans-serif;font-size:24px;font-weight:900;height:2em;justify-content:center;padding:0 23px;position:absolute;text-align:center;top:12px;width:100%}._3UWaUYYyQc5VbvW6HKIRHv._2degJvmXASrj_NvC6CXWqN{top:0}._1Tg9slZrrhpko8KnDP7C6X{align-items:center;background-color:#229dff;border:none;border-radius:5px;color:#fff;cursor:pointer;display:block;display:flex;font-size:14px;font-weight:500;justify-content:center;letter-spacing:.5px;margin:auto;min-width:134px;outline:none;padding:12px 20px;text-transform:uppercase;transition:background-color .15s ease-out 0s;width:100%}@media(min-width:628px){._1Tg9slZrrhpko8KnDP7C6X{max-width:350px;width:45%}}._1Tg9slZrrhpko8KnDP7C6X:hover{background-color:#007ee8}._1Tg9slZrrhpko8KnDP7C6X:disabled{background-color:#88caff}._1Fm1wq10kVJMKVxtWwkZex use{fill:currentColor}._309CoDF8kNC59Cacci2i3u{align-items:center;bottom:-8px;box-sizing:border-box;display:inline-block;justify-content:center;padding:16px;position:absolute;text-align:center;width:100%}.vNKPZsVtPwMoITxtjuu9V{position:absolute}.tUn9t5uXBW0G4uOuaTOqA{bottom:-8px;box-sizing:border-box;display:grid;font-size:40px;grid-template-columns:repeat(3,80px) 50px;justify-content:center;padding:16px;position:absolute;text-align:center;width:100%}._1fIU1q1Zn5Q8C9xn0Ir-dW,._2mwc0c5WhPOqV9wJk9VkGV,._3JRt0WWENWRFRoNQBy35fI{color:#333b40;font-family:sans-serif;font-size:40px;font-weight:700;height:50px;line-height:55px;text-align:center;width:51px}._2mwc0c5WhPOqV9wJk9VkGV{opacity:.5}._1RzxXrRIq2Q9MbP1nZJdM9,._2_g_DOxWE8kqzFMzKyK37t,._3mr2-PKNrqmyEJlyzqUVvx{fill:#333b40}._1RzxXrRIq2Q9MbP1nZJdM9 use,._2_g_DOxWE8kqzFMzKyK37t use,._3mr2-PKNrqmyEJlyzqUVvx use{fill:inherit}._1fIU1q1Zn5Q8C9xn0Ir-dW svg,._2mwc0c5WhPOqV9wJk9VkGV svg,._3JRt0WWENWRFRoNQBy35fI svg{font-size:50px}._1RzxXrRIq2Q9MbP1nZJdM9{opacity:.5}._3GqInLQ5XsRTU_HmqqchW9{box-shadow:0 0 3px 1px #0000001c;height:auto;transform:scaleX(-1)}._3Ums-OZ0qWebWj0SZbqYjT{display:flex;flex-direction:column;overflow:hidden;position:relative}.IOOd58zY5WSnpJo3-6iVV{position:relative}