Update flag_detect.m

added bounding box