Traffic Intersection Simulation using Pygame (Part 2)

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 มี.ค. 2021
  • This video demonstrates a modified version of traffic intersection simulation built using Pygame. Find a step-by-step guide to build this simulation here: towardsdatascience.com/traffi...
    This updated simulation contains some additional features that make it closer to real-life scenarios so that it can be used effectively in Data Analysis tasks or AI applications. First, we have added turning functionality to the vehicles being generated. So unlike the previous simulation where all the vehicles went straight through the intersection, some of the vehicles will be turning left, some right, and some will go straight in the modified simulation. Second, we have added a feature that lets us choose which vehicle types among car, bus, truck, and bike we want in our simulation. Third, we have added a random green signal timer function, which sets the green signal time equal to a random number generated within a given range and helps in modeling tasks.
    Source Code: github.com/mihir-m-gandhi/Tra...
    Email: mihir.mg@somaiya.edu
    LinkedIn: / mihir-m-gandhi
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 16

  • @sb-pb5ky
    @sb-pb5ky ปีที่แล้ว +2

    The simulation works amazing, but is it possible to run with real time feed?

  • @haidanpaul1843
    @haidanpaul1843 ปีที่แล้ว

    Hi Mihiri.. Nice work

  • @MagadhiTraderGulMohammadAraJiL
    @MagadhiTraderGulMohammadAraJiL 2 ปีที่แล้ว +1

    tx broo

  • @ahmadsyuray4813
    @ahmadsyuray4813 ปีที่แล้ว

    Thanks

  • @yrincetchan4664
    @yrincetchan4664 4 หลายเดือนก่อน

    Help me please I want to know how you did it

  • @ernestpaul9954
    @ernestpaul9954 ปีที่แล้ว

    can you build something like this with java?

  • @nerdyturkey312
    @nerdyturkey312 2 ปีที่แล้ว +1

    Cool 👍 Just subbed. I'm using pygame for dev tools and puzzles... When I get the time.

    • @mihirgandhi0706
      @mihirgandhi0706  2 ปีที่แล้ว +1

      Great! Would love to know about some interesting puzzles you have made.

  • @hihei1039
    @hihei1039 2 ปีที่แล้ว +1

    Sir can you suggest layout Idea for class 12th traffic light system project

    • @mihirgandhi0706
      @mihirgandhi0706  2 ปีที่แล้ว

      I didn't exactly understand your question. Can you explain more?

  • @jxzzz0320
    @jxzzz0320 2 ปีที่แล้ว +1

    what do you call this type of traffic light phase? thank you!

    • @mihirgandhi0706
      @mihirgandhi0706  2 ปีที่แล้ว +1

      Hi Joshua! I didn't understand what you meant by 'phase'. Can you elaborate on that?

    • @jxzzz0320
      @jxzzz0320 2 ปีที่แล้ว

      @@mihirgandhi0706 i think i used the wrong term (phase), what i mean is the sequence of the traffic light used in the video, because as far as i know, there are sequences used for traffic lights. Like shown in the video, only one lane is green and the other three is red, however in some instances, two lanes are green and two lanes are red.

  • @maxjohnson7623
    @maxjohnson7623 2 ปีที่แล้ว +2

    Sir, this is great, I love it. Could we use it in the presentation, we will reference the link?

  • @MagadhiTraderGulMohammadAraJiL
    @MagadhiTraderGulMohammadAraJiL 2 ปีที่แล้ว

    bhai mujhe aur Video kuchh chahiye tha