()
| 67 | } |
| 68 | |
| 69 | async function createModel() { |
| 70 | const segmenterConfig = { |
| 71 | runtime: 'tfjs', |
| 72 | modelType: 'landscape' |
| 73 | }; |
| 74 | return bodySegmentation.createSegmenter( |
| 75 | bodySegmentation.SupportedModels.MediaPipeSelfieSegmentation, |
| 76 | segmenterConfig); |
| 77 | } |
| 78 | |
| 79 | async function setupPage() { |
| 80 | await setupCamera(); |