Omarrran's picture
Update README.md
3c908f6 verified
---
license: apache-2.0
language:
- ks
pretty_name: Kahmiri_image_and_text_dataset
task_categories:
- object-detection
tags:
- text
- kashmiri
- dataset
- ocr
- text recognition
- images
- text and
size_categories:
- 10K<n<100K
---
### 40K Kashmiri Words with images
Kashmiri (words) Image and Text Dataset for OCR Models
This repository contains a dataset specifically curated for training and testing Optical Character Recognition (OCR) models on Kashmiri language text. The dataset includes a large collection of images with their corresponding labels in a CSV file, designed to aid in the development of robust OCR solutions for the Kashmiri script.
---
Directory Structure:
```
Zip File/
├── images/
│ ├── 000001.png
│ ├── 000002.png
│ ├── 000003.png
│ ├── ...
│ ├── 031000.png
├── labels.csv
```
Description:
Zip File/: The root directory containing all the dataset files and subfolders.
**images/**: A folder housing 40,799 image files, sequentially named from 000001.png to 040799.png. Each image contains text written in the Kashmiri language.
**labels.csv**: A CSV file mapping each image file to its corresponding text label. The file format includes two columns:
## Sample fromat
| Image ID | Text | Image File |
|----------|-------------------------|-------------|
| 000001 | لیونڈ|![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/ONm_z5ZOCnefTLD1tFbJu.png) |
| 000002 | لایم |![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/pubtNXMFnzrro-CAwFMMB.png) |
| 000003 | ٹیرف| ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/92aY65VqM80J6Escx9Y3_.png) |
| 000004 | تلاان |![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/ke-c2ZKGnIRffIjiGX89o.png)|
| 000005 | آرکیالوجیکل | ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/16fF2wWclx-CnxJIgqsr8.png) |
| 000006 | چتوڈکہ | ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/QTIg0Mxkz-silHmCRwuxa.png) |
| 000007 | پریانشو | ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/G5gxEJbKpC4Y4XIiOB0v6.png) |
| 000008 |کالیسٹریٹسنک | ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/CULxPkVsoCkI7VITG_mz6.png) |
| 000009 | جولاے | ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66afb3f1eaf3e876595627bf/EXnaclxaV0GGBMaL6nsw7.png)|
### Usage Terms for this Corpus Dataset
1. **Purpose of Use**
This dataset is made available for the purpose of training machine learning models such as developing OCR systems for the Kashmiri script , academic research, and other non-commercial uses related to the Kashmiri language and its applications.
2. **Citation Requirement**
If you use this dataset for research, training models, or any other purpose, you must provide proper attribution by citing the following:
> @misc{HNM OCR dataset2024,
title = {Omarrran/40K_kashmiri_text_and_image_dataset},
author = {HAQ NAWAZ MALIK},
year = {2024},
url = {https://huggingface.co/datasets/Omarrran/40K_kashmiri_text_and_image_dataset/},
note = {Contains 40,799 images with labels }
}
3. **Modifications and Extensions**
Any modifications, extensions, or derivative works created using this dataset must not be redistributed, published, or shared without obtaining explicit written permission from the dataset's creator.
4. **Contact for Permissions**
For any queries regarding usage, such as modifications, extensions, commercial applications, or redistribution, please contact the Author at:
> [Hnm{dot}cs{dot}ai{at}outlook{dot}com]
5. **Disclaimer**
The dataset is provided "as is" without any warranties, guarantees, or liabilities. The creator assumes no responsibility for any direct or indirect consequences resulting from its use.
By using this dataset, you agree to abide by these terms.
Example Usage in Python
## 1
Extract the Zip file then ;
## 2
```
import pandas as pd
from PIL import Image
# Load labels
labels = pd.read_csv('labels.csv')
# Example: Display an image and its corresponding label
image_path = 'images/000001.png'
image = Image.open(image_path)
print(f"Label: {labels[labels['image_name'] == '000001.png']['text_label'].values[0]}")
image.show()
```
Dataset Details
Number of Images: 40,799
Language: Kashmiri
File Format:
Images: .png
Labels: .csv
---
Contribution
If you encounter any issues or have suggestions for improving this dataset, feel free to open an issue or submit a pull request.
---
License
This dataset is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0). Please provide appropriate credit when using this dataset in your projects.
Citation:
```
@misc{dataset2024,
title = {Omarrran/40K_kashmiri_text_and_image_dataset},
author = {HAQ NAWAZ MALIK},
year = {2024},
url = {https://huggingface.co/datasets/Omarrran/40K_kashmiri_text_and_image_dataset/},
note = {Contains 40,799 images with labels }
}
```