{"id":25239528,"url":"https://github.com/mr-talhailyas/augmenting_detection_dataset","last_synced_at":"2025-04-05T19:44:08.548Z","repository":{"id":109024713,"uuid":"310437136","full_name":"Mr-TalhaIlyas/Augmenting_Detection_Dataset","owner":"Mr-TalhaIlyas","description":"augmenting object detection dataset along with bounding box annotations","archived":false,"fork":false,"pushed_at":"2021-07-16T05:56:40.000Z","size":5517,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T18:43:51.598Z","etag":null,"topics":["augumentation","bounding-box-augmentation","detection-dataset","object-detection-augmentation","xml-files"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mr-TalhaIlyas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-05T22:58:45.000Z","updated_at":"2021-07-16T05:56:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"6509cc71-5dab-43f7-9f7d-73bdbda15c5f","html_url":"https://github.com/Mr-TalhaIlyas/Augmenting_Detection_Dataset","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-TalhaIlyas%2FAugmenting_Detection_Dataset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-TalhaIlyas%2FAugmenting_Detection_Dataset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-TalhaIlyas%2FAugmenting_Detection_Dataset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-TalhaIlyas%2FAugmenting_Detection_Dataset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mr-TalhaIlyas","download_url":"https://codeload.github.com/Mr-TalhaIlyas/Augmenting_Detection_Dataset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393535,"owners_count":20931809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["augumentation","bounding-box-augmentation","detection-dataset","object-detection-augmentation","xml-files"],"created_at":"2025-02-11T18:29:06.103Z","updated_at":"2025-04-05T19:44:08.542Z","avatar_url":"https://github.com/Mr-TalhaIlyas.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FMr-TalhaIlyas%2FAugmenting_Detection_Dataset\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false)](https://hits.seeyoufarm.com)\n# Augmentation for Detection Dataset\n\nThis repo utilizes [**imageaug**](https://imgaug.readthedocs.io/en/latest/source/examples_bounding_boxes.html) library to augument the object detection dataset.\n\n## Usage\n\n```\npython \\path_2_script\\bb_aug.py -i=C:\\Users\\Desktop\\new\\in -o=C:\\Users\\Desktop\\new\\op -c train bus cycle car -iter=3\n```\nFor help\n```\npython D:\\path 2 where file is located\\bb_aug.py -h\n\nusage: bb_aug.py [-h] [-i IMG_PATH] [-o OP_IMG_PATH]\n                 [-c CLASSES [CLASSES ...]] [--xml_path XML_PATH]\n                 [--op_xml_path OP_XML_PATH] [-iter ITERATIONS]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i IMG_PATH, --img_path IMG_PATH\n                        path to read images.\n  -o OP_IMG_PATH, --op_img_path OP_IMG_PATH\n                        path to write images.\n  -c CLASSES [CLASSES ...], --classes CLASSES [CLASSES ...]\n                        a list containing names of all classes in dataset\n  --xml_path XML_PATH   path to read xml files if None then same as img_path.\n  --op_xml_path OP_XML_PATH\n                        path to write xml files if None then same as\n                        op_img_path.\n  -iter ITERATIONS, --iterations ITERATIONS\n                        Number of times to augment each image e.g. if input\n                        dir has 2 images and iterations=4 then op dir will\n                        have 8 images, default is 1.\n```\n## Output\n```\n============================================================\nImages Found =  3\nAnnot. Found =  3\n------------------------------------------------------------\nAugmneted Files =  9\n============================================================\nAugumenting Dataset (iteration 1of3): 100%|████████████████████████████████████████████████████████████████████████████████| 3/3 [00:03\u003c00:00,  1.00s/it]\nAugumenting Dataset (iteration 2of3): 100%|████████████████████████████████████████████████████████████████████████████████| 3/3 [00:03\u003c00:00,  1.23s/it]\nAugumenting Dataset (iteration 3of3): 100%|████████████████████████████████████████████████████████████████████████████████| 3/3 [00:02\u003c00:00,  1.40it/s]\n```\n\n## Dependency (Libraries)\n\n1. imgaug\n2. matplot\n3. cv2\n4. xmltodict\n5. dicttoxml\n\n\n## Follwing are some examples of input images with their b_boxes drawn on them and their corresponding augumented outputs.\n\n\n![alt text](https://github.com/Mr-TalhaIlyas/Augumenting_Detection_Dataset/blob/master/images/Slide1.JPG?raw=true)\n\n![alt text](https://github.com/Mr-TalhaIlyas/Augumenting_Detection_Dataset/blob/master/images/Slide2.JPG?raw=true)\n\n![alt text](https://github.com/Mr-TalhaIlyas/Augumenting_Detection_Dataset/blob/master/images/Slide3.JPG?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-talhailyas%2Faugmenting_detection_dataset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-talhailyas%2Faugmenting_detection_dataset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-talhailyas%2Faugmenting_detection_dataset/lists"}