Giter VIP home page Giter VIP logo

coco2yolo's Introduction

COCO2YOLO

COCO to YOLO converter

Usage

python COCO2YOLO.py -j coco.json -o path_to_dir

Or download Release and run

COCO2YOLO.exe -j coco.json -o path_to_dir

To test the conversion you can run test.py

python test.py -i img.jpg -t converted_to_yolo.txt

Or

python test_with_labels.py -i img.jpg -t converted_to_yolo.txt -l labels.txt

coco2yolo's People

Contributors

alexmihalyk23 avatar hobbymarks avatar

Stargazers

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

Watchers

 avatar  avatar

coco2yolo's Issues

How to build a class file

It's a great code. It works well and the results are satisfactory, but the obj name file was not found. How should I organize it?

if bbox is tlbr, _bbox_2_yolo code is need to update

When bbox is tlbr, the result value is not accurate when using the existing calculation code. I may be wrong, but it looks like the calculation code needs to be corrected.
x = (bbox[0] + bbox[1]) / 2. y = (bbox[1] + bbox[3]) / 2. w = bbox[2] - bbox[0] h = bbox[3] - bbox[1] x = x / img_w y = y / img_h w = w / img_w h = h / img_h return x, y, w, h

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.