Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have applied an effect to highlight all the edges on an image with C# wrapper to Image Magick called Magick. NET . I intend to detect the scratches and small circles on it. How can I do this. This is what I got so far, check the image from this imgur link

https://imgur.com/a/YlBcnCh

How can I isolate the small marks and scratches and draw a rectangle around them in the output image, thanks

What I have tried:

I have tried this code
C#
using(var image = new MagickImage(imageFiles[0])){
  //detect the edges
  image.Edges(10);
  image.GaussianBlur(10);
  image.Write("temp.png");
  new PictureMagnifier("temp.png").ShowDialog() ;
  }
Posted

 
Share this answer
 
Comments
Maciej Los 6-Dec-23 7:36am    
5ed!
Richard MacCutchan 6-Dec-23 7:48am    
:thumbsup:
Actually, we should be careful as that can be considered an insult in some cultures.
Tim the Gamer 6-Dec-23 11:05am    
Do they have an approach for using Binarg Large objects and checking their shape?
Richard MacCutchan 6-Dec-23 11:23am    
No idea, you will need to study the documentation.
If you're talking about: Magick.NET/docs at main · dlemstra/Magick.NET · GitHub[^]
then you're in trouble, because that library is for:
Quote:
ImageMagick is a powerful image manipulation library that supports over 100 major file formats (not including sub-formats). With Magick.NET you can use ImageMagick without having to install ImageMagick on your server or desktop.


If you want to detect objects, use EmguCV[^].
See: Miłosz Orzeł | Detecting a Drone - OpenCV in .NET for Beginners (Emgu CV 3.2, Visual Studio 2017). Part 1[^]

As an alternative, you can use Python with libraries: Tensorflow, sci-learn, etc. You'll be able to create custom Convolutional Neuron Network (CNN) based on your image classsification database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900