Using the subject distance and the focal length and the pixel density of the camera, it should be possible to calculate a conversion factor that allows a distance to be measured in pixels and converted to real world units.
The first part of the photogrammetry process would be to create a focus based rangefinder, and this would have value in its own right. As for accuracy, commercial rangefinders such as leica distos are hard to use in natural environments so there is a need for another approach.
The theory is sound and the only barrier is knowing how to write the script.
Perhaps the return from the lua get_dofinfo() could be written out to the comment field in the EXIF dat
There is a standard formula for this but it requires the size of the post-it note as it is projected on the image sensor.
The first step would be to confirm that a superzoom camera can be used as a rangefinder. The way to do this would be for me to use a 30 m tape measure to place post-it notes on the ground with distance written on them. I would then photograph the post-it notes. Perhaps the return from the lua get_dofinfo() could be written out to the comment field in the EXIF data as I retrieve this with a photo editor and compare the values to the value written into the image.
As post-it notes are fixed width, I could then attempt to measure the width of the post-it note. There is a standard formula for this but it requires the size of the post-it note as it is projected on the image sensor. I would have to calculate a scaling factor based on the number of pixels covered by the post-it note, which should not be too hard.
I would be willing to make a $20 contribution to the site for the script.
Quote from: Syllia on 07 / June / 2014, 18:34:47Perhaps the return from the lua get_dofinfo() could be written out to the comment field in the EXIF datWe don't currently have an easy way to modify jpeg exif. You can do it after the shot with Lua file IO, it is fairly complicated. However, it is easy to make an external log with images numbers that you can match up later.
We don't currently have an easy way to modify jpeg exif. You can do it after the shot with Lua file IO, it is fairly complicated.
I'm testing a mod to add the 'SubjectDistance' tag to the DNG EXIF data, so at least it would be available in CHDK DNG files. For close focus distances it's fairly accurate.
Quote from: reyalp on 07 / June / 2014, 20:08:43We don't currently have an easy way to modify jpeg exif. You can do it after the shot with Lua file IO, it is fairly complicated. Quote from: philmoz on 07 / June / 2014, 20:49:39I'm testing a mod to add the 'SubjectDistance' tag to the DNG EXIF data, so at least it would be available in CHDK DNG files. For close focus distances it's fairly accurate.I was thinking that this would cover it : http://chdk.wikia.com/wiki/Lua#TagMe.2C_the_Lua_EXIF_tagger
Started by Wolfox Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by canon_charles General Help and Assistance on using CHDK stable releases
Started by ShahJahan Feature Requests
Started by outsider General Help and Assistance on using CHDK stable releases
Started by OvaR8ed DSLR Hack development