Digitize plots in images
Hello all,
I wanted to share with you a tool to digitize plots in images using OML and Python. The aim is to convert plots that are introduced in text books like Analysis and Design of Flight Vehicle Structures (Bruhn, 1973):
Such plots are commonly used in industries like Aerospace to calculate constants and other parameters that assess Margins of Safety of components and systems. Finally, we can do a polynomial curve fitting to use these curves and compute these constants without the need to look at the plots everytime they must be applied.
The steps of the attached scripts are:
1) Give the axes bounds, degree of polynomial curve fitting and image whose plot will be digitized
2) Hit Start in the OML script (it will automatically call the Python script)
3) Give a first click with the mouse button to start selecting the corners of the plot
4) Select the corners
5) Give another click to select the points
6) Select as many points as you want
7) Double click with any key to finish the selection
8) Plot is generated and polynomial coefficients are computed and printed
Regards,
Roberta
Answers
-
This is absolutely awesome, Roberta!
Thank you for sharing!
Best
Christian
0 -
Really nice! kudos!
0 -
Hi, I do not seem to see the code anywhere. Can someone point me to it?
0 -
Andrew Jackson said:
Hi, I do not seem to see the code anywhere. Can someone point me to it?
Hi Andrew, the files have been attached.
0 -
Great,
so far I understand this tool supports basically to digitze xy-plots like
- displacement-force curve(characteristic) of an engine mount elastomer
- or the velocity-force curve(characteristic) of a damperxy_plot.png
meaning
- Recognize which characteristic curves are displayed
- Recognize which units are shown on the axes
- Recognize which scaling is present
- Derive the value pairs in order to be able to use the characteristic curve in the simulationTrue ?
thanks
Ralph
0