Skip to content

bluebird3624/motion-detection-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

motion-detection-opencv

using opencv to detect motion by comparing previous and current frames. The absdiff() method gives the absolute value of pixel intensity differences of two frames used to dettect change and thus motion The THRESH_BINARY method paints the background in black and motion in white thee dilate() method removes all the gaps in between Using contours, we can find the white images in the black background. using the findCountours() method we detect contuours and it returns contours and hirachy We use boundingRect() to retrieve the rectangle bounds and the rectangle() function to draw the rectangle onto frame1.

About

using opencv to detect motion by comparing frames

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages