Skip to content

KevinthePotatoghost/Edge-computing

Repository files navigation

Welcome to Edge Computing

Real-Time Object Detection with YOLOv5

This Python script demonstrates real-time object detection using the YOLOv5 model. The script captures video from the camera stream, performs inference on each frame using YOLOv5, draws bounding boxes around detected objects, and displays the processed video in a Tkinter window. Additionally, it prints messages based on the detected objects, such as whether a cell phone is detected or if multiple people are detected.

Requirements:

  • Python 3.x
  • PyTorch
  • OpenCV (cv2)
  • Tkinter
  • Pillow (PIL)
  • YOLOv5 model (from Ultralytics repository)

Installation:

pip install torch opencv-python-headless pillow

Usage

  1. Clone this repository or copy the script object_detection_yolov5_tkinter.py to your local environment.

  2. Make sure your camera is connected and accessible.

  3. Run the script using the following command: python object_detection.py

Real-Time Gaze Tracking

This Python script demonstrates real-time gaze tracking using a pre-traned model: shape_predictor_68_face_landmarks.dat. It gives the exact position of the pupils and the gaze direction in real time. Additionally, it prints messages based on gaze direction.

Requirements:

  • OpenCV
  • shape_predictor_68_face_landmarks.dat

Installation:

pip install numpy pip install opencv_python pip install dlib

Usage:

  1. Clone this repository or copy the folder gaze_tracking and gaze.py to your local environment.

  2. Make sure your camera is connected and accessible.

  3. Run the script using the following command: python gaze.py

Real-Time Sound Detection

This Python script demonstrates real-time sound detection using pyaudio. The script captures sound of certain threshold input and sent feedback if talking is dectected.

Requirements:

  • pyaudio

Installation:

pip install pyaudio

Usage

  1. Clone this repository or copy the script audio dectection.py to your local environment.

  2. Make sure your camera is connected and accessible.

  3. Run the script using the following command: python audio dectection.py

Optical Character Recognition Detection

This Python script demonstrates real-time OCR using pytesseract. The script will detect all English words on the screen and if its contain certain keywords, its will flag the user.

Requirements:

  • pytesseract

Installation:

pip install pytesseract

Usage

  1. Clone this repository or copy the script OCR.py to your local environment.

  2. Make sure your camera is connected and accessible.

  3. Run the script using the following command: python OCR.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages