()
| 42 | setup(); |
| 43 | |
| 44 | function draw(){ |
| 45 | requestAnimationFrame(draw); |
| 46 | // Switch between showing the raw camera or the style |
| 47 | if (isTransferring) { |
| 48 | ctx.drawImage(resultImg, 0, 0, 320, 240); |
| 49 | } else { |
| 50 | ctx.drawImage(video, 0, 0, 320, 240); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | // A function to call when the model has been loaded. |
| 55 | function modelLoaded() { |
nothing calls this directly
no outgoing calls
no test coverage detected