Ryo-Koshihara commited on
Commit
cd760d5
Β·
verified Β·
1 Parent(s): f61e068

Update README.md

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