Logo Removal issues
I have tested the tool with various video clips containing logos and encountered several issues:
- Logo Removal: The tool only removes subtitles when both a subtitle and a logo are present. However, my goal is to remove the logo itself, not just the subtitle.
- Text as Part of Logo: If there is no subtitle but there is a line of text beneath the logo, the tool removes only the text and not the entire logo. In my case, the text is part of the logo and should be removed together with the logo.
- Multiple Logos: The tool does not work correctly when there are multiple logos present in the video.
Is there a way to modify the tool to achieve better performance in these scenarios? Any suggestions or guidance would be appreciated.
before
After
before
After
Hi @WeizhenEricFang,
Thank you for the detailed report with screenshots - that's really helpful for understanding the issue!
The behavior you're describing is related to how Florence-2 detects watermarks. By default, the tool uses the prompt watermark which sometimes prioritizes text-like elements (subtitles) over graphical logos.
Here are some suggestions that might help with your specific scenarios:
For logo detection, try using a custom detection prompt:
or even more specific:
For logos with text underneath, you might need to run multiple passes or increase the value to capture larger regions:
For multiple logos, Florence-2 should detect multiple objects, but the current implementation may have limitations. If the logos are in different corners, they should be detected separately.
I want to be transparent: Florence-2's detection is based on the training data and may not be perfect for all logo types, especially complex or semi-transparent ones. The detection works best with clearly visible, contrasting watermarks.
Could you try these custom prompts and let me know if the results improve? I'm curious to know which prompt combinations work best for your specific videos.
Keeping the three reported cases together: subtitles selected instead of a logo, only the text portion of a logo removed, and multiple logos missed. The supplied before/after examples are useful.
For reproducible comparisons, please add the repository/model version, detection prompt, bounding-box limit and detection preview for each case. A fix should demonstrate the intended mask on the same frame and preserve unrelated subtitles/content. Related mask-quality discussion: #23.