Refactored README.md

#2
by tubasid - opened
Files changed (1) hide show
  1. README.md +48 -0
README.md CHANGED
@@ -1,3 +1,51 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ task_categories:
4
+ - image-classification
5
+ language:
6
+ - en
7
+ tags:
8
+ - yolo
9
+ - opensource
10
+ - computervision
11
+ - imageprocessing
12
+ - yolov3
13
+ - yplov4
14
+ - labelimg
15
+ pretty_name: ToyCarAnnotation
16
+ size_categories:
17
+ - n<1K
18
  ---
19
+ Hey everyone,
20
+
21
+ In my final year project, I created **Smart Traffic Management System**.
22
+ The project was to manage traffic lights' delays based on the number of vehicles on road.
23
+ I made everything worked using Raspberry Pi and pre-recorded videos but it was a "final year project", it was needed to be tested by changing videos frequently which was a kind of hustle. Collecting tons of videos and loading them in Pi was not too hard but it would have cost time, by every time changing names of videos in the code. Also, it was not possible to implement it in real *(unless govt. would have permitted me, hehe)*. So I chose to showcase my work by making a beautiful prototype.
24
+ [![final.jpg](https://i.postimg.cc/tg4kDmfS/final.jpg)](https://postimg.cc/jDBySvRP)
25
+ I know, the image isn't so appealing, I apologise for that, but you got the idea, right.
26
+ I placed my cars on tracks and took real-time video of the lanes from the two cameras attached to two big sticks.
27
+
28
+
29
+ ***Why only two cameras when there are four roads?***
30
+ Raspberry Pi supports only two cameras. In my case, the indexes were 0 and 2.
31
+ But to make things work as I have planned, I cropped images for each lane.
32
+
33
+ ***What does it mean?***
34
+ Let us take one camera and the respective two roads as an example.
35
+ I took real-time video, performed image framing on it. Since the roads beneath the cars were supposed to be still *(obvio, cars move, not roads :>)*, I performed image framing after every 2 seconds of the video. The images were first cropped and then saved in the Pi. I resized the images, found the coordinates on which the two roads were separating, cropped the image till those coordinates and got 2 images of 2 separate roads from 1 camera.
36
+
37
+ Finally, I ran my code and I found it could only detect a few cars. I thought real and toy ones looked quite similar, but the model didn't think the same. My YOLO weight file was trained on original cars and now I had to do training, again.
38
+
39
+ I looked for datasets already available but couldn't find any. So I decided to make one.
40
+ I collected images from different web sources and performed the most important task on each of them. ***ANNOTATION***, using LabelImg.
41
+ I separately annotated around 1000 images, in YOLO format, did all the processing and created this dataset. Usually, for YOLO especially, you get pictures on the internet but not text files. You have to individually perform annotation on all of them. It takes time and there isn't any tool to do it in bulk because you have to properly tell how many cars are there in the picture. Maybe in the future, LableImg gets updated with some machine learning algorithm for detecting and annotating images automatically (who knows).
42
+ So here it is for your help.
43
+ I will be adding the notebook as well in some time.
44
+ Any questions? drop down below. Do like if it’s helpful.
45
+ ***You can find me on:***
46
+ [https://www.github.com/tubasid](url)
47
+ [https://www.linkedin.com/in/tubasid](url)
48
+ [https://www.twitter.com/in/tubaasid](url)
49
+ [https://www.discord.com/channels/@tubasid](url)
50
+ Until next post.
51
+ ***TubaSid***