Public
Edited
Dec 11
Paused
Fork of Simple D3
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
faces = {
const {width, height} = mural;
const canvas = await faceapi.createCanvasFromMedia(mural);
const ctx = canvas.getContext('2d');

const results = await faceapi
.detectAllFaces(canvas, faceOptions);

faceapi.matchDimensions(canvas, mural);
ctx.drawImage(mural, 0, 0, canvas.width, canvas.height);
faceapi.draw.drawDetections(canvas, faceapi.resizeResults(results, mural));
mutable faceRects = results;
yield canvas;
}
Insert cell
mural = FileAttachment("bw-CleanShot 2024-06-03 at 09.42.04-2x.png").image()
Insert cell
// https://www.nytimes.com/interactive/2024/12/09/arts/music/harlem-jazz-sonny-rollins.html
harlem1958JazzMusicians = FileAttachment("Harlem 1958 Jazz Musicians.jpg").image()
Insert cell
// mural = harlem1958JazzMusicians
Insert cell
Insert cell
d3 = require("d3-delaunay", "d3-selection", "d3-scale", "d3-array")
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more