Switched to more modular structure
This commit is contained in:
parent
e781b46ca5
commit
d6d477ba06
1
main.py
1
main.py
@ -1,3 +1,4 @@
|
||||
#!//usr/bin/python3
|
||||
import numpyHDR as hdr
|
||||
import picamburst as pcb
|
||||
import file_utility as file
|
||||
|
@ -29,13 +29,13 @@ def get_exposure_stack(factor: int = 2):
|
||||
picam2.set_controls({"AeEnable": 0})
|
||||
confirmed = picam2.capture_metadata()["AeLocked"]
|
||||
while confirmed != True:
|
||||
confimed = picam2.capture_metadata()["AeLocked"]
|
||||
confirmed = picam2.capture_metadata()["AeLocked"]
|
||||
time.sleep(.1)
|
||||
|
||||
picam2.set_controls({"AnalogueGain": gain_start})
|
||||
confirmed = picam2.capture_metadata()["AnalogueGain"]
|
||||
while confirmed != gain_start in range(gain_start -0.1, gain_start +0.1):
|
||||
confimed = picam2.capture_metadata()["AnalogueGain"]
|
||||
confirmed = picam2.capture_metadata()["AnalogueGain"]
|
||||
time.sleep(.1)
|
||||
|
||||
ev1 = picam2.capture_array()
|
||||
|
Loading…
Reference in New Issue
Block a user