hackershackofficial / smart-security-camera Goto Github PK
View Code? Open in Web Editor NEWIoT security camera running open-cv for object detection 📹
IoT security camera running open-cv for object detection 📹
/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
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
After making the suggested edits for Python 3, I was getting an exception ('Error sending email: ', <class 'AttributeError'>).
When logged in as user pi, on login the script ~/.profile is executed, why is it necessary to run "source ~/.profile" again before running "workon cv"?
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".
I am not able to recognize the face. Due to which Mail is not triggered.
I have tried all 3 models. Any idea of how to do so.
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!
Hi Friends,
I have installed the code successfully. But when running python main.py file getting attribute error.
Any help please ?
I tried to move in front of the camera, No movement detection and email sending, the live stream is working fine. Please help.
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'
What pushes the update frequency of detection of human?
I need to calibrate OpenCV?
Thank you!
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.
😀
got this error after entering :5000
please help me
Will the same instruction work on buster release?
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
Hello,
is it Possible to run this with an existing IP Camera ?
or i have to buy a Secound one
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 -
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
I wonder if we could use network camera to process the computer vision from the Pi
pi@drpi:/Smart-Security-Camera $ python main.py/Smart-Security-Camera $ cat requirements.txt
Traceback (most recent call last):
File "main.py", line 1, in
import cv2
ImportError: No module named cv2
pi@drpi:
imutils
flask
picamera[array]
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
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?
What changes I've to make in the code in order to use USB webcam .
what will change in the .py files??
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!
Where do I change it so that the video feed and image is flip horizontally?
why is my email in black in white
Please create a branch named python3 in which Python 3 version of the camera is maintained.
Thanks!
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
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!
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
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
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.
Can't find Raspbian Jessie. Can you please tell us how to make this work on Raspbian Buster?
There is only camera view on the web page. Not getting into processed image.
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
do you know what am i missing, i dont get any error in console and not idea how to enable the debug option.
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.
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.