class_docstr: Duplicate Filter.
class_docstr_tok: ["Duplicate","Filter","."]
code: def __call__(self, segs, scores, src):
      duration = src.shape[0]
      weights = [0] * duration
      for i, j in zip(segs, scores):
          for idx in range(i[0], i[2] + 1):
              weights[idx] = max(weights[idx], j)
  
      return (sum(weights) / duration) > self._threshold
  
file_path: towhee/towhee/pipelines/video_copy_detection.py
imports: from typing import Optional
  from pydantic import BaseModel
  from towhee import ops, pipe, AutoPipes, AutoConfig
label_desc: Use image node_id 2 for calling the DuplicateFilter obj's underlying member method code with example usage: obj.__call__(segs, scores, src) and returns: unknown