<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-built-an-invisibility-cloak-in-the-browser-no-green-screen-no-model-training-phnytuc0a" -->

---
title: I Built an Invisibility Cloak in the Browser No Green...
description: A browser-based invisibility cloak effect built without segmentation models or green screens. The trick: capture a background snapshot, use MediaPipe hand...
canonical: https://daily.dev/posts/i-built-an-invisibility-cloak-in-the-browser-no-green-screen-no-model-training-phnytuc0a
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Built an Invisibility Cloak in the Browser No Green Screen, No Model Training | daily.dev
og:description: A browser-based invisibility cloak effect built without segmentation models or green screens. The trick: capture a background snapshot, use MediaPipe hand...
og:url: https://daily.dev/posts/i-built-an-invisibility-cloak-in-the-browser-no-green-screen-no-model-training-phnytuc0a
og:image: https://api.daily.dev/og/posts/PHNytUc0A.png
og:image:alt: I Built an Invisibility Cloak in the Browser No Green Screen, No Model Training
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I Built an Invisibility Cloak in the Browser No Green Screen, No Model Training

**[Medium](https://daily.dev/sources/medium_js)** · 6 min read · 0 upvotes · 0 comments

## Summary

A browser-based invisibility cloak effect built without segmentation models or green screens. The trick: capture a background snapshot, use MediaPipe hand landmarks (just thumb tip and index fingertip per hand) to define a moving polygon, then composite the frozen background over the live feed inside that shape. Key implementation details include sorting polygon points by angle around their centroid to avoid self-intersection, exponential moving average smoothing keyed by handedness label, and a blurred mask for soft edges. Both a JavaScript (Canvas API) and Python (OpenCV) version are available on GitHub. The broader point: use ML only for the part that needs it — hand tracking — and handle everything else with geometry and compositing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@anuragnagare77/i-built-an-invisibility-cloak-in-the-browser-no-green-screen-no-model-training-eb2c0a22fdcd>

## Similar posts on daily.dev

- [Building a Real-Time 3D Face Mask with MediaPipe, Threlte and Three.js](https://daily.dev/posts/building-a-real-time-3d-face-mask-with-mediapipe-threlte-and-three-js-pk2vu7lh9) · Codrops · 2 upvotes · 0 comments
- [I Ditched My Mouse: How I Control My Computer With Hand Gestures \(In 60 Lines of Python\)](https://daily.dev/posts/i-ditched-my-mouse-how-i-control-my-computer-with-hand-gestures-in-60-lines-of-python--kbg4g2jli) · Towards Data Science · 1 upvotes · 0 comments
- [Particle Simulator Controlled by Hand Gestures](https://daily.dev/posts/particle-simulator-controlled-by-hand-gestures-0acrwiisd) · 80 LEVEL · 20 upvotes · 4 comments
- [Bunnymator, or impractical computer vision](https://daily.dev/posts/bunnymator-or-impractical-computer-vision-bhjptuayk) · zserge's blog · 0 upvotes · 0 comments
- [Your Browser Can Do WHAT?\! 5 AI Features That Actually Work](https://daily.dev/posts/your-browser-can-do-what-5-ai-features-that-actually-work-484ga1hez) · DEV · 2 upvotes · 0 comments

---

Tags: [#computer-vision](https://daily.dev/tags/computer-vision), [#opencv](https://daily.dev/tags/opencv)

[View this post on daily.dev](https://daily.dev/posts/i-built-an-invisibility-cloak-in-the-browser-no-green-screen-no-model-training-phnytuc0a)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I Built an Invisibility Cloak in the Browser No Green Screen, No Model Training","url":"https://daily.dev/posts/i-built-an-invisibility-cloak-in-the-browser-no-green-screen-no-model-training-phnytuc0a","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-built-an-invisibility-cloak-in-the-browser-no-green-screen-no-model-training-phnytuc0a"},"datePublished":"2026-07-24T04:10:04.036Z","dateModified":"2026-07-24T04:10:38.169Z","description":"A browser-based invisibility cloak effect built without segmentation models or green screens. The trick: capture a background snapshot, use MediaPipe hand...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f92477e6d5eab24753076e703a7bcc7d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f92477e6d5eab24753076e703a7bcc7d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-built-an-invisibility-cloak-in-the-browser-no-green-screen-no-model-training-phnytuc0a","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"computer-vision,opencv","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"I Built an Invisibility Cloak in the Browser No Green Screen, No Model Training"}]}
```

