CN-121994137-A - Optical measurement method and device and electronic equipment
Abstract
The disclosure relates to an optical measurement method, an optical measurement device and electronic equipment, wherein the method comprises the steps of determining a shielding detection result corresponding to a light spot to be measured in a first shape; the method comprises the steps of determining a real-time light spot displacement measurement result according to a first-shape light spot to be measured and a first-shape initial light spot when a shielding detection result is that the light spot to be measured is not shielded, determining a shielding degree corresponding to the first-shape light spot to be measured when the shielding detection result is that the light spot to be measured is shielded, determining a real-time light spot displacement measurement result according to the first-shape light spot to be measured and the first-shape initial light spot when the shielding degree meets a preset threshold value, adjusting the first-shape light spot to be measured to a second-shape light spot to be measured when the shielding degree does not meet the preset threshold value, and determining the real-time light spot displacement measurement result according to the second-shape light spot to be measured and the second-shape initial light spot. The method and the device can properly adjust the incident light according to the shielding detection result, reduce the influence of the shielding object and improve the accuracy of optical measurement.
Inventors
- Request for anonymity
- Request for anonymity
Assignees
- 芯视界(北京)科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241104
Claims (10)
- 1. An optical measurement method, comprising: Determining a shielding detection result corresponding to the light spot to be detected in the first shape; Determining a real-time light spot displacement measurement result according to the first shape light spot to be detected and the first shape initial light spot in an initial state under the condition that the shielding detection result is not shielded, wherein the first shape initial light spot and the first shape light spot to be detected are formed by incident light provided by a first light source; under the condition that the shielding detection result is shielded, determining the shielding degree corresponding to the light spot to be detected in the first shape; under the condition that the shielding degree meets a preset threshold, determining the real-time light spot displacement measurement result according to the light spot to be detected in the first shape and the initial light spot in the first shape; Under the condition that the shielding degree does not meet a preset threshold value, the first-shape to-be-detected light spot is adjusted to be a second-shape to-be-detected light spot, the real-time light spot displacement measurement result is determined according to the second-shape to-be-detected light spot and the second-shape initial light spot in an initial state, wherein the second-shape initial light spot and the second-shape to-be-detected light spot are formed by incident light provided by a second light source, the shape of the second-shape to-be-detected light spot is different from that of the first-shape to-be-detected light spot, and the second-shape to-be-detected light spot comprises at least three key points which are discretely distributed and are not collinear.
- 2. The method according to claim 1, wherein determining the occlusion detection result corresponding to the first shape to-be-detected light spot includes: Denoising the first shape to-be-measured light spot to determine the denoised first shape to-be-measured light spot; performing edge extraction on the denoised first shape to-be-detected light spot to determine an effective light spot area; Determining a spot shape detection result according to the effective spot area; and determining the shielding detection result according to the light spot shape detection result.
- 3. The method according to claim 2, wherein, in the case that the occlusion detection result is occluded, determining an occlusion degree corresponding to the first shape to-be-detected light spot includes: Fitting the light spot shape detection results, and determining a plurality of light spot contour lines corresponding to the light spot shape detection results; Respectively determining the center corresponding to each facula contour line; And determining the shielding degree according to the center corresponding to each facula contour line and a preset distribution threshold value.
- 4. A method according to any one of claims 1 to 3, wherein said determining said real-time spot displacement measurement from said first shape of the spot to be measured and said first shape of the initial spot comprises: detecting the center of gravity of the first-shape initial light spot, and determining an initial center of gravity position corresponding to the first-shape initial light spot; Performing gravity center detection on the first-shape to-be-detected light spot, and determining a real-time gravity center position corresponding to the first-shape to-be-detected light spot; And determining the real-time light spot displacement measurement result according to the initial gravity center position and the real-time gravity center position.
- 5. A method according to any one of claims 1 to 3, wherein, in the case where the degree of shielding does not meet a preset threshold, adjusting the first shape to-be-measured light spot to a second shape to-be-measured light spot, and determining the real-time light spot displacement measurement result according to the second shape to-be-measured light spot, includes: performing key point detection on the second-shape initial light spot, and determining initial key point characteristics corresponding to the second-shape initial light spot; Performing key point detection on the second-shape to-be-detected light spot, and determining real-time key point characteristics corresponding to the second-shape to-be-detected light spot; And determining the real-time light spot displacement measurement result according to the initial key point characteristics and the real-time key point characteristics.
- 6. The method of claim 5, wherein said determining said real-time spot displacement measurement from said initial keypoint feature and said real-time keypoint feature comprises: performing feature matching on the initial key point features and the real-time key point features, and determining an affine transformation matrix between the second-shape light spot to be detected and the second-shape initial light spot; and determining the real-time light spot displacement measurement result according to the affine transformation matrix.
- 7. A method according to any one of claims 1 to 3, wherein the first shape spot to be measured or the second shape spot to be measured is formed by passing incident light provided by the first light source or the second light source through an object to be measured; The method further comprises the steps of: Determining a mapping response relation corresponding to a target parameter of the object to be detected, wherein the mapping response relation is used for representing the corresponding light spot displacement change of the target parameter under different values; And determining the target value of the target parameter according to the real-time light spot displacement measurement result and the mapping response relation.
- 8. A method according to any one of claims 1 to 3, characterized in that the method further comprises: Determining displacement variation statistical data according to a plurality of real-time light spot displacement measurement results; and determining a stability detection result corresponding to the target light according to the displacement variation statistical data, wherein the target light represents incident light provided by the first light source and/or the second light source.
- 9. An optical measurement device, comprising: The shielding detection module is used for determining a shielding detection result corresponding to the light spot to be detected in the first shape; the first measuring module is used for determining a real-time light spot displacement measuring result according to the first shape light spot to be measured and the first shape initial light spot in an initial state under the condition that the shielding detection result is not shielded, wherein the first shape initial light spot and the first shape light spot to be measured are formed by incident light provided by a first light source; the shielding degree determining module is used for determining the shielding degree corresponding to the light spot to be detected in the first shape under the condition that the shielding detection result is shielded; the second measurement module is used for determining the real-time light spot displacement measurement result according to the light spot to be measured in the first shape and the initial light spot in the first shape under the condition that the shielding degree meets a preset threshold value; The third measuring module is configured to adjust the first shape to be measured light spot to be measured as a second shape to be measured light spot under the condition that the shielding degree does not meet a preset threshold, and determine the real-time light spot displacement measurement result according to the second shape to be measured light spot and the second shape initial light spot in an initial state, where the second shape initial light spot and the second shape to be measured light spot are formed by incident light provided by a second light source, the shape of the second shape to be measured light spot is different from the shape of the first shape to be measured light spot, and the second shape to be measured light spot includes at least three key points which are discretely distributed and are not collinear.
- 10. An electronic device, comprising: A processor; A memory for storing processor-executable instructions; Wherein the processor is configured to implement the method of any one of claims 1 to 8 when executing the instructions stored by the memory.
Description
Optical measurement method and device and electronic equipment Technical Field The disclosure relates to the technical field of optical measurement, and in particular relates to an optical measurement method, an optical measurement device and electronic equipment. Background The spot displacement may represent a phenomenon that a focal point or a spot position of a light beam changes due to movement of an optical element, passage of a propagation medium, or the like during propagation of the light beam. The non-contact optical measurement can be realized by converting parameters or information to be measured into the spatial position change of the measuring beam and detecting the corresponding light spot displacement, and the non-contact optical measurement has higher measurement precision, so that the reasonable displacement measurement scheme is arranged and is very important for measuring the light spot displacement. In a specific measurement process, accurate measurement of the light spot displacement can be challenged due to the reasons of obstacles, environmental interference, impurities, light path shielding, medium change and the like. Disclosure of Invention In view of this, the disclosure proposes an optical measurement method, an optical measurement device, and a technical solution of an electronic device. According to one aspect of the disclosure, an optical measurement method is provided, which comprises the steps of determining a shielding detection result corresponding to a first-shape to-be-measured light spot, determining a real-time light spot displacement measurement result according to the first-shape to-be-measured light spot and a first-shape initial light spot in an initial state when the shielding detection result is a non-shielding light spot, determining a shielding degree corresponding to the first-shape to-be-measured light spot when the shielding degree is a shielding light spot, determining the real-time light spot displacement measurement result according to the first-shape to-be-measured light spot and the first-shape initial light spot when the shielding degree is a non-shielding light spot, and adjusting the first-shape to-be-measured light spot to a second-shape to-be-measured light spot when the shielding degree is a non-shielding light spot, and determining the real-time displacement measurement result according to the second-shape to-be-measured light spot and a second-shape initial light spot in an initial state when the shielding degree is a non-shielding light spot, wherein the first-shape to-be-measured light spot and the second-to-be-measured light spot is a light spot in a second shape and a non-collinear shape to be-measured light spot is formed by the second-being different from the first-measured light spot. In a possible implementation manner, the method for determining the shielding detection result corresponding to the first shape to-be-detected light spot comprises the steps of denoising the first shape to-be-detected light spot, determining the denoised first shape to-be-detected light spot, extracting edges of the denoised first shape to-be-detected light spot, determining an effective light spot area, determining the light spot shape detection result according to the effective light spot area, and determining the shielding detection result according to the light spot shape detection result. In one possible implementation manner, the determining the shielding degree corresponding to the light spot to be detected in the first shape under the condition that the shielding detection result is shielded includes fitting the light spot shape detection result, determining a plurality of light spot contour lines corresponding to the light spot shape detection result, respectively determining a center corresponding to each light spot contour line, and determining the shielding degree according to the center corresponding to each light spot contour line and a preset distribution threshold value. In a possible implementation manner, the determining the real-time light spot displacement measurement result according to the light spot to be measured in the first shape and the initial light spot in the first shape includes detecting the center of gravity of the initial light spot in the first shape, determining an initial center of gravity position corresponding to the initial light spot in the first shape, detecting the center of gravity of the light spot to be measured in the first shape, determining a real-time center of gravity position corresponding to the light spot to be measured in the first shape, and determining the real-time light spot displacement measurement result according to the initial center of gravity position and the real-time center of gravity position. In a possible implementation manner, the first-shape to-be-detected light spot is adjusted to be a second-shape to-be-detected light spot under the condition that the shielding degree does not meet a