
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.