YoloV8 icon indicating copy to clipboard operation
YoloV8 copied to clipboard

DetectObb is not showing any bounding boxes for object (car in my case)

Open aloksharma1 opened this issue 9 months ago • 6 comments

Hello i tried to use yolov8x-obb.onnx with your package because i need the object orientation as well as detection, but even on lowest confidence level i am not getting any detection. can you share an example for obb? here is my code, hopefully i am following the process correctly:

private readonly YoloV8Predictor _predictor= YoloV8Predictor.Create(@"G:\Dotnet\Desktop\Windows\ATTSystem\ATTSystem\Assets\yolov8x-obb.onnx");

using var image = Image.Load<Rgb48>(frame.ToBytes());
var result = _predictor.DetectObb(image); //no bounding boxes tried car /bus/truck/van images

aloksharma1 avatar May 01 '24 21:05 aloksharma1

odd.... I will check it on my side soon.

dme-compunet avatar May 02 '24 11:05 dme-compunet

Can you attach the picture to reproduce the problem?

Message ID: @.***>

dme-compunet avatar May 03 '24 12:05 dme-compunet

Hi i am using video with opencv to extract frame by frame images, i have extracted the images from my video example for your testing. you can use these to see why i am not getting anything on obb, fyi these same images work with segmentation and detect algo. what i need now is to not only segment the vehicle but also see its direction. car-parking-1_1 car-parking-1_2 car-parking-1_3 car-parking-1_4

aloksharma1 avatar May 04 '24 10:05 aloksharma1

@aloksharma1 you will probably need to train your own model for your need, because the pretrained model is suitable for satellite photos and such (DOTAv1 dataset), not for low-altitude photos.

dme-compunet avatar May 05 '24 06:05 dme-compunet

@aloksharma1 you will probably need to train your own model for your need, because the pretrained model is suitable for satellite photos and such (DOTAv1 dataset), not for low-altitude photos.

oh understood, then my next issue is i need to mix segmentation technique with oob what do you suggest a single custom trained model or using 2 separate models(one for obb and one for segmentation)?

aloksharma1 avatar May 05 '24 06:05 aloksharma1

I do not know. You should ask here: https://github.com/ultralytics/ultralytics

dme-compunet avatar May 07 '24 06:05 dme-compunet