esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

ESP32 CAM Snapshots or dynamic stream resolution #388

Open glmnet opened 5 years ago

glmnet commented 5 years ago

Describe the problem you have/What new integration you would like

I just got my first two ESP32 CAM modules and was having fun with them. I see the camera is very, set and forget, with no abilities to interact with it at all.

Please describe your use case for this integration and alternatives you've tried:

I'd like to stream a low res but I'd like to use the full sensor resolution to take pics, and I was thinking may be it can be done (did not look at the code yet) A send snapshot will be interesting to do, like turn on flash if dark and available and setup in high res mode, take a snapshot turn off flash etc. It will be nice if this was an action too.

Additional context

So this is more like a question to people (most likely Otto) that might have experience with this, does all this make sense as a feature?

I have not used this cam yet with anything else than ESP Home, may be I should learn more

OttoWinter commented 5 years ago

Well the dynamic resolution part does make sense - only thing I would be worried about is that changing resolution will re-create the camera stream and could result in issues.

Turning flash on when dark is not really possible because the data is already encoded JPEG when it arrives, finding the darkness is not possible (without decoding the frame, which would require lots of memory)