Published
Edited
Oct 27, 2021
7 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`## Requires`
Insert cell
druid = require("@saehrimnir/druidjs")
Insert cell
d3 = require("d3")
Insert cell
Delaunay = require("d3-delaunay")
Insert cell
model
Insert cell
import { model } from "@radames/face-landmarks-detection-tensorflow-js"
Insert cell
import { Button, Select, Text, Range, Toggle } from "@observablehq/inputs"
Insert cell
import { imageInput } from "@mbostock/file-input"
Insert cell
image = {
let context;
const aspect_ratio = uploaded.width / uploaded.height;
const width = Math.min(uploaded.width, 400);
const height = width / aspect_ratio;
context = DOM.context2d(width, height)
context.drawImage(uploaded, 0, 0, width, height)
context.canvas.style = "width: 50%"
return context.canvas;
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more