brutella / hkcam

Open-Source HomeKit Surveillance Camera
https://hochgatterer.me/hkcam/
Apache License 2.0
925 stars 141 forks source link

Auto exposure #44

Closed runty closed 2 years ago

runty commented 5 years ago

Things look good inside, but if I point the camera out the window everything gets blown out. Is there auto exposure?

brutella commented 5 years ago

The camera should automatically set the exposure the next time you start the stream.

La-te commented 5 years ago

I was just about to open this issue. The outside photo is unusable due to over exposure. It is almost white only. Then with raspistill command I get expected nice photo. These work just fine.

raspistill -ex auto -o exauto.jpg raspistill -o default.jpg

La-te commented 5 years ago

Actually, the issue affects also darkness. Then hkcam might produce almost black photo while with raspistill you get some quite dark photo but still something that can be expected from this kind of camera.

With hkcam both exposure issues can be seen in Apple Home and Home 3 even with snapshots.

brutella commented 5 years ago

If I set auto exposure to 0 (automatic mode) via v4l2-ctl --set-ctrl auto_exposure=0, the exposure is updated while streaming.

La-te commented 5 years ago

It was like that already for me. Setting it again didn't make a difference. $ v4l2-ctl --get-ctrl auto_exposure auto_exposure: 0 $ v4l2-ctl --set-ctrl auto_exposure=0