bsesic commited on
Commit
6fb76ea
1 Parent(s): dd6280f

Update README.md

Browse files

Description added

Files changed (1) hide show
  1. README.md +119 -3
README.md CHANGED
@@ -1,3 +1,119 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - object-detection
5
+ language:
6
+ - he
7
+ tags:
8
+ - hebrew
9
+ - manuscripts
10
+ - digital-humanities
11
+ size_categories:
12
+ - n<1K
13
+ ---
14
+
15
+ # Hebrew Letter Recognition Dataset
16
+
17
+ ## Dataset Description
18
+
19
+ This dataset contains images of **Hebrew letters** and the **stop symbols** for training and evaluating optical character recognition (OCR) models. The dataset is designed to support the development of machine learning models capable of identifying individual Hebrew letters from images, making it ideal for tasks such as:
20
+ - **OCR for Hebrew texts**
21
+ - **Educational tools for Hebrew language learners**
22
+ - **Digitization of historical Hebrew manuscripts**
23
+
24
+ ### Dataset Structure
25
+
26
+ The dataset is organized into directories, with each directory corresponding to a specific **Hebrew letter** or the **stop symbol**. Each directory contains several images (in `.jpg` format) of that letter or symbol in different fonts, sizes, and variations.
27
+
28
+ #### Directory Structure:
29
+ ```
30
+ /dataset/
31
+ /א/ (Images of the letter "Aleph")
32
+ /ב/ (Images of the letter "Bet")
33
+ /ג/ (Images of the letter "Gimel")
34
+ ...
35
+ /stop/ (Images of the stop symbol ".")
36
+ ```
37
+
38
+ - **Total Classes**: 29 (28 Hebrew letters + 1 stop symbol)
39
+ - **File Format**: `.jpg`
40
+ - **Image Size**: Varies, typically 64x64 pixels
41
+
42
+ ### Example Directory Structure:
43
+ ```
44
+ dataset/
45
+ א/
46
+ 1.jpg
47
+ 2.jpg
48
+ ...
49
+ ב/
50
+ 1.jpg
51
+ 2.jpg
52
+ ...
53
+ stop/
54
+ 1.jpg
55
+ 2.jpg
56
+ ...
57
+ ```
58
+
59
+ ### Class Labels:
60
+ - The dataset includes the following classes (letters and stop symbol):
61
+ - א, ב, ג, ד, ה, ו, ז, ח, ט, י, ך, כ, ל, ם, מ, ן, נ, ס, ע, ף, פ, ץ, צ, ק, ר, ש, ת, **stop (.)**
62
+
63
+ ## Dataset Use Cases
64
+
65
+ This dataset can be used to train machine learning models for:
66
+ - **Hebrew Letter Recognition**: Build a model that recognizes individual Hebrew letters from scanned documents or photos of text.
67
+ - **OCR Systems**: Develop OCR systems that digitize printed or handwritten Hebrew documents.
68
+ - **Educational Tools**: Create applications for teaching Hebrew reading by recognizing letters in real-time.
69
+
70
+ ## Data Preprocessing
71
+
72
+ ### Preprocessing Steps:
73
+ - **Resizing**: All images should be resized to a consistent size (e.g., 64x64 pixels) for input into a CNN model.
74
+ - **Normalization**: Normalize pixel values to the range `[0, 1]` by dividing by 255.
75
+ - **Augmentation** (optional): Apply data augmentation techniques such as rotations, flips, and zooms to increase the robustness of the model.
76
+
77
+ Example of loading and preprocessing the dataset using TensorFlow:
78
+
79
+ ```python
80
+ from tensorflow.keras.preprocessing import image_dataset_from_directory
81
+
82
+ # Load the dataset from the directory
83
+ dataset = image_dataset_from_directory(
84
+ 'path_to_dataset_directory',
85
+ image_size=(64, 64),
86
+ batch_size=32,
87
+ label_mode='categorical' # Multiclass classification
88
+ )
89
+ ```
90
+
91
+ ## Dataset Statistics:
92
+ - **Total Images**: 307
93
+ - **Number of Classes**: 29 (28 letters + 1 stop symbol)
94
+ - **Image Format**: `.jpg`
95
+ - **Average Images per Class**: Approximately 10-15 images per class.
96
+
97
+ ## License:
98
+ This dataset is provided under the **MIT License**. You are free to use, modify, and distribute the dataset as long as you include attribution to the original author.
99
+
100
+ ## Citation:
101
+ If you use this dataset in your research or work, please cite it as follows:
102
+
103
+ ```bibtex
104
+ @misc{hebrew-letter-dataset,
105
+ title={Hebrew Letter Recognition Dataset},
106
+ author={Benjamin Schnabel},
107
+ year={2024},
108
+ howpublished={\url{https://huggingface.co/datasets/your-dataset}},
109
+ }
110
+ ```
111
+
112
+ ## Contributions:
113
+ If you would like to contribute additional variations of Hebrew letters or improve the dataset, feel free to submit a pull request or open an issue.
114
+
115
+ ---
116
+
117
+ This README provides users with a clear understanding of what your dataset contains, how to use it, and some basic information about preprocessing and structure.
118
+
119
+ Let me know if you'd like further customization or additional details!