PWA / Web App
Faceslice Icon

Faceslice

Faceslice App

About The Project

De la o fotografie frontală la plăcile de tăiat pentru un portret în straturi — un relief ca o hartă topografică, din tablă, lipit manual strat peste strat.

Faceslice transforms a standard 2D selfie into physical layered topographic sculptures made from laser-cut sheet metal or cardstock. Instead of demanding complex multi-camera photogrammetry or finicky 3D scanning apps, Faceslice requires just a single frontal photograph and an interpupillary distance (IPD) measurement in millimeters to fix the physical scale.

To reconstruct a genuine head from one photo, Faceslice orchestrates a three-model computer vision fusion pipeline where each model contributes what it does best: silhouette segmentation captures hair, ears, and jawlines; monocular depth estimates broad skull volume; and facial mesh landmarker models extract crisp facial landmarks (nose, eye sockets, lips) as residual surface displacement.

The resulting 3D solid is sliced into parallel planes at custom angles. Frontal slicing produces self-aligning nested contour isohypses, complete with etched alignment guides on every plate, hollowed-out hidden interiors for up to 80% weight reduction, and instant production-grade DXF export.

Features

  • 📸 Single-Photo 3D Reconstruction: Converts a single frontal selfie into a complete depth-relief solid, calibrated to real-world dimensions using pupil distance.
  • 🧠 3-Model AI Fusion Engine: Combines MediaPipe multiclass segmentation, ONNX monocular depth estimation (Depth Anything V2), and MediaPipe face landmarkers for balanced skull volume and facial sharpness.
  • 🗺️ Topographic Contour Slicing: Slices solids into parallel planes with free angle control (frontal for concentric nested isohypses, horizontal for side-profile laminations).
  • 🎯 Self-Aligning Assembly Guides: When sliced frontally, each metal layer is nested inside the one below, and the bounding line of the next plate is engraved directly on its surface for easy alignment without jigs.
  • ♻️ Interior Hollowing & Material Economy: Automatically removes concealed internal geometry, reducing material consumption and weight by up to 80% (e.g. 10 kg solid steel down to 1.9 kg hollow rings) while keeping sturdy bonding margins.
  • ⚙️ Parametric Fabrication Controls: Real-time interactive adjustment of sheet thickness (0.5–10 mm), relief compression, kerf compensation, facial relief exaggeration, and slice angles.
  • ⚖️ Real-Time Material & Weight Estimator: Dynamically calculates plate count, unique contours, required sheet metal area (dm²), stack height, and exact mass for Steel, Brass, and Aluminum.
  • 📐 Production-Ready DXF Export: Exports fully vectorized, laser/waterjet/plasma CAM-ready DXF files nested to custom sheet stock dimensions with a single click.

Architecture & Tech Stack

Interactive Web Client

Vanilla JavaScript (ES Modules), responsive canvas and SVG contour rendering, real-time parametric sliders, and offline-capable PWA architecture.

Vision & Geometry Engine

Python 3 computational core utilizing MediaPipe (Segmentation & Face Mesh), ONNX Runtime (Depth Anything V2 Small), Shapely for 2D polygon booleans and hollowing, and ezdxf for CAD generation.

Production Deployment

Containerized with Podman and systemd Quadlet, automated asset hash version stamping via deploy.sh, and served through Caddy reverse proxy with sub-second slicing response times on CPU.

Gallery