Custom Processing for Segmentation
Hello! I’ve been working on a segmentation model and I have deployed it on LandingEdge for testing. After reading in images from an input file, LandingEdge only provides an image with specific colors indicating what classes they are, but all the text that correspond to each color seem to stack on top of each other (top left):
I was hoping to use the custom processing script to define a clear primary class that is most represented in the image, but I could not find any information for segmentation in the official webpage below or on the web.
https://support.landing.ai/docs/custom-processing
Like the C# scripts shown on the webpage, I have tried “if (Result.PrimaryResult is not SegmentationResultRLE sg)” and “if (Result.PrimaryResult is not SegmentationMap sg)”, but both do not seem to work. Following that, my question is: How do I access the classes for a segmentation inference result, then find the class with the most pixels on the image?
Any guidance or advice would be greatly appreciated!