-
Notifications
You must be signed in to change notification settings - Fork 3
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
improve jpeg size estimate #26
Comments
espressif's esp32-camera uses |
Confirming that setting the size of the capture buffer to |
(the quoted code was "C" code in which "/" behaves similar to Python floor division "//" when the arguments are of integer type) |
Makes sense that the correct python usage should be floor division ( |
FYI -- cam.width * cam.height // 5 seems to work much better for me as well. |
The jpeg size estimate in
capture_buffer_size
is causing folks trouble:replace it with a better heuristic after gathering information.
note to users affected by this: Instead of using
capture_buffer_size
in jpeg mode, manually determine the size for your quality & resolution settings. When this value is too small, thecapture
routine returns None in jpeg mode.The text was updated successfully, but these errors were encountered: