class_docstr: Frames matches inside a set of frames.
  
  You can instantiate it passing a list of FramesMatch objects or
  using the class methods ``load`` and ``from_clip``.
  
  Parameters
  ----------
  
  lst : list
    Iterable of FramesMatch objects.
class_docstr_tok: ["Frames","matches","inside","a","set","of","frames",".","You","can","instantiate","it","passing","a","list","of","FramesMatch","objects","or","using","the","class","methods","``","load","``","and","``","from_clip","``",".","Parameters","--","--","--","--","--","lst",":","list","Iterable","of","FramesMatch","objects","."]
docstr: Return a FramesMatches object obtained by filtering out the
  FramesMatch which do not satistify a condition.
  
  Parameters
  ----------
  
  condition : func
    Function which takes a FrameMatch object as parameter and returns a
    bool.
  
  Examples
  --------
  >>> # Only keep the matches corresponding to (> 1 second) sequences.
  >>> new_matches = matches.filter( lambda match: match.time_span > 1)
docstr_tok: ["Return","a","FramesMatches","object","obtained","by","filtering","out","the","FramesMatch","which","do","not","satistify","a","condition",".","Parameters","--","--","--","--","--","condition",":","func","Function","which","takes","a","FrameMatch","object","as","parameter","and","returns","a","bool",".","Examples","--","--","--","--",">",">",">","#","Only","keep","the","matches","corresponding","to","(",">","1","second",")","sequences",".",">",">",">","new_matches","=","matches.filter","(","lambda","match",":","match.time_span",">","1",")"]
code: def filter(self, condition):
      """Return a FramesMatches object obtained by filtering out the
      FramesMatch which do not satistify a condition.
  
      Parameters
      ----------
  
      condition : func
        Function which takes a FrameMatch object as parameter and returns a
        bool.
  
      Examples
      --------
      >>> # Only keep the matches corresponding to (> 1 second) sequences.
      >>> new_matches = matches.filter( lambda match: match.time_span > 1)
      """
      return FramesMatches(filter(condition, self))
  
imports: from collections import defaultdict
  import numpy
  from moviepy.decorators import convert_parameter_to_seconds, use_clip_fps_by_default
label_desc: Use image node_id 3 for calling the FramesMatches obj's underlying member method code with example usage: obj.filter(condition) and returns: FramesMatches