Add properties to GeometryList
This commit is contained in:
+17
-1
@@ -359,4 +359,20 @@ class GeometryList(object):
|
||||
len(self._text),
|
||||
len(self._images),
|
||||
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,3 +1,4 @@
|
||||
import cv2
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.patches as patches
|
||||
|
||||
|
||||
Reference in New Issue
Block a user