GithubHelp home page GithubHelp logo

Comments (7)

s-light avatar s-light commented on July 4, 2024

update:
with make debug the behavior is different for 3 and 4:
3. on next start value is read and set at camera correctly.
4. on exit it is saved correctly

from reactivision.

s-light avatar s-light commented on July 4, 2024

update2:
with make debug and exposure at minimum value the behavior is different for 4 and 5:
4. on exit it is saved as min
5. on next start: minseems to be not recognized - exposure is switched to auto

from reactivision.

mkalten avatar mkalten commented on July 4, 2024

thanks for testing, I recently have been tweaking this particular setting, and although I managed to improve the actual functionality, there are still some apparent problems. I hope to have some time for that next week, your tests are definitely helping to resolve this I guess ...

from reactivision.

mkalten avatar mkalten commented on July 4, 2024

@s-light I just pushed another auto exposure fix which seems to work for me,
let me know if this also resolves your issue ...

from reactivision.

s-light avatar s-light commented on July 4, 2024

@mkalten i think that partly fixed things -
now the behavior i see is the same for make alland make debug
i also found a bug in the Logitech HD Pro Webcam C920 firmware (tested only in combination with v4l2):
if i set absolute exposure with

v4l2-ctl  --device /dev/video19 --set-ctrl exposure_absolute=10

and directly after this read it again:

$ v4l2-ctl  --device /dev/video19 --get-ctrl exposure_absolute
exposure_absolute: 9

so it reports one lower than it is set..

with my other cam this set / get works as expected (it returns the same value as is set)

but the bug from update2 is still there: if i use the min value (in my case its 1) its read correctly and also set correctly. on exit it is saved as min. on restart of reacTIVision it seams that this min-value is recognized but for some reasons the cam is set to auto.
if i use some other text like xxx the cam is set to the minimum exposure in manual mode.
additionally i see two failed attempts to set uvc control messages in dmesg. - if it successfully sets the cam to absolute exposure i only see one failed attempt.
so i think the bug is because if the min setting is handle the cam is not first set to manual exposure mode.

from reactivision.

mkalten avatar mkalten commented on July 4, 2024

ad 1) I guess this may be your camera, which just selects the nearest value?
ad 2) I pushed another fix which hopefully resolves this issue

from reactivision.

s-light avatar s-light commented on July 4, 2024
  1. fixed :-) thanks for your great work!!!

  1. offtopic:
    tested some more - don't know if this is a bug in v4l2 or the cam firmware itself -
v4l2-ctl  --device /dev/video19 -l
exposure_absolute (int)    : min=3 max=2047 step=1 default=250 value=3

for all values below 500 it returns value one lower than set. i can see a difference in all steps down to 3. (3 also is darker than 4) so for me this does not make any sense. i also tested if this is different if the cam has a bright or dark picture - no difference found.

from reactivision.

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.