Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epomatti/yolo-coords
A tiny lib that parses yolo TXT files coordinates as an array of values.
https://github.com/epomatti/yolo-coords
image-labeling javascript labels object-detection txt yolo
Last synced: about 2 months ago
JSON representation
A tiny lib that parses yolo TXT files coordinates as an array of values.
- Host: GitHub
- URL: https://github.com/epomatti/yolo-coords
- Owner: epomatti
- License: mit
- Created: 2020-08-02T22:00:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T02:19:45.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T09:52:14.866Z (about 2 months ago)
- Topics: image-labeling, javascript, labels, object-detection, txt, yolo
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/yolo-coords
- Size: 387 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yolo coordinates
![yolo-coords](https://github.com/epomatti/yolo-coords/workflows/yolo-coords/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/epomatti/yolo-coords/badge.svg?branch=master)](https://coveralls.io/github/epomatti/yolo-coords?branch=master)
A tiny helper lib to get YOLO labeling format `txt` coordinates as an array.
Get it from NPM:
```
npm i yolo-coords
```Usage example:
```js
// reads class "16" coordinates from the txt file
const coords = require('yolo-coords')
const array = coords('16', 'sample.txt')
console.log(array)// output
[ '0.785185', '0.420118', '0.385185', '0.828402' ]
```The coordinates are also referred as 'labels' or 'annotations' and represent the position of an object within an image.
A YOLO `txt` file looks likes this:
```
15 0.235185 0.381657 0.396296 0.727811
16 0.785185 0.420118 0.385185 0.828402
```