Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Scripting Q&A => Topic started by: garry23 on January 23, 2020, 06:41:12 PM

Title: Sensor info
Post by: garry23 on January 23, 2020, 06:41:12 PM
Does anyone know if any sensor info has been exposed through the Lua API?

Specifically, I want to get to the camera's pixel pitch, but knowing the other sensor info I will be able to estimate it, eg size of the sensor in mega pixels etc

I don't need it very accurately.

Cheers

Garry
Title: Re: Sensor info
Post by: flostro on January 23, 2020, 07:33:24 PM
https://www.digicamdb.com/specs/canon_eos-5d-mark-iii/
Title: Re: Sensor info
Post by: garry23 on January 23, 2020, 07:40:26 PM
That was not the question  ;)

Obviously I know where to get specific specs  ;)

I'm looking to write a script that does this  ;) ;) ;) ;)
Title: Re: Sensor info
Post by: flostro on January 23, 2020, 08:07:13 PM
Oh  :)
Title: Re: Sensor info
Post by: Walter Schulz on January 23, 2020, 08:07:58 PM
I think it would be easier to compile a list and read info from there.
And pixel pitch (with some margin) isn't that difficult to compute: Sensor dimension/resolution. KISS.
Title: Re: Sensor info
Post by: garry23 on January 23, 2020, 08:21:23 PM
Walter

Yes I was going to do that, until I released my DOFI script over on CHDK https://chdk.fandom.com/wiki/Depth_Of_Field_Info_-_Chdk_version

In CDHK world, that info is exposed in Lua  :)

In the ML world, I won't bother. As you know, I write my scripts for myself, but freely share.

I doubt many use my DOFI script in ML, despite its power to aid infinity focusing and carrying focus bracketing.

Trust you are well?

Cheers

Garry