So I've attempted this in the past, and I'm going to attempt it again.
You know those graphs that gaia provides in the marketplace? I'd like to interpret them programmatically. I can take lessons from captcha breaking software to learn to read the text and then I'll have to read the lines separately which should be easy. More worried about getting the x and y axis counts rather than reading the graph itself right now. I shall post sources I create.
Update 1:
Example image, I just want to work on the units sold right now, not the cost graph.
http://home.scriptprodigy.org/64231_...1&t=1362646196
Output similar to what Im looking for: (UPDATED DUE TO UPDATE 2, time per tick is not included anymore so its been removed.)
A single array. Each numbered object is a tick. Each tick is a vertical line from the x axis, each representing a specific amount of time on the graph. This amount of time is to be calculated and store in the array as "timePerTick" formatted as a double in days.Code:{
0: 2,
1: 5,
2: 4,
3: 7,
etc,
etc,
etc
}
Also, ticks are numbered from most recent to oldest. Aka right to left.
Update 2:
Actually, pretty sure time between each tick can only be one of two options based on if you select the 1year graph or the 1 month graph. So I can probably use constants for that. Really in this project, I need to calculate the units sold scale and I'll be golden. Tracking the line will be simple because the of the dark blue border around the edge of the graph.
Yea, on the month view each tick is a day. On year its still a day, but the ticks are a million fold. Nothing inbetween them but more ticks, being impossible to tell the difference between them. Thats alright though, I can just assume each pixel is a day but later I can count how many pixels wide the graph is and thus know how many days in each pixel. Fairly simple.