Coder Social home page Coder Social logo

detected-motorcyclist-not-wearing-a-helmet's Introduction

Detected-motorcyclist-not-wearing-a-helmet.

In this article I want to detect motorcyclists who do not wear helmets with real time. Build a real-time system for traffic. I use Yolov8 for detect and Spark combine Kafka to take a data real time from camera trafic.

Flow Work

Step 1: I trained yolov8 with my dataset in google colab, then i take a model and use that for detection helmet and no-helmet.

I use ultralytics for collect and detect box in web, then i train with model yolov8. In folder train have result and evaluate.

Step 2: Transmit data using kafka.

First: start your sever kafka in your local.

In my file "producer.py", i have provided a data transfer mechanism using kafka.

Second: i get data from kafka with func readstream in spark.

By getting data from Spark, you can process data distributedly.

Third: i saved data in Postgresql.

I took pictures of people not wearing helmets when riding motorbikes and saved them in postgresql.

Step 3: get data from Postgresql.

You can get pictures from the pro and also the time of their violation.

Note: I think you should run in linux, u can esay control data.

detected-motorcyclist-not-wearing-a-helmet's People

Contributors

uit-21521549 avatar

Stargazers

 avatar Tu Nguyen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.