Camera Lens Optical Center Detection with Reference-Line Grayscale Sampling
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional methods for determining the optical center of a camera lens require extensive data processing, especially with increasing pixel points, leading to a significant burden and inefficiency in image processing.
Innovation Solution
An optical center determination method that involves obtaining reference lines by connecting edge points with the largest distance, determining reference points with grayscale values in a preset ratio to a peak value, and using auxiliary points to calculate the optical center position, reducing the need for full pixel point calculations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If grayscale values of pixel points of the entire image are calculated to determine the optical center, then the optical center position can be obtained through centroid calculation, but the data processing burden increases significantly with the increase of pixel points
Solution Approach 1:
The patent segments the image processing task by first performing binarization to divide pixels into target pixels (value 1) and non-target pixels (value 0), then calculating the optical center only using the coordinates of target pixels rather than all pixels. This segmentation reduces the data processing burden while maintaining measurement precision.
2Measurement precision
If conventional centroid calculation is used on the entire image, then the optical center can be determined, but the calculation complexity increases with image resolution
Solution Approach 1:
The patent extracts only the necessary information for optical center calculation by using binarization to identify target pixels, then calculating the centroid using only these extracted target pixel coordinates. This extraction approach eliminates the need to process all pixel data, reducing calculation complexity while preserving measurement precision.
3Productivity
If binarization processing is performed on the entire image to reduce data, then processing burden is reduced, but the method still requires calculating grayscale values of all pixel points first
Solution Approach 1:
The patent applies binarization processing as a preliminary step that directly identifies target pixels without requiring subsequent grayscale value calculations for all pixels. By performing this preliminary action, the method reduces both processing burden and the time required for grayscale calculations, as only target pixel coordinates are needed for the final centroid calculation.
Data Source
Figure 1~2
Figure 3~4
Figure 5~6
AI summary
Provided are an optical center determination method and apparatus, an electronic device, and a medium. The optical center determination method includes: obtaining at least one reference line by connecting edge points with the largest distance therebetween in a target image; determining, on the at least one reference line, at least two reference points with grayscale values in a preset ratio to a grayscale peak value, and determining the position information of an optical center is according to the at least two reference points and auxiliary points with grayscale values consistent with the grayscale value of a reference point.