1. An apparatus for video processing, the apparatus is configured to perform operations comprising: receiving video of a scene; detecting moving pixels in the video; detecting line segments or motion blocks in the video based on the detected moving pixels; identifying targets in the video based on the detected line segments or motion blocks; tracking targets in the video based on the identified targets; and managing the tracked targets in the video.