CN117031479A - Method, apparatus and computer readable storage medium for optical detection - Google Patents

Method, apparatus and computer readable storage medium for optical detection Download PDF

Info

Publication number
CN117031479A
CN117031479A CN202310930653.9A CN202310930653A CN117031479A CN 117031479 A CN117031479 A CN 117031479A CN 202310930653 A CN202310930653 A CN 202310930653A CN 117031479 A CN117031479 A CN 117031479A
Authority
CN
China
Prior art keywords
signals
light spot
similarity
color
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310930653.9A
Other languages
Chinese (zh)
Inventor
郑周坪
韦卫军
李艳庆
徐朝圣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Senpum Electric Co ltd
Original Assignee
Shenzhen Senpum Electric Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Senpum Electric Co ltd filed Critical Shenzhen Senpum Electric Co ltd
Priority to CN202310930653.9A priority Critical patent/CN117031479A/en
Publication of CN117031479A publication Critical patent/CN117031479A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/4802Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00 using analysis of echo signal for target characterisation; Target signature; Target cross-section

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The application provides an optical detection method, an optical detection device and a computer readable storage medium, which can improve the accuracy of detecting an object to be detected according to photoelectric information. The method is applied to an optical detection system and comprises the following steps: receiving at least two light spot signals; the at least two light spot signals are signals generated by reflecting at least two original light signals emitted by the optical detection system on an object to be detected; performing feature contrast processing on the at least two light spot signals to obtain a processing result; and outputting photoelectric information according to the processing result and the threshold value.

Description

Method, apparatus and computer readable storage medium for optical detection
The present application is a divisional application, the application number of which is 202310533228.6, the date of which is 2023, 5, 12, and the entire contents of which are incorporated herein by reference.
Technical Field
The present application relates to the field of electronic technology, and in particular, to a method, an apparatus, and a computer readable storage medium for optical detection.
Background
The conventional photoelectric detection system comprises a transmitting source and a receiving part, wherein a light signal emitted by the transmitting source irradiates on an object to be detected to generate a reflection light spot, the receiving part analyzes information carried by the reflection light spot after acquiring the reflection light spot, and the characteristics of the object to be detected are judged based on the information carried by the reflection light spot.
However, the conventional photoelectric detection system has low robustness of detection results due to the influence of the position difference of the object to be detected and environmental factors.
Disclosure of Invention
The application provides an optical detection method, an optical detection device and a computer readable storage medium, which can improve the accuracy of detecting an object to be detected.
In a first aspect, there is provided a method of optical detection, the method comprising: receiving at least two light spot signals; the at least two light spot signals are signals generated by reflecting at least two original light signals emitted by the optical detection system on an object to be detected; performing feature contrast processing on the at least two light spot signals to obtain a processing result; and outputting photoelectric information according to the processing result and the threshold value.
The method is applied to the optical detection system, the object to be detected is detected by analyzing at least two light spot signals reflected by the object to be detected, more information can be obtained, and if one light spot signal has larger error due to factors such as environmental interference, the optical detection system can correct the error through the other light spot signals, so that the accuracy of detecting the object to be detected can be improved.
Optionally, the performing feature contrast processing on the at least two light spot signals includes: performing differential processing or matching processing on the at least two light spot signals; wherein, under the condition of differential processing, the threshold value is a characteristic parameter between the at least two light spot signals; and under the condition of matching processing, the threshold value is a characteristic parameter between the at least two light spot signals and the standard detection point.
In this embodiment, the optical detection system may perform differential or matching processing on information obtained from the speckle signal according to different detection requirements, so as to flexibly adapt to different scenes. The difference processing is the characteristic comparison between the light spot signals, when the object to be detected is influenced by the environment, the light spot signals are also influenced by the environment uniformly, but the relative value between the light spot signals is not changed, so that the influence of the environment factors on the detection result can be eliminated by the difference processing. The matching processing is the feature comparison between the light spot signals and the standard detection points, and because the light spot signals are more, the errors of the individual light spot signals do not affect the final detection result, and the parameters of the standard detection points and the threshold values are supported to be adjusted conveniently and rapidly by a user according to actual demands.
Optionally, the performing differential processing on the at least two light spot signals to obtain a processing result includes: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; acquiring a first similarity between the at least two light spot signals according to the proportion of the light intensity signals of each color; and the processing result is the first similarity.
In this embodiment, the first similarity between the spot signals may be confirmed by a color parameter, for example, the first similarity between the spot signals may be obtained according to the duty ratios of the red, green and blue channels in the respective spot signals. The parameters are convenient to acquire, the processing process is simple, and the judging speed is high. Support detection of objects to be measured in special cases, for example: when the target object has chromatic aberration, the chromatic aberration is taken as a detected threshold value in the process of setting the threshold value to judge the object to be detected, and only the threshold value is needed to be considered. The two light spot signals are uniformly influenced by the environment, the relative value between the two light spot signals after the difference is solved can exclude environmental factors, and the robustness in a strong interference environment is high.
Optionally, the performing differential processing on the at least two light spot signals to obtain a processing result includes: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; acquiring a first similarity between the at least two light spot signals according to the proportion of the light intensity signals of each color; respectively calculating brightness parameters of the at least two facula signals according to the size of the light intensity signals of each color and the mapping relation between the first similarity and brightness; acquiring a second similarity between the at least two light spot signals according to the intensity signals of the colors and the brightness parameters; and the processing result is the second similarity.
In the embodiment, the brightness parameters are added for feature comparison, the color and the brightness of the comprehensive facula signals are comprehensively judged, the difference is more easily represented, and the detection sensitivity is improved.
Optionally, the matching processing is performed on the at least two light spot signals to obtain a processing result, including: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; respectively acquiring first similarity between the at least two facula signals and the standard detection point according to the proportion of the light intensity signals of each color; and the processing result is the first similarity.
In this embodiment, the first similarity between the spot signal and the standard detection point may be confirmed by the color parameter, for example, the first similarity between each spot signal and the standard detection point may be obtained according to the duty ratio of the red, green and blue channels in the spot signal. The parameters are convenient to acquire, the processing process is simple, and the judging speed is high.
The embodiment does not limit the setting of the standard detection point, and supports various personalized detection scenes. For example, if the overall characteristics of the target object are consistent, any point on the target object can be set as a standard detection point according to the requirement, and the received plurality of light spot signals and the single standard detection point are respectively subjected to first similarity calculation; the parameters for judgment are more, and erroneous judgment under the conditions of color parameter approaching and the like can be avoided. Meanwhile, if the target object has regional difference or the environment has uneven influence on the target object, a plurality of standard detection points can be set in a targeted manner, and the similarity between each light spot signal and each standard detection point or between each light spot signal and the corresponding (such as corresponding position relation) standard detection point is calculated. The standard detection point positions, the number, the threshold value for judgment and the like support personalized adjustment of users. The accuracy of detecting the object to be detected is high, and the method is widely applicable to scenes.
Optionally, the matching processing is performed on the at least two light spot signals to obtain a processing result, including: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; respectively acquiring first similarity between the at least two facula signals and the standard detection point according to the proportion of the light intensity signals of each color; respectively calculating brightness parameters of the at least two facula signals according to the size of the light intensity signals of each color and the mapping relation between the first similarity and brightness; respectively acquiring second similarity between the at least two light spot signals and the standard detection point according to the intensity signals of each color and the brightness parameter; and the processing result is the second similarity.
In the embodiment, the brightness parameters are added for feature comparison, the color and the brightness of the comprehensive facula signals are comprehensively judged, the difference is more easily represented, and the detection sensitivity is improved.
Optionally, the at least two original optical signals are time-division emitted by the optical detection system.
In this embodiment, when the original optical signals are transmitted in a time-sharing manner, optical interference phenomenon generated between the original optical signals can be avoided, noise is reduced, and detection error is reduced.
Optionally, the at least two original optical signals are generated by light emitted from an emission source in the optical detection system through a beam splitter.
In this embodiment, compared with the case where a plurality of emission sources are provided to perform the emission of the original emission source, the system power consumption can be reduced. In addition, the method has small change to the existing instrument, and is beneficial to reducing the equipment upgrading cost.
In a second aspect, there is provided an apparatus for optical detection comprising means for performing any of the methods of the first aspect. The device may be a physical device or a chip in a physical device. The apparatus may include an input unit and a processing unit.
When the apparatus is a physical device, the processing unit may be a processor and the input unit may be a photosensitive element or other input device; the entity device may further comprise a memory for storing computer program code that, when executed by the processor, causes the entity device to perform any one of the methods of the first aspect.
When the apparatus is a chip in a physical device, the processing unit may be a processing unit inside the chip, and the input unit may be an input/output interface, a pin, a circuit, or the like; the chip may also include memory, which may be memory within the chip (e.g., registers, caches, etc.), or memory external to the chip (e.g., read-only memory, random access memory, etc.); the memory is for storing computer program code which, when executed by the processor, causes the chip to perform any of the methods of the first aspect.
In a third aspect, there is provided a computer readable storage medium storing computer program code which, when run by an apparatus for optical detection, causes the apparatus to perform any one of the methods of the first aspect.
Drawings
FIG. 1 is a schematic diagram of a related art signal in an oscilloscope presenting state;
FIG. 2 is a schematic diagram of a method of optical detection provided by the present application;
FIG. 3 is a schematic diagram of one embodiment of a method of optical detection provided by the present application;
FIG. 4 is a schematic diagram of signals of the method of optical detection provided by the present application;
FIG. 5 is a schematic diagram of one embodiment of a method of optical detection provided by the present application;
FIG. 6 is a schematic diagram of a mapping relationship of the optical detection method provided by the present application;
FIG. 7 is a schematic diagram of one embodiment of a method of optical detection provided by the present application;
FIG. 8 is a schematic diagram of an optical detection apparatus provided by the present application;
fig. 9 is a schematic diagram of an electronic device for optical detection provided by the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
Fig. 1 shows a single-emission-source driving signal (L) applied to a detection sensor and one of the reflected light intensity signals, where the receiving module of the sensor is integrated with three color receiving tubes, respectively R (red), G (green), B (blue), and when the driven white light beam irradiates the object to be detected, the light intensity signal with R, G, B components is reflected to the receiving portion by the object to be detected, and the three channels of RGB data processing can be used for color distinguishing detection. Wherein, the driving period of the driving signal is t1. In the sensor, color similarity S (C) is mainly used as a signal output condition, for example, a target object P is irradiated by an original light beam, the reflected RGB accounts for R1%, G1% and B1% respectively, a setting function is called at the moment, the information value of the point is recorded, the RGB accounts for the threshold value of triggering, after setting is completed, the original light beam of the sensor emits and receives a reflection light spot against the surface of the object to be detected, and when the incidence of the reflection light spot is larger than or equal to the threshold value, the triggering output condition of the sensor is met.
The scheme can only process single detection information, and the derived problems are as follows: when objects with similar colors pass, the RGB similarity easily meets the triggering condition, and the signals can trigger output; in addition, when one target object itself has a problem of overall inconsistency such as chromatic aberration, this approach makes detection and judgment difficult.
The method 200 of optical inspection provided by the present application will be described in detail below with reference to fig. 2. It should be noted that, in the present application, terms such as "first," "second," and the like are used to distinguish different individuals in the same type of object, for example, the first similarity and the second similarity represent two different similarity types, and there is no other limitation.
The method 200 may be performed by the apparatus shown in fig. 8, applied to an optical detection system. As shown in fig. 2, method 200 includes the following.
S201, receiving at least two light spot signals; the at least two light spot signals are signals generated by reflecting at least two original light signals emitted by the optical detection system on an object to be detected. In this embodiment, at least two light spot signals reflected by the object to be detected are received, that is, information of at least two points on the object to be detected can be obtained, the information quantity of detecting the object to be detected is larger, and the accuracy of detection is improved.
It will be appreciated that there is a positional difference between the acquired at least two spot signals. After receiving at least two light spot signals, denoising processing such as filtering can be performed on the light spot signals.
Optionally, the at least two original optical signals are time-division emitted by the optical detection system.
In this embodiment, in order to make the object to be detected reflect at least two light spot signals, the optical detection system includes at least two emission sources, and each emission source emits multiple beams of original optical signals in a time-sharing manner, so that optical interference between the original optical signals can be avoided, and detection errors are further reduced.
The time period of the time-sharing emission can be set to be integral multiple of the driving period of each original optical signal, parameters needing to be changed are reduced, and emission control is conveniently and rapidly achieved. As shown in fig. 4, the driving periods of the original optical signals L1 and L2 are both originally t1, and the period of time-division emission is set to t2, t2=2t1. Then one original light signal L1 is sent during 1/2 of the t2 period (i.e. time t3 in the figure) and the other original light signal L2 is sent at the beginning of the complete t2 period during one time period of the complete time-sharing transmission.
Meanwhile, when at least two emission sources are included in the optical detection system, only one light receiving element is supported.
The multiple emission sources are used for emitting original optical signals in a time-sharing mode, and time differences exist among the original optical signals, so that light spot information reflected by an object to be detected does not arrive at the light receiving element at the same time. That is, the light receiving element can receive the plurality of light spot signals reflected by the object to be detected one by one according to the time difference, and the light receiving element is not required to have the high-complexity function of receiving and distinguishing the plurality of light spot signals at the same time, so that the design difficulty and the production cost of the light receiving element are reduced. Furthermore, the use of only a single light receiving element can also reduce the industrial cost and process complexity of the optical detection system. As shown in fig. 3, in the exemplary physical apparatus of this embodiment, only one light receiving element is supported in the receiving unit, and at least two emission sources may be disposed in the emitting unit.
Optionally, the at least two original optical signals are generated by light emitted from an emission source in the optical detection system through a beam splitter.
In this embodiment, compared with the arrangement of a plurality of emission sources in the optical detection system, the power consumption of the emission sources is reduced; in addition, the change to the existing detection device is small, which is beneficial to reducing the equipment upgrading cost.
It is understood that the emitting source in the present application may be an emitting light source or a light source for transmitting original light information to the object to be measured.
S202, performing feature contrast processing on the at least two light spot signals to obtain a processing result. In this embodiment, the characteristic parameters are extracted from the obtained at least two light spot signals, and the operation processing is performed according to the characteristic parameters, so as to obtain the parameters for completing the detection as the processing result.
Optionally, performing feature contrast processing on the at least two light spot signals, including: performing differential processing or matching processing on the at least two light spot signals; wherein, under the condition of differential processing, the threshold value is a characteristic parameter between the at least two light spot signals; and under the condition of matching processing, the threshold value is a characteristic parameter between the at least two light spot signals and the standard detection point.
In this embodiment, the optical detection system may perform differential or matching processing on information obtained from the speckle signal according to different detection requirements, so as to flexibly adapt to different scenes. The difference processing is the characteristic comparison between the light spot signals, when the object to be detected is influenced by the environment, the light spot signals are also influenced by the environment uniformly, but the relative value between the light spot signals is not changed, so that the influence of the environment factors on the detection result can be eliminated by the difference processing. The matching processing is the feature comparison between the light spot signals and the standard detection points, and because the light spot signals are more, the errors of the individual light spot signals do not affect the final detection result, and the parameters of the standard detection points and the threshold values are supported to be adjusted conveniently and rapidly by a user according to actual demands.
Optionally, the performing differential processing on the at least two light spot signals to obtain a processing result includes: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; acquiring a first similarity between the at least two light spot signals according to the proportion of the light intensity signals of each color; and the processing result is the first similarity. Referring to fig. 5, a flow chart of the differential processing is shown. Wherein L1 and L2 represent two groups of original optical signals, and LA and LB represent two received light spot signals reflected by an object to be detected.
In this embodiment, the first similarity between the spot signals may be confirmed by a color parameter, for example, the first similarity between the spot signals may be obtained according to the duty ratios of the red, green and blue channels in the respective spot signals. The parameters are convenient to acquire, the processing process is simple, and the judging speed is high. Support detection of objects to be measured in special cases, for example: when the target object has chromatic aberration, the chromatic aberration is taken as a detected threshold value in the process of setting the threshold value to judge the object to be detected, and only the threshold value is needed to be considered. The two light spot signals are uniformly influenced by the environment, and the relative value between the two light spot signals after the difference is solved can exclude the environment factors, so that the robustness to the environment factors is high. The first similarity is, for example, a color correlation similarity.
Specifically, taking two light spot signals as an example, a and B respectively, the first similarity calculation process may be:
parameter description:
r (A/B) ratio is the light intensity signal ratio of the R channel, and the ratio is calculated as follows:
s (C) is C (color) similarity, and the numerical reference range is 0-999; the ABS () formula is used to calculate an absolute value.
In the differential processing, the formula (1) is implemented: the R, G, B value duty cycle difference between the two spot signals is determined. Taking the R channel as an example: RE is the absolute value of the difference in duty cycle of the light intensity signal between the R channels of the two spot signals, and the duty cycle is multiplied by 1000 for convenient calculation. Equation (2) is implemented: a first similarity between the two spot signals is found. To fully represent the difference between two-point colors, equation (1) sums the RGB channel scale differences and uses DIFF (C) to represent that the larger the difference, the larger DIFF (C) is; to visually represent the similarity, the final similarity S (C) can be obtained by using 999-DIFF (C) in equation (2). Wherein DIFF () is used to calculate the total color difference value, C denotes color, representing color. It can be understood that the reduction 999 in the formulas (2) and (2) is changed to parameters such as 1000 according to the purpose of reducing the computational complexity and the like in the operation process.
Optionally, the performing differential processing on the at least two light spot signals to obtain a processing result includes: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; acquiring a first similarity between the at least two light spot signals according to the proportion of the light intensity signals of each color; respectively calculating brightness parameters of the at least two facula signals according to the size of the light intensity signals of each color and the mapping relation between the first similarity and brightness; acquiring a second similarity between the at least two light spot signals according to the intensity signals of the colors and the brightness parameters; and the processing result is the second similarity.
In this embodiment, the brightness parameter is added to perform feature comparison, and the color and brightness of the integrated facula signal are comprehensively determined, so that the difference is more easily represented, and the detection sensitivity is improved.
Specifically, in order to improve the detection sensitivity of the degree of difference between the multi-spot signals, a CI (color-light) calculation method is introduced, that is, color and brightness are combined. The specific implementation mode is as follows:
in the differential mode of operation,
equation (4) is used to: and respectively obtaining the maximum light intensity signal value of each R, G, B channel of the light spot signal A and the light spot signal B as LA and LB.
Equation (5) is used to complete the second similarity calculation. The light intensity signals of the respective colors of A and B have different duty ratios and different brightness, and the formula (5) (1) represents the difference between the maximum light intensity signals of A and B. Equation (5) (2) mainly calculates the first similarity S (C) to the luminance parameter E 2 (I) I represents luminance, formula (5) (2), i.e., the physical meaning is the mapping relationship between the first similarity and the luminance parameter, and the mapping result represents: when A, B the two light spots have similar signal color, E 2 (I) The smaller the equation (5) (4) is, the smaller the reduction is. Analysis of formula (5) (2): s (C) is the mapped value, S (C) min The lower limit value of the mapped value is 0,S (C) in actual calculation max Represents the upper limit value of the mapped value, and is 999 in actual operation, CIKP min Representation mappingThe target lower limit value is 0 in actual operation, CIKP max The map target upper limit value is represented, and may be set to [0-10 ] according to the system adjustment setting]. Wherein the CIKP parameter is used for identifying the proportional relationship between color and brightness. The mapping result of S (C) and CIKP is that the closer the first similarity S (C) of two light spot signals is, that is, the closer S (C) is to 999, the smaller the CIKP value is generated. A schematic diagram showing the relationship of S (C) and CIKP is shown in FIG. 6.
(5) (3)E) 1 (I) Can represent the real-time brightness difference between two light spot signals, which is equal to E 2 (I) The result of coefficient multiplication is the integrated difference E 3 (I)。E 3 (I) The change trend of the value is in inverse relation with the value of S (C), and the inverse significance is that: for the E calculated by the similar or same color of the light intensity information reflected by the two light spot signals 3 (I) The change is not very large, so that a better detection range can be maintained, namely, the environment parameters such as distance/external light signals and the like can be automatically filtered. The formula (5) (4) is that the first similarity is different from the comprehensive difference, and under the action of the above scale factors, the obtained S (CI) similarity can be used for distinguishing a standard detection point from a non-standard detection point in a friendly way, so that detection is completed. The second similarity is, for example, S (CI).
Optionally, the matching processing is performed on the at least two light spot signals to obtain a processing result, including: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; respectively acquiring first similarity between the at least two facula signals and the standard detection point according to the proportion of the light intensity signals of each color; and the processing result is the first similarity. Referring to fig. 7, a schematic diagram of the matching process is shown.
In one example, the variance value may also be calculated from S (CI) for determination, such as equation (6):
D=999-S(CI)(6)
d is the difference value between at least two light spot signals, and a related threshold value can be set to judge whether the object to be detected is a target object.
In this embodiment, the first similarity between the spot signal and the standard detection point may be confirmed by the color parameter, for example, the first similarity between each spot signal and the standard detection point may be obtained according to the duty ratio of the red, green and blue channels in the spot signal. The parameters are convenient to acquire, the processing process is simple, and the judging speed is high.
The embodiment does not limit the setting of the standard detection point, and supports various personalized detection scenes. For example, if the overall characteristics of the target object are consistent, any point on the target object can be set as a standard detection point according to the requirement, and the received plurality of light spot signals and the single standard detection point are respectively subjected to first similarity calculation; the parameters for judgment are more, and erroneous judgment under the conditions of color parameter approaching and the like can be avoided. Meanwhile, if the target object has regional difference or the environment has uneven influence on the target object, a plurality of standard detection points can be set in a targeted manner, and the similarity between each light spot signal and each standard detection point or between each light spot signal and the corresponding (such as corresponding position relation) standard detection point is calculated. The standard detection point positions, the number, the threshold value for judgment and the like support personalized adjustment of users. The accuracy of detecting the object to be detected is high, and the method is widely applicable to scenes.
In one example, when the similarity between each spot signal and each standard detection point is calculated and the corresponding relation is not determined, a proportion threshold may be set in addition to the similarity threshold, and when the ratio of the similarity satisfying the similarity threshold exceeds the proportion threshold, the object to be detected may be determined as the target object. For example, the colors of the first area and the second area of the target object are inconsistent, the standard detection point n is located in the first area, the standard detection point m is located in the second area, and the first area and the second area have chromatic aberration. Receiving the light spot signals A and B, setting a proportion threshold value as 50%, obtaining 4 groups of similarity (A and n, A and m, B and n, B and m), wherein the similarity between A and n and the similarity between B and m meet the similarity threshold value, the proportion reaches 50%, and determining that the object to be detected is the target object.
In one example, reliability screening of spot information may also be implemented. For example, when the overall characteristics of the target object are consistent, three light spot signals, namely a light spot E1, a light spot E2 and a light spot E3, are received, and similarity calculation is performed between the light spots. The similarity of the light spot E1 and the light spot E2 is larger, the similarity of the light spot E1 and the light spot E3 is smaller, the similarity of the light spot E2 and the light spot E3 is smaller, the light spot E3 is greatly interfered by the environment, a larger error exists, the light spot E3 can be ignored when the similarity is calculated with a standard detection point, and only the similarity between the light spot E1 and the light spot E2 and the standard detection point is calculated, so that the matching detection is finally completed.
Each standard detection point and the threshold value support user-defined setting, meet the requirement of high-precision detection, and can be adjusted in real time according to environments and different target detection objects.
Specifically, the first similarity calculation formula may refer to the above-described embodiments. Wherein A is the received light spot signal, and B is the standard detection point. And respectively calculating the first similarity between at least two groups of light spot signals and the standard detection points.
The same point of the matching process and the difference process is that the S (CI) calculation method is consistent, S (C) generates a brightness parameter, the different points are in the difference mode, the reference point for calculating the similarity is the RGB (red, green and blue) duty ratio of other received facula signals, and the calculated brightness parameter is between two facula signals; in the matching mode, at least two light spot signals are obtained, RGB information of the respective light spot signals is recorded, and respective brightness parameter values are calculated according to the standard detection points.
It will be appreciated that the threshold in this embodiment may be obtained directly by processing the target object using an optical detection system. For example, the target object is collected once to obtain the standard detection point, and the second transmission and reception are performed while the target object is kept stationary, so that the S (CI) calculated twice is 999 or other parameters representing complete coincidence, and the S (CI) is set SET . To be able to trigger the optoelectronic information friendly, 999-30 could be set to S (CI) SET . Alternatively, the standard detection point is acquired once for the target object, and then, in order to increase the tolerance range, another object with a slight difference is acquired for the second transmission and reception, taking the calculated S (CI) as S (CI) SET . That is, the threshold value in this embodiment can directly collect the target objectThe volume or other reference object is acquired without manual input.
Optionally, the matching processing is performed on the at least two light spot signals to obtain a processing result, including: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; respectively acquiring first similarity between the at least two facula signals and the standard detection point according to the proportion of the light intensity signals of each color; respectively calculating brightness parameters of the at least two facula signals according to the size of the light intensity signals of each color and the mapping relation between the first similarity and brightness; respectively acquiring second similarity between the at least two light spot signals and the standard detection point according to the intensity signals of each color and the brightness parameter; and the processing result is the second similarity.
In this embodiment, the brightness parameter is added to perform feature comparison, and the color and brightness of the integrated facula signal are comprehensively determined, so that the difference is more easily represented, and the detection sensitivity is improved.
Specifically, the second similarity calculation formula may refer to the above-described embodiment. At this time, a is a received spot signal, and B is a standard detection point. And respectively calculating the second similarity between at least two groups of light spot signals and the standard detection points.
Wherein when the dual-spot signal moves to the non-standard detection point, the difference E is calculated due to the synchronous change of S (C) (decrease) and brightness parameter (increase) 3 (I) Become larger and more pronounced.
And S203, outputting photoelectric information according to the processing result and the threshold value.
Specifically, the processing result includes the first similarity or the second similarity. The different similarity is associated with the threshold (S () SET ) And comparing, and if the detection result meets the standard according to the threshold value, judging the object to be detected as a target object.
In the related art, after spot information of a single object to be detected is obtained, color similarity between the single spot information and a single standard detection point is calculated, and a threshold is calculated and used according to the color similarityThe threshold value judges the color similarity and determines whether the object to be detected is a target object. The judgment standard is single, and the error is very easy to occur. For example by S (C) SET = (999+s (C))/2, further judgment, and the like. But the implementation mode provided by the application has the advantages that the acquired information is rich, the processing process is diversified, the detection sensitivity is improved, and the user experience is ensured.
If the physical device of the photoelectric detection system is a photoelectric switch, the output photoelectric information is on or off of the photoelectric switch. Responding when the object to be detected is detected as a target object, and opening a photoelectric switch; and when the detection result is not the target object, no response is carried out, and the detection process is ended. It can be understood that outputting the photoelectric information may also be outputting other forms of determination results of whether the object to be detected is the target object, and so on.
The method is applied to the optical detection system, the object to be detected is detected by analyzing at least two light spot signals reflected by the object to be detected, more information can be obtained, and if one light spot signal has larger error due to factors such as environmental interference, the optical detection system can correct the error through the other light spot signals, so that the accuracy of detecting the object to be detected can be improved.
Examples of the method of optical detection provided by the present application are described in detail above. It is to be understood that the corresponding means, in order to carry out the functions described above, comprise corresponding hardware structures and/or software modules for carrying out the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present application may divide the functional units of the optical detection apparatus according to the above-described method example, for example, each function may be divided into each functional unit, or two or more functions may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that the division of the units in the present application is illustrative, and is merely a logic function division, and other division manners may be implemented in practice.
Fig. 8 is a schematic structural diagram of an optical detection device provided by the application. The apparatus 600 comprises a processing unit 610 and an input unit 620, wherein the input unit 620 is capable of performing the acquisition step under control of the processing unit 610.
The input unit 620 is configured to: receiving at least two light spot signals; the at least two light spot signals are signals generated by reflecting at least two original light signals emitted by the optical detection system on an object to be detected;
the processing unit 610 is configured to: performing feature contrast processing on the at least two light spot signals to obtain a processing result; and outputting photoelectric information according to the processing result and the threshold value.
Optionally, the at least two original optical signals are time-division emitted by the optical detection system.
Optionally, the at least two original optical signals are generated by light emitted from an emission source in the optical detection system through a beam splitter.
Optionally, the processing unit 610 is further configured to: performing feature contrast processing on the at least two light spot signals, including: performing differential processing or matching processing on the at least two light spot signals; wherein, under the condition of differential processing, the threshold value is a characteristic parameter between the at least two light spot signals; and under the condition of matching processing, the threshold value is a characteristic parameter between the at least two light spot signals and the standard detection point.
Optionally, the processing unit 610 is further configured to: performing differential processing on the at least two light spot signals to obtain a processing result, wherein the differential processing comprises the following steps: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; acquiring a first similarity between the at least two light spot signals according to the proportion of the light intensity signals of each color; and the processing result is the first similarity.
Optionally, the processing unit 610 is specifically configured to: performing differential processing on the at least two light spot signals to obtain a processing result, wherein the differential processing comprises the following steps: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; acquiring a first similarity between the at least two light spot signals according to the proportion of the light intensity signals of each color; respectively calculating brightness parameters of the at least two facula signals according to the size of the light intensity signals of each color and the mapping relation between the first similarity and brightness; acquiring a second similarity between the at least two light spot signals according to the intensity signals of the colors and the brightness parameters; and the processing result is the second similarity.
Optionally, the processing unit 610 is further configured to: matching the at least two light spot signals to obtain a processing result, wherein the processing result comprises: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; respectively acquiring first similarity between the at least two facula signals and the standard detection point according to the proportion of the light intensity signals of each color; and the processing result is the first similarity.
Optionally, the processing unit 610 is further configured to: matching the at least two light spot signals to obtain a processing result, wherein the processing result comprises: respectively acquiring color parameters of the at least two light spot signals; calculating the proportion of the light intensity signals of each color in the color parameters; respectively acquiring first similarity between the at least two facula signals and the standard detection point according to the proportion of the light intensity signals of each color; respectively calculating brightness parameters of the at least two facula signals according to the size of the light intensity signals of each color and the mapping relation between the first similarity and brightness; respectively acquiring second similarity between the at least two light spot signals and the standard detection point according to the intensity signals of each color and the brightness parameter; and the processing result is the second similarity.
The specific manner in which the apparatus 600 performs the method of optical detection and the resulting benefits may be found in the relevant description of the method embodiments.
Fig. 9 shows a schematic structural diagram of an optical detection electronic device provided by the application. The dashed line in fig. 9 indicates that the unit or the module is optional. The apparatus 700 may be used to implement the methods described in the method embodiments described above. The device 700 may be a physical device or a server or chip.
The device 700 includes one or more processors 701, which one or more processors 701 may support the device 700 to implement the methods in the method embodiments. The processor 701 may be a general-purpose processor or a special-purpose processor. For example, the processor 701 may be a central processing unit (central processing unit, CPU), digital signal processor (digital signal processor, DSP), application specific integrated circuit (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA), or other programmable logic device such as discrete gates, transistor logic, or discrete hardware components.
The processor 701 may be used to control the device 700, execute a software program, and process data of the software program. The device 700 may further comprise a communication unit 705 for enabling input (receiving) and output (transmitting) of signals.
For example, the device 700 may be a chip, the communication unit 705 may be an input and/or output circuit of the chip, or the communication unit 705 may be a communication interface of the chip, which may be an integral part of a physical device or a server or other electronic device.
For another example, the device 700 may be an entity device, the communication unit 705 may be a transceiver of the entity device, or the communication unit 705 may be a transceiver circuit of the entity device.
The apparatus 700 may include one or more memories 702 having a program 704 stored thereon, the program 704 being executable by the processor 701 to generate instructions 703 such that the processor 701 performs the methods described in the method embodiments above in accordance with the instructions 703. Optionally, the memory 702 may also have data stored therein. Alternatively, processor 701 may also read data stored in memory 702, which may be stored at the same memory address as program 704, or which may be stored at a different memory address than program 704.
The processor 701 and the memory 702 may be provided separately or may be integrated together, for example, on a System On Chip (SOC) of a physical device.
The application also provides a computer program product which, when executed by a processor 701, implements the method according to any of the method embodiments of the application.
The computer program product may be stored in the memory 702, for example, the program 704, and the program 704 is finally converted into an executable object file capable of being executed by the processor 701 through preprocessing, compiling, assembling, and linking.
The application also provides a computer readable storage medium having stored thereon a computer program which when executed by a computer implements the method according to any of the method embodiments of the application. The computer program may be a high-level language program or an executable object program.
Such as memory 702. The memory 702 may be volatile memory or nonvolatile memory, or the memory 702 may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes and technical effects of the apparatus and device described above may refer to corresponding processes and technical effects in the foregoing method embodiments, which are not described in detail herein.
In several embodiments provided by the present application, the disclosed systems, apparatuses, and methods may be implemented in other manners. For example, some features of the method embodiments described above may be omitted, or not performed. The above-described apparatus embodiments are merely illustrative, the division of units is merely a logical function division, and there may be additional divisions in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the elements or the coupling between the elements may be direct or indirect, including electrical, mechanical, or other forms of connection.
It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In addition, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely one association relationship describing the associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In summary, the foregoing description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (5)

1. A method of optical inspection, for use in an optical inspection system, the method comprising:
receiving at least two light spot signals; the at least two light spot signals are signals generated by reflecting at least two original light signals emitted by the optical detection system on an object to be detected;
performing feature contrast processing on the at least two light spot signals to obtain a processing result;
Outputting photoelectric information according to the processing result and a threshold value;
the feature comparison processing is performed on the at least two light spot signals to obtain a processing result, which comprises the following steps:
matching the at least two light spot signals to obtain the processing result; under the condition of matching processing, the threshold value is a characteristic parameter between the at least two light spot signals and the standard detection point;
the matching processing is performed on the at least two light spot signals to obtain the processing result, which includes:
respectively acquiring color parameters of the at least two light spot signals;
calculating the proportion of the light intensity signals of each color in the color parameters;
respectively acquiring first similarity between the at least two facula signals and the standard detection point according to the proportion of the light intensity signals of each color;
respectively calculating brightness parameters of the at least two facula signals according to the size of the light intensity signals of each color and the mapping relation between the first similarity and brightness;
respectively acquiring second similarity between the at least two light spot signals and the standard detection point according to the intensity signals of each color and the brightness parameter; and the processing result is the second similarity.
2. The method of claim 1, wherein the at least two raw optical signals are time-division emitted by the optical detection system.
3. The method of claim 1, wherein the at least two raw optical signals are generated by passing light emitted by an emission source in the optical detection system through a beam splitter.
4. An apparatus for an optical inspection method, comprising a processor and a memory, the processor and the memory being coupled, the memory being for storing a computer program which, when executed by the processor, causes the apparatus to perform the method of any one of claims 1 to 3.
5. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which when executed by a processor causes the processor to perform the method of any of claims 1 to 3.
CN202310930653.9A 2023-05-12 2023-05-12 Method, apparatus and computer readable storage medium for optical detection Pending CN117031479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310930653.9A CN117031479A (en) 2023-05-12 2023-05-12 Method, apparatus and computer readable storage medium for optical detection

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310930653.9A CN117031479A (en) 2023-05-12 2023-05-12 Method, apparatus and computer readable storage medium for optical detection
CN202310533228.6A CN116299497B (en) 2023-05-12 2023-05-12 Method, apparatus and computer readable storage medium for optical detection

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202310533228.6A Division CN116299497B (en) 2023-05-12 2023-05-12 Method, apparatus and computer readable storage medium for optical detection

Publications (1)

Publication Number Publication Date
CN117031479A true CN117031479A (en) 2023-11-10

Family

ID=86824289

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310930653.9A Pending CN117031479A (en) 2023-05-12 2023-05-12 Method, apparatus and computer readable storage medium for optical detection
CN202310533228.6A Active CN116299497B (en) 2023-05-12 2023-05-12 Method, apparatus and computer readable storage medium for optical detection

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202310533228.6A Active CN116299497B (en) 2023-05-12 2023-05-12 Method, apparatus and computer readable storage medium for optical detection

Country Status (1)

Country Link
CN (2) CN117031479A (en)

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB314591A (en) * 1928-01-04 1929-07-04 John Logie Baird Improvements in television and like apparatus
GB994357A (en) * 1960-11-09 1965-06-02 Gkn Group Services Ltd A method of and apparatus for tracing an optically discernible boundary applicable to inspection and testing of articles
FR2157183A5 (en) * 1971-10-21 1973-06-01 Lejon Jean
JPS5854648A (en) * 1981-09-28 1983-03-31 Nippon Kogaku Kk <Nikon> Positioning device
JP4016526B2 (en) * 1998-09-08 2007-12-05 富士ゼロックス株式会社 3D object identification device
WO2002099397A2 (en) * 2001-06-06 2002-12-12 Digital Optical Imaging Corporation Light modulated microarray reader and methods relating thereto
US6967342B2 (en) * 2003-07-31 2005-11-22 Fusion Uv Systems, Inc. Method and apparatus for improved ultraviolet (UV) treatment of large three-dimensional (3D) objects
JP4093971B2 (en) * 2004-02-12 2008-06-04 シャープ株式会社 Optical movement information detection apparatus, movement information detection system, electronic apparatus and encoder
EP1747434B1 (en) * 2004-05-14 2011-07-27 KLA-Tencor Technologies Corporation Systems for measurement or analysis of a specimen using vuv light
US7661828B2 (en) * 2005-06-10 2010-02-16 Hewlett-Packard Development Company, L.P. Adjusting light intensity
GB2468911A (en) * 2009-03-27 2010-09-29 Light Blue Optics Ltd Aberration correction methods using wavefront sensing hologram patches and mapping of phase aberration corrections
CN101826231A (en) * 2010-05-14 2010-09-08 陈琢 Infrared fluorescence identification technique-based banknote testing machine
CN102589466B (en) * 2012-01-17 2013-10-30 浙江大学 Contour microscopic method
WO2013185937A1 (en) * 2012-06-13 2013-12-19 Koninklijke Philips N.V. Determining a propagation velocity for a surface wave
JP6120521B2 (en) * 2012-10-19 2017-04-26 株式会社トプコン 3D surveying device and 3D surveying system
US9016578B2 (en) * 2013-05-14 2015-04-28 Symbol Technologies, Inc. Apparatus for and method of electro-optically reading a target in the presence of ambient light by suppressing the ambient light
EP3064898B1 (en) * 2015-03-04 2019-12-18 Leica Geosystems AG Measuring device with precise targeting and target tracking functionality
DE102016114432A1 (en) * 2016-08-04 2018-02-08 Sick Ag Optoelectronic sensor and method for detecting an object
CN208444026U (en) * 2018-05-28 2019-01-29 深圳深浦电气有限公司 A kind of line is to penetrating laser sensor
GB2572662B (en) * 2018-10-05 2020-06-03 Res & Innovation Uk Raman spectrometer
CN209514851U (en) * 2019-01-30 2019-10-18 合肥锟特奇科技有限公司 One kind kicking quilt detection system
CN114862828B (en) * 2022-05-30 2024-08-23 Oppo广东移动通信有限公司 Light spot searching method device, computer readable medium and electronic equipment
CN115372933A (en) * 2022-08-31 2022-11-22 深圳市欢创科技有限公司 Stray light filtering method and device and laser radar
CN115524683A (en) * 2022-09-20 2022-12-27 深圳市欢创科技有限公司 Light spot extraction method, distance measurement method, laser radar and robot

Also Published As

Publication number Publication date
CN116299497B (en) 2023-08-11
CN116299497A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US4653014A (en) Process for preparing discrimination criteria for a identifying colors for color identifying system
CN111372005B (en) Automatic exposure compensation method and system for TOF camera module
CN115619787B (en) UV glue defect detection method, system, equipment and medium
CN108204979B (en) Method and device for calibrating light source in test paper detection equipment
JP4389602B2 (en) Object detection apparatus, object detection method, and program
US11303817B2 (en) Active sensor, object identification system, vehicle and vehicle lamp
CN115049530A (en) Method, apparatus and system for debugging image signal processor
CN116299497B (en) Method, apparatus and computer readable storage medium for optical detection
US11830130B1 (en) Systems and methods for removing lighting effects from three-dimensional models
CN116660873B (en) Precision compensation method, device and equipment for laser sensor and storage medium
US20220113420A1 (en) Plane detection method and device based on laser sensor
CN105427281A (en) Change area detection method and device
US20190340776A1 (en) Depth map interpolation using generalized likelihood ratio test parameter estimation of a coded image
CN114264904B (en) Full liquid crystal instrument testing method and system based on simulation and machine vision
CN113887543B (en) Luggage counterfeit discrimination method based on hyperspectral characteristics and spectrum acquisition device
US10241000B2 (en) Method for checking the position of characteristic points in light distributions
CN115631143A (en) Laser point cloud data detection method and device, readable storage medium and terminal
CN115100400A (en) Lens film color measuring method, system, computer device and storage medium
CN114820523A (en) Light sensitive hole glue overflow detection method, device, system, equipment and medium
CN114187494A (en) Perception information fusion method of multiple sensors
CN113052886A (en) Method for acquiring depth information of double TOF cameras by adopting binocular principle
CN112165616A (en) Camera module testing method and device, electronic equipment and storage medium
KR20150111401A (en) Method and Apparatus for Identifying Money
CN118570559B (en) Target calibration method, target identification method, electronic device, and readable storage medium
US11875447B1 (en) Systems and methods for color correcting three-dimensional objects formed by point cloud data points

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination