I have video material containing frames with a rectangular area of uniform color interspersed with other content. I would like to identify these frames, with the intent of removing them. The technique discussed here looks promising, as does the ffmpeg blackdetect filter on its own. However, I need to be able to specify the color of the rectangle for each video. It is not always black.

1 Answer 1


Identify a logo should be part of the CV. My suggestion is to use the idea of checking the logo from png (https://ai-facets.org/robust-logo-detection-with-opencv/) and modify the code to read a frame from a video (https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html)

Hope this help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.