Skip to content

OpenCV Class VideoCapture doesn't support get/set Videoio.CAP_PROP_AUTO_WB in Windows 10 but Linux (Ubuntu) #19621

@kellanmom

Description

@kellanmom
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 searched below pages and didn't find much regarding to this issue.

[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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions