Issue 1:
System information (version)

OpenCV => OpenCV for Android 3.1

Operating System / Platform => Windows 7 or Windows 10

Compiler => using Android Studio as environment

Detailed description

I'm not sure if this is a bug or simply not supported, but I'm trying to get the 2nd OpenCV Android sample:

https://github.com/opencv/opencv/tree/master/samples/android/tutorial-2-mixedprocessing

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:

http://stackoverflow.com/questions/38416566/android-studio-opencv-c-jni-ndk-unable-to-configure

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

Issue 2:
System information (version)

OpenCV => 4.5.1 release version

Operating System / Platform => Windows10 64 Bit

installed through exe; I didn't compiled

-->

Detailed description

Steps to reproduce

// 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));
}

Issue submission checklist

Output of above java code would be as below:

get backend name: MSMF

Camera Auto White Balance = -1.0

Failed to turn Auto White Balance ON

Camera Auto White Balance = -1.0

Failed to turn Auto White Balance OFF

Camera Auto White Balance = -1.0

I posted the question at https://forum.opencv.org/t/class-videocapture-set-method-on-property-videoio-cap-auto-wb/1742/8

With suggestion, I checked code on below two files

opencv/cap_dshow.cpp at master · opencv/opencv · GitHub

opencv/cap_msmf.cpp at master · opencv/opencv · GitHub

And realized that neither cpp file implemented get/setProperty for CAP_PROP_AUTO_WB

OpenCV documentation: https://docs.opencv.org (https://docs.opencv.org/4.5.1/d4/d15/group__videoio__flags__base.html#ggaeb8dd9c89c10a5c63c139bf7c4f5704da762391cbaa101c4015e6a935aa0cfc95)-

Videoio only stated that CAP_PROP_WHITE_BALANCE_BLUE_U - Currently unsupported.

and stated that CAP_PROP_AUTO_WB - enable/ disable auto white-balance

I searched below pages and didn't find much regarding to this issue.

FAQ page: https://github.com/opencv/opencv/wiki/FAQ

OpenCV forum: https://forum.opencv.org

OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue

Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv

[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