title: (Raspberry Pi 3) How to set camera properties using set() function (from raspicam/raspicam_cv.h)?
body: <p>When I try to set parameters for my camera, I get this error during compilation:</p>
  
  <blockquote>
    <p>error: 'CV_CAP_PROP_FORMAT' was not declared in this scope
    Camera.set(CV_CAP_PROP_FORMAT, CV_8UC3 );</p>
  </blockquote>
  
  <p>It's like compiler doesn't know about all camera's properties (macros).
  I got the same error for <code>CV_CAP_PROP_FRAME_WIDTH</code> and <code>CV_CAP_PROP_FRAME_HEIGHT</code>.</p>
  
  <p>I thought that maybe the error is due to some missing libraries or I wrong installed the <a href="https://github.com/cedricve/raspicam/" rel="nofollow noreferrer">raspicam package</a>.</p>
  
  <p>The code is here (<code>FRAME_WIDTH</code> and <code>FRAME_HEIGHT</code> are constants defined by me): </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;raspicam/raspicam_cv.h&gt;
  
  raspicam::RaspiCam_Cv Camera;
  cv::Mat image;   
  
  //set camera params
  Camera.set( CV_CAP_PROP_FORMAT, CV_8UC3 );
  Camera.set( CV_CAP_PROP_FRAME_WIDTH, FRAME_WIDTH);
  Camera.set( CV_CAP_PROP_FRAME_HEIGHT, FRAME_HEIGHT);
  </code></pre>