質問編集履歴
1
コード修正前後のコンソール画面追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -151,3 +151,43 @@
|
|
151
151
|
</script>
|
152
152
|
|
153
153
|
```
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
### 修正後のコードとコンソール画面
|
158
|
+
|
159
|
+
```javascript
|
160
|
+
|
161
|
+
async function main() {
|
162
|
+
|
163
|
+
let results = await new Promise(resolve => {
|
164
|
+
|
165
|
+
hands.onResults(resolve);
|
166
|
+
|
167
|
+
});
|
168
|
+
|
169
|
+
let landmark;
|
170
|
+
|
171
|
+
if (results.multiHandLandmarks) {
|
172
|
+
|
173
|
+
for (const landmarks of results.multiHandLandmarks) {
|
174
|
+
|
175
|
+
landmark = landmarks;
|
176
|
+
|
177
|
+
console.log(landmark);
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
main();
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
```
|
190
|
+
|
191
|
+
![修正後](b92ee7f01c40752f02bd5e90778bbbd4.png)
|
192
|
+
|
193
|
+
![修正前](b56953473fa0c178493b45fc91bb9a3c.png)
|