Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vikramtamboli opened this issue Aug 13, 2024 · 0 comments
Open

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

vikramtamboli opened this issue Aug 13, 2024 · 0 comments

Comments

@vikramtamboli
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant