Giter Site home page Giter Site logo

smart-security-camera's People

Contributors

atainter avatar thomfort 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  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  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

smart-security-camera's Issues

No module named cv2

When i run the program in terminal python:

pi@raspberrypi:~/Documents/Smart-Security-Camera-master $ python main.py
Traceback (most recent call last):
File "main.py", line 1, in
import cv2

I installed opencv 4 by a manual: [https://www.pyimagesearch.com/2019/09/16/install-opencv-4-on-raspberry-pi-4-and-raspbian-buster/]

Please, do you know what i made wrong? thank you

Email Error...

ok so the issue is when i start the script it runs without error and when i pass in front of the raspberry pi camera it recognizes the movement and it looks like its attempting to send the email alert because i get this error at the same time

Sending email...
Error sending email:

i have not modified anything but add the parenthesis to the print statements in the main.py and of course i added my email creds in the mail.py

im so close to finishing this project any help would be highly appreciated!

Captive credentials issue

When I try to access the video from my web. it shows me captive window. When I use my raspberry pi cred. it failed.
on the other side, the raspberry terminal shows me following msg
"GET / HTTP/1.1" 401 -

Python main.py, streaming and email issue

After executing python main.py I checked the Raspberry Pi live Feed and saw just a black screen and walking in front of the camera module does not send an email. Using raspistill -o image.jpg indicates that the camera is still in a working condition however is not working as mentioned above. Please help.

videocamera has no attribute vs and others

I've followed everything on the forums and nothing works

I've gotten these errors no matter what I do:
oserror: (Errno 98) address already in use
videocamera has no attribute vs
name "name" is not defined
NOTHING WORKS!

HELP!!!!!

from Finn

receive data from website to run relays

I need 2 button on website . when I press the button send on or off .

I will connect relay module to raspberry pi , so I need control module remotely via website.

I need code for this

<type 'exceptions.TypeError'>: 'NoneType' object is not callable

Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 754, in run
File "/home/pi/.local/lib/python2.7/site-packages/imutils/video/pivideostream.py", line 31, in update
File "/home/pi/.local/lib/python2.7/site-packages/picamera/camera.py", line 1710, in capture_continuous
File "/home/pi/.local/lib/python2.7/site-packages/picamera/encoders.py", line 431, in close
File "/home/pi/.local/lib/python2.7/site-packages/picamera/encoders.py", line 413, in stop
File "/home/pi/.local/lib/python2.7/site-packages/picamera/encoders.py", line 357, in active
File "/home/pi/.local/lib/python2.7/site-packages/picamera/mmalobj.py", line 776, in enabled
<type 'exceptions.TypeError'>: 'NoneType' object is not callable

#the object is not detected while running the video in the server

Exception AttributeError: "'VideoCamera' object has no attribute 'vs'"

Hi Friends,
I have installed the code successfully. But when running python main.py file getting attribute error.

Any help please ?

  • Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
  • Restarting with stat
    mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
    mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x2378020 (ENOSPC)
    mmal: mmal_connection_enable: output port couldn't be enabled
    Traceback (most recent call last):
    File "main.py", line 11, in
    video_camera = VideoCamera(flip = True) # creates a camera object, flip vertically
    File "/home/pi/Smart-Security-Camera/Smart-Security-Camera/camera.py", line 9, in init
    self.vs = PiVideoStream().start()
    File "/home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/imutils/video/pivideostream.py", line 10, in init
    self.camera = PiCamera()
    File "/home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/picamera/camera.py", line 433, in init
    self._init_preview()
    File "/home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/picamera/camera.py", line 513, in _init_preview
    self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
    File "/home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/picamera/renderers.py", line 558, in init
    self.renderer.inputs[0].connect(source).enable()
    File "/home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/picamera/mmalobj.py", line 2212, in enable
    prefix="Failed to enable connection")
    File "/home/pi/.virtualenvs/cv/local/lib/python2.7/site-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
    picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources
    Exception AttributeError: "'VideoCamera' object has no attribute 'vs'" in <bound method VideoCamera.del of <camera.VideoCamera object at 0x7069eef0>> ignored

CPU Usage

Hi everybody.

I have to say that this project is awesome (Concrete, functional and simple)

But, unfortunately, I have a problem:

When I run the program, the CPU usage of my Raspberry Pi 4B (4GB version) increases to 90% - 91%.

I don´t know what is causing this, if someone can drop an advice, would be nice.

😀

Detail Alarm

Hello :)
Thanks for this great project! I'm not that far in openCV but maybe you can answer my question. Do you think it's possible to add a kind of detail-alarm to your programm? What i thougth about are some presets in the monitored area to receive a message and/or add an action like: someone is in front of the door -> turn on TV. Someone is in front of the garage -> turn on the light.
Thanks

Internal Server Error

Hello, I have an issue in the updated code. I found out that you need to have a password and username to access the live stream but whenever I do it, it says

Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Do you know what I should do to resolve the issue.

thanks!

Email sending problem

I have two RaspberryPi's. one is Pi zero and another is Raspberrypi 3B.

The problem is that it is working fine with 3B but when I insert the same Sd card in the Pi zero it is not sending me the email but I can see the camera video. !! What could be the problem?

Image flip

Where do I change it so that the video feed and image is flip horizontally?

no module named error

ok so to start im a beginner and this is my first raspberry pi project, anyways when i try to run the script im getting this error. can anyone help

(cv) pi@raspberrypi:~/Smart-Security-Camera $ python main.py
Traceback (most recent call last):
File "main.py", line 3, in
from mail import sendEmail
File "/home/pi/Smart-Security-Camera/mail.py", line 2, in
from email.MIMEMultipart import MIMEMultipart
ImportError: No module named 'email.MIMEMultipart'

Stream and record local video

Would it be possible to create a method that also creates a local video the same as a live stream so in the even the network goes down you can still have a copy on the Pi?

Thanks!

Error: Assertion failed (!empty()) in detectMultiScale

I install the last version of OpenCV 3.4.1, convert python code from python 2 to python 3 and now I'm getting two errors.

Anyone can help me?

`(cvpi) root@raspTester:~/Smart-Security-Camera# python3 main.py

  • Serving Flask app "main" (lazy loading)
    OpenCV(3.4.1) Error: Assertion failed (!empty()) in detectMultiScale, file /root/opencv-3.4.1/modules/objdetect/src/cascadedetect.cpp, line 1698
  • Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
  • Debug mode: off
    Error sending email: <class 'cv2.error'>
    OpenCV(3.4.1) Error: Assertion failed (!empty()) in detectMultiScale, file /root/opencv-3.4.1/modules/objdetect/src/cascadedetect.cpp, line 1698
    Error sending email: <class 'cv2.error'>
    OpenCV(3.4.1) Error: Assertion failed (!empty()) in detectMultiScale, file /root/opencv-3.4.1/modules/objdetect/src/cascadedetect.cpp, line 1698
    Error sending email: <class 'cv2.error'>`

Stream Login Data

installed it on "2019-07-10-raspbian-buster-lite", main.py is running, would like to open the stream in webbrowser, but its asking me for username and password.

Error Sending Email

I ran the code in my raspberry pi 4B, the live feedback in the server works fine and it detects object, but it shows "Error sending email" after the "Sending Email".

Parallel session

i) If you open 192.168.x.x:5000 in 2 different browsers, it doesn't work in the second one. seems like multithread behavior has to be turned on for flask decorator
ii) Not really a bug but a good enhancement will be to enable some security on the live stream. Basic auth at least

I can't download Opencv

Sir
I am working on your project, Smart Security; Camera Several times, I follow all steps as per shared Tutorial for downloading Opencv on Raspbian , but I always get errors. After googling I got these links : -

Non-free Tutoial's image (official)
Ready-to-use Image: Raspbian Stretch + ROS + OpenCV
Image without Virtual Environment

Is any of the above will be suitable for your project? If there is any changes to made in your code to run it on above OS images. If all of the above images can't run your project, there is only one request by me, please provide your Raspian with Opencv OS image.

You may generate your OS image with the help of this Tutorial.

Note: I have Raspberry Pi 3 model b+ instead of Raspberry Pi Zero W

Thank you very much sir. Regards,
Prabhas Kumar

<stdlib.h>

/usr/include/c++/8/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h
im having this issue while installing cv 3.0 on raspberry pi 3 b

requirements.txt missing python-opencv

pi@drpi:/Smart-Security-Camera $ python main.py
Traceback (most recent call last):
File "main.py", line 1, in
import cv2
ImportError: No module named cv2
pi@drpi:
/Smart-Security-Camera $ cat requirements.txt
imutils
flask
picamera[array]

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.