OpenCV - Removal of noise in image

后端 未结 9 1709
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 01:01

I have an image here with a table.. In the column on the right the background is filled with noise

How to detect the areas with noise? I only want to apply some kind of

9条回答
  •  青春惊慌失措
    2021-02-04 01:18

    I would go with median blur (probably 5*5 kernel).

    if you are planning to apply OCR the image. I would advise you to the following:

    1. Filter the image using Median Filter.
    2. Find contours in the filtered image, you will get only text contours (Call them F).
    3. Find contours in the original image (Call them O).
    4. isolate all contours in O that have intersection with any contour in F.

    Faster solution:

    1. Find contours in the original image.
    2. Filter them based on size.

提交回复
热议问题