I have a problem and have to decide wether it's an object detection or object segmentation problem. I want to use Yolov8 for training. We already have hundrets of images but they aren't labeled yet. So before we start labeling we have to clearfy what we want. Maybe you can help me. I will provide the facts:
- 8 classes of objects
- every class occurs 0 to n times per image
- objects can be partially hidden by other classes or random objects (sometimes only 10% are visible)
- if they are partially hidden, the visible part is contiguos, so no object is splitted apart
- the objects are stacked, so they will touch each other (maybe it's a stack of objects of the same class)
As the result I want to know how often the classes occurs on the image. Like class1: 0 times, class2: 3 times, class3: 1 time, ....
At first it sounds like a detection problem. But since the objects are stacked and yolov8 uses rectangles for training, 90% of the labels will contain (small) parts of other classes - or only very small fractions of the classes can be labeled. If using augmentation like rotation, it will be not possible to avoid class-mixtures in labeling.
What does it sounds like? Segmentation or detection. Are there pros/cons? I lean towards segmentation.
And: Does it make a big change for yolo if I use segmentation instead detection? I know, the pixels were classified but has the labeling process to be different? Thanks in advance