Skip to content

Conversation

@gsker
Copy link

@gsker gsker commented Nov 30, 2019

Found myself needing to know what the current state of the sensor config was.

Ideally it should return a dict in the python environment but I don't know how to do that yet.
Also ideally all the names should match exactly.
Not just approximately -- (is it level or levels?, wb or whitebalance?).
I'm not going to change all that now though.

If there was already a way to get this in python and I didn't see it, let me know.
Thanks for the code, BTW!

Ideally it should return a dict in the python environment but I don't know how to do that yet. Also ideally all the names should match exactly. Not just approximately. It make coding hard. I'm not going to change all that how though.
@shariltumin
Copy link
Owner

I am sure you've look at esp32-camera/sensors/ov2640.c Most API are described there. It would be nice if there camera.info() function there. I'm sure camera.info() function can be written in modcamera.c to return a struct of current settings.

I things it would be easier to just do this in Python.

Make a python module OV2640 that import camera and have a class ov2640 with structure holding all current settings. All setting of camera will be done through this class. We can use whatever names we want e.g. whitebalance a.s.o. This class can also provide some help function.

We can then freeze the OV2640 into the firmware.

@gsker gsker closed this by deleting the head repository Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants