OpenCV  3.4.6
Open Source Computer Vision
Video analysis (video module)

Look here in order to find use on your video stream algorithms like: motion extraction, feature tracking and foreground extractions.