Open Chen94yue opened 1 year ago
def load_image():
# im_dir = '/GPFS/data/changliu/Dataset/FSC147/images_384_VarV2'
# im_id = '222.jpg'
# image = Image.open('{}/{}'.format(im_dir, im_id))
image = Image.open("1690120123_color_副本.png")
image.load()
W, H = image.size
# Resize the image size so that the height is 384
# Coordinates of the exemplar bound boxes
# The left upper corner and the right lower corner
# bboxes = [
# [[136, 98], [173, 127]],
# [[209, 125], [242, 150]],
# [[212, 168], [258, 200]]
# ]
bboxes = [[[140, 120], [200, 230]],
[[250, 100], [360, 160]],
[[358, 371], [471, 427]]]
boxes = list()
rects = list()
I run the demo with my test data.