File size: 522 Bytes
7f3fabd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import deepdoctection as dd
from IPython.core.display import HTML
from matplotlib import pyplot as plt
analyzer = dd.get_dd_analyzer() # instantiate the built-in analyzer similar to the Hugging Face space demo
df = analyzer.analyze(path = "/content/imgs") # setting up pipeline
df.reset_state() # Trigger some initialization
for pg in iter(df):
image = pg.viz()
plt.figure(figsize = (25,17))
plt.axis('off')
plt.imshow(image)
for idx in range(len(pg.tables)):
HTML(pg.tables[idx].html) |