Skip to content

Pre-Process Image (Brightness, Contrast, Greyscale) #1040

Open

Description

Pre-Process Image (Brightness, Contrast, Greyscale)

I am working on a project which will detect custom shapes

Code Snippet below
ObjectDetection.ModelInput modelInput = new ObjectDetection.ModelInput
{
Image = MLImage.CreateFromFile(selectedFilePath) // selectedFilePath is the image file path
};
var modelOutput = ObjectDetection.Predict(modelInput);

I want to preprocess the image and feed it to the input model.
Preprocess means adjusting Brightness, Contrast or Greyscale

so how do we convert System.Drawing.Image to MLImage

simple workflow
Capture Image -> Adjust Brightness, Contrast -> Feed the image to input image -> We get prediction boxes -> Process the Box area

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions