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

Why PIXFORMAT_RGB565 instead of PIXFORMAT_JPEG #50

Open
RickLloyd24 opened this issue Dec 19, 2024 · 2 comments
Open

Why PIXFORMAT_RGB565 instead of PIXFORMAT_JPEG #50

RickLloyd24 opened this issue Dec 19, 2024 · 2 comments

Comments

@RickLloyd24
Copy link

This is not an issue, it just a curiosity question. I am using the CamAIThinker and the CamAIThinker.h file. The camera "config.pixel_format = PIXFORMAT_RGB565 is used". Then the RG565 is converted to jpg with "frame2jpg(Camera.fb, 12, &out_jpg, &out_jpg_len)". Why didn't you set camera config.pixel_format = PIXFORMAT__JPEG ?

Sorry if this is a stupid question.

@hpsaturn
Copy link
Owner

Don't worries, the question is valid. Please check in the examples directory:
https://github.com/hpsaturn/ESPNowCam/blob/master/examples/freenove-nojpg-sender/freenove-nojpg-sender.cpp
For instance there you are able to use it in this way.

Also, I'm working in an utility to configure all cameras with a CLI running in the ESP32:
https://github.com/hpsaturn/esp32-camera-cli/tree/master
There you can see that is easy toggle into the both cases.

@hpsaturn
Copy link
Owner

I forgot say that it was a question also for me when I started with this library. Exists a difference to use the external JPG library from Arduino Framework versus the internal implementation of JPEG on the IDF Camera driver. With my esp32-camera-cli, you can play with these settings and note this difference.

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