| CPC G06T 5/92 (2024.01) [G06T 5/50 (2013.01); G06T 2207/20224 (2013.01)] | 11 Claims |

|
1. An optical fiber image correction method, comprising:
obtaining a current optical fiber image and a central reference position of an optical fiber, wherein, the current optical fiber image is an optical fiber image acquired at the current moment, the optical fiber comprises a plurality of optical fiber units, and the central reference position of the optical fiber comprises a central reference position of each optical fiber unit;
in the current optical fiber image, correcting a central position of each optical fiber unit in the current optical fiber image according to a position difference condition between the central reference position of the optical fiber and a target position determined based on gray values in a neighboring range of the central reference position of the optical fiber; and
correcting brightness of the current optical fiber image that has completed a position correction according to a currently determined brightness correction coefficient;
wherein:
“in the current optical fiber image, correcting a central position of each optical fiber unit in the current optical fiber image according to a position difference condition between the central reference position of the optical fiber and a target position determined based on gray values in a neighboring range of the central reference position of the optical fiber”, comprises:
in the current optical fiber image, determining a position with the maximum gray value in each neighboring range by taking the central reference position of each optical fiber unit as an origin and searching in the neighboring range of each origin separately;
correcting a central position of each optical fiber unit in the current optical fiber image according to position difference condition between the position with the maximum gray value in each neighboring range and the central reference position of each optical fiber unit in the current optical fiber image;
the brightness correction coefficient is determined by the following steps:
obtaining a pre-stored gain coefficient and a pre-stored bias coefficient, and determining the brightness correction coefficient according to the pre-stored gain coefficient and the pre-stored bias coefficient; or
determining a gain coefficient and a bias coefficient by performing regression and fitting on gray values of a series of optical fiber images changing over time; determining the brightness correction coefficient based on a determined gain coefficient and a determined bias coefficient.
|