{"id":17976670,"url":"https://github.com/gamcoh/object-detection-tools","last_synced_at":"2025-03-25T15:31:18.580Z","repository":{"id":113822502,"uuid":"175605615","full_name":"gamcoh/Object-Detection-Tools","owner":"gamcoh","description":"Tools for object detection annotations in machine learning","archived":false,"fork":false,"pushed_at":"2021-03-14T14:54:08.000Z","size":403,"stargazers_count":15,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T13:11:16.203Z","etag":null,"topics":["deep-learning","ibm-cloud-object-storage","json","machine-learing","pascal-voc","xml"],"latest_commit_sha":null,"homepage":"","language":"Python","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/gamcoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["gamcoh"]}},"created_at":"2019-03-14T11:07:57.000Z","updated_at":"2024-11-19T09:32:45.000Z","dependencies_parsed_at":"2023-11-27T02:00:25.981Z","dependency_job_id":null,"html_url":"https://github.com/gamcoh/Object-Detection-Tools","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/gamcoh%2FObject-Detection-Tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamcoh%2FObject-Detection-Tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamcoh%2FObject-Detection-Tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamcoh%2FObject-Detection-Tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamcoh","download_url":"https://codeload.github.com/gamcoh/Object-Detection-Tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245489763,"owners_count":20623789,"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":["deep-learning","ibm-cloud-object-storage","json","machine-learing","pascal-voc","xml"],"created_at":"2024-10-29T17:24:41.253Z","updated_at":"2025-03-25T15:31:18.574Z","avatar_url":"https://github.com/gamcoh.png","language":"Python","funding_links":["https://github.com/sponsors/gamcoh"],"categories":[],"sub_categories":[],"readme":"# 🔧 Object-Detection-Tools\nTools for object detection annotations in machine learning:\n- Converts PASCAL VOC annotations to the \\_annotations.json format supported by the Cloud Annotations tool.\n- Upload images and annotations to Cloud Object Storage Bucket.\n- Converts PASCAL VOC annotations to the COCO json annotation format.\n- Remove empty annotation files\n- Remove some annotations in all the files\n\n## Instructions\n### Remove empty annotation\nRemove empty xml annotation file. If a file does not have any `object` tag:\n```\npython remove_empty_annotation.py\n```\n\n### Remove some annotation\nThis script removes an annotation from all of your xml files.\nIf you want to remove all xml objects from your annotations files that have the label 'car':\n```\npython remove_annotation.py --name car\n```\n\n### xml → json (Cloud Annotations Tool)\nConvert xml annotations to json:\n```\npython convert_xml2json.py\n```\n\n### xml → json (COCO json annotation format)\nConvert xml annotations to coco json annotation format\n```\npython pascal_voc_xml2coco_json.py\n```\n\n### Upload images and annotations to Cloud Object Storage Bucket\nInstall the Cloud Object Storage SDK:\n```\npip install botocore==1.12.26 ibm-cos-sdk==2.3.2 ibm-cos-sdk-core==2.3.2 ibm-cos-sdk-s3transfer==2.3.2\n```\n\nAdd your `credentials` to `upload2bucket.py`:\n```python\ncredentials = {\n  'bucket': 'YOUR_BUCKET_NAME',\n  'iam_url': 'https://iam.ng.bluemix.net/oidc/token',\n  'resource_instance_id': 'YOUR_INSTANCE_ID',\n  'url': 'YOUR_REGION_ENDPOINT',\n  'api_key': 'YOUR_API_KEY'\n}\n```\n\nUpload the images and the annotations:\n```\npython upload2bucket.py\n```\n\n## Acknowledgments\n- Thanks to [@bourdakos1](https://github.com/bourdakos1) for the great help\n- Thanks to [@CivilNet](https://github.com/CivilNet) for the xml to coco script\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamcoh%2Fobject-detection-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamcoh%2Fobject-detection-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamcoh%2Fobject-detection-tools/lists"}