MCPcopy
hub / github.com/tensorflow/tfjs-models / process

Method process

depth-estimation/demos/depth_map/js/gl-class.js:162–173  ·  view source on GitHub ↗
(frame, mask)

Source from the content-addressed store, hash-verified

160 this.proc = new GlShaderProcessor(gl, FRAGMENT_SHADER);
161 }
162 process(frame, mask) {
163 this.proc.startProcessFrame(frame.width, frame.height);
164
165 for (const uniform of shaderUniforms) {
166 const name = uniform[0];
167 // Prepend k to match shader naming convention for uniforms.
168 this.proc.setUniform('k' + name, +STATE[name]);
169 }
170
171 this.proc.bindTextures([['frame', frame], ['mask', mask]]);
172 return this.proc.finalizeProcessFrame();
173 }
174}

Callers 1

predictFunction · 0.45

Calls 4

startProcessFrameMethod · 0.45
setUniformMethod · 0.45
bindTexturesMethod · 0.45
finalizeProcessFrameMethod · 0.45

Tested by

no test coverage detected