Real time object detection using YOLO

Evergreen Technologies
5 min readApr 17, 2020

YOLO (You Only Look Once) is state of art deep learning algorithm used for detecting objects in video and images in real time. The words “real time” sets YOLO apart from other algorithms like R-CNN, DPM , FAST R-CNN etc. Humans can identify objects easily, but it’s a whole new game when it comes to teaching a machine to identify objects.

SPEED MATTERS!!!!

Traditionally models like DPM (Deformity Parts Models) or R-CNN have been used to detect objects. DPM processes about 0.07 FPS and takes 14 seconds to detect objects inside an image. R-CNN processes about 0.05 FPS and takes 20 seconds to detect objects in an image. Now imagine you are designing a self driving car application and need a model to detect objects as car travels at 60 mph on freeway. So if you use R-CNN thats takes 20 s between seeing an image and detect objects like cars, people , the car would have travelled 1/3 miles or 1670 feet by the time it is able to detect objects. Thats will be too late as typical distance between cars on freeway is about 10 ft. This could cause collisions. That;’s where the need to detect object in real time comes in and YOLO shines there. YOLO can process 45 FPS and detect objects in image in 22 ms which is equivalent to car traveling a distance of 2 ft at 60 mph. This pretty impressive and thats why YOLO is so appealing to lot of real time object detection use cases.

The table below gives comparison of various models used for detection objects. mAP indicates mean average precision (accuracy).

Real time object detection models comparsion

The speed primarily comes from the fact that YOLO looks at image only once whereas other algorithms looks at various regions and end up looking at image several hundred times. YOLO also looks at whole image and knows context well and can identify correlations among objects inside image. YOLO is also found to be generalizing well for artwork images as well.

--

--

Evergreen Technologies

Decades of experience in Blog writing, Technical Advisory and Online Training. Read more about me @ https://evergreenllc2020.github.io/about.html