Remove test

add-ocr
Vinayak Mehta 2020-12-06 05:50:26 +05:30
parent eecc0df1ac
commit 1287abeeaf
No known key found for this signature in database
GPG Key ID: 2170CDB940114C1D
2 changed files with 1 additions and 11 deletions

View File

@ -211,7 +211,7 @@ class Lattice(BaseParser):
from ..ext.ghostscript import Ghostscript from ..ext.ghostscript import Ghostscript
self.imagename = "".join([self.rootname, ".png"]) self.imagename = "".join([self.rootname, ".png"])
gs_call = "-q -sDEVICE=png16m -o {} -r900 {}".format( gs_call = "-q -sDEVICE=png16m -o {} -r300 {}".format(
self.imagename, self.filename self.imagename, self.filename
) )
gs_call = gs_call.encode().split() gs_call = gs_call.encode().split()
@ -329,7 +329,6 @@ class Lattice(BaseParser):
table = Table(cols, rows) table = Table(cols, rows)
# set table edges to True using ver+hor lines # set table edges to True using ver+hor lines
table = table.set_edges(v_s, h_s, joint_tol=self.joint_tol) table = table.set_edges(v_s, h_s, joint_tol=self.joint_tol)
# set table border edges to True # set table border edges to True
table = table.set_border() table = table.set_border()

View File

@ -1,9 +0,0 @@
import camelot
tables = camelot.read_pdf("tests/files/foo_image.pdf", flavor="lattice_ocr")
print(tables[0].df)
# camelot.plot(tables[0], kind="contour").show()
# camelot.plot(tables[0], kind="grid").show()