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

<ul dir="auto">
<li>OpenCV =&gt; OpenCV for Android 3.1</li>
<li>Operating System / Platform =&gt; Windows 7 or Windows 10</li>
<li>Compiler =&gt; using Android Studio as environment</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">I'm not sure if this is a bug or simply not supported, but I'm trying to get the 2nd OpenCV Android sample:</p>
<p dir="auto"><a href="https://github.com/opencv/opencv/tree/master/samples/android/tutorial-2-mixedprocessing">https://github.com/opencv/opencv/tree/master/samples/android/tutorial-2-mixedprocessing</a></p>
<p dir="auto">working within Android Studio, rather than Eclipse which it seems to have been done in originally.  I made a Stack Overflow post that explains where I'm stuck currently:</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/38416566/android-studio-opencv-c-jni-ndk-unable-to-configure" rel="nofollow">http://stackoverflow.com/questions/38416566/android-studio-opencv-c-jni-ndk-unable-to-configure</a></p>
<p dir="auto">Is this something that is recommended or supported?  Has anybody within the OpenCV organization gotten the native C++ Android samples running within Android Studio?  Please advise</p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 4.5.1 release version</li>
<li>Operating System / Platform =&gt; Windows10 64 Bit</li>
<li>installed through exe; I didn't compiled<br>
--&gt;</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// java code example
	VideoCapture capture = new VideoCapture();
    capture.open(0);
if (this.capture.isOpened())
{
         System.out.println(&quot;get backend name: &quot; + capture.getBackendName());
         System.out.println(&quot;Camera Auto White Balance = &quot; +  capture.get(Videoio.CAP_PROP_AUTO_WB));
         
         boolean b = capture.set(Videoio.CAP_PROP_AUTO_WB, 1);
         if (b)
              System.out.println(&quot;Successfully turn Auto White Balance ON&quot;);
         else
              System.out.println(&quot;Failed to turn Auto White Balance ON&quot;);
         System.out.println(&quot;Camera Auto White Balance = &quot; +  capture.get(Videoio.CAP_PROP_AUTO_WB));

         b = capture.set(Videoio.CAP_PROP_AUTO_WB, 0);
         if (b)
              System.out.println(&quot;Successfully turn Auto White Balance OFF&quot;);
         else
              System.out.println(&quot;Failed to turn Auto White Balance OFF&quot;);
         System.out.println(&quot;Camera Auto White Balance = &quot; +  capture.get(Videoio.CAP_PROP_AUTO_WB));
    }"><pre class="notranslate"><code class="notranslate">// java code example
	VideoCapture capture = new VideoCapture();
    capture.open(0);
if (this.capture.isOpened())
{
         System.out.println("get backend name: " + capture.getBackendName());
         System.out.println("Camera Auto White Balance = " +  capture.get(Videoio.CAP_PROP_AUTO_WB));
         
         boolean b = capture.set(Videoio.CAP_PROP_AUTO_WB, 1);
         if (b)
              System.out.println("Successfully turn Auto White Balance ON");
         else
              System.out.println("Failed to turn Auto White Balance ON");
         System.out.println("Camera Auto White Balance = " +  capture.get(Videoio.CAP_PROP_AUTO_WB));

         b = capture.set(Videoio.CAP_PROP_AUTO_WB, 0);
         if (b)
              System.out.println("Successfully turn Auto White Balance OFF");
         else
              System.out.println("Failed to turn Auto White Balance OFF");
         System.out.println("Camera Auto White Balance = " +  capture.get(Videoio.CAP_PROP_AUTO_WB));
    }
</code></pre></div>
<h5 dir="auto">Issue submission checklist</h5>
<p dir="auto">Output of above java code would be as below:</p>
<p dir="auto">get backend name: MSMF<br>
Camera Auto White Balance = -1.0<br>
Failed to turn Auto White Balance ON<br>
Camera Auto White Balance = -1.0<br>
Failed to turn Auto White Balance OFF<br>
Camera Auto White Balance = -1.0</p>
<ul dir="auto">
<li>
<p dir="auto">I posted the question at <a href="https://forum.opencv.org/t/class-videocapture-set-method-on-property-videoio-cap-auto-wb/1742/8" rel="nofollow">https://forum.opencv.org/t/class-videocapture-set-method-on-property-videoio-cap-auto-wb/1742/8</a></p>
</li>
<li>
<p dir="auto">With suggestion, I checked code on below two files<br>
opencv/cap_dshow.cpp at master · opencv/opencv · GitHub<br>
opencv/cap_msmf.cpp at master · opencv/opencv · GitHub<br>
And realized that neither cpp file implemented get/setProperty for CAP_PROP_AUTO_WB</p>
<ul dir="auto">
<li>OpenCV documentation: <a href="https://docs.opencv.org" rel="nofollow">https://docs.opencv.org</a> (<a href="https://docs.opencv.org/4.5.1/d4/d15/group__videoio__flags__base.html#ggaeb8dd9c89c10a5c63c139bf7c4f5704da762391cbaa101c4015e6a935aa0cfc95)-" rel="nofollow">https://docs.opencv.org/4.5.1/d4/d15/group__videoio__flags__base.html#ggaeb8dd9c89c10a5c63c139bf7c4f5704da762391cbaa101c4015e6a935aa0cfc95)-</a><br>
Videoio only stated that CAP_PROP_WHITE_BALANCE_BLUE_U - Currently unsupported.<br>
and stated that CAP_PROP_AUTO_WB - enable/ disable auto white-balance</li>
</ul>
</li>
</ul>
<p dir="auto">I searched below pages and didn't find much regarding to this issue.</p>
<ul dir="auto">
<li>FAQ page: <a href="https://github.com/opencv/opencv/wiki/FAQ">https://github.com/opencv/opencv/wiki/FAQ</a></li>
<li>OpenCV forum: <a href="https://forum.opencv.org" rel="nofollow">https://forum.opencv.org</a></li>
<li>OpenCV issue tracker: <a href="https://github.com/opencv/opencv/issues?q=is%3Aissue">https://github.com/opencv/opencv/issues?q=is%3Aissue</a></li>
<li>Stack Overflow branch: <a href="https://stackoverflow.com/questions/tagged/opencv" rel="nofollow">https://stackoverflow.com/questions/tagged/opencv</a></li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[heavy_check_mark ] I report the issue, it's not a question
[ heavy_check_mark ] I checked the problem with documentation, FAQ, open issues,
forum.opencv.org, Stack Overflow, etc and have not found solution
[ heavy_check_mark ] I updated to latest OpenCV version and the issue is still there
[ heavy_check_mark ] There is reproducer code and related data files: videos, images, onnx, etc"><pre class="notranslate"><code class="notranslate">[heavy_check_mark ] I report the issue, it's not a question
[ heavy_check_mark ] I checked the problem with documentation, FAQ, open issues,
forum.opencv.org, Stack Overflow, etc and have not found solution
[ heavy_check_mark ] I updated to latest OpenCV version and the issue is still there
[ heavy_check_mark ] There is reproducer code and related data files: videos, images, onnx, etc
</code></pre></div>