
Security News
Knip Hits 500 Releases with v5.62.0, Improving TypeScript Config Detection and Plugin Integrations
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
(Dis)tortion (Cor)rection (Py)thon-package
Camera calibration and distortion correction software for lens-based detector systems
Discorpy is an open-source Python package implementing methods for calibrating and correcting distortion in lens-based imaging systems (1, 2). Unlike existing approaches that require multiple calibration images or iterative optimization, Discorpy and its algorithms can independently characterize both radial and perspective distortion with high accuracy across a wide range of distortion strengths - using only a single calibration image and direct computation. This makes the software a practical tool for a wide range of imaging applications.
Author and maintainer: Nghia Vo, NSLS-II, Brookhaven National Laboratory, US; Diamond Light Source, UK.
Detailed step-by-step demonstrations featuring codes and explanations of how to use Discorpy for various types of calibration images are shown here.
Apply to a visible dot-target collected at Beamline I12, Diamond Light Source, UK:
Apply to an X-ray dot-target collected at Beamline I13, Diamond Light Source, UK:
Improvement of tomographic reconstructed images after distortion correction:
For a detector with strong radial distortion:
For a detector with small radial distortion:
Calibrate a commercial camera with capabilities of correcting radial distortion and perspective distortion independently.
Calibrate a laptop webcam using a checkboard image.
Calibrate a fisheye camera (GoPro Hero-8).
Apply to a hazard camera of the Mars Perseverance Rover. Details of how to estimate distortion coefficients of that camera without using a calibration target are shown here.
Correct perspective distortion:
FAQs
Correction for radial distortion and perspective distortion in Python
We found that discorpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.