please write a python code which can create bounding boxes around a line splitting into two lines, assuming that my dataset consists of 2d matrices representing gray scale pixels. please try to use a foundation model and fine tune it