--- task_categories: - object-detection language: - et license: cc-by-sa-4.0 tags: - Estonia - historical-documents - coordinates - layout-analysis - text-detection - document-structure - transkribus - page-analysis pretty_name: ArchXAI Page Layouts size_categories: - 1K= 3: draw.polygon(region, outline='red', width=2) # Parse and draw text lines (blue) lines = parse_coordinates(text_lines) for line in lines: if len(line) >= 3: draw.polygon(line, outline='blue', width=1) return img_copy # Visualize first sample sample = dataset['train'][0] annotated_image = visualize_coordinates( sample['image'], sample['text_regions'], sample['text_lines'] ) annotated_image.show() ``` ### Filter by Document ```python # Filter by specific document document_pages = dataset['train'].filter(lambda x: 'Aleksander Warma' in x['document_title']) # Group by document from collections import defaultdict by_document = defaultdict(list) for i, sample in enumerate(dataset['train']): by_document[sample['document_title']].append(i) print(f"Documents in dataset: {list(by_document.keys())}") ``` ## 🎯 Use Cases This dataset is valuable for: - **Text Detection**: Locating text regions and lines in historical documents - **Layout Analysis Models**: Training systems to understand document structure - **Reading Order Detection**: Understanding the sequence of text elements - **Document Digitization**: Preprocessing Estonian archival materials - **OCR Pipeline Development**: Creating robust text recognition workflows - **Digital Humanities**: Analyzing Estonian historical document layouts - **Computer Vision Research**: Document understanding and structure analysis ## 🔧 Technical Details ### Coordinate System - Coordinates are in pixel space relative to the full page image - Origin (0,0) is at top-left corner - Polygons are stored as sequences of (x,y) points - Text regions typically have 4 points (rectangles) - Text lines may have variable number of points following text baseline ### Data Processing - Extracted from Transkribus PAGE XML format - Coordinate precision maintained from original annotations - Images converted to RGB format for consistency - Document titles extracted from Transkribus folder structure ## ⚠️ Data Quality Notes - Image quality varies based on historical document preservation - Some pages may have irregular text layouts due to historical formatting - Coordinate accuracy depends on original Transkribus annotation quality - Text regions may overlap or have complex shapes ## 🚫 Limitations - Limited to Estonian language documents - Historical document layouts may not represent modern document structures - Dataset size is focused on quality over quantity - Coordinate formats are optimised for polygon representation - Some documents may have incomplete coordinate annotations ## 📞 Contact Depending on the nature of your question, please contact one of the following: - Content of dataset: [@svlp](https://huggingface.co/svlp) or [@LudwigRoine](https://huggingface.co/LudwigRoine) - Format or anything technical: [@paulpall](https://huggingface.co/paulpall) - For everything else: [the National Archives of Estonia](https://www.ra.ee/en/kontakt/).