video processing using opencv
can anyone give me a reference as how to apply image processing techniques for a frame in a video processing from a cam using opencv?
can anyone give me a reference as how to apply image processing techniques for a frame in a video processing from a cam using opencv?
The access to the camera is done through HighGui module of OpenCV. Here you could find the doc for the camera access.
Just a small sample from the doc which apply a Gaussian blur, and find the edge with the Canny detector.
VideoCapture cap(0); // open the default camera
// Check the access to the camera here!
Mat edges;
for(;;)
{
Mat frame;
cap >> frame; // get a new frame from camera
cvtColor(frame, edges, CV_BGR2GRAY);
GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5);
Canny(edges, edges, 0, 30, 3);
imshow("edges", edges);
if(waitKey(30) >= 0) break;
}
Here you could find the doc for almost all ''simple'' image processing available with OpenCV. The rest of the doc could help you depending on what you want to do with images.
Asked: 2013-03-08 00:14:19 -0600
Seen: 280 times
Last updated: Mar 08 '13
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Using OpenCV's stitching module, strange error when compositing images
compile error in opencv2/flann/lsh_table.h when compiling bgslibrary