⚠️ Important Note:I have lost my previous account
rubypoddar
, where all my interactive projects were present.
Unfortunately, I have permanently deleted that account, so only a few of these projects are available to me now.
Dr StrangeHandFx uses OpenCV and MediaPipe to detect hands and overlay a mystical Dr. Strange-inspired shield. The shield follows hand movements and transitions into a particle effect when the hand is lowered, creating a magical visual experience. Customizable and ideal for real-time hand tracking and augmented reality applications.
If you prefer to use a different image without any surrounding text or distractions, you can replace the current shield image with a cleaner version. Here’s how you can proceed:
-
Find a New Image:
- Look for a Dr. Strange-inspired shield image that is clean and does not have any additional text or background distractions. Websites like Pixabay, Unsplash, or even fan art repositories might have suitable options.
-
Replace the Image:
- Download the new image and save it to your project directory, replacing the existing shield image file.
-
Update Code:
- Update your code to load and use the new image file for overlaying on the hand detection. Make sure to adjust the resizing and positioning as necessary to fit the new image dimensions and placement on the hand.
- Real-time Hand Detection: Accurately tracks hand movements using MediaPipe.
- Mystical Shield Overlay: Applies a Dr. Strange-inspired shield effect over the detected hand.
- Dynamic Particle Effect: Transitions the shield into a particle effect when the hand is lowered.
- Customizable Parameters: Easily adjust detection confidence, overlay size, particle properties, and more.
- Python 3.x
- OpenCV
- MediaPipe
- NumPy
-
Clone the Repository:
git clone https://github.com/rubypoddar/Dr-StrangeHandFx-.git cd Dr-StrangeHandFx
-
Install Dependencies: Ensure you have Python installed, then install the required packages:
pip install opencv-python mediapipe numpy
-
Run the Project:
python handdetection.py
-
Interact with the Application:
- The webcam feed will start, and you'll see the mystical shield overlay on your hand.
- Move your hand around to see the shield follow your movements.
- Lower your hand to trigger the particle effect.
- Detection Confidence: Adjust the
min_detection_confidence
andmin_tracking_confidence
parameters in the code to change the detection sensitivity. - Overlay Size: Modify the
fixed_overlay_size
variable to change the size of the shield overlay. - Particle Properties: Customize the particle generation parameters (such as number of particles, velocity, size, and lifespan) to get the desired visual effect.