Тёмный

Vehicles speed calculation with real-time YOLO v4 

Sergey Nuzhny
Подписаться 198
Просмотров 18 тыс.
50% 1

Multiple Object (Multitarget) Tracker for cars counting task with Darknet based standard (COCO trained) YOLO v4 detector.
Source code available:
github.com/Smorodov/Multitarg...
Speed calculation idea from Sam Blake: / how-to-track-objects-i...
Source video: • Relaxing highway traffic

Наука

Опубликовано:

 

21 май 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@mangning1107
@mangning1107 3 года назад
absolutely awesome! very useful technique based on object tracking
@TRUMP_WAS_RIGHT_ABOUT_EVRYTHNG
Woah this looks way more efficient and effective than what I'm using . Holy moly , I hope I can figure this one out! Thanks 🙏. I'll check description. Currently using Camlytics but it's extremely glitchy and unreliable at the moment.
@milance123456
@milance123456 4 года назад
Amazing! Well done
@SivaShankarsss
@SivaShankarsss 3 года назад
That's great ...
@stelioskoroneos3872
@stelioskoroneos3872 3 года назад
Nice. Thanks for sharing and the code. One question. Where did you get the lat/lot coordinates of the clip from ?
@sergeynuzhny9523
@sergeynuzhny9523 3 года назад
Thnx! I have founded place from original video ("AIRE DE SERVICE DE L'ABIS") on google maps.
@jesterilianight
@jesterilianight 4 года назад
🔥🔥
@tmhe7796
@tmhe7796 Год назад
hello, can i use this on drones?especially do the speed measuremnet while moving?
@sergeynuzhny9523
@sergeynuzhny9523 Год назад
This task can be solved with same approach but you need to project frame pixels to relief. In this repository projection not implemented
@chakloongchong545
@chakloongchong545 2 года назад
Hi! That's very awesome. I want to run it on my jetson nano, can it be run with tensorrt? What is the approximate speed?
@sergeynuzhny9523
@sergeynuzhny9523 2 года назад
Yes, You can use this project on Jetson - the TensorRT backend for YOLO is included. But in real time on Jetson Nano it works only with yolo4-tiny or yolo5n models
@valeriylo
@valeriylo 3 года назад
​@UCrhac1bb8Ze_u-ViIHFDXoA расскажите подробнее как считается скорость? В статье на медиуме, на которую Вы ссылаетесь, я не совсем понял как считается скорость в рамках белой области. И не смог найти именно для этого код в репозитории
@sergeynuzhny9523
@sergeynuzhny9523 3 года назад
Скорость считается не в рамках белой области а на всём кадре. Белая область показывает 4 точки на кадре, которые были руками поставлены в соответствие географическим координатам на карте (наример в google earth). Затем эти 4 пары координат (гео - пиксели) ручками вводятся в исходниках (см. CarsCounting.cpp). А по 4-м парам точек можно найти персективное преобразование из одной лоскости в другую (плоскость поверхности земли в плоскость поверхности этого же участка Земли на кадре). Таким образом, мы можем любую точку на кадре, которая находится на поверхности дороги, перевести в географические координаты. Далее уже дело техники: для каждого объекта есть траектория в пикселях -> траектория в гео координатах -> считаем скорость. Считать скорость можно тоже по-разному, в ростейшем случае по формуле равномерного прмолинейного движения. Но в реальности для получения точных результатов надо будет предпринять намного больше усилий, учесть дисторсию камеры, усложнить модель движения и т.д. и т.п.
@aizatzafri2674
@aizatzafri2674 2 года назад
hallo can i run this using google colab? can u guide me?
@sergeynuzhny9523
@sergeynuzhny9523 2 года назад
No, I don't use google colab. This project designed for servers and edge devices like Nvidia Jetson
@Inspiration_video23
@Inspiration_video23 Год назад
Which development software you have used. Kindly share link to download
@sergeynuzhny9523
@sergeynuzhny9523 Год назад
Hi! Link to the sources is in description to this video
@kishanbhimani6578
@kishanbhimani6578 3 года назад
what hardware did you use for this?
@sergeynuzhny9523
@sergeynuzhny9523 3 года назад
Laptop with Core i7 and GeForce 1060
@hoangng16
@hoangng16 7 месяцев назад
Is it real-time speed or just the speed of a vehicle from line 1 to line 2 (i.e., distance(line1, line2)/ time) ? Thank you!
@sergeynuzhny9523
@sergeynuzhny9523 7 месяцев назад
It's realtime. Lines used only for vehicles counting
@hoangng16
@hoangng16 7 месяцев назад
@@sergeynuzhny9523 Thank you It's very impressive. Do you have any technical document or paper or guide to do it in more detail? It could be very helpful to apply to aquatic farming.
@sergeynuzhny9523
@sergeynuzhny9523 7 месяцев назад
@@hoangng16 In description to video I give link to the paper with this approach
@DataScienceGuy
@DataScienceGuy 4 года назад
И как йоло4, пошустрее работает, чем третий?
@sergeynuzhny9523
@sergeynuzhny9523 4 года назад
Нет, но заметно точнее
@mustafaameenal-tmimi1205
@mustafaameenal-tmimi1205 Год назад
Hello, I need the code for this project, can I have it please?
@sergeynuzhny9523
@sergeynuzhny9523 Год назад
Yes, go to the video description
@patagonia4kvideodrone91
@patagonia4kvideodrone91 10 месяцев назад
It seems like they were slower :p
@shopisold9322
@shopisold9322 3 года назад
do you have the code version python ??
@sergeynuzhny9523
@sergeynuzhny9523 3 года назад
No, only C++
@princesteve4441
@princesteve4441 3 года назад
Knowledge coordinates are limited. Only the grid-based coordinate system using the geometric transformation using four points is accurate. You can translate the other videos and watch them. I also have a patent. Let's develop it together.
@sivabanu5677
@sivabanu5677 3 года назад
Can we do it using python ?
@sergeynuzhny9523
@sergeynuzhny9523 3 года назад
You can, but I don't use it for realtime applucations
@k.asimon
@k.asimon 2 года назад
Thank you very much. How can I get the code 🙏
@sergeynuzhny9523
@sergeynuzhny9523 2 года назад
Link to the source code is in video description
@mohamedfadl789
@mohamedfadl789 3 года назад
Hi Sergey I want to use this code to record the path and distance traveled by Mice in tests like this vid:ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GebcshN4OdE.html but in yolov4 since that video's actual software doesn't work as intended. I already have a trained model that works on different kinds of mice and is able to detect it on yolov4 using a collab notebook made by The AI guy. Thanks :)
@youtubeu4005
@youtubeu4005 3 года назад
Did u get it ? I also want the same 😅
@mohamedfadl789
@mohamedfadl789 3 года назад
@@youtubeu4005 the github code in the link has been updated and works properly if you even want to ask the github creator a question he'll answer as well
@youtubeu4005
@youtubeu4005 3 года назад
@@mohamedfadl789 oohkk... But do u have colab code .. if u can share that it would be a great help... I don't have a gpu
@mohamedfadl789
@mohamedfadl789 3 года назад
@@youtubeu4005 Idk about the collab code thing, I can just give you this repo:github.com/colinlaney/animal-tracking it works the way you are referring to but from a computer vision approach, not a machine learning one, there's also this link to a supposedly working software that deals with these kinds of tests (have not tested it yet because I'm working on the code of the first link to make it work on the y-maze test): github.com/healthonrails/annolid other than those two links there's a youtube channel called the ai guy that deals mostly with yolov3/4 ps: if the 2nd link works please tell me how because I'm putting it on hold for now until I finish the y-maze
@sergeynuzhny9523
@sergeynuzhny9523 3 года назад
I have never working with an animal tracking. I think that it need a lot of work: videos, dataset, testing. I dont know how I can help you with this project
Далее
Compare YOLOv4 and YOLOv4-tiny
4:49
Просмотров 6 тыс.
skibidi toilet zombie universe 37 ( New Virus)
03:02
Просмотров 1,7 млн
Traffic Counting with YOLOv3 and SORT algorithm
2:02
How One Line of Code Almost Blew Up the Internet
13:47
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 853 тыс.