Skip to content

Kho lưu trữ các thể loại code của IOT Challenge đội BK Vision làm về Smart Parking Car - Thuộc CLB Robocon BK Galaxy

Notifications You must be signed in to change notification settings

BKG-Robocon-team/Smart_Parking_Car_IOT_Challenge_2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smart Parking Car IoT Challenge 2024

Introduction

The Smart Parking Car IoT Challenge 2024 is an innovative project aimed at revolutionizing the parking experience by leveraging IoT technology. This project focuses on developing a smart parking system that can detect available parking spaces, recognize license plates, and control access using servo mechanisms. Additionally, it includes a fire detection feature to enhance safety.

Features

  • Parking Space Detection: Identifies and monitors available parking spots using computer vision.
  • License Plate Recognition: Recognizes and logs vehicle license plates for access control and monitoring.
  • Servo Control: Manages access control using servo mechanisms to open and close barriers.
  • Fire Detection: Detects fire within the parking area to ensure safety.
  • LED Matrix Display: Shows the status of parking slots on an LED matrix.
  • MQTT Gateway: Handles communication between the IoT devices and the central server.

Project Structure

Smart_Parking_Car_IOT_Challenge_2024/
│
├── Computer_Vision/
│   ├── license-plate-recognition/
│   │   └── main_webcam.py
│   ├── predict_space/
│   │   └── test_customtkinter.py
│
├── Python_Server/
│   ├── gateway_pi.py
│   ├── led_matrix_parking_slot.py
│   └── servo_control.py
│
└── README.md

Prerequisites

  • Python 3.x
  • OpenCV
  • NumPy
  • MySQL
  • MQTT
  • CustomTkinter
  • Raspberry Pi (or any other compatible device)

Installation

  1. Clone the repository:

    git clone https://github.com/BKG-Robocon-team/Smart_Parking_Car_IOT_Challenge_2024.git
  2. Navigate to the project directory:

    cd Smart_Parking_Car_IOT_Challenge_2024
  3. Install the required Python packages:

    pip install -r requirements.txt

Usage

Running the Python Scripts

To run the main scripts, you can use the following commands on your Raspberry Pi:

  1. Gateway Script:

    python3 Python_Server/gateway_pi.py
  2. LED Matrix Parking Slot Script:

    python3 Python_Server/led_matrix_parking_slot.py
  3. Servo Control Script:

    python3 Python_Server/servo_control.py

Running the Computer Vision Scripts

  1. License Plate Recognition:

    python3 Computer_Vision/license-plate-recognition/main_webcam.py
  2. Parking Space Detection:

    python3 Computer_Vision/predict_space/test_customtkinter.py

Automated Script Execution

You can automate the execution of these scripts using a shell script. Create a run_scripts.sh file with the following content:

#!/bin/bash
echo "Running gateway_pi.py"
python3 /path/to/Smart_Parking_Car_IOT_Challenge_2024/Python_Server/gateway_pi.py &

echo "Running led_matrix_parking_slot.py"
python3 /path/to/Smart_Parking_Car_IOT_Challenge_2024/Python_Server/led_matrix_parking_slot.py &

echo "Running servo_control.py"
python3 /path/to/Smart_Parking_Car_IOT_Challenge_2024/Python_Server/servo_control.py &

wait

Replace /path/to/Smart_Parking_Car_IOT_Challenge_2024/ with the actual path to your project directory.

Make the script executable and run it:

chmod +x run_scripts.sh
./run_scripts.sh

Contributing

We welcome contributions! Please read our Contributing Guidelines for more information on how to contribute to this project.

Acknowledgments

  • Special thanks to the BKG Robocon team for their continuous support and contributions.
  • Thanks to all contributors and participants of the Smart Parking Car IoT Challenge 2024.

About

Kho lưu trữ các thể loại code của IOT Challenge đội BK Vision làm về Smart Parking Car - Thuộc CLB Robocon BK Galaxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •