Search for contours every N frames