Project
| # | Title | Team Members | TA | Documents | Sponsor |
|---|---|---|---|---|---|
| 16 | Design of a Raspberry Pi–based monitoring system for shared living environments |
Denghan Xiong Jihao Li Mujia Li Shixuan Ma |
proposal1.pdf |
Chao Qian | |
| # Problem In shared living environments such as dormitories or shared apartments, traditional access control methods such as keys or passwords can be inconvenient and insecure. Keys can be lost or copied, and passwords can be shared or forgotten. These problems make it difficult to ensure security and manage access effectively. In addition, traditional door locks cannot automatically identify who is entering or keep records of access events. Residents or administrators may want a system that can automatically recognize authorized users and log entry activities for security purposes. Therefore, there is a need for a lightweight and low-cost smart access control system that can detect people approaching the door, identify authorized users, and manage access automatically. # Solution Overview Our solution is to design a smart access control system based on a Raspberry Pi for shared living environments such as dormitories or shared apartments. The system uses a PIR motion sensor to detect human presence near the door. When motion is detected, a USB camera connected to the Raspberry Pi captures images of the person standing at the door. The captured images are processed using computer vision techniques, and a face recognition algorithm is used to determine whether the person is an authorized user. If the user is recognized, the system activates a relay module to simulate unlocking the door. If the person is not recognized, the system records the event and displays the result. The system also includes a graphical user interface developed with PyQt5 to display the camera feed, recognition results, and system status. A local database is used to store user information and access records. # Solution Components ## Subsystem I – Hardware System ### Hardware I.a Motion Detection Sensor - A PIR motion sensor detects human movement near the door. - When motion is detected, the sensor sends a signal to the Raspberry Pi. - This signal triggers the image capture and recognition process. ### Hardware I.b Camera Module - A USB camera connected to the Raspberry Pi captures images of the person at the door. - The camera provides real-time video frames for face detection and recognition. ### Hardware I.c Door Control Module - A relay module controlled by the Raspberry Pi simulates the door unlocking mechanism. - When an authorized user is detected, the relay activates to unlock the door. ## Subsystem II – Image Processing and Recognition ### Software II.a Image Capture and Processing - OpenCV is used to capture video frames from the camera. - Images are preprocessed using techniques such as resizing and color conversion. ### Software II.b Face Recognition Module - A face recognition algorithm extracts facial features from captured images. - These features are compared with stored user data to determine the person's identity. ## Subsystem III – User Interface and System Management ### Software III.a Graphical User Interface - A graphical interface built with PyQt5 displays the camera feed. - It shows recognition results and system status in real time. ### Software III.b Multithreading Framework - A multithreaded architecture allows the system to perform multiple tasks simultaneously. - Tasks such as video capture, face recognition, and interface updates run in parallel. ### Software III.c Local Database Management - A local database stores authorized user information. - The database records access logs such as time, identity, and recognition results. # Criteria of Success - The PIR sensor can detect human motion and trigger the system automatically. - The camera can capture images successfully for processing. - The face recognition module can correctly identify authorized users from stored data. - The relay module activates to simulate unlocking the door when a valid user is detected. - The graphical interface displays the camera feed and recognition results in real time. - The system records access events in the local database. - The system runs smoothly on the Raspberry Pi with minimal delay. |
|||||