Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This project enables users to take screenshots using hand gestures detected via a webcam. It leverages the MediaPipe library for hand detection and OpenCV for video processing. The logic uses the transition of hand gestures (from an open palm to a fist) to trigger a screenshot.
To run this project, you need the following dependencies:
cv2
)mediapipe
)ss_taker
. Replace take_screenshot
in the code with your screenshot functionality.pip install opencv-python mediapipe
ss_taker
library or a custom implementation for taking screenshots.gesture_screenshot.py
.python gesture_screenshot.py
q
to quit the program.from project_Screenshot.r_screenshot import take_screenshot , capture_screenshot
# to take normal screenshot
take_screenshot()
# for Gesture recognizer screenshot
capture_screenshot()
The script uses the MediaPipe library to detect hand landmarks and determine whether the hand is open or closed:
When the script detects a transition from an open palm to a fist, it calls the take_screenshot()
function to capture the current screen.
is_palm_open(landmarks)
Determines whether the hand is open by comparing the positions of finger landmarks.
capture_screenshot()
Main function that:
You can modify the script to:
Contributions are welcome! If you have ideas for improvements or additional features, feel free to submit a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
Screenshot using Gesture hand detection
We found that rk-screenshot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.