title: OpenCV4 error: ‘CV_CAP_PROP_FRAME_WIDTH’ was not declared in this scope
body: <p>I recently migrated from OpenCV3.3 to the latest version OpenCV4 on my Ubuntu 18.04 LTS. I have some persistent issues with the installation. My installation did not give any errors when I followed <a href="https://www.learnopencv.com/install-opencv-4-on-ubuntu-18-04/" rel="noreferrer">this</a> installation tutorial. But whenever I include the module <code>opencv2/highgui.hpp</code> in my project, I get problems like below. This seems to be an issue caused by highgui.hpp when I followed <a href="https://stackoverflow.com/questions/32738634/opencv-error-in-highgui-hpp">this</a> link.</p>
  
  <pre><code>/home/arun/Documents/AutonomousLaneDetection/app/main.cpp: In function ‘int main(int, char**)’:
  /home/arun/Documents/AutonomousLaneDetection/app/main.cpp:118:36: error: ‘CV_CAP_PROP_FRAME_WIDTH’ was not declared in this scope
   int videoWidth = videofile.get(CV_CAP_PROP_FRAME_WIDTH);
                                  ^~~~~~~~~~~~~~~~~~~~~~~
  /home/arun/Documents/AutonomousLaneDetection/app/main.cpp:119:37: error: ‘CV_CAP_PROP_FRAME_HEIGHT’ was not declared in this scope
   int videoHeight = videofile.get(CV_CAP_PROP_FRAME_HEIGHT);
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
  /home/arun/Documents/AutonomousLaneDetection/app/main.cpp:123:27: error: ‘CV_FOURCC’ was not declared in this scope
                         CV_FOURCC('M', 'J', 'P', 'G'), 10,
                         ^~~~~~~~~
  /home/arun/Documents/AutonomousLaneDetection/app/main.cpp:123:27: note: suggested alternative: ‘CV_BLUR’
                         CV_FOURCC('M', 'J', 'P', 'G'), 10,
                         ^~~~~~~~~
                         CV_BLUR
  </code></pre>