This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |