<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 3.4.0</li>
<li>Operating System / Platform =&gt; windows 7</li>
<li>Compiler =&gt; vs 2015</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">I am trying to open my webcam using cvCreateCameraCapture (0); or cvCaptureFromCAM (0) but it just opens Video Source window with my camera in it when I press ok nothing happens, it returns null.<br>
Anyone know what to do ?</p>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; : 4.2.0</li>
<li>Operating System / Platform =&gt; : Linux Ubuntu 18.04</li>
<li>CUDA =&gt; : 10.2</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I am trying to compile (with cmake) a C++ object detection code that includes OpenCV and CUDA , however when I do that I receive an unsuitable CUDA version error. Here are the outputs of my nvidia compiler driver and nvcc version, which are different.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42215081/72248506-65931e00-3608-11ea-942f-135fc0e1a53b.jpg"><img src="https://user-images.githubusercontent.com/42215081/72248506-65931e00-3608-11ea-942f-135fc0e1a53b.jpg" alt="1" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42215081/72248649-b60a7b80-3608-11ea-84e4-0ecd6dc6a3bf.jpg"><img src="https://user-images.githubusercontent.com/42215081/72248649-b60a7b80-3608-11ea-84e4-0ecd6dc6a3bf.jpg" alt="2" style="max-width: 100%;"></a></p>
<p dir="auto">And above is the error I get. Any suggestions on how to resolve this?</p>