cv2.rectangle(img_rectangle, (x, y), (x + w, y + h), (255, 0, 0), 5)
print((x, y), (x + w, y + h),)
#YOLO 라벨 형태로 변환
xc = ((x + (x+w))/2)/width
yc = ((y + (y+h))/2)/height
xc2 = w / width
yc2 = h / height
f = open(img_files[0].replace(".jpg",".txt"),'w')
f.write(idx+' '+str(xc)+" "+str(yc)+" "+str(xc2)+" "+str(yc2))
f.close()