Is there any way to set camera settings (iso, focus, etc.) by using OpenCV Java? We are using computer vision on robot, but everytime angle or light changes, camera reconfigures itself.
What are you using for getting the images from the camera? What kind of camera is it? Most USB cameras don’t expose a focus setting.
If you’re using OpenCV to get the images, the VideoCapture class provides property get and set methods for things like exposure.
If you’re using the WPILib CameraServer class to get the images, the VideoCamera class and the base VideoSource class provide programmatic access to all properties exposed by the underlying Linux driver. The CameraServer class also publishes a webpage for each camera (starting with port 1181) so you can see and tune the values in real time with sliders.