How to implement YOLO in unreal scene(customized USCityBlock) in Simulink?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SHICHEN HU
am 16 Mär. 2021
Kommentiert: SHICHEN HU
am 30 Apr. 2021
I create a customized scene in unreal engine by adding some cars in the USCityBlock scene, and I want to achieve a car detection by using YOLO detector with the camera mounted on a fixedwing UAV.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/552482/image.png)
This is part of my model.
In the "object detect" function I tried to use the 'vehicleDetectorYOLOv2'
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/552487/image.png)
But when I run my model, it doesn't show the bounding box when there is a car. And the speed of running become really slow.
Here is the scene:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/552492/image.png)
What should I do?
0 Kommentare
Akzeptierte Antwort
Birju Patel
am 17 Mär. 2021
The vehicleDetectorYOLOv2 does not support vehicle detection from a bird's-eye-view. It only supports vehicle detection from cameras mounted inside ground vehicles as shown in this example:
For UAV applications, I suggest training a custom YOLO v2 object detector.
With regards the performance being slow, your object detection function is loading the detector from disk for every frame. Make your detector persistent to ensure that data is only loaded once:
persistent detector;
if isempty(detector)
detector = vehicleDetectorYOLOv2();
end
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!