Add properties to GeometryList

This commit is contained in:
Vinayak Mehta
2018-09-05 19:00:30 +05:30
parent 73e52939f5
commit 08cbababca
2 changed files with 18 additions and 1 deletions
+16
View File
@@ -360,3 +360,19 @@ class GeometryList(object):
len(self._images), len(self._images),
len(self._segments), len(self._segments),
len(self._tables)) 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
+1
View File
@@ -1,3 +1,4 @@
import cv2
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import matplotlib.patches as patches import matplotlib.patches as patches