Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import tempfile
|
|
| 9 |
# Function to detect hand using Haar Cascade
|
| 10 |
def detect_hand(frame, hand_cascade):
|
| 11 |
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
|
| 12 |
-
hands = hand_cascade.detectMultiScale(gray, scaleFactor=1.1, minNeighbors=
|
| 13 |
return hands
|
| 14 |
|
| 15 |
# Load Haar Cascade for hand detection
|
|
|
|
| 9 |
# Function to detect hand using Haar Cascade
|
| 10 |
def detect_hand(frame, hand_cascade):
|
| 11 |
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
|
| 12 |
+
hands = hand_cascade.detectMultiScale(gray, scaleFactor=1.1, minNeighbors=3, minSize=(30, 30))
|
| 13 |
return hands
|
| 14 |
|
| 15 |
# Load Haar Cascade for hand detection
|