Datasets:
Tasks:
Object Detection
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
< 1K
ArXiv:
License:
File size: 7,629 Bytes
cd760d5 e227583 cd760d5 e227583 30b59fa e227583 84958ec e227583 30b59fa cd760d5 f1a228e cd760d5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
---
license: apache-2.0
task_categories:
- object-detection
language:
- en
tags:
- flowchart
- diagram
- document-analysis
- object-detection
- coco-format
size_categories:
- n<1K
---
<div align="center">
<img src="https://github.com/galirage/gpr-bench/blob/main/assets/galirage_logo.png?raw=true" width="60%" alt="galirage_logo" />
<hr>
[](https://opensource.org/licenses/Apache-2.0)
# FC-Detection
**Flowchart Component Detection Dataset**
🌐 [Galirage Inc.](https://galirage.com) | 📄 [arXiv](https://arxiv.org/abs/2505.07864) | 💻 [GitHub](https://github.com/galirage/Arrow-Guided-VLM-Enhancing-Flowchart-Understanding-via-Arrow-Direction-Encoding)
</div>
# FC-Detection: Flowchart Component Detection Dataset
## Dataset Summary
FC-Detection is a specialized computer vision dataset designed for flowchart component detection and analysis. The dataset contains 99 annotated images of flowcharts with detailed bounding box annotations for 9 different flowchart components, including structural elements (shapes) and directional flow indicators (arrows and endpoints).
This dataset is particularly valuable for document analysis, automated flowchart digitization, workflow understanding, and business process automation applications. The dataset was specifically created and used to train models for the research paper "[Arrow-Guided VLM: Enhancing Flowchart Understanding via Arrow Direction Encoding](https://arxiv.org/abs/2505.07864)" (Omasa et al., 2025).
## Dataset Structure
### Data Splits
The dataset is organized into two splits following COCO annotation format:
| Split | Images | Annotations | Avg. Annotations per Image |
|-------|--------|-------------|---------------------------|
| Train | 69 | 3,951 | ~57.3 |
| Test | 30 | 1,875 | ~62.5 |
| **Total** | **99** | **5,826** | **~58.8** |
### File Structure
```
FC-Detection/
├── data_coco_format_start_end_train/
│ ├── annotations/
│ │ └── instances_custom.json # COCO format annotations
│ └── images/ # Training images (69 files)
├── data_coco_format_start_end_test/
│ ├── annotations/
│ │ └── instances_custom.json # COCO format annotations
│ └── images/ # Test images (30 files)
└── README.md
```
## Annotation Categories
The dataset detects 9 distinct flowchart components:
| Category ID | Name | Description | Train Annotations | Test Annotations |
|-------------|------|-------------|-------------------|------------------|
| 1 | **text** | Text labels and content within flowchart elements | 967 | 468 |
| 2 | **arrow** | Complete arrow connectors between elements | 765 | 362 |
| 3 | **terminator** | Start/end nodes (oval/rounded rectangles) | 120 | 60 |
| 4 | **data** | Data input/output shapes (parallelograms) | 68 | 22 |
| 5 | **process** | Processing steps (rectangles) | 364 | 182 |
| 6 | **decision** | Decision nodes (diamonds) | 143 | 67 |
| 7 | **connection** | Connection points or junctions | 18 | 6 |
| 8 | **arrow_start** | Arrow starting points/origins | 758 | 356 |
| 9 | **arrow_end** | Arrow ending points/destinations | 748 | 352 |
## Key Features
### Detailed Arrow Endpoint Detection
The dataset provides granular annotation of arrow components:
- **Complete arrows**: Full arrow connectors
- **Arrow start points**: Precise origin locations
- **Arrow end points**: Precise destination locations
This level of detail enables:
- Precise connection analysis between flowchart elements
- Better understanding of flow direction in diagrams
- More accurate relationship mapping between components
- Enhanced arrow tracking in complex flowcharts
### Standard Flowchart Elements
Comprehensive coverage of common flowchart shapes:
- **Terminators**: Start/end points of processes
- **Processes**: Action or processing steps
- **Decisions**: Conditional branching points
- **Data**: Input/output operations
- **Connections**: Junction points
- **Text**: Labels and descriptions
## Data Format
### Annotation Format
The dataset follows the **COCO (Common Objects in Context)** annotation format:
- **Images**: Metadata including ID, filename, width, height
- **Categories**: 9 predefined flowchart component types
- **Annotations**: Bounding box annotations with:
- `id`: Unique annotation identifier
- `image_id`: Reference to parent image
- `category_id`: Object type (1-9)
- `bbox`: Bounding box in `[x, y, width, height]` format
- `area`: Bounding box area in pixels
- `segmentation`: Empty (bounding box detection only)
- `iscrowd`: Always 0 (individual objects)
### Image Formats
- **PNG** (primary format)
- **WEBP**
- **JPEG/JPG**
- Variable resolutions from small diagrams to large complex flowcharts
## Usage Example
```python
from datasets import load_dataset
import json
from PIL import Image
# Load the dataset
dataset = load_dataset("galirage/FC-Detection")
# Access train and test splits
train_split = dataset["train"]
test_split = dataset["test"]
# Load COCO annotations manually
with open("data_coco_format_start_end_train/annotations/instances_custom.json", "r") as f:
train_annotations = json.load(f)
# Categories mapping
categories = {
1: "text", 2: "arrow", 3: "terminator", 4: "data", 5: "process",
6: "decision", 7: "connection", 8: "arrow_start", 9: "arrow_end"
}
# Example: Process first training image
first_image = train_annotations["images"][0]
print(f"Image: {first_image['file_name']}, Size: {first_image['width']}x{first_image['height']}")
# Get annotations for this image
image_annotations = [ann for ann in train_annotations["annotations"] if ann["image_id"] == first_image["id"]]
print(f"Number of annotations: {len(image_annotations)}")
```
## Use Cases
### Research Applications
- **Arrow-Guided VLM Research**: Used to train detection models for the "Arrow-Guided VLM" paper, enabling enhanced flowchart understanding through arrow direction encoding
- **Vision-Language Models**: Training object detection components for VLM-based flowchart interpretation systems
- **Flowchart Topology Understanding**: Research in understanding directional flow and node relationships in diagrams
### Practical Applications
- **Document Digitization**: Automatic conversion of hand-drawn or scanned flowcharts
- **Process Mining**: Analysis of business process flows
- **Educational Tools**: Automated assessment of flowchart assignments
- **Workflow Management**: Integration with business process management systems
- **AI Training**: Training object detection models for diagram analysis
- **Research**: Computer vision research in document understanding
## Dataset Statistics
- **Total Images**: 99
- **Total Annotations**: 5,826
- **Average Annotations per Image**: ~58.8
- **Most Common Category**: Text (1,435 total annotations)
- **Least Common Category**: Connection (24 total annotations)
- **Dataset Size**: ~6.78 MB
## Licensing and Citation
This dataset is released under the **Apache 2.0 License**.
## Related Research
This dataset was created to support the research paper:
**"Arrow-Guided VLM: Enhancing Flowchart Understanding via Arrow Direction Encoding"**
*Authors: Takamitsu Omasa, Ryo Koshihara, Masumi Morishige*
*arXiv:2505.07864 (2025)*
---
**Dataset Created by**: Galirage Inc.
**Contact**: For questions or issues, please open an issue on the dataset repository.
**Research Paper**: https://arxiv.org/abs/2505.07864
|