Skip to main content

Palm Vanish

A small Windows webcam effect: hold an open palm in view or bring both hands together in the Namaste/prayer pose, and the app fades you into the empty background. Repeat either gesture to return.

The webcam frames are processed locally. The app does not record or upload video.

Requirements

  • Windows 10 or 11
  • Python 3.10, 3.11, or 3.12
  • A webcam

Run the desktop app from this repository

  1. Install Python and make sure the Python launcher (py) is available.

  2. Open PowerShell in this folder.

  3. Install the dependencies:

    py -m pip install -r requirements.txt
    
  4. Double-click Run Palm Vanish.bat, or run:

    py palm_vanish.py
    
  5. Step out of view for four seconds while the app captures the background.

  6. Return to frame and hold either an open palm toward the camera or both hands upright together in the Namaste/prayer pose (palms pressed together, fingers pointing up) for at least half a second. The progress ring fills, then the app animates the vanish. Lower your hand or separate your hands, then repeat either gesture to reappear.

Controls

  • Q or Esc: quit
  • B: capture the background again (step out of view during capture)

If the default webcam does not open, try another camera index, such as py palm_vanish.py --camera 1.

Use from Python

After the first release is published on PyPI, install it with:

py -m pip install palm-vanish

Then use the two-line API:

from palm_vanish import start
start()

start() opens the webcam window and runs until the user presses Q or Esc. To select a camera or resolution, call start(camera=1, width=1280, height=720).

The command-line entry point is palm-vanish; for example, palm-vanish --camera 1.

Build and publish

The project name configured for PyPI is palm-vanish. Confirm that name is available in your PyPI account before the first release. To build and validate the distribution:

py -m pip install build twine
py -m build
py -m twine check dist/*

Then publish the generated files in dist/ from your own PyPI account. PyPI recommends configuring Trusted Publishing for GitHub Actions rather than storing an upload token in the repository.

How it works

OpenCV reads the webcam and displays the result. MediaPipe Hands checks for an open palm or two upright hands close together in the Namaste/prayer pose. After either gesture is held for half a second, the app cross-fades between the live camera frame and a background captured at startup.

For a clean disappearance, keep the camera still and capture the background with nobody in frame. Moving objects, changing light, or camera movement can make the replacement noticeable. The effect replaces the full frame; it does not cut a person out of a moving background.

License

No license is included yet. Choose and add a license before inviting others to reuse or redistribute the code.

Metadata

Release files for palm-vanish 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for palm-vanish 0.1.0
File Size Uploaded Provenance Actions
palm_vanish-0.1.0.tar.gz 5.6 kB Without provenance Details for palm_vanish-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for palm-vanish 0.1.0
File Interpreter ABI Platform Actions
palm_vanish-0.1.0-py3-none-any.whl Python 3 none any Details for palm_vanish-0.1.0-py3-none-any.whl

Total release size: 11.3 kB

Release files / palm_vanish-0.1.0.tar.gz

Download URL palm_vanish-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6472805ae7175395132a41cd6eb334250513a3f5c0f41a174ed97b8f0430c58e
BLAKE2b-256 checksum
How to use checksums
42b5716873af39c0b8bbaab95389e6b7ab7b413ce28bdf5f189ae686806a5b2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / palm_vanish-0.1.0-py3-none-any.whl

Download URL palm_vanish-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb2e8e6ab5aaa6535057267fd1ae6a112dbccb9ac1f5ed0c5bb1c2ff5f1ae82d
BLAKE2b-256 checksum
How to use checksums
a6c0f1de868af922ea2c6b15a04c582c213f9e19a7f82c07dc49a627d10f24c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for palm-vanish 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page