Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Readme
OpenLeap is an open source project that allows you to add hand gesture control to your Python projects.
Project was created with technologies:
OpenLeap can be installed using pip, as shown below.
$ pip install openleap
Test openleap controller with an example program. Code below will create an instance of opencv window with feed from the camera.
import openleap
controller = openleap.OpenLeap(screen_show=True,
screeen_type='BLACK',
show_data_on_image=True,
show_data_in_console=True,
gesture_model='sign_language')
controller.loop()
OpenLeap returns relative position of each hand, distance between thumb tip and index finger tip, rotation angle by wrist point and recognized gesture. There are two models for gesture recognition.
The first one can recognized wheter hand is opened or closed into fist, second model can recognized sign language alphabet as shown below.
OpenLeap object can be created with couple of options.
Recognized gestures, hand position, tilt and so on are stored in a dictionary called 'data' that consists of two dataclass objects for right and left hand. Dataclass object is of given structure:
@dataclass
class Data:
x : float = 0
y : float = 0
z : float = 0
distance: float = 0.0
angle: float = 0.0
gesture: str = None
Dataclass containing all of the data above is continuously being updated in main() or loop() function depending on which one is being used.
if controller.data['right'].gesture == 'open':
print('Right hand is opened!')
elif controller.data['right'].gesture == 'fist':
print('Right hand is closed!')
if controller.data['right'].distance < 20:
print('Click has been detected!')
FAQs
Hand tracking and gesture recognition module
We found that openleap 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.