lens correction not working as expected

Discussion related to "under the hood" OpenMV topics.
KevinFreese
Posts: 12
Joined: Sun May 26, 2019 10:17 am

lens correction not working as expected

Postby KevinFreese » Tue May 28, 2019 3:08 pm

The following line does a slight zoom on the image

Code: Select all

img = img.lens_corr(strength=1.0, zoom = 1.0)
this is not expected. With machine vision we would expect the zoom of 1.0 not to zoom at all. I am using the global shutter camera.

Regards
Kevin
User avatar
iabdalkader
Posts: 1143
Joined: Sun May 24, 2015 3:53 pm

Re: lens correction not working as expected

Postby iabdalkader » Tue May 28, 2019 6:06 pm

It could be a rounding issue, we use floats. The algorithm is based on this:
http://www.tannerhelland.com/4743/simpl ... istortion/

And this is our code:

https://github.com/openmv/openmv/blob/m ... lib.c#L800
KevinFreese
Posts: 12
Joined: Sun May 26, 2019 10:17 am

Re: lens correction not working as expected

Postby KevinFreese » Wed May 29, 2019 12:13 pm

Ok, thanks. I can work with that.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests