简体   繁体   中英

How can I crop the area containing the recipient's details in a mail through Image Processing in C#?

Given this image link as my input image:

在此处输入图片说明

How can I possibly crop the image using C# and Image Processing Techniques so I could only get the Rounded Rectangular area with the recipient's details, the fastest way possible?

As of now, I'm using AForge.NET, and I'm still stuck at using Histogram Equalization as shown:

在此处输入图片说明

Thanks!

I would start with the otsu threshold ( link ):

在此处输入图片说明

After, you can do blob detection , iterate through all detected blobs and merge two blobs whether the distance between any of its edges is less than some fixed value. This will give you two blobs, one containing address information and second containing "if undelivered...". You chose the blob with the greatest area.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM