How do I merge multiple bounding boxes that overlap into one bigger bounding box?

Hello,
I am trying to detect text from an image (Magic Card) and I managed to create bounding boxes for each of the the candidate characters. However, I would like to merge all overlapping boxes as one larger box for optical character recognition. Is there a way to do this? Below is an image of the bounding boxes I currently have:

Answers (3)

thank you!now I want to show character major number than the six-day Africa how do you DO! anhthangk29@gmail.com.vn > thanks YOU

Asked:

Max
on 15 Nov 2015

Answered:

on 2 May 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!