OPTOELECTRONIC SENSOR AND METHOD OF A REPEATED OPTICAL DETECTION OF OBJECTS AT DIFFERENT OBJECT DISTANCES
20200005006 · 2020-01-02
Inventors
Cpc classification
G06K7/10435
PHYSICS
G06K7/10792
PHYSICS
G06K7/10544
PHYSICS
International classification
Abstract
An optoelectronic sensor is provided for a repeated detection of objects at different object distances, having a light receiver for generating a received signal from received light, having an evaluation unit for generating object information from the received signal, and having a distance sensor for determining the object distance from a respective object. The evaluation unit is here configured to acquire a measurement variable from the received signal with respect to an object, to associate the measurement variable with the object distance measured for the object, and to form a first distribution of the measurement variable via the object distance after detecting a plurality of objects.
Claims
1. An optoelectronic sensor for a repeated detection of objects at different object distances, the optoelectronic sensor comprising: a light receiver for generating a received signal from received light, an evaluation unit for generating object information from the received signal, and a distance sensor for determining the object distance from a respective object, wherein the evaluation unit acquires a measurement variable from the received signal with respect to an object, associates the measurement variable with the object distance measured for the object, and forms a first distribution of the measurement variable via the object distance after detecting a plurality of objects.
2. The optoelectronic sensor in accordance with claim 1 that is a camera.
3. The optoelectronic sensor in accordance with claim 1, wherein the evaluation unit is configured to form a second distribution of the object distances.
4. The optoelectronic sensor in accordance with claim 1, wherein the evaluation unit forms a distribution of the object distances as the first distribution and forms a distribution of the object distances in another time section as the second distribution.
5. The optoelectronic sensor in accordance with claim 3, wherein the evaluation unit compares the first distribution and the second distribution and afterward carries out or proposes changes of the optoelectronic sensor to improve the coincidence of the distributions.
6. The optoelectronic sensor in accordance with claim 5, wherein the change is an optical readjustment.
7. The optoelectronic sensor in accordance with claim 6, wherein the change is an optical readjustment of a focal position.
8. The optoelectronic sensor in accordance with claim 5, wherein the change is an adaptation of the illumination intensity.
9. The optoelectronic sensor in accordance with claim 1, wherein the evaluation unit forms a probability distribution as the first distribution in that it determines as the measurement variable a respective probability that a value derived from the received signal is in a fixed region.
10. The optoelectronic sensor in accordance with claim 1, wherein the evaluation unit associates the measurement variable from the first distribution at this object distance as the expected measurement variable with an object with reference to the object distance measured for the object.
11. The optoelectronic sensor in accordance with claim 1, wherein the evaluation unit compares the expected measurement variable with the measurement variable actually determined for the object from the received signal.
12. The optoelectronic sensor in accordance with claim 1, wherein the measurement variable is a measure of contrast.
13. The optoelectronic sensor in accordance with claim 1, wherein the measurement variable is a measure of intensity.
14. The optoelectronic sensor in accordance with claim 1, wherein the optoelectronic sensor is a code reader whose evaluation unit reads a piece of code information of an optical code from the received signal.
15. The optoelectronic sensor in accordance with claim 14, wherein the measurement variable is an evaluation of success for the reading of a code.
16. The optoelectronic sensor in accordance with claim 14, wherein the measurement variable has a code property.
17. A method for the repeated optical detection of objects at different object distances at which a received signal is generated from received light and is evaluated to acquire a piece of object information, and wherein an object distance from a respective object is additionally determined, wherein a measurement variable is acquired from the received signal with respect to an object, the measurement variable is associated with the object distance measured for the object, and a first distribution of the measurement variable is formed via the object distance after detecting a plurality of objects.
Description
[0027] The invention will be explained in more detail in the following also with respect to further features and advantages by way of example with reference to embodiments and to the enclosed drawing. The Figures of the drawing show in:
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037] A distance sensor 24 is provided in addition to the actual detection system having the light receiver 18. In this embodiment it is an autonomous, compact time of flight sensor having a light source 24a, a second light receiver 24b, and a distance measuring unit 24c. In a pulse-based time of light process, the light source 24a transmits light pulses that are received again by the second light receiver 24b after reflection at the object in the detection zone 12 and the distance measuring unit 24c determines the time of flight between the transmission and the reception of the light pulse. Alternatively, in a phase process, an amplitude modulated light signal is transmitted and its phase shift on reception is determined. In other embodiments, the light receiver 18 and the evaluation unit 20 also take over the distance measurement or assist it in addition to the acquisition of object information, in particular in that the light receiver 18 also acts as a second light receiver 24b or in that the evaluation unit 20 also takes over the time of flight evaluation of the distance measuring unit 24c.
[0038] The sensor 10 is preferably a camera in which the light receiver 18 is configured as a linear or a matrix-like image sensor. The camera is in particular configured as a code reader in that the evaluation unit 20 is able to identify a code region in the recorded images and to read the information encoded there. However, a barcode scanner is also a possible embodiment of the sensor 10 instead of such a camera based code reader. Other, non-exclusive examples for the sensor 10 are switching systems such as background-masking sensors that react to objects having specific properties as well as color sensors or contrast sensors. In addition, further elements of the sensor 10 are possible such as a separate lighting, not shown.
[0039]
[0040] The sensor 10 detects object information as the primary goal of the application via the light receiver 18 and the evaluation of its received signals. In the example of a code reader, this is primarily the code content; in other cases, a completely different piece of object information can be sought such as color properties, brightness properties, geometry properties, positional properties, or other optically detectable properties. In addition, a measurement variable is determined from the received signal that only exceptionally corresponds to the object information and that in most cases is an auxiliary value such as a contrast, a mean gray value, the module size or pixel size of a code 32, or whether the code 32 could be read (Good read/No read). In addition, an object distance is determined by the distance sensor 24 for the respective object 28 whose object information is detected.
[0041] This is repeated over a selectable time period or a selectable plurality of detected objects 28 is repeated and a recognition is made by a statistical evaluation whether the sensor 10 can be optimized by a change of its settings or of its alignment. The recognition of a deterioration and a remedy o the cause such as a readjustment, a cleaning, or in extreme cases a unit replacement is in this connection also understood as an optimization. The statistical detection, the evaluation, and the conclusions drawn therefrom for an optimization will now be explained for embodiments.
[0042]
[0043] The measurement variable observed by way of example here is the binary evaluation of success GR (Good read) that adopts the value one exactly when a code 32 can be read. This evaluation of success is equally also conventionally detected as its counterpart no read, but always only for a specific object 28. Only the reading rate has previously been detected over a plurality of objects 28, that is that a specific percentage of codes 32 could be read, which admittedly describes the performance capability well, but does not permit any error analysis.
[0044] In the example of
[0045] GR actually depends on a plurality of conditions. In addition to the shown depth of field 36 that above all plays a role with fixed focus devices since an autofocus individually adapts the depth of field to each object 28, they include a non-adapted illumination with an overexposure and an underexposure, a pixel size of the detected code 32 dependent on the distance and also a large number of conditions that cannot be influenced by the sensor 10 such as the code quality, the alignment of the code 32, and the planarity of the ground, possible damage or concealing, in particular due to a shiny film.
[0046] It is nevertheless assumed for reasons of simplification for the example of
[0047] The conditional probability now amounts to p(GR|A)=1 for the near object 28a at the distance A in the lower part of
[0048]
[0049] As can be easily recognized, the sensor 10 is not optimized in this example. For this purpose, the two distributions 38, 40 would have to exactly overlap in the ideal case so that the best performance capability is achieved for the most frequently occurring cases. The sensor 10 can signal the optimization potential or, where accessible, even change its settings to utilize it to the full. For example, an iterative optimization is carried out using the product 42 or a maximum or a focus of the distributions 38, 40 is determined and brought into agreement.
[0050] In the specific example, the measurement variable is the binary evaluation of success GR or its conditional probability p(GR|d) and the parameter of the depth of field range 36 to be changed and thus the focal position of the reception optics 16 or, alternatively, of a transmission optics. The conclusion the evaluation unit 20 draws from the distributions 38, 40 is a desired distribution of the focal position by a specific distance. This displacement is indicated for a fixed focus device. It is also possible that the sensor 10 can translate the conversion of a displacement d of the focal position into a specific actuation instruction such as 0.2 revolutions to the left. This depends on the lens model and optionally on further models such as the exposure/distance model and on the adjustment mechanism of the reception optics 26 and is therefore preferably stored as a table.
[0051] An optimization of the focus setting is recognized and proposed in this manner. There are a large number of reasons why there is a need for optimization, either an insufficient adjustment on the setting up, a change of the objects 28 that now have a different distance distribution, a sudden change due to an incorrect behavior of employees, or environmental fluctuations such as seasonable temperature differences and damage to or aging of sensor components.
[0052] The recognition of an optimization requirement from additionally measured object distances and an association of a measurement variable with these object distances has previously been described very specifically with reference to the measurement variable GR or to its conditional probability p(GR|d) and to an adaptation of the focal position. The statistical evaluation using distance-dependent distributions, in particular as in
[0053]
[0054] As in the upper part of
[0055] The measure of intensity can also be looked at itself instead of a conditional probability. This is shown in the lower part of
[0056]
[0057] The ideal illumination parameters for an application that does not permit any dynamic changes can now be determined in the two examples. Wear and contamination phenomena of the illumination, of the light receiver 18, of the reception optics 16, and the like can also be compensated in this manner.
[0058]
[0059] Analog to the procedure explained up to this point, a distribution of the conditional probability is formed of the distance at which specific code properties are present. It is now conceivable, on the one hand, to adapt the sensor 10 in general as much as possible to these code properties, in the same manner as previously for optics properties and illumination properties. It is, however, also possible to read the probable code properties from the distribution with respect to the measured distance of the currently detected objects 28. This is at the same time a reversal of the previous procedure in that the already formed distribution is used for a prediction with reference to a single measured object distance. In the simple example of
[0060] An assumption of the code properties of the code 23 just to be read can at least be seen from the distribution since the distribution includes the information that an object 28 having a specific height probably has a code 32 having the code properties also previously occurring most frequently. This information permits a substantially faster decoding for the software decoder that first seeks the code 32 in a specific region of interest (ROI) and attempts a reading attempt for a specific code type having a specific module size. If this fails, further reading attempts can follow without these assumptions.
[0061] In a further embodiment without a separate illustration, distributions of the object distances are formed from different time intervals and are compared with one another. If a significant difference occurs on this time comparison, the alignment of the sensor 10 has possibly been changed by a blow, for instance, and the sensor 10 indicates that the alignment should be checked. Subsequently, as described above with respect to
[0062] In a further embodiment, the sensor 10 outputs feedback on expected object properties, in particular a code quality. The contrast or an evaluation of success of the reading procedure are particularly suitable as measurement variables for this purpose. In a similar manner to the example of
[0063] More specifically, in particular two cases can occur. In the first case, the code 32 is not sufficiently printed and has too little contrast. Since all the codes 32 are normally read at this distance, it is probable that the code 32 itself is the reason why the code content could not be read. If in addition the contrast differs significantly from its normal value, a lack of contrast and thus a poor print quality is probably the real reason. In the second case, a reading error (No read) likewise occurs even though codes 32 can normally be read at this distance. At the same time, however, the contrast is in the expected range and it is therefore probable that the code 32 is damaged.
[0064] Finally, the measurement variables described by way of example and the sensor settings to be optimized should be compiled again in a clear manner.
TABLE-US-00001 Measurement variable Change/Sensor setting/Feedback Contrast, Reading rate, Focal position; Predictive maintenance even Good read, No read, before signs of failure whether the reception Image sharpness optics or other optical elements have changed over time. Middle gray value, Setting for the ideal illumination with time-critical maximum gray value, applications that do not permit dynamics; minimal gray value, Predictive maintenance whether the illumination other gray values; intensity has decreased over time General measure of intensity Code size, code type, Information for the decoder for faster decoding code position, module size Object distance, height Installation change of the camera with a distribution of the significant change over time (such as a blow objects against the sensor) Contrast, Reading rate, Quality of the code with error analysis Good read, No read, Image sharpness
[0065] This compilation is, however, not exclusive. Despite the exemplary observations, further measurement variables that an optoelectronic sensor 10 can detect, optimizations of possible settings of a sensor 10, and also combinations of measurement variables and optimizations beyond embodiments are conceivable. In addition, the invention is not restricted to specific probability distributions even though an equal distribution or a Gaussian distribution was used as an example at times.