Jump to content

Digitize plots in images

Recommended Posts

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






PlotDigitizer.oml ginput_plot.py

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...