MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / drawThumb

Function drawThumb

webcam-transfer-learning/ui.js:102–107  ·  view source on GitHub ↗
(img, label)

Source from the content-addressed store, hash-verified

100rightButton.addEventListener('mouseup', () => mouseDown = false);
101
102export function drawThumb(img, label) {
103 if (thumbDisplayed[label] == null) {
104 const thumbCanvas = document.getElementById(CONTROLS[label] + '-thumb');
105 draw(img, thumbCanvas);
106 }
107}
108
109export function draw(image, canvas) {
110 const [width, height] = [224, 224];

Callers

nothing calls this directly

Calls 1

drawFunction · 0.70

Tested by

no test coverage detected