automeris-io / WebPlotDigitizer

Computer vision assisted tool to extract numerical data from plot images.
https://automeris.io
GNU Affero General Public License v3.0
2.63k stars 362 forks source link

Incorrect Data Export from Long Plot #225

Closed rsh52 closed 4 years ago

rsh52 commented 4 years ago

Hello,

I am extremely impressed with the automatic data point matching of this software and think it will be very useful for a project I have. The project involves digitizing EKG rhythm waveforms and so the "plot" itself is very long horizontally (example snippet below):

image

Unfortunately whenever I view the data it seems to constantly increase beyond the axis limits I've specified (in this case a block of data in the strip is 0.2s horiztonal, and the 0/30/60 bar shows the scale vertically). When plotting the data I get this:

image

I have tried this on numerous images we have and attempted using the transformation equations to convert the data but with the same overall result. I have also tried increasing the X-axis scale to the end of the full image. Are the axes supposed to be defined for the entire viewing area or can a simple scale be supplied?

Thank you, --Rich

ankitrohatgi commented 4 years ago

Hi, would it be possible for you to share the project (.tar) file? I suspect something's off in the axes calibration, but I can't pin point the issue.

rsh52 commented 4 years ago

Sure sending now with same subject line as as issue title. Thank you for checking!

ankitrohatgi commented 4 years ago

I replied in more detail over email.

Here's the summary:

rsh52 commented 4 years ago

Reflecting our email exchange:

It would be very helpful to turn off any "auto-rotation" feature if I can assume/guarantee that no rotation is needed. I will also try and expand the axis scale definitions where possible due to the low resolution.

ankitrohatgi commented 4 years ago

Hi,

I have added an option for turning off automatic rotation correction - I was able to confirm that this fixes your issue. This is not in the released version yet, but I can push it in a couple of days for you to try.

image

Regards, Ankit

rsh52 commented 4 years ago

Fantastic! Will look forward to testing this out next week, it will be immensely helpful. Appreciate the speedy turnaround

ankitrohatgi commented 4 years ago

Hi, you can give the latest code a try here: https://apps.automeris.io/wpd_latest/

rsh52 commented 4 years ago

Been messing around with it for the last couple of hours and it looks great, exactly what I expect. If I notice anything off with it I'll let you know but otherwise thank you SO SO much for working on implementing this feature. Any chance it will be incorporated in the downloadable version?

ankitrohatgi commented 3 years ago

Hi, sorry about the delay on this. I hope to release the desktop versions soon. If you need a copy sooner, then I can provide a one-off build in the mean time.

rsh52 commented 3 years ago

Not a problem, I have the new link saved and will just be on the lookout for when the new version release is available. Thank you!