Although there are labelme、labelimg Etc. marking sharp weapon , But on some public datasets , Instead of using these public formats . It is a kind of standard information based on aspect ratio , Such as Satellite application competition —— Data set of intelligent detection of marine ships , Use relative values to describe dimension targets , The details are as follows: 1 Shown :
For this txt The annotation information described by the format , Unable to visualize quickly , So develop python Scripts enable rapid visualization of such data .
import glob,os
import numpy as np
from skimage import io
from PIL import Image,ImageDraw,ImageFont
def get_label(img_path):
label_path=img_path.replace(".jpg",".txt")
label_list=[]
with open(label_path,"r") as f:
label_list = f.readlines()
result=[]
f
There are some pain points whe
ZOS-API Is a powerful tool,在 Z