Method for calibrating image distortion, apparatus, electronic device and storage medium
AssigneeBlack Sesame Technologies Inc.
InventorWenxue Li
Life of this patent
Estimating the term…
Abstract
A method for calibrating image distortion, apparatus, electronic device, and computer readable storage medium are disclosed. The method for calibrating image distortion includes: obtaining an original image captured by a camera; calculating a deformation degree of foreground objects when the original image includes the foreground objects; and performing a distortion calibration and a spherical projection on the original image to obtain a target image when the deformation degree of the foreground objects is greater than a predetermined threshold. The method for calibrating image distortion provided by the disclosure can realize fast distortion calibration of ultra-wide-angle image with low computational complexity and obtain better calibration effect.
Claims12
A method for calibrating image distortion, comprising:
- obtaining an original image captured by a camera;
- calculating a deformation degree of foreground objects when the original image includes the foreground objects, wherein the step of calculating the deformation degree of the foreground objects when the original image includes foreground objects comprises:
- obtaining a foreground object border in the original image, a position parameter of the foreground object border, and a size parameter of the foreground object border;
- and
- calculating the deformation degree of the foreground object border based on the position parameter of the foreground object border and the size parameter of the foreground object border;
- and
- performing a distortion calibration and a spherical projection on the original image to obtain a target image when the deformation degree of the foreground objects is greater than a predetermined threshold.
An image calibration apparatus, comprising:
- an image obtaining module, configured to obtain an original image captured by a camera;
- a deformation calculation module, configured to calculate a deformation degree of foreground objects when the original image includes the foreground objects, wherein the deformation calculation module is further configured to:
- obtain a foreground object border in the original image, a position parameter of the foreground object border, and a size parameter of the foreground object border;
- and
- calculate a deformation degree of the foreground object border based on the position parameter of the foreground object border and the size parameter of the foreground object border;
- and
- a calibration calculation module, configured to perform a distortion calibration and a spherical projection on the original image when the deformation degree of the foreground objects is greater than a predetermined threshold to obtain a target image.
Dependencies are inferred from the claim text.