From 08cbababca5c1fbd01edf46949cc41105b40d806 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Wed, 5 Sep 2018 19:00:30 +0530 Subject: [PATCH] Add properties to GeometryList --- camelot/core.py | 18 +++++++++++++++++- camelot/plot.py | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/camelot/core.py b/camelot/core.py index 0c66d7a..d25a810 100644 --- a/camelot/core.py +++ b/camelot/core.py @@ -359,4 +359,20 @@ class GeometryList(object): len(self._text), len(self._images), len(self._segments), - len(self._tables)) \ No newline at end of file + len(self._tables)) + + @property + def text(self): + return self._text + + @property + def images(self): + return self._images + + @property + def segments(self): + return self._segments + + @property + def tables(self): + return self._tables \ No newline at end of file diff --git a/camelot/plot.py b/camelot/plot.py index 92bcd69..0b37ed9 100644 --- a/camelot/plot.py +++ b/camelot/plot.py @@ -1,3 +1,4 @@ +import cv2 import matplotlib.pyplot as plt import matplotlib.patches as patches