[KongchangAI]
· 2 min read· 1,404 words

Building a Webcam X-Ray Mirror with Claude Fable 5.2: Real-Time Skeleton Tracking in a Single HTML File

Building a Webcam X-Ray Mirror with Claude Fable 5.2: Real-Time Skeleton Tracking in a Single HTML File

Developer builds a browser-based real-time anatomical X-ray tool with Claude Fable 5.2 in a single conversation.

A developer used Claude Fable 5.2 in a single conversation to build a web-based "X-ray mirror" that overlays real-time skull, brain, and muscle models on the face via an ordinary webcam, with motion tracking for opening the mouth and raising a hand. Built on MediaPipe and three.js in a single HTML file with all video processed locally for privacy, the AI model generated all the code and independently found and aligned the BodyParts3D dataset, with the first working version done in under an hour. The author notes the models are generic, not personal scans, and unsuitable for diagnosis, and is seeking alignment feedback across face shapes.

Title

Building a Webcam X-Ray Mirror with Claude Fable 5.2: Real-Time Skeleton Tracking in a Single HTML File

Meta Description

A developer used Claude Fable 5.2 in a single conversation to build a web-based X-ray mirror: a webcam tracks the face and hands in real time, overlaying 3D models of the skull, brain, and muscles, all in a single HTML file with local processing for privacy, exploring the possibilities of combining AI programming with anatomy education.

Article Content

Where are the limits of AI coding models? A developer used Claude Fable 5.2 in a single conversation to build a web-based "X-ray mirror" that needs only an ordinary webcam to overlay real-time skull, brain, and muscle models on the user's face, with support for motion tracking such as opening the mouth and raising a hand. The project not only demonstrates the efficiency of AI-assisted development but also offers a low-cost, interactive new approach to anatomy education.

Project Overview: Real-Time Anatomical X-Ray Vision in the Browser

According to the original Reddit post, the core experience of this web tool is: the user points a webcam at their face, and the page renders a skull, brain, and facial muscle model that fits the head in real time, tracking it as the head moves. When the user opens their mouth, the virtual jaw opens along with it; when they raise a hand, the hand bones follow the finger movements.

In terms of features, it provides independent display of multiple anatomical layers, including the skull, brain, muscles, and eyes, and supports both X-ray see-through and solid visual modes. A mixed-reality view lets users choose "half real face, half internal structure" or use an X-ray "lens" effect that follows the fingertips. In addition, the tool includes optional labels for bones, brain regions, and muscles, as well as sliders for adjusting skull fit and edge feathering.

Screenshot of the original Reddit post

Technical Implementation: MediaPipe + three.js + a Single HTML File

The entire tool is packaged in a single HTML file. According to the author, face and hand tracking is done on the browser side by MediaPipe, while 3D rendering is handled by three.js. Video processing happens entirely on the user's local machine and is never uploaded to any server, which is especially important for privacy-sensitive educational scenarios.

What is particularly notable is the role the AI model played in the project. The author says he used Claude Fable 5.2 to complete the entire project in a single conversation—he described the requirements and Claude wrote all the code. Beyond that, the model on its own found an open anatomy dataset, BodyParts3D, simplified the 3D models, and aligned them to the reference facial coordinate system of the face tracker so that the skull lands in the right position. The subsequent manual fit sliders, labels, and edge feathering features also came from follow-up requests by the author. The first working version was completed in under an hour.

MediaPipe is an open-source, cross-platform machine learning framework from Google designed for real-time perception tasks. It provides pre-trained models such as Face Mesh and hand keypoint detection, and is optimized with WebAssembly and GPU acceleration for browser environments, so it can output 3D keypoints for the face and hands at near-real-time frame rates on video streams from an ordinary camera. Developers don't need to train models themselves or build an inference pipeline—they only need to call its JavaScript API to get stable tracking results, which is the precondition for this project to integrate tracking into a single HTML file.

three.js is a JavaScript 3D graphics library based on WebGL. It wraps the low-level rendering interfaces and provides high-level abstractions such as scene graphs, cameras, lighting, materials, and geometry. In this project, three.js is responsible for mapping the tracking coordinates output by MediaPipe into the 3D scene, loading and rendering anatomy models such as the skull, brain, and muscles, and implementing visual effects such as X-ray see-through and mixed reality. Together, the two form a typical browser-side "perception—rendering" pipeline.

The Capabilities and Limits of AI-Assisted Development

In some sense, this project is a stress test of the Fable 5.2 model's capabilities: it involves real 3D data, real-time tracking, and browser-side rendering, and is not a simple CRUD application. Judging from the results, the model can not only generate code but also proactively find suitable data sources and handle the alignment of 3D models, which shows the potential of AI coding tools in complex integration tasks.

But the author also gives a clear caveat: the anatomical structures come from an adult dataset that has been scaled to fit the user's head, so what is shown is a "typical position" rather than a scan of the user themselves. It is not a medical tool and cannot be used for diagnosis or clinical purposes. The author particularly welcomes feedback on how well the skull aligns on different faces, which also hints at the precision challenges that can arise when fitting a generic model to individual differences.

BodyParts3D is an open anatomy 3D model dataset built by the Database Center for Life Science in Japan. It was reconstructed from segmentation of human tomographic images, contains 3D meshes of thousands of anatomical structures, and is released under the CC BY-SA 2.1 Japan license, allowing sharing and adaptation with attribution. The main limitation of this dataset is that it describes a standard adult body type rather than an individualized scan, and the coordinate systems and scaling of different structures require additional alignment. This project precisely scales and registers this generic model set to the reference coordinate system of the face tracker, so the skull position reflects statistically typical anatomical relationships rather than the user's actual bone morphology.

Educational Value and Privacy by Design

From an educational perspective, the value of this tool lies in mapping abstract anatomical knowledge onto learners' own bodies. Compared with static atlases or videos, a skeleton and muscle overlay that follows movements in real time can provide a more intuitive spatial understanding. Being free, requiring no account, and running instantly in a browser also greatly lowers the barrier to use.

On the privacy side, all video processing is done locally and no footage is uploaded, which addresses the core concern about camera use in educational settings. The anatomy models use the BodyParts3D dataset (© The Database Center for Life Science, CC BY-SA 2.1 Japan), and the open-source license also leaves room for further development.

Quick Try-Out and Feedback Channels

The author provides the tool for download and online trial on GitHub. For developers who want to reproduce or improve it, the single-HTML-file structure means modification and deployment are relatively simple. The author especially wants to collect feedback on skull alignment across different face shapes, which helps evaluate the fitting error between face tracking and a generic anatomy model.

Overall, this project demonstrates how AI coding models accelerate the path from "idea to working prototype," while also reminding us that AI-generated prototypes still require human verification of their accuracy and boundaries of applicability. For developers interested in anatomy education or mixed-reality interaction, this is a starting point worth trying.

One-line Summary

The developer built a browser-based real-time anatomical X-ray tool with Claude Fable 5.2 in a single conversation, showcasing both the potential and the limits of AI programming.

Paragraph Summary

A developer used Claude Fable 5.2 in a single conversation to build a web-based "X-ray mirror" that overlays real-time skull, brain, and muscle models on the face through an ordinary webcam, with support for motion tracking such as opening the mouth and raising a hand. The tool uses MediaPipe for face and hand tracking and three.js for 3D rendering, packaged as a single HTML file, with all video processing done locally to protect privacy. The AI model not only generated all the code but also independently found the BodyParts3D anatomy dataset and completed 3D model simplification and facial alignment, with the first working version taking less than an hour. The author emphasizes that the anatomy models are scaled from a generic adult dataset and show typical positions rather than a personal scan, and are not suitable for medical diagnosis, and is soliciting feedback on alignment across different face shapes. The project demonstrates the efficiency of AI-assisted development in complex integration tasks while also reminding us that AI-generated prototypes still require human verification of their accuracy and boundaries of applicability.

#Claude Fable 5.2#webcam X-ray mirror#MediaPipe#three.js#anatomy education#AI-assisted development#BodyParts3D
Share:

Related articles