Image processing problem (counting is hard )

Click For Summary
SUMMARY

The discussion focuses on the challenge of measuring the width of horizontal lines in images while filtering out noise. The user has processed images to identify edges but struggles with small holes in the lines that complicate data collection. They seek advice on implementing a pattern recognition algorithm to distinguish between actual line data and noise. The user successfully resolved their issue by utilizing an image pattern recognition algorithm, which significantly improved the scanning process.

PREREQUISITES
  • Image processing techniques
  • Pattern recognition algorithms
  • Data export methods
  • Noise reduction strategies in image analysis
NEXT STEPS
  • Research OpenCV for image processing and noise reduction techniques
  • Learn about specific pattern recognition algorithms such as Convolutional Neural Networks (CNNs)
  • Explore data export formats like CSV for storing processed image data
  • Investigate morphological operations in image processing for enhancing line detection
USEFUL FOR

This discussion is beneficial for data scientists, image processing engineers, and anyone involved in automating data extraction from images, particularly in noisy environments.

the.drizzle
Messages
10
Reaction score
0
Hiya! Long time registrant, have not used these forums is years though...

Anyhow, the problem I have is that I need to collect data from a very large number of images that are essentially horizontal lines on a page. I've attached a sample here, which has been processed to find the edges of the lines--the attached file shows the edges of nine lines, unevenly spaced. I want to measure the width of each line over all pixels, and export that data to an external file for later processing.

In theory this would be quite simple; start at the top (or bottom) of the page, scan down (up) until one hits a red pixel, record that position, record the position of the next one, and the difference gives us the width for that line at that position. We then continue down (up) for all n-lines, and across the page as well.

The tricky bit though is that images are noisy. That is, there are small "holes" in the lines and a few outside them as well. What I need to do is figure out a method of deciding which bits are noise, and which bits are not. I can't manually delete the "holes" from the data set, as there are literally thousands of these to process, and that would take weeks.

I'm thinking some sort of pattern recognition algorithm would be a good idea, but I'm not sure how they work...

Thus, what I'm looking for here are some possible ideas as to how one might go about filtering the noise from the image in some manner, or pehaps an algorithm that may be able to decide which points are line and which ones are noise when scanning the image. I've been at this for some time now, and am running out of ideas...

Thanks in advance for any help!
 

Attachments

  • red_line.jpg
    red_line.jpg
    28.6 KB · Views: 505
Engineering news on Phys.org
OK, got it sorted out and churning away nicely.
 
Yep. the image pattern recognition algorithm can influence the image scanning effection, as for how to set the image recognition algorithm and more info algotithm, you can have a search.
 

Similar threads

  • · Replies 43 ·
2
Replies
43
Views
12K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
8
Views
6K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K