{% for stub, files in component_files.items() %}

{{ stub }}

Sheet Components

{% for file in files %} {% endfor %}
Component Image
{{ get_classification(file) }}
{% set my_ocr_df = ocr_df[ocr_df["id"] == stub] %} {% if len(my_ocr_df) %}

Institutional Labels

{% for _, row in my_ocr_df.iterrows() %}

Classification: {{ row["label_classification"] }}

{% for field in institutional_label_fields %} {% if field in row %} {% endif %} {% endfor %}
Field Image Recognized Text OCR HTR
{{ field }} {% if row[field+"_image"] %} {% endif %} {{ row[field] }} {{ row[field+"_Tesseract"] }} {{ row[field+"_TrOCR"] }}
{% endfor %} {% endif %}
{% endfor %}