~/projects/tiktok-sliding-blue-line-filter/

TikTok Blue Line Filter

Mar 8, 2023 #computer-vision#python#fun

A recreation of the viral TikTok 'sliding blue line' time-warp filter.

Purpose

This computer-vision experiment recreates the sliding blue-line or time-warp effect using a webcam. Regions behind the line are accumulated from earlier frames, while the area ahead shows the current image. A single output therefore appears to combine different moments.

Horizontal and vertical flows

The repository has separate Python scripts for horizontal and vertical scans. OpenCV reads 640×480 camera frames; NumPy arrays copy a narrow strip behind the line into an accumulating image. That image is combined with the current frame and displayed with the moving line. Scanning ends at the frame edge or when the user exits.

Technical scope

The project demonstrates copying pixel regions and accumulating an image across frames; it is not a general filter package. Its appearance depends on the camera feed and scan speed.

← cd ..