desigen
desigen copied to clipboard
About "Background" class
Thank you for releasing the code and dataset!
I'm confused about this part
xc = l + w / 2 - img_l
yc = t + h / 2 - img_t
Doesn't the background element always cover the whole canvas? Why is it sometimes smaller? Below is an example json (111c1e732.json).
{
"desc": "The Bless Collective is a curated collection of Christian products including apparel, home decor, and unique gifts that bless God and His Kingdom. Selected by Dana Lyn with love.",
"file_name": "5Y4A0861A_1080x.jpg",
"size": [1024, 530],
"layout": [
{"type": "static-text", "position": [110, 198, 804, 42], "text": "DANA LYN MINISTRIES"},
{"type": "static-text", "position": [210, 248, 603, 29], "text": "Inner Healing + Deliverance + Freedom Life Coaching"},
{"type": "background", "position": [55, 0, 914, 475], "text": ""}
]
}
I'm also wondering what the size means. I guess it doesn't correspond to the size of the image in data/raw folder.