OpenCV Archive

Mathematical Morphology – Opening and Closing, Top Hat, Black Hat, Gradient in OpenCV

We discussed dilation and erosion in previous article where we discussed that one expands the object pixels and the other shrinks them. What if we combine these operations? Fine these interesting details written below. Opening An erosion operation followed by dilation operation with the same structuring element is known as opening operation. An opening removes

Motion Detection using Frame Differencing and Mean Background Model

Instead of using static background model to find difference in current frame, I am using frame difference technique where current frame is compared or subtracted from previous frame. The difference depends upon speed of moving objects. Making a fair analysis is very difficult. Find the code bellow to find difference in frames. VideoCapture capture("ewap/seq_hotel.avi"); Mat

Opencv 3 installation, Difference between Frames and Averaging Frames

Opencv 3 installation on windows 10 and configure with visual studio 2012 Step1:Download windows version of opencv from www.opencv.org   Step2: Extract into a folder   Step3: Configure opencv with Visual studio   Set envirenment Vairable variable name: OPENCV3_DIR value: D:\\development\opencv\build\x86\vc11 Set Path: %OPENCV_DIR%\bin   Configure visual studio for opencv project C/C++   additional include