Skip to content

gommy15/Ada

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Girls in ICT 2022

electric-scooter traffic violation monitoring system

Sensor-based Crosswalk road driving monitoring

img1

💻 TEAM Ada 💻

R&R

name role
Lee Heerae(Team Leader) DeepLearing Model Develop
Kim Seongyeong Hardware controll
Park Eunbi Server & Front Develop

🛴 E-Scooter Driving Status

  • In accordance with eco-friendly means of vehicle and distancing due to COVID-19
  • In 2021, the number of e-scooter users increased more than 5% compared to 2019

    traffic accidents also has been increased 2.5%

  • To ensure the safety of occupants and pedestrians and the safe operation of nearby vehicles
    It is necessary to crack down on compliance with electric kickboard traffic laws
  • Therefore, we will create a system to monitor 'electric driving crossing of a crosswalk', which had the highest violation rate
    Source: Report on the results of a survey on the safety status of electric kickboard sharing service

🛴 Monitoring System Architecture

img3

🛴 Traffic Violation Monitoring Proposals

Sensor-based Crosswalk road driving monitoring

  • Using the webcam on the front of the scooter, verify that the scooter user passes the crosswalk
  • Using a accelerometer sensor and switch sensor on the scooter footrest, it is determined whether the scooter user is driving or not
    (Absence of pressure sensor replaced by a switch sensor)
  • Using the buzzer sensor inside the scooter, scooter users are warned when driving at the crosswalk
  • Using GPS sensor on the front of the scooter, when a violation is determined user id, location and time infomation are send to the database

Detailed Raspberry Pi process

img2

🛴 Traffic Violation Monitoring web server

  • When the Raspberry Pi detects driving in a crosswalk, it transmits violation information consisting of the occupant ID, its longitude and latitude, and the time of violation to the database
  • Violation images taken by webcam are sent to the s3 file server
  • Using mysql and matplotlib, we analyze the violation status by time period, violation status by date, and users with many violations to create a graph
  • Based on the data analysis result, the violation information, and the violation image, a web page was constructed, and the web server was configured using the flask server

Detailed Server operation

img4

🛴 Expectation Effectiveness Keypoints

People - Pedestrian security

  • Auto tracking system helps to detect driving violations
  • Resolving the problem of shortage of enforcement personnel
  • Comprehensive investigation of safety management and driving conditions

Environment - eco-friendly means of transportation

  • Improved e-scooter users' awareness of safe driving
  • Pedestrian safety protection
  • Increased use of e-scooter using electrical energy help to be green

📑 Usage

You must download Yolov5

After downloading, you need to move crosswalk_model.py into the YOLOv5 folder.

Ada/crosswalk_hardware/main_process.py : detect driving across a crosswalk on an e-scooter
python3 main_process.py

Ada/crosswalk_model/yolov5/crosswalk_model.py : Crosswalk detected model main file
python3 crosswalk_model.py

📑 technology stack




📑 Ground-role

  • Variables, functions, and instances : Camel case | ex) camelCase
  • function name : Verb + Term | ex) getUserInformation()
  • class, constructor : Pascal case (Upper Camel case) | ex) CamelCase

📑 Commit Convention

Commit message consists of “Type: Subject/ Body/ Footer”

1. Type

  • Feat - Added new features
  • Fix - Bug fixes
  • Build - Modify build related files
  • Ci - Modify CI related settings
  • Docs - Documentation (add, edit, delete documents)
  • Style - Style (code format, add a semicolon: if there is no change in business logic)
  • Refactor - code refactoring
  • Test - Test (Add, modify, delete test code: if there is no change in business logic)
  • Chore - Miscellaneous changes (modify build scripts, etc.)

2. Subject

  • The title should not exceed 50 characters and should not include periods.
  • In the title, write the commit type together.
  • Write in imperative without using the past tense.
  • The title and body are separated by a single space.
  • The first letter of the title must be capitalized.
  • You must include the issue number (if any) in the title or body.

3. Body

  • As it is optional, it is not necessary to write the body of every commit.
  • No more than 72 characters per line.
  • Write according to what and why rather than how.
  • It is used not only for explanation, but also when writing the reason for commit.

4. Footer

  • It's optional, so you don't have to put a footer on every commit.
  • Used when creating an issue tracker ID.
  • Resolution: Used to resolve issues
  • Relevant: Issue number related to the commit
  • Note: Used when there is an issue to refer to

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published