MCPcopy
hub / github.com/justadudewhohacks/face-recognition.js / drawRects

Function drawRects

examples/typed/src/commons.ts:5–7  ·  view source on GitHub ↗
(win: fr.ImageWindow, rects: fr.Rect[])

Source from the content-addressed store, hash-verified

3import fr = require('../../../');
4
5export function drawRects(win: fr.ImageWindow, rects: fr.Rect[]) {
6 return rects.forEach((rect) => win.addOverlay(rect));
7}
8
9export function rescaleRect(rect: fr.Rect, f: number): fr.Rect {
10 return new fr.Rect(rect.left * f, rect.top * f, rect.right * f, rect.bottom * f);

Callers 8

faceLocations.tsFile · 0.90
faceLocations.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected