File size: 535 Bytes
b092e67
 
 
 
 
0ccc47d
b092e67
0ccc47d
21dae66
 
 
0ccc47d
b092e67
21dae66
b092e67
 
 
21dae66
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import geopandas as gpd
from shapely.geometry import box

bounding_boxes = [
    # 'Head incl. eyes',
    box(250, 375, 350, 485),
    # 'Beak and mouth region',
    box(200, 450, 250, 485),
    # 'Feathers/Wings/Tail',
    box(50, 100, 725, 355),
    # 'Legs',
    box(325, 585, 450, 675),
    # 'Body'
    box(275, 510, 500, 565),
]

# Create a GeoDataFrame from these boxes
gdf = gpd.GeoDataFrame(
    {
        "geometry": bounding_boxes,
        "name": ["Head incl. eyes", "Beak", "Feathers/Wings/Tail", "Legs", "Body"],
    }
)