CN110361041B - Light quantity calibration method, device and system - Google Patents
Light quantity calibration method, device and system Download PDFInfo
- Publication number
- CN110361041B CN110361041B CN201810251572.5A CN201810251572A CN110361041B CN 110361041 B CN110361041 B CN 110361041B CN 201810251572 A CN201810251572 A CN 201810251572A CN 110361041 B CN110361041 B CN 110361041B
- Authority
- CN
- China
- Prior art keywords
- light
- amount
- reflected
- detection object
- target detection
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000001514 detection method Methods 0.000 claims abstract description 99
- 229920006395 saturated elastomer Polymers 0.000 claims description 15
- 230000001965 increasing effect Effects 0.000 claims description 12
- 230000002238 attenuated effect Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 27
- 230000009471 action Effects 0.000 description 5
- 230000001629 suppression Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004075 alteration Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D18/00—Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Geophysics And Detection Of Objects (AREA)
- Electronic Switches (AREA)
Abstract
A method, a device and a system for calibrating light quantity are provided. The light quantity calibration method comprises the following steps: adjusting the amount of light projected according to the amount of light of the reflected light from the target detection object; adjusting a light projecting amount and/or a light receiving gain of a light amount of reflected light from the target detection object according to a preset light amount target value; and displaying a signal corresponding to the target light quantity value. The embodiment of the invention controls the light quantity (projected light quantity) emitted to the object to be detected (target object to be detected) and detects the reflected light quantity (received light quantity), and performs tuning of the light quantity, so that the intensity of the light quantity detected by the sensor through the reflection of the object to be detected can be calibrated in an expected range, thereby realizing that the sensor can stably detect the object to be detected even in the state of background reflected light.
Description
Technical Field
The invention relates to the technical field of photoelectric detection, in particular to a method, a device and a system for calibrating light quantity.
Background
The photoelectric sensor senses an object (referred to as an object to be detected) by using a change in the amount of light such as reflection, transmission, or interruption of detection light on the object, but if a background exists around the object, the background interferes with an expected light path, and the object cannot be detected or the detection result is inaccurate. Therefore, how to detect an object with high quality in the case where a background exists around the object has been a problem to be solved by the photoelectric sensor.
To solve the above problems, many proposals have been made to: different thresholds are set for the intensity of the received light quantity by the photoelectric sensor, and whether the current state is in a background detection state is judged.
FIG. 1 is a schematic diagram of one detection scenario of a sensor. As shown in fig. 1, the emitted light from the sensor is reflected by the object to be detected, the reflected light enters the sensor and is detected by the sensor, and the sensor determines whether the object exists according to the intensity of the detected reflected light. However, due to the reflection of the background, the background reflection light generated by the background will also enter the sensor and be detected by the sensor, so that the sensor cannot correctly detect the object.
Fig. 2 is a schematic diagram of the correspondence between the amount of received light and the object of examination with and without background. As shown in fig. 2, in a normal state, when there is no background, light reflected by the object enters the sensor and is detected by the sensor, the sensor compares the detected light amount (referred to as light receiving amount) with a preset threshold value, and determines whether there is an object to be detected based ON the comparison result and outputs the determination result. However, when there is a background, the light reflected from the background is also incident on the sensor and is detected by the sensor, and in this case, even if there is no object to be detected, the amount of light received by the sensor may reach a certain intensity and exceed the threshold point, and in this case, the sensor may mistakenly assume that there is an object to be detected, thereby generating an erroneous judgment and output.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
The inventors found that, in the prior art, the phenomenon of fig. 2 can be circumvented by means of sensitivity adjustment, for example, by increasing the threshold value to overcome the influence of the background reflected light, however, if the light quantity value of the background reflected light is close to that of the object reflected light, or the light quantity value of the background reflected light is larger than that of the object reflected light, there is a case where the sensor still cannot detect the object. In addition, in an actual field, since the background has various kinds, the surface color, roughness, shape, inclination, and the like of the background all affect the size of the background reflected light, and even if the threshold is increased, the influence of the background reflected light cannot be effectively avoided, so that a false operation of detection occurs.
In order to solve at least one of the above problems, embodiments of the present invention provide a method, an apparatus, and a system for calibrating a light amount, so that a sensor can stably detect an object even in a state where there is background reflected light.
According to a first aspect of embodiments of the present invention, there is provided a method for calibrating a light amount, wherein the method includes:
adjusting the amount of light projected according to the amount of light of the reflected light from the target detection object;
adjusting a light projecting amount and/or a light receiving gain of a light amount of reflected light from the target detection object according to a preset light amount target value;
and displaying a signal corresponding to the target light quantity value.
According to a second aspect of embodiments of the present invention, there is provided a light amount calibration apparatus, wherein the apparatus includes:
a first adjusting unit that adjusts the amount of light projected based on the amount of light reflected from the target detection object;
a second adjusting means for adjusting the light projecting amount and/or the light receiving gain of the light amount of the reflected light from the target detection object, based on a preset light amount target value;
and a display unit which displays a signal corresponding to the light amount target value.
According to a third aspect of embodiments of the present invention, there is provided a photodetecting system, wherein the system comprises:
a sensor that projects emission light toward a target detection object and receives reflection light from the target detection object;
a controller for controlling the light projection control circuit to adjust the light quantity of the emitted light according to the light quantity of the reflected light, controlling the light projection control circuit to adjust the light quantity of the emitted light according to a preset light quantity target value, and/or controlling the light receiving gain control circuit to adjust the light receiving gain of the light quantity of the reflected light;
a light projection control circuit for adjusting the light quantity of the emitted light according to the control of the controller;
a light receiving gain control circuit that adjusts a light receiving gain of the light amount of the reflected light according to control by the controller;
and an output display circuit that outputs and displays a signal corresponding to the light amount target value.
The invention has the beneficial effects that: by controlling the amount of light emitted toward the object to be inspected (projected light amount) and detecting the amount of reflected light (received light amount), the amount of light is tuned so that the intensity of the amount of light reflected by the object to be inspected and detected by the sensor can be specified within a desired range, and the sensor can stably detect the object to be inspected even in the presence of background reflected light.
Specific embodiments of the present invention are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the invention may be employed. It should be understood that the embodiments of the invention are not so limited in scope. The embodiments of the invention include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
Elements and features described in one drawing or one implementation of an embodiment of the invention may be combined with elements and features shown in one or more other drawings or implementations. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views, and may be used to designate corresponding parts for use in more than one embodiment.
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic diagram of a detection scenario of a sensor;
FIG. 2 is a schematic view showing the correspondence between the amount of received light and the object of examination in the presence and absence of a background;
FIG. 3 is a schematic diagram of one embodiment of the relationship between the amount of light received by the sensor and the set distance;
FIG. 4 is a schematic diagram of one embodiment of the relationship between the projected amount of light and the detected distance of a sensor;
FIG. 5 is a schematic diagram of another detection scenario of a sensor;
FIG. 6 is a schematic diagram of another embodiment of the relationship between the amount of light received by the sensor and the set distance;
FIG. 7 is a schematic view of one embodiment of a light quantity calibration method of example 1;
FIG. 8 is a schematic view of another embodiment of the light quantity calibration method of example 1;
fig. 9 is a diagram illustrating the relationship between the amount of received light and the threshold value under the background condition before the calibration of the amount of light.
Fig. 10 is a diagram illustrating a relationship between the received light amount and the threshold value before and after the light amount calibration under the background condition.
FIG. 11 is a schematic view of an embodiment of the light quantity calibration apparatus of example 2;
FIG. 12 is a schematic diagram of an embodiment of a first adjusting unit of the light quantity calibration apparatus of FIG. 11;
FIG. 13 is a diagram of an embodiment of a second adjusting unit of the light quantity calibration apparatus of FIG. 11;
FIG. 14 is a schematic view of an embodiment of a display unit of the light quantity calibration apparatus of FIG. 11;
FIG. 15 is a schematic diagram of one embodiment of a photodetection system of example 3.
Detailed Description
The foregoing and other features of embodiments of the invention will become apparent from the following description, taken in conjunction with the accompanying drawings. In the following description and drawings, particular embodiments of the invention are disclosed in detail as being indicative of some of the embodiments in which the principles of the embodiments of the invention may be employed, it being understood that the embodiments of the invention are not limited to the embodiments described, but, on the contrary, are intended to cover all modifications, variations, and equivalents falling within the scope of the appended claims.
In the embodiments of the present invention, the terms "first", "second", and the like are used for distinguishing different elements by name, but do not denote a spatial arrangement, a temporal order, or the like of the elements, and the elements should not be limited by the terms. The term "and/or" includes any and all combinations of one or more of the associated listed terms. The terms "comprising," "including," "having," and the like, refer to the presence of stated features, elements, components, or groups, but do not preclude the presence or addition of one or more other features, elements, components, or groups thereof.
In embodiments of the invention, the singular forms "a", "an", and the like include the plural forms and are to be construed broadly as "a" or "an" and not limited to the meaning of "a" or "an"; furthermore, the term "comprising" should be understood to include both the singular and the plural, unless the context clearly dictates otherwise. Furthermore, the term "according to" should be understood to be at least partially according to … … "and the term" based on "should be understood to be at least partially based on … …" unless the context clearly dictates otherwise.
The concept and operation principle of the embodiment of the present invention will be briefly described below. The embodiments of the present invention are described by taking a photoelectric sensor as an example, and the photoelectric sensor may be a light-receiving/projecting separated type sensor, an integrated type sensor, or an amplifier separated type sensor.
Fig. 3 is a schematic diagram of one embodiment of the relationship between the amount of light received by the sensor and the set distance (distance between the object and the sensor). Generally, the greater the amount of light emitted by a sensor, the greater the amount of light it can receive, and the longer the distance that can be detected. As shown in fig. 3, on the premise that the amount of light emitted from the sensor (the amount of light projected) is constant, the amount of light reflected by the object to be detected (the amount of received light) is inversely proportional to the distance between the object to be detected and the sensor, that is, the larger the distance between the object to be detected and the sensor, the smaller the light that can be received by the sensor. In other words, if the distance is fixed, the more intense the light emitted by the sensor, the more light the sensor can receive. Therefore, the light emitted from the sensor can be adjusted to adjust the detection distance.
Fig. 4 is a schematic diagram of an embodiment of a relationship between a projected light amount and a detection distance of a sensor. As shown in fig. 4, the purpose of setting different detection distances can be achieved by reducing the amount of light projected by the sensor, i.e. by attenuating the light emitted by the sensor. Fig. 5 is a schematic diagram of another detection scenario of the sensor, and as shown in fig. 5, in the embodiment of the present invention, a detection distance threshold may be set, in which the reflected light of the background is not detected by the sensor, and the reflected light of the object is just detected by the sensor at a threshold distance corresponding to the detection distance threshold. Thus, objects beyond the threshold distance (background) are not detected, while objects within the threshold distance (object) are still detected normally.
On the other hand, by attenuating the light emitted from the sensor, the amount of light projected is reduced as compared with the normal condition, and the light reflected by the object to be detected (object-reflected light) becomes weaker, so that the light received by the sensor (amount of light received) becomes weaker, and thus the sensor becomes very sensitive during the detection, and the object to be detected slightly vibrates, has a difference in color, a difference in surface finish, and the like, and the sensor malfunctions. Fig. 6 is a schematic diagram of another embodiment of the relationship between the amount of light received by the sensor and the set distance. As shown in fig. 6, when the distance difference is equal, that is, when the distance difference is constant, the difference in the amount of received light obtained by attenuating the light emitted from the sensor (light amount difference 2) becomes small.
In the embodiment of the invention, the light quantity target value is calibrated, the light quantity difference between the object detection and the background reflection is increased, a sufficient safety gap between the action level and the judgment threshold value is ensured, and the light quantity calibration of background suppression can be realized. For convenience of explanation, in the embodiment of the present invention, the light receiving amount corresponding to the detection distance threshold is used as the reference position.
Various embodiments of the present invention will be described below with reference to the drawings. These embodiments are merely exemplary and are not intended to limit embodiments of the present invention.
Example 1
The embodiment provides a light quantity calibration method.
Fig. 7 is a schematic diagram of an embodiment of the light quantity calibration method of the present embodiment, and as shown in fig. 7, the method includes:
step 701: adjusting the amount of light projected according to the amount of light of the reflected light from the target detection object;
step 702: adjusting the light projecting amount and/or the light receiving gain of the light amount of the reflected light from the target detection object according to a preset light amount target value;
step 703: and displaying a signal corresponding to the target light quantity value.
In the present embodiment, by controlling the amount of light (projected light amount) emitted toward the object to be detected (target object to be detected) and detecting the amount of reflected light (received light amount), the amount of light is tuned so that the intensity of the amount of light reflected by the object to be detected by the sensor can be specified within an expected range, and the sensor can detect the object to be detected stably even in the presence of background reflected light.
In one embodiment, the distance between the object and the sensor is short, that is, the light projection amount is relatively large, in this case, the light projection amount can be attenuated by the light projection control circuit (step 701), the attenuated light projection amount is reflected by the object and received by the sensor, then the light reception gain control circuit can sequentially amplify the reflected light reflected by the object to a desired signal level (step 702), and the signal level is processed by the controller and then output to the output display circuit for display (step 703), thereby ensuring that a desired light amount difference is achieved.
In another embodiment, the distance between the object and the sensor is long, that is, the light projection amount is relatively small, in this case, the light amount received by the sensor is small, the light projection amount can be increased by the light projection control circuit (step 701), the increased light projection amount is received by the sensor through the object reflection, the light reception gain control circuit can sequentially reduce the reflected light reflected by the object to a required signal level (step 702), the signal level is processed by the controller, and the processed light is output to the output display circuit for display (step 703), so that the required light amount difference can be ensured.
In the foregoing two embodiments, the required signal level is a signal value corresponding to the light amount target value, and the required light amount difference is determined by the light amount target value and is obtained with the light amount of the reflected light reflected by the background as a reference position.
According to the method of the present embodiment, it is possible to easily set the output target signal value, that is: a target value of light quantity which can be ensured under the working environment can be freely set, the display value of a light quantity signal under various working conditions such as a detected state and a non-detected state, the background and the non-background and the like can be freely calibrated by controlling the light projecting quantity and/or the light receiving gain, the light quantity difference between the detected object and the background reflection is enlarged, a sufficient safety difference between the action level and the judgment threshold is ensured, and the light quantity calibration of background suppression is realized.
In one embodiment of step 701, a threshold value for comparison with the light receiving amount may be set to determine the intensity of the light receiving amount. For example, the light amount of the target detection object may be detected to obtain the light amount (light receiving amount) of the reflected light from the target detection object, and if the light receiving amount is smaller than the first threshold, the light projecting amount may be increased; if the amount of received light is greater than a second threshold value, the amount of received light is attenuated. Here, the first threshold and the second threshold may be the same, that is, both may be equal; or they may be different, that is, they may not be equal, and they may be specifically set according to the requirement.
In one embodiment of step 702, the light amount difference may be determined based on a predetermined light amount target value, for example, by using the light amount of the reflected light reflected by the background as a reference position and the light amount target value as a maximum position to obtain the light amount difference, and then adjusting the light projecting amount and/or the light receiving gain according to whether the light amount difference is within a reasonable range. For example, if the light amount difference is within a reasonable range, the light receiving gain may be adjusted according to the light amount of the reflected light from the target detection object; if the difference in light amount is not within a reasonable range, the light projecting amount can be adjusted based on the light amount of the reflected light from the background and the light amount of the reflected light from the target detection object, and the light receiving gain can be further adjusted based on the light amount of the reflected light from the target detection object.
In the present embodiment, the light amount difference is within a reasonable range, which means that there is a certain safety margin between the determination threshold value and the light amount target value and the background light amount, so that stable detection of the object can be realized even when there is background interference. Here, the determination threshold may be an intermediate value between the light amount target value and the background light amount, that is, the light amount target value — determination threshold = determination threshold — background light amount, but the present embodiment is not limited thereto.
In the present embodiment, the light receiving gain is adjusted according to the light amount (light receiving amount) of the reflected light from the target detection object, and a threshold value for comparison with the light receiving amount may be provided to determine the intensity of the light receiving amount. For example, the light amount of the reflected light from the target detection object may be detected by detecting the light amount of the target detection object; if the light receiving quantity is smaller than a third threshold value, increasing the light receiving gain; if the light receiving amount is larger than the fourth threshold value, the light receiving gain is reduced. Here, the third threshold and the fourth threshold may be the same, that is, both may be equal; or they may be different, that is, they may not be equal, and they may be specifically set according to the requirement. And, the third threshold and the fourth threshold may be equal to or different from the aforementioned first threshold and second threshold, depending on the needs. The light receiving amount can be controlled within a reasonable range by adjusting the light receiving gain.
In the present embodiment, the light projecting amount is adjusted based on the light amount of the reflected light from the background and the light amount of the reflected light from the target detection object, so that the light amount detection can be performed for the background and the target detection object, and the light amount of the reflected light from the background and the light amount of the reflected light from the target detection object are obtained.
In one embodiment of step 703, since the target light amount value is calibrated, the calibrated target light amount value may not be displayed in the current display range. For example, it is determined whether the display is saturated, and if the display is not saturated, the display scale is increased, and if the display is too saturated, the display scale is decreased. Whether the display is saturated or not can be achieved by any conventional method in the prior art, and is not described in detail here.
In an embodiment of this embodiment, in order to be compatible with the current light amount detection method, that is, in a case where the target light amount value is not calibrated, the method of this embodiment may further include, before step 702, the following steps:
judging whether the target value of the light quantity is calibrated or not;
if yes, executing step 702, adjusting the light projecting amount and/or the light receiving gain of the light quantity of the reflected light from the target detection object according to the preset light quantity target value;
if not, the light receiving gain is adjusted according to the light quantity of the reflected light from the target detection object.
In the present embodiment, when there is no target value of the calibration light amount, the amount of light to be projected is adjusted in step 701, and the light receiving gain is adjusted in accordance with the amount of light reflected from the target detection object, so that the difference between the detection signal and the background signal is similarly widened, and the determination threshold value has a certain safety margin difference between the target value of the calibration light amount and the background light amount, thereby achieving the effect of stably detecting the object even when there is interference of the background.
Fig. 8 is a schematic diagram of another embodiment of the light quantity calibration method of the embodiment, and as shown in fig. 8, the method includes:
step 801: carrying out initialization processing;
step 802: detecting the light quantity of a target detection object;
step 803: judging the intensity of the received light;
step 804: if the intensity is judged to be strong, namely the light is saturated, the light is attenuated and projected;
step 805: if the light is judged to be weak, namely, the light is not saturated when being received, the light projection is enhanced;
step 806: judging whether the target value of the light quantity is calibrated, if so, executing the step 807, otherwise, executing the step 811;
step 807: judging whether the light quantity difference is reasonable or not; if yes, go to step 811, otherwise go to step 808;
step 808: judging whether the light quantity of the background reflected light is larger than or equal to that of the reflected light of the target detection object;
step 809: if yes, attenuating the light projection;
step 810: if not, enhancing the light projection;
step 811: judging the intensity of the received light;
step 812: if the light intensity is judged to be strong, namely the light is saturated, the light receiving gain is reduced;
step 813: if the light receiving gain is judged to be weak, namely light receiving is unsaturated, the light receiving gain is increased;
step 814: judging whether the target value of the light quantity is calibrated, if so, executing step 815, otherwise, executing step 819;
step 815: judging whether the display is saturated;
step 816: if the judgment is yes, namely the display is saturated, the display scale is reduced;
step 817: if the judgment is negative, namely the display is unsaturated, the display scale is increased;
step 818: successfully calibrating;
step 819: the determination threshold is automatically set.
In this embodiment, the initialization processing of step 801 is a general processing step of photodetection, and the specific initialization manner and content thereof may refer to the prior art, which is not described herein again. The processing from step 802 to step 819 has already been described in the foregoing embodiments and will not be described here.
Fig. 9 is a diagram illustrating the relationship between the amount of received light and the threshold value under the background condition before the calibration of the amount of light. As shown in fig. 9, before the calibration of the light amount, a malfunction of the sensor detection occurs due to the background effect or the fluctuation of the detected object.
Fig. 10 is a diagram illustrating a relationship between the received light amount and the threshold value before and after the light amount calibration under the background condition. As shown in fig. 10, after the calibration of the light quantity, the zero point which is the reference under the condition of the background light quantity, that is, the critical point which can not be detected by the sensor can be freely calibrated, and on the basis, the output signal is freely calibrated to the target position by controlling the light projecting quantity and/or the light receiving gain, so that the difference between the detected signal and the background signal is opened, the judgment threshold value can have a certain safety margin difference between the calibrated light quantity target value and the background light quantity, and the stable detection of the object can be realized even under the condition of background interference.
After the light quantity is calibrated by the method of the embodiment, the detection of the detected object can be carried out.
It should be noted that, the above description only describes the steps or processes related to the present invention, but the present invention is not limited thereto. The method may also comprise other steps or processes, reference being made to the prior art with regard to the details of these steps or processes.
By the method of the embodiment, the light quantity difference between object detection and background reflection is enlarged, a sufficient safety difference between the action level and the judgment threshold is ensured, and light quantity calibration of background suppression is realized.
Example 2
This embodiment provides a light amount calibration apparatus, since the principle of solving the problem of the apparatus is similar to that of embodiment 1, and the description of the same contents as embodiment 1 will not be repeated.
Fig. 11 is a schematic diagram of the light quantity calibration apparatus 1100 of the present embodiment, and as shown in fig. 11, the apparatus 1100 includes: a first adjustment unit 1101, a second adjustment unit 1102, and a display unit 1103. The first adjustment unit 1101 adjusts the amount of light projected based on the amount of light reflected from the target detection object; the second adjusting means 1102 adjusts the light projecting amount and/or the light receiving gain of the light amount of the reflected light from the target detection object based on a preset light amount target value; the display unit 1103 displays a signal corresponding to the light amount target value.
In the present embodiment, by controlling the amount of light (projected light amount) emitted toward the object to be detected (target object to be detected) and detecting the amount of reflected light (received light amount), the amount of light is tuned so that the intensity of the amount of light reflected by the object to be detected by the sensor can be specified within an expected range, and the sensor can detect the object to be detected stably even in the presence of background reflected light.
Fig. 12 is a schematic diagram of an embodiment of the first adjusting unit 1101 of the present embodiment, and as shown in fig. 12, the first adjusting unit 1101 may include:
a first detection unit 1201 that detects the amount of light of a target detection object and obtains the amount of light of reflected light from the target detection object; and
a first light projection control circuit 1202 that increases the amount of light projected when the amount of received light is less than a first threshold value; and when the light receiving quantity is larger than a second threshold value, the light projection quantity is attenuated. Here, the first threshold and the second threshold may be the same, that is, both may be equal; or they may be different, that is, they may not be equal, and they may be specifically set according to the requirement.
Fig. 13 is a schematic diagram of an embodiment of the second adjusting unit 1102 of this embodiment, and as shown in fig. 13, the second adjusting unit 1102 may include:
a determination unit 1301 that determines a light amount difference from a light amount target value set in advance;
a second light projection control circuit 1302 for adjusting the light projection amount based on the light amount of the reflected light from the background and the light amount of the reflected light from the target detection object when the light amount difference is not within a reasonable range; and
and a first light receiving gain control circuit 1303 for adjusting a light receiving gain according to the light amount of the reflected light from the target detection object when the light amount difference is within a reasonable range or not within a reasonable range.
In this embodiment, as shown in fig. 13, the second adjusting unit 1102 may further include:
a second detection unit 1304 that detects the amount of light of the target detection object and obtains the amount of light of reflected light from the target detection object; thus, the first light receiving gain control circuit 1303 can increase the light receiving gain when the light receiving amount is smaller than the third threshold; when the light receiving amount is larger than the fourth threshold value, the light receiving gain is reduced. Here, the third threshold and the fourth threshold may be the same, that is, both may be equal; or they may be different, that is, they may not be equal, and they may be specifically set according to the requirement. And, the third threshold and the fourth threshold may be equal to or different from the aforementioned first threshold and second threshold, depending on the needs.
In this embodiment, as shown in fig. 13, the second adjusting unit 1102 may further include:
a third detection unit 1305 that detects the light quantities of the background and the target detection object and obtains the light quantity of the reflected light from the background and the light quantity of the reflected light from the target detection object; thus, the second light projection control circuit 1302 can attenuate the amount of light projection when the amount of light reflected from the background is greater than or equal to the amount of light reflected from the target detection object; when the light quantity of the reflected light from the background is smaller than the light quantity of the reflected light from the target detection object, the light projection quantity is increased.
Fig. 14 is a schematic diagram of an embodiment of the display unit 1103 of the present embodiment, and as shown in fig. 14, the display unit 1103 may include:
a first judgment unit 1401 which judges whether or not display is saturated; and
an output and display circuit 1402 which increases a display scale when display is not saturated; when the display is too saturated, the display scale is reduced.
In this embodiment, as shown in fig. 11, the apparatus 1100 may further include:
a second judgment unit 1104 that judges whether or not the light amount target value is calibrated; and
a second light receiving gain control circuit 1105 capable of adjusting a light receiving gain in accordance with the light amount of the reflected light from the target detection object when the second determination unit 1104 determines no; when the second determination unit 1104 determines yes, the second adjustment unit 1102 may adjust the light projecting amount and/or the light receiving gain of the light amount of the reflected light from the target detection object based on a preset light amount target value.
In this embodiment, the first adjusting unit 1101, the second adjusting unit 1102, the display unit 1103, the second judging unit 1104, the first detecting unit 1201, the determining unit 1301, the second detecting unit 1304, the third detecting unit 1305, and the first judging unit 1401 may be implemented by a controller and a memory, that is, a program for implementing the functions of the above units is stored in the memory, and the controller implements the functions of the above units by executing the program.
In addition, in this embodiment, the first light projection control circuit 1202 and the second light projection control circuit 1302 may be implemented by the same light projection control circuit, and a specific implementation manner is not limited in this embodiment.
In addition, in this embodiment, the first light receiving gain control circuit 1303 and the second light receiving gain control circuit 1105 may be implemented by the same light receiving gain control circuit, and the light receiving gain control circuit may be a single stage or multiple stages, and this embodiment does not limit the specific implementation manner.
By the device of the embodiment, the light quantity difference between object detection and background reflection is enlarged, a sufficient safety difference between the action level and the judgment threshold is ensured, and light quantity calibration of background suppression is realized.
Example 3
This embodiment provides a photodetection system, since the principle of solving the problem of this system is similar to the method of embodiment 1, and the description of the same contents as embodiment 1 will not be repeated.
Fig. 15 is a schematic diagram of a photodetection system 1500 of the present embodiment, and as shown in fig. 15, the photodetection system 1500 includes: a sensor 1501, a controller 1502, a light projection control circuit 1503, a light reception gain control circuit 1504, and an output display circuit 1505.
In this embodiment, the sensor 1501 is used for projecting the emitting light to the target object to be detected and receiving the reflected light from the target object to be detected, and may include a light projector and a light receiver, and may further include other conventional components, which will not be described herein again.
In the present embodiment, the controller 1502 is configured to control the light projecting control circuit 1503 to adjust the light quantity of the emitted light according to the light quantity of the reflected light, control the light projecting control circuit 1503 to adjust the light quantity of the emitted light according to a preset light quantity target value, and/or control the light receiving gain control circuit 1504 to adjust the light receiving gain of the light quantity of the reflected light. Specifically, the controller 1502 may implement the functions of the first adjusting unit 1101, the second adjusting unit 1102, the display unit 1103, the second determining unit 1104, the first detecting unit 1201, the determining unit 1301, the second detecting unit 1304, the third detecting unit 1305, and the first determining unit 1401 of embodiment 2, which are incorporated herein and will not be described again.
In the present embodiment, the light projection control circuit 1503 is used to adjust the light amount of emitted light in accordance with control by the controller 1502. The light receiving gain control circuit 1504 adjusts the light receiving gain of the light amount of the reflected light according to the control of the controller 1502; the light receiving gain control circuit 1504 may be one-stage or multi-stage, that is, multi-stage gain control may be implemented. The output display circuit 1505 outputs an electric signal corresponding to a target value of the display light amount.
It should be noted that the above description only describes the components or modules related to the present invention, but the present invention is not limited thereto. The system 1500 may also include other components or modules, the specifics of which may be referred to in the relevant art.
By the device of the embodiment, the light quantity difference between the object detection and the background reflection is enlarged, a sufficient safety difference between the action level and the judgment threshold value is ensured, and the light quantity calibration of background suppression is realized.
Embodiments of the present invention further provide a computer-readable program, where when the program is executed in a photodetection system, the program causes the photodetection system to execute the method described in embodiment 1.
The embodiment of the present invention further provides a storage medium storing a computer readable program, where the computer readable program enables a photodetection system to execute the method described in embodiment 1.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method described in embodiment 1.
The apparatus and method of the embodiments of the present invention may be implemented by hardware, or may be implemented by hardware in combination with software. Embodiments of the present invention relate to a computer-readable program that, when executed by a logic unit, enables the logic unit to implement the above-described devices or constituent components, or to implement various methods or steps described above. The embodiment of the invention also relates to a storage medium for storing the program, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory and the like.
The methods/apparatus described in connection with the embodiments of the invention may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams (e.g., transmitting modules and receiving modules, etc.) shown in fig. 11 may correspond to respective software modules of a computer program flow or may correspond to respective hardware modules. These software modules may correspond to the steps shown in fig. 7, respectively. These hardware modules may be implemented, for example, by solidifying these software modules using a Field Programmable Gate Array (FPGA).
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The software module may be stored in the memory of the device or in a memory card that is insertable into the device. For example, if the apparatus employs a relatively large capacity MEGA-SIM card or a large capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large capacity flash memory device.
One or more of the functional blocks and/or one or more combinations of the functional blocks described in the figures can be implemented as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof designed to perform the functions described in connection with the embodiments of the invention. One or more of the functional blocks and/or one or more combinations of the functional blocks described in connection with the figures may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP communication, or any other such configuration.
While the invention has been described with reference to specific embodiments, it will be apparent to those skilled in the art that these descriptions are illustrative and not intended to limit the scope of the invention. Various modifications and alterations of this invention will become apparent to those skilled in the art based upon the spirit and principles of this invention, and such modifications and alterations are also within the scope of this invention.
Claims (8)
1. A light quantity calibration apparatus, wherein the apparatus comprises:
a first adjustment unit that adjusts the amount of light to be projected according to the amount of reflected light from a target detection object, the amount of reflected light being used to detect the presence or absence of the target detection object;
a second judgment unit that judges whether or not the light amount target value is calibrated;
a second light receiving gain control circuit that adjusts a light receiving gain according to the light amount of the reflected light from the target detection object when the second determination unit determines that the light receiving gain is not the predetermined value;
a second adjusting unit that adjusts the light projecting amount and/or the light receiving gain of the light amount of the reflected light from the target detection object based on a preset light amount target value when the second judging unit judges yes;
a display unit that displays a signal corresponding to the light amount target value,
the second adjusting unit includes:
a determination unit that determines a light amount difference from a light amount target value set in advance;
a second light projection control circuit that adjusts the light projection amount based on the light amount of the reflected light from the background and the light amount of the reflected light from the target detection object when the light amount difference is not within a reasonable range;
and a first light receiving gain control circuit that adjusts a light receiving gain according to the light amount of the reflected light from the target detection object when the light amount difference is within a reasonable range or not within the reasonable range.
2. The apparatus of claim 1, wherein the first adjusting unit comprises:
a first detection unit that detects the amount of light of a target detection object and obtains the amount of light reflected from the target detection object as a received light amount;
a first light projection control circuit that increases the amount of light projected when the amount of received light is less than a first threshold value; and when the light receiving quantity is larger than a second threshold value, the light projection quantity is attenuated.
3. The apparatus of claim 1, wherein the second adjusting unit further comprises:
a second detection unit for detecting the light quantity of the target detection object and obtaining the light quantity of the reflected light from the target detection object as the light receiving quantity;
the first light receiving gain control circuit increases the light receiving gain when the light receiving amount is smaller than a third threshold; and reducing a light receiving gain when the light receiving amount is larger than a fourth threshold value.
4. The apparatus of claim 1, wherein the second adjusting unit further comprises:
a third detection unit that detects the light quantities of the background and the target detection object to obtain the light quantity of the reflected light from the background and the light quantity of the reflected light from the target detection object;
the second light projection control circuit attenuates the amount of light projection when the amount of light reflected from the background is greater than or equal to the amount of light reflected from the target detection object; when the light quantity of the reflected light from the background is smaller than the light quantity of the reflected light from the target detection object, the light projection quantity is increased.
5. The apparatus of claim 1, wherein the display unit comprises:
a first judgment unit that judges whether or not display is saturated;
an output and display circuit which increases a display scale when the display is not saturated; when the display is too saturated, the display scale is reduced.
6. A method for calibrating a quantity of light, wherein the method comprises:
adjusting the light projection amount according to the light quantity of the reflected light from the target detection object, wherein the light quantity of the reflected light is used for detecting whether the target detection object exists or not;
judging whether the target value of the light quantity is calibrated or not;
if the judgment result is negative, adjusting the light receiving gain according to the light quantity of the reflected light from the target detection object;
if the judgment result is yes, adjusting the light projecting amount and/or the light receiving gain of the light amount of the reflected light from the target detection object according to a preset light amount target value;
displaying a signal corresponding to the target value of the light quantity,
the adjusting of the light projecting amount and/or the light receiving gain of the light amount of the reflected light from the target detection object based on a preset light amount target value includes:
determining a light quantity difference according to a preset light quantity target value;
when the light quantity difference is not in a reasonable range, adjusting the light projection quantity according to the light quantity of the reflected light from the background and the light quantity of the reflected light from the target detection object;
and adjusting a light receiving gain according to the light quantity of the reflected light from the target detection object when the light quantity difference is within a reasonable range or not within the reasonable range.
7. A photodetecting system, wherein the system comprises:
a sensor that projects a reflected light toward a target detection object and receives a reflected light from the target detection object, the reflected light having a light amount for detecting whether the target detection object exists;
a controller for determining whether or not a target light amount value is specified, controlling the light projection control circuit to adjust the light amount of the emitted light based on the light amount of the reflected light if the determination result is negative, controlling the light projection control circuit to adjust the light amount of the emitted light based on a preset target light amount value and/or controlling the light reception gain control circuit to adjust the light reception gain of the light amount of the reflected light if the determination result is positive;
a light projection control circuit for adjusting the light quantity of the emitted light according to the control of the controller;
a light receiving gain control circuit that adjusts a light receiving gain of the light amount of the reflected light according to control by the controller;
an output display circuit that outputs a signal corresponding to the target value of the amount of light to be displayed,
the controller determines a light amount difference based on a preset light amount target value, controls the light projection control circuit to adjust the light projection amount based on the light amount of the reflected light from the background and the light amount of the reflected light from the target detection object when the light amount difference is not within a reasonable range, and controls the light reception gain control circuit to adjust the light reception gain based on the light amount of the reflected light from the target detection object when the light amount difference is within the reasonable range or not within the reasonable range.
8. The system of claim 7, wherein the photoreceiving gain control circuit is one or more stages.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810251572.5A CN110361041B (en) | 2018-03-26 | 2018-03-26 | Light quantity calibration method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810251572.5A CN110361041B (en) | 2018-03-26 | 2018-03-26 | Light quantity calibration method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110361041A CN110361041A (en) | 2019-10-22 |
CN110361041B true CN110361041B (en) | 2023-03-07 |
Family
ID=68212227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810251572.5A Active CN110361041B (en) | 2018-03-26 | 2018-03-26 | Light quantity calibration method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110361041B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001050710A (en) * | 1999-08-11 | 2001-02-23 | Toyo Commun Equip Co Ltd | Method of adjusting light reflection sensor in device for detecting passage of object |
JP2001165866A (en) * | 1999-12-14 | 2001-06-22 | Nkk Corp | Surface inspection device |
CN1495413A (en) * | 2002-09-11 | 2004-05-12 | ŷķ����ʽ���� | Photoelectric sensor and its adjusting method |
CN1652145A (en) * | 2004-01-28 | 2005-08-10 | 安捷伦科技有限公司 | Regulating a light source in an optical navigation device |
CN104865611A (en) * | 2014-02-23 | 2015-08-26 | 欧姆龙株式会社 | Photoelectric sensor |
CN104865575A (en) * | 2014-02-23 | 2015-08-26 | 欧姆龙株式会社 | Photoelectric sensor |
CN105006142A (en) * | 2015-07-04 | 2015-10-28 | 潍坊医学院 | Reflective infrared photoelectric sensor and program-controlled duty ratio distance-adjusting method of sensor |
-
2018
- 2018-03-26 CN CN201810251572.5A patent/CN110361041B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001050710A (en) * | 1999-08-11 | 2001-02-23 | Toyo Commun Equip Co Ltd | Method of adjusting light reflection sensor in device for detecting passage of object |
JP2001165866A (en) * | 1999-12-14 | 2001-06-22 | Nkk Corp | Surface inspection device |
CN1495413A (en) * | 2002-09-11 | 2004-05-12 | ŷķ����ʽ���� | Photoelectric sensor and its adjusting method |
CN1652145A (en) * | 2004-01-28 | 2005-08-10 | 安捷伦科技有限公司 | Regulating a light source in an optical navigation device |
CN104865611A (en) * | 2014-02-23 | 2015-08-26 | 欧姆龙株式会社 | Photoelectric sensor |
CN104865575A (en) * | 2014-02-23 | 2015-08-26 | 欧姆龙株式会社 | Photoelectric sensor |
CN105006142A (en) * | 2015-07-04 | 2015-10-28 | 潍坊医学院 | Reflective infrared photoelectric sensor and program-controlled duty ratio distance-adjusting method of sensor |
Also Published As
Publication number | Publication date |
---|---|
CN110361041A (en) | 2019-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108427109B (en) | Device for determining a distance to an object and corresponding method | |
EP0441323A1 (en) | Drip detecting device | |
TW201539010A (en) | Calibration method of proximity sensor and calibration system thereof | |
KR102113668B1 (en) | Power control method, distance measuring module and electronic device | |
CN105577932B (en) | A kind of screen luminance adjustment method and mobile terminal | |
TW202004217A (en) | Time of flight range finder for a structured light system | |
US10001562B2 (en) | Distance-settable photoelectric sensor | |
EP0957375A2 (en) | Lightwave distance measuring apparatus and method | |
CN113253244B (en) | TWS earphone distance sensor calibration method, TWS earphone distance sensor calibration device and storage medium | |
KR102321110B1 (en) | Photographing device and method for controlling the same | |
US20200204853A1 (en) | Method for controlling a display parameter of a mobile device and computer program product | |
US10094786B2 (en) | Optical distance sensor | |
JP7226000B2 (en) | LASER RADAR DEVICE AND CONTROL PROGRAM FOR THE LASER RADAR DEVICE | |
CN110361041B (en) | Light quantity calibration method, device and system | |
JP2009085679A (en) | Edge detector | |
CN115735132A (en) | Window and mirror presence detection system and corresponding method | |
JP5980111B2 (en) | Photoelectric sensor | |
US20160126913A1 (en) | Noise-based gain adjustment and amplitude estimation system | |
CN110132326A (en) | MSM type detector and its bias voltage method of adjustment and device | |
US20230057540A1 (en) | Photoelectric sensor and threshold setting method | |
US9454242B2 (en) | Optical displacement detection apparatus and optical displacement detection method thereof | |
CN113614566A (en) | Distance measurement method, distance measurement device, and program | |
US20220342052A1 (en) | Optical sensor, electronic device, distance calculation method, and storage medium of program | |
US20240201345A1 (en) | Proximity detection with auto calibration | |
CN109931907B (en) | Distance setting type photoelectric sensor |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |