1

I am new to python. I have to remove horizontal and vertical lines on my graph image using opencv and python. Here is my image. This is a graph containing a curve, I want to compare different curves but not the grid:

This is a graph containing a curve, I want to compare different curves but not the grid

Thanks

Mark Setchell
  • 191,897
  • 31
  • 273
  • 432
  • 2
    Take a look at [opencv tutorial] (https://docs.opencv.org/3.4.3/dd/dd7/tutorial_morph_lines_detection.html) – Dmitrii Z. Sep 14 '18 at 17:02
  • I try my best, and get this: https://i.stack.imgur.com/X0xbr.png. Basic steps include: (1)threshold,(2) morph with different kernel, (3) bitwise_op, (4) filte by area, (5) mask op. – Kinght 金 Sep 15 '18 at 02:47
  • Thank you very much. I have got confused before, when selecting a correct method for this. I tried https://stackoverflow.com/questions/42461211/how-to-remove-horizontal-and-vertical-lines-from-an-image?rq=1 https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_houghlines/py_houghlines.html but nothing could achive this much accuracy. Thank you vermuch again. – Uthpala Gamage Sep 17 '18 at 03:52
  • @Mark Setchell , Can you explain the steps little bit more. – Uthpala Gamage Sep 17 '18 at 09:38

0 Answers0