-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fisheye effect in image from MLX90640 (110FOV)? #97
Comments
Yes, this is normal for the integrated lens. Lens parameters are confidential. |
Thanks for your feedback. Abi |
Question for @LBuydens - Not knowing the exact confidential lens parameters, would calculating the focal length using the 110 degrees FOV & approximate sensor size of ~2.6 mm (from Melexis provided STEP CAD file) and assuming an Equisolid / Equal Area Fish Eye projection of the image on the lens be a reasonable approximation? I don't need the calculation to be precise but accurate to a reasonable degree. Please let me know your thoughts. Best, Abi |
i never heard of such approach. I don't really see how that would work. |
Thanks for your response, @LBuydens. My objective is to correct for the fisheye distortion on an IR image of an object placed ~18 mm away the lens of the MLX90640 110FOV unit. Reason we need this correction is because we are trying to measure & average the temperature in specific areas of the object, in order to control the temperature in those areas specifically using one PID per area, and would like to map the real-word coordinates of the object with that seen in the distorted image. Specifically, since we are trying to measure & average the temperatures over 4 rectangular areas / regions of interest (ROI) on the object, we would like to be able to transform these rectangular ROIs in the real-world into corresponding distorted quadrilateral ROIs in the IR image, and use them to define the ROI areas in the image for real-time temperature averaging as part of the PID feedback loop. Any thoughts on my projection approximation approach in my previous message or any alternative approaches would be much appreciated. Best, Abi |
@abi, if you have individual control of the heaters, why not firing them up one by one and monitor with mlx90640 the reaction. Doing so you account not only for distortion, but also for potential misalignments. Both in X - Y positioning and in rotation error around Z-axis (perpendicular to the PCB). |
Thanks @karelv. Since we are trying to control the temperature in ROI areas to be ~37-40C adjacent to the heaters (i.e. the heaters are not within the ROI), it is difficult to get a discrete definition of the ROI in the IR image. Also, since the object is plastic and not a PCB/metal, this makes the ROI definition (or the heater for that matter) in the image further difficult to discern, which is why we would like to geometrically calculate the distortion to define the ROI in the IR image. Best, Abi P.S. I think you referenced the wrong user in your previous comment. |
Hello,
We have started to notice a kind of fisheye effect in the IR image we capture from the MLX90640 (110FOV) unit, when the measured object is placed ~18mm away from the lens - Is this expected? If yes, what is the focal length of the lens used within the MLX90640 (110FOV) unit?
Setup:
RPi4 connected to Adafruit MLX90640 24x32 IR Thermal Camera Breakout - 110 Degree FoV
Code being used is based on that written by Joshua Hrisko
Any feedback / help would be much appreciated.
Thank you,
Abi
The text was updated successfully, but these errors were encountered: