<div dir="ltr">I have to write it anyways as it is for a project that I am working on.  My code will retain all of the data in the frame, but the areas that are corrected will be in the alpha layer.  For my application I am not using any EXIF data, rather I am using sensor messages from ROS.  I'll incorporate your EXIF method into my code.  Of note, there is an EXIF spec for multi-pictures.  <a href="http://www.cipa.jp/std/documents/e/DC-X007-KEY_E.pdf">http://www.cipa.jp/std/documents/e/DC-X007-KEY_E.pdf</a>.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 10:16 PM, Alex Mandel <span dir="ltr"><<a href="mailto:tech_dev@wildintellect.com" target="_blank">tech_dev@wildintellect.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Before you write too much code I found this last week.<br>
<a href="http://www.theeminentcodfish.com/gopro-calibration/" target="_blank">http://www.theeminentcodfish.com/gopro-calibration/</a><br>
<br>
That author has the checkerboard code already, we just need to contact<br>
about license. Well and a minor rewrite to skip the video part since we<br>
want to work with still images.<br>
<br>
Once you have the correction factors then you can run it through the<br>
scripts I already have. On that note, I made some big updates to my<br>
<a href="https://github.com/wildintellect/lenscorrection" target="_blank">https://github.com/wildintellect/lenscorrection</a> code last week. It now<br>
saves Exif data which is needed by the other tools. Note the conversion<br>
from and OpenCV image to PIL type image in order to also save exif<br>
(which also requires swapping channels).<br>
<br>
With both of these we need to make sure we output an estimate of the<br>
post corrected sensor size. For the GoPro HD2 with my correction code<br>
you lose about 25% of the width and end up with a 5mm sensor. I'm<br>
running a test with photos from this correction and still waiting for<br>
results (1000 pics takes a while).<br>
<br>
Thanks,<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On 03/16/2015 04:33 PM, Cole wrote:<br>
<br>
><br>
> I am working on the lens correction code tonight.  I have a pull request<br>
> for a script that will have you input a checkerboard image, and a dir with<br>
> all the images or video you would like processed.  It will depend on python<br>
> 2.74 and OpenCV.<br>
><br>
> I wish I could give the project some more time, but I am currently working<br>
> full time, taking way too many credits, and a family I like to spend some<br>
> time with.  My schedule should clear up in a couple months and I should be<br>
> able to make some progress on some of this stuff<br>
><br>
> v/r<br>
> NJK<br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>