Answers.Body: <p>Identify a logo should be part of the CV. My suggestion is to use the idea of checking the logo from png (<a href="https://ai-facets.org/robust-logo-detection-with-opencv/" rel="nofollow noreferrer">https://ai-facets.org/robust-logo-detection-with-opencv/</a>) and modify the code to read a frame from a video (<a href="https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html" rel="nofollow noreferrer">https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html</a>)</p>
  <p>Hope this help</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-21T11:21:28.523Z
Answers.LastActivityDate: 2020-10-21T11:21:28.523Z
Answers.UserDisplayName: xer-rex
Body: <p>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 <a href="https://video.stackexchange.com/questions/23665/find-frames-in-video-that-contain-an-image">discussed here</a>  looks promising, as does the ffmpeg <em>blackdetect</em> 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.</p>
  
Tags: <ffmpeg>
Title: How can I programatically identify video frames containing a fixed rectangular area of a certain color?
UserDisplayName: Quentin V
ThreadText: # How can I programatically identify video frames containing a fixed rectangular area of a certain color?
  
  (Asked by: username_0 on 2020-10-20)
  
  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](https://video.stackexchange.com/questions/23665/find-frames-in-video-that-contain-an-image) 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.
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-10-21. Score: 0
  
  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
  
  
  ---
  
  