Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prajwalpd7/invisibility-cloak
https://github.com/prajwalpd7/invisibility-cloak
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/prajwalpd7/invisibility-cloak
- Owner: prajwalpd7
- Created: 2022-12-30T08:27:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T08:29:16.000Z (almost 2 years ago)
- Last Synced: 2023-07-13T12:25:25.173Z (over 1 year ago)
- Language: Python
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# invisibility-cloak
# Invisible Cloak with OpenCV
This project uses the OpenCV library to create an "invisible cloak" effect, where a person wearing a cloak appears to disappear when viewed through the camera. The cloak is achieved by replacing the pixels in the frame that are within a certain range of colors with the background frame.
## Prerequisites
To run this project, you will need to have the following libraries installed:
- OpenCV
- NumpyYou will also need a webcam or video capture device to use the script.
## Running the Script
To run the script, use the following command:
python invisible_cloak.py
The script will open a window showing the webcam feed, and you can hold up a cloak in front of the camera to see the invisible cloak effect in action.
## Customizing the Color Range
The color range of the cloak can be customized by modifying the `lower_color` and `upper_color` variables in the script. These variables should be set to the lower and upper bounds of the HSV color range that you want to include in the cloak. You can use a tool like [Color Picker](https://htmlcolorcodes.com/color-picker/) to help find the appropriate HSV values for your cloak.
## Additional Notes
Note that the invisible cloak effect may not work perfectly in all lighting conditions, as the color range detection can be affected by variations in lighting. Adjusting the color range and/or using additional image processing techniques may improve the performance of the cloak in different lighting conditions.