1.0.11 • Published 2 years ago

yolo-coords v1.0.11

Weekly downloads
3
License
ISC
Repository
github
Last release
2 years ago

yolo coordinates

yolo-coords Coverage Status

A tiny helper lib to get YOLO labeling format txt coordinates as an array.

// 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 imagem.

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

Installing

npm i yolo-coords
1.0.11

2 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago