Skip to content

Aashishh1/MotionDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ₯ Motion Detection using OpenCV

This project uses OpenCV to detect motion levels in real-time through a webcam. The program categorizes the motion into three levels and displays the current level on the video feed.


Build with Libraries

Β»OpenCV to capture the video


πŸ” How It Works

  • Video Capture: Captures video from the webcam.
  • Background Subtraction: Uses cv2.createBackgroundSubtractorMOG2 to detect moving objects.
  • Motion Detection: Calculates the sum of detected pixels to determine the level of motion:
    • Stable: No significant motion detected.
    • 1st level motion detected!: Low level of motion.
    • 2nd level motion detected!: Medium level of motion.
    • 3rd level motion detected!: High level of motion.

About

πŸ“ΉπŸ” Simple OpenCV motion detection with real-time levels.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages