Ok, scripts runs without error. However the resulting values are not good.I use as reference the OSD misc values.Those sayBv: 3.60B: 47.8Mine sayBv: 3.53 [CORRECT]B: 272 [WRONG]
Bv = get_prop(34)luminance_x10 = bit_shl(1, Bv/96) * 34
function get_bv() press("shoot_half") repeat sleep(100) until get_shooting() == true Bv = get_prop(34) printf("Bv = %d.%02d", Bv/100, math.abs(Bv) % 100) luminance = bitshl(1, Bv/96) * 34 printf("Lum = %d.%02d", luminance/10, luminance%10) release("shoot_half") repeat sleep(100) until get_shooting() == falseend
Yes it is 27.2. But still far from OSD misc values..
Just took a picture in full sunlight.OSD misc values:Bv: 12.10B: 16361My valuesBv: 11.59B: 13926
I actually need luminance so I can control the shutter speed dynamically while the camera works.
Per my comment above, it seems like either calculation is close enough to be usable in this application - its all a question of how you translate luminance to desired shutter speed.
So do I really need to have control over the shutter speed?I have the same question for ISO too...
Hello reyalp and thanks for your long post..I actually need luminance so I can control the shutter speed dynamically while the camera works.For example, depending on the luminance my shutter should close fast or slow..
luminance_x10 = bit_shl(1, get_bv96()/96) * 34, however it tells me "calling a global function with a nil value"
Started by Velo
« 1 2 »
Started by QQ-MAN
Started by outslider
General Discussion and Assistance
Started by redfordl22
Started by lipefrs
« 1 2 »