Skip to content

Instantly share code, notes, and snippets.

@Priler
Priler / motiondetect.py
Created May 17, 2022 17:15
Python + OpenCV hand motion detection
import cv2
import numpy as np
from collections import deque
from enum import Enum
import time
import pyautogui
# инициализируем
video = cv2.VideoCapture(1) # id устройства камеры
hands_haar_cascade = cv2.CascadeClassifier("rpalm.xml")