Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Laughing Man AR β€” Ghost in the Shell

A browser-based augmented reality app that detects faces in real-time via your webcam and overlays the iconic Laughing Man logo from Ghost in the Shell: Stand Alone Complex.


Features

  • Real-time face detection using face-api.js (TinyFaceDetector model)
  • Laughing Man SVG overlay β€” rotates continuously over each detected face
  • Glitch effect β€” triggers a black-and-white barcode scanline pattern when the face moves quickly
  • CCTV mode β€” toggleable retro surveillance filter with scanlines, vignette, REC indicator, and live timestamp
  • Multi-face support β€” tracks multiple faces simultaneously with smooth interpolation

Running Locally

No build step required β€” it's pure HTML, CSS, and vanilla JS.

Configurable Parameters

Tweak these constants at the top of script.js:

Constant Default Description
LERP 0.25 Overlay smoothing factor (0 = frozen, 1 = instant)
VELOCITY_THRESH 4.5 Movement speed (px/frame) that triggers the glitch
GLITCH_HOLD_MS 350 How long the glitch lingers after movement stops
FACE_HOLD_MS 600 How long the overlay persists after face is lost
DETECT_INTERVAL 40 ms between detection calls (~25 fps)

πŸ™ Credits

About

browser-based AR web app inspired by the "Laughing Man" hacker from the anime Ghost in the Shell: Stand Alone Complex.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages