Git Product home page Git Product logo

motiondetector's People

Contributors

sgjava avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

motiondetector's Issues

Not working on RPI2

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'

Bounding Box information

How can I get the bounding box coordinates to output to a text file, along with the frames captured to the Motion folder?

Memory leak with VideoCapture and RTSP

I've noticed after switching to Python 3 and Ubuntu 18.04 there's a memory leak. I can see the 3 python3 processes for my 3 cameras eating up all the memory. It's happening with the VideoCapture plugin.

Leak pattern:
leak
screenshot from 2018-06-13 22-09-19

Fix pattern:
fix

Getting configparser.NoSectionError: No section: 'logging' error on Raspberry Pi 4

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.