Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raspiraw "--expus" does not work for ov5647 (it does work for imx219) #25

Closed
Hermann-SW opened this issue Mar 3, 2019 · 5 comments
Closed

Comments

@Hermann-SW
Copy link
Contributor

Hermann-SW commented Mar 3, 2019

Doing raspiraw captures with imx219 for "--expus 1000" and "--expus 2000" gives different bright frames after processing with dcraw.

Doing the same with ov5647 gives identical frames, no difference in brightness.

I tested that this bug exists on this repo as well.

This issues is different to the incorrect calculation from issue 20.

@6by9
Copy link
Collaborator

6by9 commented Mar 3, 2019

See #18.
Getting a calculation that can be parameterised and is correct for both sensors is trickier than it looks.

@Hermann-SW
Copy link
Contributor Author

Hermann-SW commented Mar 4, 2019

I used your latest raspiraw and setting exposure does not work at all.
I cannot find a repo of gustav-engdahl but only see his commits on your branch.
But the pull request is not integrated into your branch yet.
How can I test whether the three commits in that pull request make "-e" work on your repo?
(without copying over line by line by hand)

@GustavEngdahl
Copy link

GustavEngdahl commented Mar 4, 2019 via email

@Hermann-SW
Copy link
Contributor Author

Hermann-SW commented Mar 4, 2019

Thank you, I did build your repo and it fixes the issue I reported here, closing this issue as duplicate now.
These are the (different now) frames with different --expus settings.

I did not look in detail into your changes, but "--expus" seems to have worked for imx219 because exposure bits are a multiple of 8 whereas for ov5647 they are not:

      .exposure_reg =         0x015A,
      .exposure_reg_num_bits = 16,

   .exposure_reg =         0x3500,
   .exposure_reg_num_bits = 20,

(scene is lit with 1000lm unfocused light)
--expus 4000
--expus 2000
--expus 1000
--expus 500

P.S:
Your version of raspiraw has 465 lines less than that of 6by9 ...

@GustavEngdahl
Copy link

GustavEngdahl commented Mar 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants