-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
port over to OpenCV? #28
Comments
Hi, @oneshell - sorry, saw your email but was a bit busy yesterday. Glad to answer here! The issue is that we are doing this via WebGL, so the conversion is done via a shader. We feed the variables in here: Lines 257 to 259 in 89d28f0
These are applied in the shaders: fisheyegl/src/shaders/fragment.glfs.js Lines 14 to 25 in 89d28f0
However, I believe they are determining the geometry of a GL surface, rather than doing this per pixel (in a GL paradigm rather than a pixel mapper). GL isn't my strong suit, and I am not very familiar with OpenCV, but here are some resources that may help you use the parameters in OpenCV:
I'm not sure if they use the same model, but perhaps there is some way to convert and use the parameters in whatever model they are using? Sorry I'm not more helpful! |
same problem here... I would love to have a port to open-cv |
The live demo is fantastic, thanks for making this available.
I am trying to understand the math/algorithm going on behind the scenes. I want to calibrate a Raspberry Pi wide FOV camera using your approach, then use these lens parameters in an OpenCV loop to dewarp a video stream.
Your live demo does everything I want in terms of finding the parameters, now I'm struggling with how to apply this to a video feed in OpenCV.
Could you point me in the right direction?
Thanks,
The text was updated successfully, but these errors were encountered: