faldet

A simple fall-detection algorithm using opencv
Log | Files | Refs | LICENSE

commit 22bcc0437435015a836cade79c84d48665caa77f
parent f1985712bd9e9fd971eaac948e8a40a2a58598f5
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Sat,  8 Aug 2020 19:21:54 +0200

Fix typo

Diffstat:
Mfaldet.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/faldet.py b/faldet.py @@ -10,8 +10,8 @@ while(True): fgmask = bgsub.apply(frame) - countours, hierarchy = cv2.findContours(fgmask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) - image = cv2.drawContours(frame, countours, -1, (0, 255, 0), 2) + contours, hierarchy = cv2.findContours(avg, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) + image = cv2.drawContours(frame, contours, -1, (0, 255, 0), 2) cv2.imshow('win1', image) k = cv2.waitKey(30) & 0xff