A little project of mine
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 t
rk on the units sold right now, not the cost graph.

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.
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.
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 t
rk on the units sold right now, not the cost graph.
Output similar to what Im looking for: (UPDATED DUE TO UPDATE 2, time per tick is not included anymore so its been removed.)
{
0: 2,
1: 5,
2: 4,
3: 7,
etc,
etc,
etc
}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.
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.
I can use the daily units sold to tell if its worth it to buy something priced like 5% under the item above it and sell it at 2% below that item and make a 1% profit in no time. Very small, but do this a lot, and you will make a good amount of gold. I have taken into consideration the 2% sell fee


If someone else can prove me wrong, please by all means write the code the prove it.