The invention relates to an optical sensor.
Optical sensors of the type discussed herein are used in particular for the parallel detection of several objects. One example for this is the detection of a number of objects, conveyed in several tracks on a conveyor belt. For the simultaneous detection of these objects, the number of conveying tracks typically corresponds to the number of optical sensors which can be used to detect respectively one object at certain points, meaning locally on one track. Optical sensors of this type can be embodied as light scanners which respectively comprise a transmitter for emitting a light ray having an essentially point-shaped cross section. To be sure, the individual sensors can be produced easily and cost-effectively. However, the costs increase rather quickly if a plurality of individual sensors is required. A further disadvantage is that if the respective application is changed, all individual sensors must be adjusted and parameterized again, which results in considerable time expenditure.
European patent document EP 0 892 280 B1 discloses an active light source and a light-receiving unit in the form of a line-type or matrix-type CCD array. The light receiving unit is divided into several receiving zones which respectively correspond to an object zone in a monitored area. Contrast differences are detected in each receiving zone for the object detection.
It is an object of the present invention to provide an optical sensor with expanded function.
The above and other objects are accomplished according to the invention wherein there is provided, in one embodiment, an optical sensor for use with a transmitting unit that emits light rays projected as a light line onto an object structure to be detected, comprising; a receiver including a matrix of receiving elements, wherein the light line is imaged on the receiving elements to generate signals; and an evaluation unit coupled to receive the signals from the receiving elements to evaluate the signals by a triangulation principle to generate a distance profile, wherein the evaluation unit generates at least one evaluation window which encompasses a local range extending in a direction along the light line and a number of object points representing outputs of the respective receiving element that correspond to respective distances extending in a second direction, and wherein the evaluation unit generates a binary state information as a function of the number object points that fall within the evaluation window.
As a result of the line shape of the light rays emitted by the transmitter, an extended area can be monitored with the optical sensor according to the invention, wherein it is advantageous that no movable parts are required for deflecting the light rays. Instead, the transmitter generates a constant light line on an object structure to be examined. Several objects can thus be detected simultaneously with the aid of the sensor according to the invention.
Distance information relating to objects to be detected may be obtained with the aid of a distance measurement realized with the triangulation principle. As a result, it is possible to detect objects spatially resolved, wherein contour information of objects in particular can be obtained.
As a result of defining one or more evaluation windows, as disclosed for the invention, different objects or object structures can purposely be acquired in these windows. The evaluation windows here represent specific segments of the monitoring area, wherein each evaluation window furthermore covers a defined distance range. By specifying this distance range, the spatial resolution during the object acquisition can be specified purposely in the respective evaluation window, thus making it possible, for example, to acquire objects purposely in front of background structures.
By generating a binary state information for each evaluation window, a statement is obtained for each evaluation window, indicating whether or not an expected object structure or an expected object is detected. On the one hand, this evaluation results in a secure and precise detection of an object. On the other hand, the generating of the binary state information from a plurality of object points results in a data reduction, so that the evaluation requires only a low amount of computing time.
According to an embodiment, the evaluation of the object points in an evaluation window is limited to a pure counting operation which can be carried out easily and quickly.
For the evaluation of object points within an evaluation window, the binary state information may assume a first state “1” whenever the number of object points within the evaluation window is higher than a switch-on number and the binary state information may assume a second state “0” if the number of object points within the evaluation window is lower than a switch-off number.
The switch-on number and the switch-off number in this case represent adjustable parameters. By selecting these parameters, it is easy to realize an application-specific adaptation of the evaluation of the object points within an evaluation window With a suitable selection of the switch-on number and the switch-off number, so that the switch-on number is higher than the switch-off number, a switching hysteresis can be generated during the switching between the states “0” and “1,” thereby resulting in a secure switching behavior between the states.
According to an embodiment, the number of positions and the dimensioning of the evaluation windows can be parameterized.
By specifying the evaluation windows, the optical sensor can thus be adapted easily and quickly to different applications. The number of object points within an evaluation window can furthermore be specified by suitably dimensioning the evaluation windows. An improvement in the detection sensitivity is thus obtained since the adjustment may result in an increased tolerance toward mirror-reflections, shadings, or contrast errors. This parameterization is usefully realized with the aid of a learning mode, prior to the operation of the optical sensor.
According to another embodiment, a follow-up of the positions of the evaluation windows can take place, in particular with respect to a specific reference position, so that the parameters of the optical sensor can be adapted to changing boundary conditions, even during the operation.
In the simplest case, the binary state information from the evaluation windows takes the form of output variables.
Alternatively, a logical linking of binary state information from individual evaluation windows for generating output variables can also be realized in the evaluation unit.
Detailed statements relating to complex object structures can thus be provided when generating output variables in this way. Different individual structures of objects can be assigned to individual evaluation windows, wherein precise information relating to individual structures can be obtained quickly and easily as a result of the evaluation in the individual evaluation windows. The information concerning the total structure can then be inferred quickly and easily, based on the logical linking of the binary state information from the evaluation windows.
In the simplest case, the evaluation of object points within an evaluation window is realized in such a way that the number of object points within the evaluation window is selected independent of their relative positions.
Alternatively, only successively following object points within an evaluation window are evaluated for determining the contours of objects. Thus, only contours of objects are purposely viewed when using this additional limitation for the evaluation within one evaluation window.
Binary state information for the individual evaluation windows and thus for the corresponding output variables can in principle be generated immediately for both variants, for each measurement realized with the optical sensor, meaning the images recorded in the receiver.
Several successively following measurements can also be used with a different alternative for generating binary state information for an evaluation window.
To be sure, using several measurements for generating binary state information and output variables will reduce the switching frequency of the optical transmitter, meaning its reaction time. However, this also increases the detection security of the optical sensor.
In general, measuring value fluctuations within at least one evaluation window can be detected and, depending thereon, an error message or a warning message can be generated.
The error and warning messages generated in this way indicate at what point the individual output variables from the optical sensor no longer have the required reliability.
The evaluation of the optical sensor in principle can be expanded to include not only distance information, but also object contrast information. For this, reflectance values for the individual object points are determined as additional information by evaluating the amplitude of the signals received at the receiving elements.
In an embodiment, the exposure to light that is realized with the transmitter may be controlled or regulated only in dependence on the signals received at the receiving elements and located within the evaluation window or windows.
The adaptation of the exposure thus always purposely occurs in dependence on the imaging components of the optical sensor which are selected by the evaluation window and are of interest to the object detection.
The invention is explained in the following with the aid of the drawings, which show in:
The optical sensor 1 comprises a transmitting unit with a transmitter 3 for emitting light rays 2 and a downstream-arranged transmitting optics 4. The transmitter 3 for the present case may be a laser and in particular a laser diode. The laser emits a bundled laser beam with an approximately circular beam cross section. The transmitting optics 4, which are embodied as expansion optics, functions to generate the light rays 2 that sweep the area to be monitored. With the aid of the transmitting optics 4, the laser beam is reshaped into light rays 2 with a line-shaped cross section, so that a light line 5 is generated on the surface of an object structure to be detected.
Several objects can be detected simultaneously with a light line 5 embodied in this way. For the embodiment shown in
The optical sensor 1 furthermore comprises a receiver 8 with spatial resolution and a matrix-type array of receiving elements, meaning an arrangement divided into lines and columns. The receiver 8 may be composed of a CMOS or a CCD array. The receiver 8 is furthermore assigned receiving optics 9 which image the light rays 2, reflected back by object structures, on the receiver 8.
The receiver 8 is arranged at a distance to the transmitter 3. In addition, the optical axis A of the receiver 8 is inclined at an angle, relative to the beam axis for the laser beam which extends the z direction. In
The optical sensor 1, for which the components are integrated into a housing that is not shown herein is furthermore provided with an evaluation unit, also not shown herein, in the form of a microprocessor or the like. The evaluation unit functions on the one hand to trigger the transmitter 3 and, on the other hand, to evaluate the signals received at the receiving elements of the receiver 8.
Distance profiles of object structures can be determined with the optical sensor 1 embodied in this way. This is illustrated with the aid of
Four different evaluation windows 12a-12d are defined in the evaluation unit of the optical sensor 1 for the selective detection of the objects 6a-6d on the conveying belt 7, as shown in
For the detection of an object 6a-6d, the number of object points in the associated evaluation window 12a-12d are counted, meaning the number of measuring values 11a-11d which fall within in the evaluation window 12a-12d. An object point of this type is an output signal from a receiving element of the receiver 8 which is located within the evaluation windows 12a-12d following the conversion to z-x coordinates, with respect to the position and distance value. This number is compared to a switch-on number and a switch-off number, thereby generating binary state information. If the number of object points is higher than the switch-on number, the binary state information assumes the state “1” which corresponds in the present case to the “object detected” state. If the number of object points is lower than the switch-off number, the binary state information assumes the state “0” which in the present case corresponds to the “object not detected” state. A switching hysteresis is usefully defined by selecting the switch-on number to be higher than the switch-off number. For example, if the binary state information is in the state “1,” it does not immediately change to the state “0” if the number of object points drops below the switch-on number. Rather, the number of object points must drop below the switch-off number for this to occur. The same is true for the reverse change in the state.
For the situation illustrated in
The optical sensor 1 according to the invention can be adapted quickly and easily to changing application conditions.
The adaptation to the changed application is realized through a change in the positions and dimensions of the evaluation windows 12a-12e and, if applicable, the respective switch-on number and/or the switch-off number for the evaluation windows 12a-12e.
As can be seen in
A container 13 is considered detected if in both evaluation windows 12.1 and 12.3 the number of object points is respectively higher than the switch-on number, meaning if the logic link requirement is met that the binary state information of the evaluation window 12.1 and also the binary state information for the evaluation window 12.3 is in the state “1” which means “object detected.” In that case, the output variable “container detected” is generated.
The output variable “container full” is furthermore generated if the evaluation window 12.2 is in the state “1,” meaning “object detected.”
The evaluation can be improved further if additional evaluation windows 12.4 and 12.5 are defined for the regions 14a, 14b that are shaded by the container 13.
In that case, it is necessary that following an AND operation, the binary state information=“1” is present for the evaluation windows 12.1 and 12.3 and that the binary state information=“0” is present for the evaluation windows 12.4 and 12.5.
The evaluation can furthermore be expanded by introducing an evaluation window 12.6 for checking the container bottom. This evaluation window 12.6 can also be used to determine the existence of the container 13, wherein it allows checking whether the container 13 is empty. That is the case if the binary state information=“1” for the evaluation window 12.6.
Finally, the evaluation windows 12.7, 12.8 can be used to check whether the support for positioning the container 13, for example a conveying belt 15, is in the desired position. That is the case if the binary state information=“1” is respectively obtained for the evaluation windows 12.7 and 12.8. If the height position for the support changes, not enough object points are located in the evaluation windows 12.7, 12.8 and the binary state information=“0” is respectively obtained for the evaluation windows 12.7 and 12.8. The optical sensor 1 in that case advantageously generates a control signal for the follow-up of the other evaluation windows 12.1 to 12.6, so as to adapt their positions to the changed height of the support.
Number | Date | Country | Kind |
---|---|---|---|
09 012 302.7 | Sep 2009 | EP | regional |
This application is a U.S. National Stage application of International Application No. PCT/EP2009 filed Sep. 29, 2010, designating the United States and claiming priority to European Patent Application EP 09 012 302.7 filed Sep. 29, 2009,
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP2010/005005 | 8/14/2010 | WO | 00 | 3/22/2012 |