![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A Python package for detecting and classifying hand gestures using MediaPipe Holistic and deep learning.
This package provides a straightforward way to detect hand gestures in a variety of videos using a combination of MediaPipe Holistic features and a convolutional neural network (CNN). We plan to update this package with better predicting network in the near future, and we plan to also make an evaluation report so that it is clear how it performs for several types of videos. For now, feel free to experiment. If your looking to just quickly generate isolate some gestures into elan, this is the package for you. Do note that annotation by rates will be much superior to this gesture coder.
The package performs:
Currently, the detector can identify:
Consider creating a conda environment first (conda create -n envision python==3.9; conda activate envision).
conda create -n envision python==3.9
conda activate envision
(envision) pip install envisionhgdetector
otherwise install like this
pip install envisionhgdetector
Note: This package is CPU-only for wider compatibility and ease of use.
from envisionhgdetector import GestureDetector
# Initialize detector
detector = GestureDetector(
motion_threshold=0.9, # Sensitivity to motion
gesture_threshold=0.5, # Confidence threshold for gestures
min_gap_s=0.1, # Minimum gap between gestures
min_length_s=0.1 # Minimum gesture duration
)
# Process videos
results = detector.process_folder(
input_folder="path/to/videos",
output_folder="path/to/output"
)
# additional processing of videos to segmented videos cut by gesture event
from envisionhgdetector import utils
segments = utils.cut_video_by_segments(outputfolder)
The detector uses 29 features extracted from MediaPipe Holistic, including:
The detector generates three types of output in your specified output folder:
Automated Annotations (/output/automated_annotations/
)
video_name_confidence_timeseries.csv
ELAN Files (/output/elan_files/
)
video_name.eaf
Labeled Videos (/output/labeled_videos/
)
labeled_video_name.mp4
The package builds on previous work in gesture detection, particularly focused on using MediaPipe Holistic for comprehensive feature extraction. The CNN model is designed to handle complex temporal patterns in the extracted features.
If you use this package, please cite:
Pouw, W., Yung, B., Shaikh, S., Trujillo, J., de Melo, G., Owoyele, B. (2024). envisionhgdetector: Hand Gesture Detection Using a Convolutional Neural Network (Version 0.0.5.0) [Computer software]. https://pypi.org/project/envisionhgdetector/
Zhubo dataset (used for training):
SAGA dataset (used for training)
TED M3D:
MediaPipe:
Adapted CNN Training and inference code:
Original Noddingpigeon Training code:
Some code I reused for creating ELAN files came from Cravotta et al., 2022:
Feel free to help improve this code. As this is primarily aimed at making automatic gesture detection easily accessible for research purposes, contributions focusing on usability and reliability are especially welcome (happy to collaborate, just reach out to wim.pouw@donders.ru.nl).
FAQs
Hand gesture detection using MediaPipe and CNN
We found that envisionhgdetector 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.