create an overlayer in an image
I would like create an overlayer in an video like this image:
https://karanbalkar.com/wp-content/up...
how can I create that?
I would like create an overlayer in an video like this image:
https://karanbalkar.com/wp-content/up...
how can I create that?
take a look at the code below
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
using namespace cv;
int main( int argc, char** argv )
{
VideoCapture cap(0); // open the default camera
if(!cap.isOpened()) // check if we succeeded
return -1;
for(;;)
{
Mat frame;
cap >> frame; // get a new frame from camera
Mat roi = frame(Rect(frame.cols/4,frame.rows/4,frame.cols/2,frame.rows/2));
frame = frame / 2;
roi = roi * 2;
imshow("VideoCapture", frame);
if(waitKey(30) >= 0) break;
}
// the camera will be deinitialized automatically in VideoCapture destructor
return 0;
}
Asked: 2016-08-24 13:00:06 -0600
Seen: 176 times
Last updated: Aug 24 '16
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Installing Sample App / OpenCV Manager
OpenCV-2.4.2-android-sdk missing build.xml?
OpenCV libs on Real Android Device
Unresolved inclusions in OpenCV android tutorial 4.
build openCV for android, without CUDA
OpenCV Tutorial 1 - Add OpenCV on API 8
Is OpenCV_2.4.2_binary_pack_armv7a source code open
How to get good matches from the ORB feature detection algorithm?
How to decrease the number of processed frames from a live video camera?