Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

‘MARKER_CROSS’ was not declared in this scope

I was trying to add a cross on my screen, I even included all the necessary headers but no use. I'm using opencv 2.4.9 version with opencv on ubuntu 14.04

please help me out!!!!

this is my code...

include <opencv2 opencv.hpp="">

include <opencv2 core="" core.hpp="">

include <opencv2 highgui="" highgui.hpp="">

include <opencv2 imgproc="" imgproc.hpp="">

include <iostream>

using namespace cv; using namespace std;

int main() { VideoCapture cap(0);

  while(true)
  {

Mat frame;
// Capture frame-by-frame
//cap >> frame;

// If the frame is empty, break immediately
//if (frame.empty())
  //break;

  drawMarker(frame, Point(200,200),  Scalar(0, 0, 255), MARKER_CROSS, 20, 1, 8);
  imshow(" figure ",frame);

  char c=(char)waitKey(25);
     if(c==27)
      break;

      }

       cap.release();
    destroyAllWindows();

  return 0;
 }

‘MARKER_CROSS’ was not declared in this scope

I was trying to add a cross on my screen, I even included all the necessary headers but no use. I'm using opencv 2.4.9 version with opencv on ubuntu 14.04

please help me out!!!!

this is my code...code...:

include <opencv2 opencv.hpp="">

include <opencv2 core="" core.hpp="">

include <opencv2 highgui="" highgui.hpp="">

include <opencv2 imgproc="" imgproc.hpp="">

include <iostream>

#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>

using namespace cv;
using namespace std;

std; int main() { VideoCapture cap(0);

cap(0);

      while(true)
   {

 Mat frame;
 // Capture frame-by-frame
 //cap >> frame;

 // If the frame is empty, break immediately
 //if (frame.empty())
   //break;

   drawMarker(frame, Point(200,200),  Scalar(0, 0, 255), MARKER_CROSS, 20, 1, 8);
   imshow(" figure ",frame);

   char c=(char)waitKey(25);
      if(c==27)
       break;

       }

        cap.release();
     destroyAllWindows();

   return 0;
  }