How to implement YOLO in unreal scene(customized USCityBlock) in Simulink?

8 ビュー (過去 30 日間)
SHICHEN HU
SHICHEN HU 2021 年 3 月 16 日
コメント済み: SHICHEN HU 2021 年 4 月 30 日
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.
This is part of my model.
In the "object detect" function I tried to use the 'vehicleDetectorYOLOv2'
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:
What should I do?

採用された回答

Birju Patel
Birju Patel 2021 年 3 月 17 日
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

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by