title: How do I remove the dots / noise without damaging the text?
body: <p><a href="https://i.stack.imgur.com/fFrgc.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/fFrgcm.jpg" alt="enter image description here"></a></p>
  
  <p>I'm processing the images with OpenCV and Python. I need to remove the dots / noise from the image.<br>
  I tried dilation which made the dots smaller, however the text is being damaged. I also tried looping dilation twice and erosion once. But this did not give satisfactory results.<br>
  Is there some other way I can achieve this?<br>
  Thank you :)</p>
  
  <p><strong>EDIT:</strong><br>
  I'm new to image processing. My current code is as follows</p>
  
  <pre><code>image = cv2.imread(file)
  gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
  kernel = np.ones((2, 2), np.uint8)
  gray = cv2.GaussianBlur(gray, (5, 5), 0)
  gray = cv2.GaussianBlur(gray, (5, 5), 0)
  gray = cv2.adaptiveThreshold(gray, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 11, 2)
  gray = cv2.erode(gray, kernel, iterations=1)
  gray = cv2.dilate(gray, kernel, iterations=1)
  cv2.imwrite(file.split('.'[0]+"_process.TIF", gray))
  </code></pre>
  
  <p><strong>EDIT 2:</strong><br>
  I tried median blurring. It has solved 90% of the issue. I had been using gaussianBlurring all this while.<br>
   Thank you</p>