Skip to content

Instantly share code, notes, and snippets.

View nicolalandro's full-sized avatar

nicolalandro

View GitHub Profile
@nicolalandro
nicolalandro / rce.py
Created August 8, 2021 10:31
Simulate left click by long press on touch screen monitor with python
#!/usr/bin/env python
import asyncio
from evdev import InputDevice, UInput, KeyEvent, ecodes
import evdev
import os
import sys
import subprocess
import time
async def main():
@nicolalandro
nicolalandro / main.py
Created June 16, 2021 13:30
Handtracking with opencv and mediapipe
import cv2
import mediapipe as mp
class HandGesture():
def __init__(self, mode=False, maxNumHand=2, detectionCon =0.5, trackingCon = 0.5):
self.mode = mode
self.maxNumHand = maxNumHand
self.detectionCon = detectionCon
self.trackingCon = trackingCon