A python app that uses AI to detect when you pick up your phone while revising and alerts you to put it down.
- Live webcam feed displayed in the app
- Real time AI phone detection using YOLO26
- Red box drawn around detected phone
- Alarm sound that plays when phone is detected
- Popup windows telling you to lock in
- Activate / Deactivate button
- Press the activate button to start the AI
- The app opens your webcam and displays a live feed
- Every frame is analysed by a YOLO26 AI model looking for a phone
- If a phone is detected:
- A red box is drawn around it on the live feed
- An alarm sound plays
- Popup windows appear telling you to put it down
- When you put the phone down everything stops automatically
- Press deactivate to turn the AI off
- Python 3.10 or higher
- A webcam
- The following libraries (installed via requirements.txt):
- Pillow
- OpenCV
- Ultralytics
- playsound3
-
Clone the repository
git clone https://github.com/Matty-PW/Study-AI -
Navigate to the project folder
cd Study-AI -
Install the required libraries
pip install -r requirements.txt -
Run the app
python study_ai.py
Note: The YOLO model will download automatically the first time you run the app
BS Fire Alarm (Sweeping - 1 Hz) by AdamWeeden -- https://freesound.org/s/255181/ -- License: Attribution 3.0