keremberke commited on
Commit
a15bab3
1 Parent(s): 4dbe5ae

dataset uploaded by roboflow2huggingface package

Browse files
README.dataset.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # undefined > original-images
2
+ https://public.roboflow.ai/object-detection/undefined
3
+
4
+ Provided by undefined
5
+ License: CC BY 4.0
6
+
7
+ # Overview
8
+ The Numberplate Dataset is a collection of Licence Plates that can easily be used for Automatic Number Plate Detection.
9
+ # Example Footage!
10
+ ![Licese Plate Detection](https://media0.giphy.com/media/5l6FAJoHuT0YiM3oZG/giphy.gif?cid=790b7611013999dd479d98f81ddbaaf2a0563c41cea2413b&rid=giphy.gif&ct=g)
11
+
12
+ # Training and Deployment
13
+ The Number Plate model has been trained in Roboflow, and available for inference on the Dataset tab.
14
+ One could also build a Automatic Number Plate Recognition [ANPR] App using YOLOR and EasyOCR. This is achieved using the Roboflow Platform which you can deploy the model for robust and real-time ANPR.
15
+
16
+ # About Augmented Startups
17
+ We are at the forefront of Artificial Intelligence in computer vision. With over 92k subscribers on YouTube, we embark on fun and innovative projects in this field and create videos and courses so that everyone can be an expert in this field. Our vision is to create a world full of inventors that can turn their dreams into reality
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - object-detection
4
+ tags:
5
+ - roboflow
6
+ ---
7
+
8
+ ### Roboflow Dataset Page
9
+ https://universe.roboflow.com/augmented-startups/vehicle-registration-plates-trudk/dataset/1
10
+
11
+ ### Dataset Labels
12
+
13
+ ```
14
+ ['license_plate']
15
+ ```
16
+
17
+ ### Citation
18
+
19
+ ```
20
+ @misc{ vehicle-registration-plates-trudk_dataset,
21
+ title = { Vehicle Registration Plates Dataset },
22
+ type = { Open Source Dataset },
23
+ author = { Augmented Startups },
24
+ howpublished = { \\url{ https://universe.roboflow.com/augmented-startups/vehicle-registration-plates-trudk } },
25
+ url = { https://universe.roboflow.com/augmented-startups/vehicle-registration-plates-trudk },
26
+ journal = { Roboflow Universe },
27
+ publisher = { Roboflow },
28
+ year = { 2022 },
29
+ month = { jun },
30
+ note = { visited on 2023-01-01 },
31
+ }
32
+ ```
33
+
34
+ ### License
35
+ CC BY 4.0
36
+
37
+ ### Dataset Summary
38
+ This dataset was exported via roboflow.ai on January 13, 2022 at 5:20 PM GMT
39
+
40
+ It includes 8823 images.
41
+ VRP are annotated in COCO format.
42
+
43
+ The following pre-processing was applied to each image:
44
+ * Auto-orientation of pixel data (with EXIF-orientation stripping)
45
+
46
+ No image augmentation techniques were applied.
47
+
48
+
49
+
README.roboflow.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Vehicle Registration Plates - v1 original-images
3
+ ==============================
4
+
5
+ This dataset was exported via roboflow.ai on January 13, 2022 at 5:20 PM GMT
6
+
7
+ It includes 8823 images.
8
+ VRP are annotated in COCO format.
9
+
10
+ The following pre-processing was applied to each image:
11
+ * Auto-orientation of pixel data (with EXIF-orientation stripping)
12
+
13
+ No image augmentation techniques were applied.
14
+
15
+
data/test.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0da8f2a4a703d126b4c39416940aa93f1fc7c9c4c75d7d86a2c5e245f8918258
3
+ size 21917681
data/train.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1275562c0716aee2e9f377c86f74fe76a80a9057a30d1d518b88cfbc3f0785e8
3
+ size 163307791
data/valid.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed8ccebeb8c09fbc19836eaf88c45105fddf27e4909c0e8ed79cabcbd85742d4
3
+ size 44930828
license-plate-object-detection.py ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import collections
2
+ import json
3
+ import os
4
+
5
+ import datasets
6
+
7
+
8
+ _HOMEPAGE = "https://universe.roboflow.com/augmented-startups/vehicle-registration-plates-trudk/dataset/1"
9
+ _LICENSE = "CC BY 4.0"
10
+ _CITATION = """\
11
+ @misc{ vehicle-registration-plates-trudk_dataset,
12
+ title = { Vehicle Registration Plates Dataset },
13
+ type = { Open Source Dataset },
14
+ author = { Augmented Startups },
15
+ howpublished = { \\url{ https://universe.roboflow.com/augmented-startups/vehicle-registration-plates-trudk } },
16
+ url = { https://universe.roboflow.com/augmented-startups/vehicle-registration-plates-trudk },
17
+ journal = { Roboflow Universe },
18
+ publisher = { Roboflow },
19
+ year = { 2022 },
20
+ month = { jun },
21
+ note = { visited on 2023-01-01 },
22
+ }
23
+ """
24
+ _URLS = {
25
+ "train": "https://huggingface.co/datasets/keremberke/license-plate-object-detection/resolve/main/data/train.zip",
26
+ "validation": "https://huggingface.co/datasets/keremberke/license-plate-object-detection/resolve/main/data/valid.zip",
27
+ "test": "https://huggingface.co/datasets/keremberke/license-plate-object-detection/resolve/main/data/test.zip",
28
+ }
29
+
30
+ _CATEGORIES = ['license_plate']
31
+ _ANNOTATION_FILENAME = "_annotations.coco.json"
32
+
33
+
34
+ class LICENSEPLATEOBJECTDETECTION(datasets.GeneratorBasedBuilder):
35
+ VERSION = datasets.Version("1.0.0")
36
+
37
+ def _info(self):
38
+ features = datasets.Features(
39
+ {
40
+ "image_id": datasets.Value("int64"),
41
+ "image": datasets.Image(),
42
+ "width": datasets.Value("int32"),
43
+ "height": datasets.Value("int32"),
44
+ "objects": datasets.Sequence(
45
+ {
46
+ "id": datasets.Value("int64"),
47
+ "area": datasets.Value("int64"),
48
+ "bbox": datasets.Sequence(datasets.Value("float32"), length=4),
49
+ "category": datasets.ClassLabel(names=_CATEGORIES),
50
+ }
51
+ ),
52
+ }
53
+ )
54
+ return datasets.DatasetInfo(
55
+ features=features,
56
+ homepage=_HOMEPAGE,
57
+ citation=_CITATION,
58
+ license=_LICENSE,
59
+ )
60
+
61
+ def _split_generators(self, dl_manager):
62
+ data_files = dl_manager.download_and_extract(_URLS)
63
+ return [
64
+ datasets.SplitGenerator(
65
+ name=datasets.Split.TRAIN,
66
+ gen_kwargs={
67
+ "folder_dir": data_files["train"],
68
+ },
69
+ ),
70
+ datasets.SplitGenerator(
71
+ name=datasets.Split.VALIDATION,
72
+ gen_kwargs={
73
+ "folder_dir": data_files["validation"],
74
+ },
75
+ ),
76
+ datasets.SplitGenerator(
77
+ name=datasets.Split.TEST,
78
+ gen_kwargs={
79
+ "folder_dir": data_files["test"],
80
+ },
81
+ ),
82
+ ]
83
+
84
+ def _generate_examples(self, folder_dir):
85
+ def process_annot(annot, category_id_to_category):
86
+ return {
87
+ "id": annot["id"],
88
+ "area": annot["area"],
89
+ "bbox": annot["bbox"],
90
+ "category": category_id_to_category[annot["category_id"]],
91
+ }
92
+
93
+ image_id_to_image = {}
94
+ idx = 0
95
+
96
+ annotation_filepath = os.path.join(folder_dir, _ANNOTATION_FILENAME)
97
+ with open(annotation_filepath, "r") as f:
98
+ annotations = json.load(f)
99
+ category_id_to_category = {category["id"]: category["name"] for category in annotations["categories"]}
100
+ image_id_to_annotations = collections.defaultdict(list)
101
+ for annot in annotations["annotations"]:
102
+ image_id_to_annotations[annot["image_id"]].append(annot)
103
+ image_id_to_image = {annot["file_name"]: annot for annot in annotations["images"]}
104
+
105
+ for filename in os.listdir(folder_dir):
106
+ filepath = os.path.join(folder_dir, filename)
107
+ if filename in image_id_to_image:
108
+ image = image_id_to_image[filename]
109
+ objects = [
110
+ process_annot(annot, category_id_to_category) for annot in image_id_to_annotations[image["id"]]
111
+ ]
112
+ with open(filepath, "rb") as f:
113
+ image_bytes = f.read()
114
+ yield idx, {
115
+ "image_id": image["id"],
116
+ "image": {"path": filepath, "bytes": image_bytes},
117
+ "width": image["width"],
118
+ "height": image["height"],
119
+ "objects": objects,
120
+ }
121
+ idx += 1