File size: 2,555 Bytes
ac0e37d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Demo examples for app.py — documents + figure elements the model classifies correctly.

Auto-generated by scripts/pick_demo_examples.py. Each row is [image_path, candidate_labels].
Images are permissively-licensed benchmark samples (DocLayNet, CDLA-Permissive-1.0; first-party synthetic; RICO/Screen2Words, CC-BY-4.0; signature-detection, Apache-2.0); bundled for the public demo.
"""

EXAMPLES = [
    ["examples/scientific-articles_1.png", "financial reports, scientific articles, laws and regulations, government tenders, manuals, patents, invoice, letter, presentation, receipt"],  # scientific articles (doclaynet, model score 0.46)
    ["examples/scientific-articles_2.png", "financial reports, scientific articles, laws and regulations, government tenders, manuals, patents, invoice, letter, presentation, receipt"],  # scientific articles (doclaynet, model score 0.82)
    ["examples/manuals_1.png", "financial reports, scientific articles, laws and regulations, government tenders, manuals, patents, invoice, letter, presentation, receipt"],  # manuals (doclaynet, model score 0.78)
    ["examples/manuals_2.png", "financial reports, scientific articles, laws and regulations, government tenders, manuals, patents, invoice, letter, presentation, receipt"],  # manuals (doclaynet, model score 0.45)
    ["examples/financial-reports_1.png", "financial reports, scientific articles, laws and regulations, government tenders, manuals, patents, invoice, letter, presentation, receipt"],  # financial reports (doclaynet, model score 0.61)
    ["examples/financial-reports_2.png", "financial reports, scientific articles, laws and regulations, government tenders, manuals, patents, invoice, letter, presentation, receipt"],  # financial reports (doclaynet, model score 0.73)
    ["examples/bar-chart_1.png", "bar chart, line chart, pie chart, qr code, bar code, signature, screenshot, table, invoice, financial reports"],  # bar chart (figures_synth, model score 0.81)
    ["examples/pie-chart_1.png", "bar chart, line chart, pie chart, qr code, bar code, signature, screenshot, table, invoice, financial reports"],  # pie chart (figures_synth, model score 0.92)
    ["examples/signature_1.png", "bar chart, line chart, pie chart, qr code, bar code, signature, screenshot, table, invoice, financial reports"],  # signature (signature, model score 0.99)
    ["examples/screenshot_1.png", "bar chart, line chart, pie chart, qr code, bar code, signature, screenshot, table, invoice, financial reports"],  # screenshot (screenshot, model score 0.99)
]