Remove _errors and ghostscript test

This commit is contained in:
Vinayak Mehta
2018-12-18 07:43:52 +05:30
parent 9879a87c6f
commit 4938c48853
5 changed files with 48 additions and 257 deletions
+3 -1
View File
@@ -181,8 +181,10 @@ class Lattice(BaseParser):
gs_call = '-q -sDEVICE=png16m -o {} -r600 {}'.format(
self.imagename, self.filename)
gs_call = gs_call.encode().split()
with Ghostscript(*gs_call) as gs:
null = open(os.devnull, 'wb')
with Ghostscript(*gs_call, stdout=null) as gs:
pass
null.close()
def _generate_table_bbox(self):
self.image, self.threshold = adaptive_threshold(