diff --git a/image_prediction/transformer/transformers/__init__.py b/image_prediction/transformer/transformers/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/image_prediction/transformer/transformers/coordinate/__init__.py b/image_prediction/transformer/transformers/coordinate/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/image_prediction/transformer/transformers/coordinate/fpdf.py b/image_prediction/transformer/transformers/coordinate/fpdf.py new file mode 100644 index 0000000..64a13ff --- /dev/null +++ b/image_prediction/transformer/transformers/coordinate/fpdf.py @@ -0,0 +1,8 @@ +from image_prediction.transformer.transformer import Transformer + + +class FPDFCoordinateTransformer(Transformer): + + def transform(self, metadata: dict): + """FPDF uses top left corner as origin; we take this as the reference coordinate system.""" + return metadata