boostcampaitech2 / image-classification-level1-08

image-classification-level1-08 3rd Place!
7 stars 3 forks source link

Face Crop (Mediapipe)! #29

Open lsh3163 opened 3 years ago

lsh3163 commented 3 years ago

submission_crop.csv standard_crop.csv tmp (2)

ymin, xmin, height, width = row["ymin"], row["xmin"], row["height"], row["width"]
label = row["label"]
img_path = path

image = Image.open(img_path)            
image = image.crop((xmin, ymin, xmin+width, ymin+height))