sgjava / motiondetector Goto Github PK
View Code? Open in Web Editor NEWMotion detector using computer vision and machine learning
Motion detector using computer vision and machine learning
pi@rpi2-01:~ $ sudo apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
git git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-core git-man liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 58 not upgraded.
Need to get 4,841 kB of archives.
After this operation, 26.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://raspbian-us.ngc292.space/raspbian stretch/main armhf liberror-perl all 0.17024-1 [26.9 kB]
Get:2 http://raspbian-us.ngc292.space/raspbian stretch/main armhf git-man all 1:2.11.0-3+deb9u2 [1,432 kB]
Get:3 http://raspbian-us.ngc292.space/raspbian stretch/main armhf git armhf 1:2.11.0-3+deb9u2 [3,380 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian stretch/main armhf git-core all 1:2.11.0-3+deb9u2 [1,410 B]
Fetched 4,841 kB in 1s (3,384 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 106802 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17024-1_all.deb ...
Unpacking liberror-perl (0.17024-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.11.0-3+deb9u2_all.deb ...
Unpacking git-man (1:2.11.0-3+deb9u2) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.11.0-3+deb9u2_armhf.deb ...
Unpacking git (1:2.11.0-3+deb9u2) ...
Selecting previously unselected package git-core.
Preparing to unpack .../git-core_1%3a2.11.0-3+deb9u2_all.deb ...
Unpacking git-core (1:2.11.0-3+deb9u2) ...
Setting up git-man (1:2.11.0-3+deb9u2) ...
Setting up liberror-perl (0.17024-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up git (1:2.11.0-3+deb9u2) ...
Setting up git-core (1:2.11.0-3+deb9u2) ...
pi@rpi2-01:~ $ git clone --depth 1 https://github.com/sgjava/motiondetector.git
Cloning into 'motiondetector'...
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 38 (delta 2), reused 21 (delta 0), pack-reused 0
Unpacking objects: 100% (38/38), done.
pi@rpi2-01:~ $ cd ~/motiondetector/codeferm
pi@rpi2-01:~/motiondetector/codeferm $ export PYTHONPATH=$PYTHONPATH:~/motiondetector
pi@rpi2-01:~/motiondetector/codeferm $ python videoloop.py
2017-11-20 15:07:38,191558 Traceback (most recent call last):
File "videoloop.py", line 308, in <module>
videoLoop = videoloop(fileName)
File "videoloop.py", line 25, in __init__
self.appConfig = config.config(fileName)
File "/home/pi/motiondetector/codeferm/config.py", line 76, in __init__
self.hough = {'methodType' : int(eval(parser.get("hough", "methodType"))),
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'HOUGH_GRADIENT'
Hey @sgjava
, I want to measure the time of detection that how much time does it take to detect anything. How can I do that?
How can I get the bounding box coordinates to output to a text file, along with the frames captured to the Motion folder?
Hey @sgjava I am getting this following error on raspberry Pi 4 not sure how to resolve this:
pi@raspberrypi:~/motiondetector/codeferm $ python3 videoloop.py ~/motion
2021-07-07 02:26:37,657730 Traceback (most recent call last):
File "videoloop.py", line 323, in <module>
videoLoop = videoloop(fileName)
File "videoloop.py", line 25, in __init__
self.appConfig = config.config(fileName)
File "/home/pi/motiondetector/codeferm/config.py", line 30, in __init__
self.logging = {'level' : parser.get("logging", "level"),
File "/usr/local/lib/python3.8/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/usr/local/lib/python3.8/configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'logging'
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.