# Possible extract the slope equation from a graph

#1

hi guys, just doing some research, and seeing if there are any hail mary solutions out there.
I am tasked with finding ways (as a proof of concept) to extract visually a mathematical equation from a photograph or an image. In this case, something basic like the slope intercept form of a graph.
As you can see from the graph, I am expecting it to be on a graphing paper, so the unit is clear, and the graph is likely of a different color.
Any quick ideas?

#2

Good day Jess,

an image would be helpful and what is the purpose of your exercise?

Regards

Herbie

#3

this is the example of a graph I was referring to.

https://dcvp84mxptlac.cloudfront.net/diagrams2/draw-a-straight-line-on-the-coordinate-plane-slope-intercept-form.jpg

This is for an engineering class project for a visual graph solver. I am working on a proof of concept…

#4

Jess,

I’m sure you understand that I shall not solve your class exercise for you.

Therefore just some hints:
Color-filter (extract) the reddish graph line and determine its inclination.*
Color-filter (extract) the black coordinate lines.*
Determine the intersection points of the graph line with the coordinates.

*Color-thresholding may be a possible approach.

Good luck

Herbie

#5

Thanks Herbie - I can work from this. Problems are always more fun if you solve it yourself, I agree!