Technology Sharing

【Data labeling in YOLO format, target detection】

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

Tagged withYOLO format, one for each image*.txtfile (not required if there are no objects in the image)*.txtdocument).*.txtThe file specifications are as follows:

  • One row per object

  • Each line isclass x_center y_center width heightFormat.

  • The bounding box coordinates must beNormalizedxywhformat (from 0 to 1). If the box is in pixels, thenx_centerandwidthDivide by the image width,y_centerandheightDivide by the image height.

  • Class numbers are zero-indexed (starting at 0).

  • The label file corresponding to the above picture contains 2 people (type0) and a tie (type27):The label file corresponding to the above picture contains 2 people (type0) and a tie (type27):