4/21/2017
OpenCV binarization test : threshold, adaptive threshold, otzu
< gist >
< /gist >
And refer to below site :
Otzu :
http://cvlecture.marearts.com/2017/04/opencv-lecture-5-4-otzu.html
adaptive threshold :
http://cvlecture.marearts.com/2017/04/opencv-lecture-5-3-adaptivethreshold.html
threshold :
http://cvlecture.marearts.com/2017/04/opencv-lecture-5-3-adaptivethreshold.html
Labels:
adaptive threshold,
OpenCV,
OTZU,
threshold,
Total
4/19/2017
OpenCV Background subtraction 3.2 version example (for MOG, MOG2, GMG, KNN)
This is example for background subtraction on opencv 3.2 version
previously, I post 2.7 version example on here.
http://study.marearts.com/2014/04/opencv-study-background-subtractor-mog.html
But some usage is changed, and knn subtraction method is added.
Many people ask that example based on opencv 3.2
refer to below source code
Thank you.
< gist code >
< /gist code >
previously, I post 2.7 version example on here.
http://study.marearts.com/2014/04/opencv-study-background-subtractor-mog.html
But some usage is changed, and knn subtraction method is added.
Many people ask that example based on opencv 3.2
refer to below source code
Thank you.
< gist code >
< /gist code >
4/17/2017
floodFill opencv function example
floodFill function example
< gist >
< /gist >
#tags
CallBackFunc, EVENT_LBUTTONDOWN, setMouseCallback, rectangle, floodFill,
< gist >
< /gist >
#tags
CallBackFunc, EVENT_LBUTTONDOWN, setMouseCallback, rectangle, floodFill,
Labels:
floodFill,
OpenCV,
rectangle,
setMouseCallback,
Total
video show and write keeping original fps
When the video write, we can set parameter in following function..
outVideo.open(".\\outVideo.avi", askFileTypeBox, capture.get(CV_CAP_PROP_FPS), S, Color);
And we can control play speed by waitKey.
double fps = capture.get(CV_CAP_PROP_FPS);
delay Per Second = 1/fps
in milliseconds = 1/fps * 1000
so we delay, waitKey( 1/fps * 1000 )
by the way, it is not exact fps. because it is delayed including other processing in the loop.
for example, data copy, sobel, imshow ...
< gist code >
< /gist code >
#tags
CV_CAP_PROP_FRAME_WIDTH, CV_CAP_PROP_FRAME_HEIGHT, VideoCapture, VideoWriter, waitKey
Labels:
CV_CAP_PROP_FRAME_HEIGHT,
CV_CAP_PROP_FRAME_WIDTH,
OpenCV,
Total,
VideoCapture,
VideoWriter,
waitKey
4/14/2017
Otzu binary simple example
Labels:
AdaptiveThreshold,
GaussianBlur,
OpenCV,
OTZU,
threshold,
Total
Subscribe to:
Posts (Atom)
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
In past, I wrote an articel about YUV 444, 422, 411 introduction and yuv rgb converting example code. refer to this page -> http://feel...
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
Created Date : 2007.8 Language : Matlab / C++(MFC) Tool : Matlab / Visual C++ 6.0 Library & Utilized : - / OpenGL Reference : ...
-
fig 1. Left: set 4 points (Left Top, Right Top, Right Bottom, Left Bottom), right:warped image to (0,0) (300,0), (300,300), (0,300) Fi...
-
The MNIST dataset is a dataset of handwritten digits, comprising 60 000 training examples and 10 000 test examples. The dataset can be downl...
-
Created Date : 2009.10. Language : C++ Tool : Visual Studio C++ 2008 Library & Utilized : Point Grey-FlyCapture, Triclops, OpenCV...
-
In the YUV color format, Y is bright information, U is blue color area, V is red color area. Show the below picture. The picture is u-v col...
-
Created Date : 2011.8 Language : Matlab Tool : Matlab 2010 Library & Utilized : - Reference : Multiple View Geometry (Hartly and Z...