Giter Site home page Giter Site logo

Exposure control about uvccamera HOT 2 CLOSED

saki4510t avatar saki4510t commented on August 14, 2024
Exposure control

from uvccamera.

Comments (2)

saki4510t avatar saki4510t commented on August 14, 2024

Hi,
Thank you for providing information and question.
Well as you know this repository is based on libusb and libuvc and livubc implemented video control functions with wrong way(currently works well). If you use older fork, I assume it will be better to check/compare ctrl.c and apply it as possible as you can.

The actual values that each camera control function can accept depends on each camera and it does not depend on UVC version. You need to get them using UVC_GET_MIN, UVC_GET_MAX, UVC_GET_RES etc.

We can independently use most of other camera control functions. But regarding exposure, there are four camera control functions in UVC specification directly related to exposure; Auto-Exposure Mode Control, Auto-Exposure Priority Control, Exposure Time(Absolute) Control and Exposure Time (Relative) Control. And they strongly depend on each other.
Unfortunately they sometimes depend on other camera functions like Iris (Absolute) control, Iris (Relative) Control and acceptable frame rate etc. and your need to use available combination of values only. So if your camera does not work well on some condition, the reason is just simple, because the value was not a acceptable value on the current camera state.
As described in UVC specification, if you set wrong value to camera control function, the control shall result in a protocol STALL and an error code of bRequestErrorCode="Wrong state" and you need to reset. You need to read UVC specification very well and test well with the camera that you want to use.

Totally, controlling exposure is difficult than other functions and some cameras do not support this control and I have not tested well yet and don't know the best way to get available vales and get it work well for all camera that have exposure control.
saki

from uvccamera.

saki4510t avatar saki4510t commented on August 14, 2024

closed due to inactivity.

from uvccamera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.