Extract plots from pdf into json or yaml format.
- Create calibration file
If successful, two files will be created:
python pdf_plot_extractor.py --calib calib.yaml plot.pdf
calib.yaml
andcalib.yaml.pdf
. - Specify location of at least two points in plot coordinate system for x and y in the calibration yaml produced in
the previous step.
If more than two points are provided, the first two will be used to transform the plot.
You can use
calib.yaml.pdf
to help you identify the points. - Extract plot
python pdf_plot_extractor.py --calib calib.yaml --json plot.json --yaml plot.yaml --out-pdf plot_extracted.pdf plot.pdf