+ описание команд для обнаружения в тестовых изобр

This commit is contained in:
shalenikol 2023-03-02 16:04:39 +03:00
parent 35223a1af1
commit 12f9caa69c
4 changed files with 1271 additions and 11 deletions

View file

@ -6,6 +6,7 @@ import blenderproc as bproc
Используется модуль blenderproc
24.01.2023 @shalenikol release 0.1
22.02.2023 @shalenikol release 0.2 исправлен расчёт x,y в convert2relative
"""
import numpy as np
import argparse
@ -19,6 +20,8 @@ def convert2relative(height, width, bbox):
YOLO format use relative coordinates for annotation
"""
x, y, w, h = bbox
x += w/2
y += h/2
return x/width, y/height, w/width, h/height
parser = argparse.ArgumentParser()