Coder Social home page Coder Social logo

object-detection-tools's Introduction

๐Ÿ”ง Object-Detection-Tools

Tools for object detection annotations in machine learning:

  • Converts PASCAL VOC annotations to the _annotations.json format supported by the Cloud Annotations tool.
  • Upload images and annotations to Cloud Object Storage Bucket.
  • Converts PASCAL VOC annotations to the COCO json annotation format.
  • Remove empty annotation files
  • Remove some annotations in all the files

Instructions

Remove empty annotation

Remove empty xml annotation file. If a file does not have any object tag:

python remove_empty_annotation.py

Remove some annotation

This script removes an annotation from all of your xml files. If you want to remove all xml objects from your annotations files that have the label 'car':

python remove_annotation.py --name car

xml โ†’ json (Cloud Annotations Tool)

Convert xml annotations to json:

python convert_xml2json.py

xml โ†’ json (COCO json annotation format)

Convert xml annotations to coco json annotation format

python pascal_voc_xml2coco_json.py

Upload images and annotations to Cloud Object Storage Bucket

Install the Cloud Object Storage SDK:

pip 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

Add your credentials to upload2bucket.py:

credentials = {
  'bucket': 'YOUR_BUCKET_NAME',
  'iam_url': 'https://iam.ng.bluemix.net/oidc/token',
  'resource_instance_id': 'YOUR_INSTANCE_ID',
  'url': 'YOUR_REGION_ENDPOINT',
  'api_key': 'YOUR_API_KEY'
}

Upload the images and the annotations:

python upload2bucket.py

Acknowledgments

object-detection-tools's People

Contributors

bourdakos1 avatar gamcoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.