Datasets:
pain
/

Modalities:
Image
Languages:
Arabic
Size:
n<1K
ArXiv:
Tags:
License:
pain commited on
Commit
b7af895
1 Parent(s): fd30de9

Upload AASL.py

Browse files
Files changed (1) hide show
  1. AASL.py +62 -0
AASL.py ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import datasets
2
+ from datasets.tasks import ImageClassification
3
+
4
+ _CITATION = """\
5
+ @misc{https://doi.org/10.48550/arxiv.2301.11932,
6
+ doi = {10.48550/ARXIV.2301.11932},
7
+
8
+ url = {https://arxiv.org/abs/2301.11932},
9
+
10
+ author = {Al-Barham, Muhammad and Alsharkawi, Adham and Al-Yaman, Musa and Al-Fetyani, Mohammad and Elnagar, Ashraf and SaAleek, Ahmad Abu and Al-Odat, Mohammad},
11
+
12
+ keywords = {Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences, FOS: Computer and information sciences},
13
+
14
+ title = {RGB Arabic Alphabets Sign Language Dataset},
15
+
16
+ publisher = {arXiv},
17
+
18
+ year = {2023},
19
+
20
+ copyright = {Creative Commons Attribution 4.0 International}
21
+ }
22
+ """
23
+
24
+ _DESCRIPTION = "RGB Arabic Alphabet Sign Language (AASL) dataset comprises 7,857 raw and fully labelled RGB images of the Arabic sign language alphabets, which to our best knowledge is the first publicly available RGB dataset. The dataset is aimed to help those interested in developing real-life Arabic sign language classification models. AASL was collected from more than 200 participants and with different settings such as lighting, background, image orientation, image size, and image resolution. Experts in the field supervised, validated and filtered the collected images to ensure a high-quality dataset."
25
+ _URL = "https://huggingface.co/datasets/pain/AASL/blob/main/archive.zip"
26
+ _HOMEPAGE = "https://www.kaggle.com/datasets/muhammadalbrham/rgb-arabic-alphabets-sign-language-dataset"
27
+ _LICENSE = "CC BY-SA 4.0"
28
+
29
+
30
+ class NewDataset(datasets.GeneratorBasedBuilder):
31
+
32
+ def _info(self):
33
+
34
+ return datasets.DatasetInfo(
35
+
36
+ description=_DESCRIPTION,
37
+ features=datasets.Features(
38
+
39
+ {
40
+ "image": datasets.Image(),
41
+ "label": datasets.features.ClassLabel(names=['Ain','Al','Alef','Beh','Dad','Dal','Feh','Ghain','Hah','Heh','Jeem','Kaf','Khah','Laa','Lam','Meem','Noon','Qaf','Reh','Sad','Seen','Sheen','Tah','Teh','Teh_Marbuta','Theh','Waw','Yeh','Zah','Zain','thal'])
42
+ }
43
+ ),
44
+ supervised_keys=("image", "label"),
45
+ homepage=_HOMEPAGE,
46
+ citation=_CITATION,
47
+ task_templates=[
48
+ ImageClassification(
49
+ image_column="image",
50
+ label_column="label"
51
+ )
52
+ ],
53
+ license=_LICENSE
54
+ )
55
+
56
+ def _split_generators(self, dl_manager):
57
+ downloaded_files = dl_manager.download_and_extract(_URL, "AASL")
58
+
59
+ return datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"files": dl_manager.iter_files([downloaded_files])})
60
+
61
+ def _generate_examples(self):
62
+ pass