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

TypeError: 'float' object cannot be interpreted as an integer #1

Open
yq3w opened this issue Sep 24, 2023 · 1 comment
Open

TypeError: 'float' object cannot be interpreted as an integer #1

yq3w opened this issue Sep 24, 2023 · 1 comment

Comments

@yq3w
Copy link

yq3w commented Sep 24, 2023

Hello, I want to implement HDR on cm4. I'm glad to see your program, but there was an error prompt while I was running. Please help me see what the possible reason is. The error is:
Traceback (most recent call last):
File "/home/pi/numpyHDR-main/makehdr.py", line 15, in
stack = pcb.get_exposure_stack()
File "/home/pi/numpyHDR-main/picamburst.py", line 39, in get_exposure_stack
while confirmed != gain_start in range(gain_start -1.0, gain_start +1.0):
TypeError: 'float' object cannot be interpreted as an integer

@yq3w yq3w changed the title Low Light levels out of range, can't make HDR TypeError: 'float' object cannot be interpreted as an integer Sep 24, 2023
@BKLronin
Copy link
Owner

Hi! Cool to see this being of use eventually.

I added a safety measure to intercept this error. The concept is that it is checking that the exposure of the initial test picture is in a usable range so the under and over exposure pictures are usable.

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