Medical image dataset bounding box in ROI

Hello,
I have a large number of medical x_ray images as a dataset. I want detect a part of object and surround it by bounding box automatically without using image annotation tools to determinate the (x1 , y1) (x2 , y2). Can you please advise me.

template matching, maybe:

https://docs.opencv.org/4.x/de/da9/tutorial_template_matching.html

train a neural network.

you can make it predict boxes or segmentations. I’d suggest segmentations. just paint the dense parts of the bone.