Control traffic lights based on the vehicle density at four regions of interest at a traffic intersection. Live video stream obtained from here.
Calculate the weighted sum of the input image src and the accumulator dst so that dst becomes a running average of the frame sequence. link
Average Image
with masks and average frame cv2.bitwise_and()
Template 1 | Template 2 | Template 3 | Template 4 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
ROI 1 | ROI 2 | ROI 3 | ROI 4 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
ROI 1 | ROI 2 | ROI 3 | ROI 4 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
refer TMS.ipynb for more.