1 | initial version |
You can proceed like,
Convert source to hsv color space using cvtColor().
Now segment each line using inRange(), here you should give appropriate hsv color range each line in your chart.
The inRange() result will give you binary image for each line. You may need to apply morphology as most of the lines in the chart lies on one another.
Finally find contour will give you x-y co-ordinates for each line segment for the input binary.