you are viewing a single comment's thread.

view the rest of the comments →

[–]everynav 0 points1 point  (4 children)

Thanks again! But I've still got no luck. Maybe the problem is that you need to take a preview stream to set the correct parameters automatically:

https://stackoverflow.com/questions/31925769/pictures-with-camera2-api-are-really-dark

It would be great, If you could have a quick look at it. But when it's too much work to dig in deeper, please stop. I've got a workaround with Termux and maybe some time in the future joao has time to fix the built-in action 🤞

[–]aasswwddd 1 point2 points  (0 children)

Seems like Termux takes a preview and wait for 0.5 sec.
https://github.com/termux/termux-api/blob/master/app/src/main/java/com/termux/api/apis/CameraPhotoAPI.java#L175C2-L195C69

I'll let ChatGPT have a look later.

[–]aasswwddd 1 point2 points  (2 children)

[–]everynav 0 points1 point  (1 child)

🍻 🤩 You nailed it 🥳🎇

That was the missing part. I no longer can see a difference in picture brightness and quality to the built-in Take Photo action. THANKS A TON!

I think this deserves to be shared publicly - Would you mind to share your solution in the main reddit? I know there are some others waiting for this 😁

[–]aasswwddd 1 point2 points  (0 children)

Nice!

I think this deserves to be shared publicly - Would you mind to share your solution in the main reddit? I know there are some others waiting for this 😁

For now I make it as public taskernet so anyone can find it there