title: how to remove all non-character objects from license plate image?
body: <p>I'm developing an ANPR for Persian plates, I've found the way to find plate, and with some methods I have reached the image below, now I need to remove all non-character objects from the image to process them later. there are some similar questions on SO but they have different image noise and also different aim. I have also tried Erode and Dilate but since characters are small and has low resolution, it destroys characters.</p>
  
  <p><strong>I don't want to use counters features because of performance. I need to remove these noises with some effects/filters. So this is not a duplicate question.</strong></p>
  
  <p>Here is some input images and outputs I need.</p>
  
  <p>input:
  <a href="https://i.stack.imgur.com/UCqhm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UCqhm.png" alt="enter image description here"></a></p>
  
  <p>output:<a href="https://i.stack.imgur.com/o5xdw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o5xdw.png" alt="enter image description here"></a></p>
  
  <p>input:<a href="https://i.stack.imgur.com/X0ayl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X0ayl.png" alt="enter image description here"></a></p>
  
  <p>output:
  <a href="https://i.stack.imgur.com/PaI5x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PaI5x.png" alt="enter image description here"></a></p>