press "shoot_half"sleep 1000get_bv96 Bget_sv96 Sget_av96 Aget_tv96 Tprint B+Sprint A+Tsleep 1000release "shoot_half"
NOTE:there seems to be a problem with histogram data.they are to be displayed on LCD.it seems camera makes pixels level adjustments so these data do not represent real picture from sensor.
Auto-Exposure Method for Night-time Photography
Would using get_bv96, get_sv96 etc. be out of the question? (if auto-exposure is accurate, get_bv96 + get_sv96 = get_av96 + get_tv96)
Are you saying that framebuffer data itself are not reliable ?Even during half_shoot ?
can you please confirm if I understand correctly:1) md_get_cell_diff is called after a detection 2) if no detection was made (i.e. we had a timeout) calling "md_get_cell_diff 1, 1, a" will put in a the average luminosity of the framebufferis it correct?
@title Adaptative Manual rem fbonomi 22/04/2008 v. 0.5print_screen 1print "Adaptative Manual"rem picture counter p=1rem Tv_step: step of changes=16rem slowdown factor (how many consecutive deltas with same sign before actually changing Tv?)d=4rem q will count up to (or down to) dq=0rem start Tvget_tv96 Tsleep 3000:loopset_tv96_direct Tprint "###SHOOT", p, Tshootp=p+1gosub "measure"sleep 1000rem D has delta from correct settingsrem if abs(D)<s then exposure is about okrem otherwise change exposureif D<-s then goto "longer"if D>s then goto "shorter"print "Exposure Ok", Tq=0goto "loop":longerrem change to a longer shutter speed print "Should increase ", q rem check if slowdown factor is ok if q<0 then q=0 q=q+1 if q<d then goto "loop" rem check for legal range if T<-576 then goto "loop" T = T-s print "Increased to ",T set_tv96_direct T rem q=0goto "loop":shorterrem change to a shorter shutter speed print "Should decrease ", q rem check if slowdown factor is ok if q>0 then q=0 q=q-1 if q>(-d) then goto "loop" rem check for legal range if T>1200 then goto "loop" T=T+s print "Decreased to ",T set_tv96_direct T rem q=0goto "loop":measurerem measure delta from current settings and optima exposurerem returns result in Drem uses B S A Trem press "shoot_half"sleep 500get_bv96 Bget_sv96 Sget_av96 Aset_tv96_direct Trem print B,S,B+Srem print A,T,A+TD = B+S-A-Trem print "delta: ",Drem release "shoot_half"return