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

Camera Quality #2

Open
ckrusecodes opened this issue Mar 6, 2021 · 1 comment
Open

Camera Quality #2

ckrusecodes opened this issue Mar 6, 2021 · 1 comment

Comments

@ckrusecodes
Copy link

Is there any way to adjust the settings of the camera via your library? For example, increase brightness? I find that a large white and black qr code will scan. but anything small, or using a non standard color does not scan. I have some large codes that are a black/gray scale that won't scan. They scan fine with a iPhone, but that is obviously a much better camera.

@gangadharingithub
Copy link

you can do something like this in setup ==>

sensor_t *sensor = esp_camera_sensor_get();
sensor->set_framesize(sensor, FRAMESIZE_CIF);
sensor->set_pixformat(sensor, PIXFORMAT_GRAYSCALE);

You can also get hook to camera_config_t like ==>

ESP32QRCodeReader reader(CAMERA_MODEL_AI_THINKER,FRAMESIZE_CIF);
reader.cameraConfig.pixel_format = PIXFORMAT_GRAYSCALE;

hope this helps.

--Gangadhar M

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

2 participants