![]() |
GuardMyPi
Protecting your berries from unauthorised tampering!
|
Interfaces in the main program to open/close the camera and create new threads. More...
#include <guardmypi.h>
Public Member Functions | |
int | opencam (int camport) |
Opens the camera in the main thread and runs an infinite loop of frame capturing. More... | |
int | gettime () |
Calculates the current hour of the day to ensure the system knows what method of unlocking the system to use. More... | |
Protected Attributes | |
MotionDetector | motiondetector |
Instance of the Motion Detection. | |
Unlock | recognise |
Instance of the unlock class with uses of facial recognition, QR Detection. | |
ObjectDetector | petdetector |
Instance of the object detector that will be accessing the ped detection method. | |
Mat | frame |
Frame that will be assigned to the incoming frames from the VideoCapture object. | |
Mat | testframe |
Empty testframe used to reset the running average frame for the Motion Detector. | |
VideoCapture | video |
Video input capture object. | |
int | hour |
Hour time in GMT. | |
int | emailflag = 1 |
Flag used for email sending. | |
int | pet_timerflag |
Timer flag used solely for pet detection. | |
int | recognise_timerflag |
Human unlocking timer flag used in the unlock methods. | |
clock_t | pet_startTime |
Used to capture a time stamp whenever motion is detected originally. | |
clock_t | recognise_startTime |
With no pet detetected then a time stamp is taken before running the appropriate unlock method. | |
Interfaces in the main program to open/close the camera and create new threads.
int Camera::gettime | ( | ) |
Calculates the current hour of the day to ensure the system knows what method of unlocking the system to use.
int Camera::opencam | ( | int | camport | ) |
Opens the camera in the main thread and runs an infinite loop of frame capturing.
Each frame is processed by various methods to detect motion, facial recognition and QR recognition.