I have an SDI video input that contains song lyrics. The goal is the generate boxes behind the text that are sized appropriately and output the Key/Fill from a second DeckLink card.
There are 3 states that I need to be able to detect and handle, 1 or 2 lines of text and none (there should be no boxes when there is no text). The text is always white and in the same region.
The part that I am not sure how to do is detect the presence and location of the text. I don’t need OCR or anything like that. I just need the boundaries of the non black pixels. The rest of this seems pretty simple.