eikesan / video-fall-detection Goto Github PK
View Code? Open in Web Editor NEWDetect a person fall in videos using OpenCv
Detect a person fall in videos using OpenCv
Requriments:
numpy==1.14.5
opencv-python==4.1.2.30
pylint==1.9.2
scikit-learn==0.22.1
Error:
C:\Users\prahu\AppData\Local\Programs\Python\Python37\python.exe "D:\Apps\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 54257 --file "D:/Multiverse_Projects/Final year project- Fall Detection/video-fall-detection/new.py"
pydev debugger: process 19688 is connecting
Connected to pydev debugger (build 191.7479.30)
Traceback (most recent call last):
File "D:\Apps\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py", line 1758, in <module>
main()
File "D:\Apps\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py", line 1752, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "D:\Apps\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py", line 1147, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\Apps\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/Multiverse_Projects/Final year project- Fall Detection/video-fall-detection/new.py", line 19, in <module>
_, contours, _ = cv2.findContours(fgmask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)
Process finished with exit code 1
Hi @EikeSan it's a pretty light program with opencv, thank you for this. But when I run the program,the error occurs as the video finishes.
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp, line 11111
Traceback (most recent call last):
File "new.py", line 15, in <module>
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:11111: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor
I think that very error is preventing me from saving it with VideoWriter
object? Can you look at your code and fix the error, because I couldn't yet. If possible include the saving part also. Thanks!
hi,i think your idea is so easy .it can not be used really.
Hi, @EikeSan, do you still maintain this repo? If so, don't have any recent updates? Pre-requisites are quite outdated by now, Maybe you have it in python3? Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.