Camera and object detection method

The camera system dynamically compensates for angle-dependent PRNU by adjusting amplification and using correction tables, addressing image degradation from changing light angles, resulting in improved image quality and color fidelity.

JP7547535B2Active Publication Date: 2024-09-09SICK AG
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
JP2023044394
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-04-29
Filing Date
2023-03-20
Publication Date
2024-09-09
Estimated Expiration
2043-03-20

AI Technical Summary

Technical Problem

Existing camera systems fail to adequately compensate for changes in the angle of incidence of light during dynamic focusing, leading to image degradation and reduced image quality, especially in systems using deflection mirrors.

Method used

A camera system with a control and evaluation unit that dynamically compensates for angle-dependent PRNU by adjusting the amplification factor and using correction tables or formulas based on the current angle of incidence, allowing for improved image quality and color reproduction.

Benefits of technology

The solution enhances image reproducibility and accuracy, particularly in systems with dynamic focusing, by effectively mitigating the effects of changing light angles, ensuring high-resolution grayscale and color images with improved feature extraction capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547535000001
    Figure 0007547535000001
  • Figure 0007547535000002
    Figure 0007547535000002
  • Figure 0007547535000004
    Figure 0007547535000004
Patent Text Reader

Abstract

To provide a camera which dynamically compensates for influence of focus adjustment to an incident angle of received light.SOLUTION: A camera 10 for detecting an object in a detection zone 14 is the camera-based code reader or industrial camera for quality management or specific feature automatic detection, and includes an image sensor 18 having a plurality of light reception elements for the generation of image data from received light 12 from the detection zone 14, a reception optics 16 having a focus adjustment unit 20 for adjusting a focal position, with an angle of incidence of the received light 12 on the image sensor 18 changing on a change of the focal position, and a control and evaluation unit 26 that is configured to adjust the focal position for a sharp imaging of image data of the object. A sensitivity change of the capturing of the image data caused by the respective angle of incidence of the received light 12 is compensated by the control and evaluation unit.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The invention relates to a camera and a method for detecting an object in a detection area according to the preamble of claim 1 or 15. [Background technology]

[0002] Cameras are used in various ways in industrial applications to automatically capture the properties of objects, for example for the purpose of inspecting or measuring them. In this case, an image of the object is taken and evaluated by image processing depending on the task. Another application of cameras is code reading: an object with a code on its surface is photographed with the help of an image sensor, and the code area is identified in the image and decoded. In addition to one-dimensional barcodes, camera-based code readers can also easily process code types that are two-dimensional and contain more information, such as matrix codes. Automatic text recognition (OCR, Optical Character Recognition) of printed addresses or handwritten documents is also code reading in principle. Typical areas of application for code readers are supermarket checkouts, automatic baggage identification, postal sorting, preparation of bags for dispatch at airports, and other logistics uses.

[0003] A typical detection scenario is to mount a camera above a conveyor belt. The camera takes images during the relative movement of the article stream on the conveyor belt and triggers further processing steps depending on the acquired article characteristics, for example further processing tailored to the specific article on a machine acting on the articles being transported, or modifying the article stream by extracting certain articles from it within the framework of a quality control or by branching the article stream into several article streams. If the camera is a camera-based code reader, each article is identified for a processing step, such as correct sorting, based on its code.

[0004] The camera is often part of a complex sensor system: for example, in a reading tunnel on a conveyor belt, it is customary to mount multiple camera-based code readers side-by-side to cover the wider conveyor belt width, on the one hand, and from different viewpoints to capture the article from several sides, on the other hand. Furthermore, the shape of the article to be transported is often measured beforehand by a separate scanner, for example a laser scanner, from which focus information, the time at which the image is taken, the image area containing the article, etc. are determined.

[0005] To obtain high resolution images, it is known to use a line scan camera and synthesize the image lines into a whole image during the relative movement. Such line scan cameras typically capture monochrome images (also called grayscale or black and white images). US Pat. No. 6,399,433 discloses a camera-based code reader having a multi-line array with at least one white line and one colored line. The white lines capture a grayscale image, and the colored lines capture a color image at the same time. The feature of US Pat. No. 6,399,433 is that the colored lines only have pixels corresponding to two primary colors (e.g. red and blue), and the third primary color (green in this example) is reconstructed using the white lines.

[0006] The noise pattern specific to an image sensor, which occurs due to differences in the characteristics of each pixel, is called fixed pattern noise. This can be divided into a component caused by light incidence (PRNU, Photo Response Non-Uniformity) and a contribution from dark signals (DSNU, Dark Signal Non-Uniformity). Differences in pixel characteristics appear in both CCD and CMOS image sensors, and are a major source of interference, especially for CMOS image sensors.

[0007] The differences in pixel sensitivity can be measured and then compensated for. To do this, the light incidence component (PRNU) is illuminated with uniform light and the resulting image is evaluated. For compensation, an amplification can be performed using the respective normalized reciprocal of the initial measurement value. An offset compensation can also be performed in a previous stage.

[0008] However, conventional PRNU compensation only takes into account vertical light incidence. In the case of lateral light incidence, the sensitivity of the pixels can change, and in particular the geometrical effects of the image sensor and the detection quantum efficiency of semiconductors are important in the case of obliquely incident light. However, this effect has not been given sufficient attention so far, especially when the angle of incidence changes dynamically during operation. And this is especially true in the case of certain focusing devices based on a receiving path that is geometrically changed, for example, by a swingable deflection mirror. Such focusing devices are known, for example, from US Pat. No. 5,399,433 or US Pat. No. 5,399,433, but these documents also show no interest whatsoever in the effects on the brightness distribution or even simply on PRNU in general.

[0009] US Pat. No. 5,399,633 describes compensation of fixed pattern noise, but does not discuss oblique light incidence therein. In US Pat. No. 5,399,633, it is checked during driving whether the original compensation of fixed pattern noise is still valid, and new dark images are taken in order to possibly adapt the compensation.

[0010] In US Pat. No. 6,299,514 a brightness compensation map is generated and applied to the captured image as a pre-processing step of the super-resolution method. In this document, PRNU, vignetting, and intensity differences in the case of normal and oblique light incidence are discussed. In US Pat. No. 6,333,663, non-uniformity and chromatic aberration are simultaneously compensated in the image data. The causes of non-uniformity are again fixed pattern noise, vignetting, and a stronger signal with normal light incidence than with oblique light incidence. However, the fact that the light is generally incident at an oblique angle is not an issue here, since cameras are usually designed in such a way that this does not occur. Above all, the case where the angle of oblique light incidence changes dynamically during driving, as in the case of focusing by oscillating deflection mirrors described in US Pat. Nos. 6,299,514 and 6,299,522 already mentioned, is not taken into account. [Prior art documents] [Patent documents]

[0011] [Patent Document 1] EP 3 822 844 B1 [Patent Document 2] EP 1 698 995 B1 [Patent Document 3] EP 1 698 996 B1 [Patent Document 4] US 3 949 162 A [Patent Document 5] US 8 622 302 B2 [Patent Document 6] US 9 007 490 B1 [Patent Document 7] WO 2010 / 131210 A1 Summary of the Invention [Problem to be solved by the invention]

[0012] It is therefore an object of the present invention to further improve image acquisition using a camera. [Means for solving the problem]

[0013] This problem is solved by a camera and a method for detecting an object in a detection area according to claims 1 or 15. An image sensor with a number of light receiving elements or pixels receives the received light from the detection area, whereby the image sensor acquires an image or image data of the detection area and the objects present in said area. In order to generate a sharp image, a receiving optical system with a focusing unit, i.e. a receiving objective lens, is provided, which comprises one or more lenses and other optical elements depending on the quality requirements. A focusing unit is used, which is assembled in such a way that the angle of incidence of the received light on the image sensor changes simultaneously with the change of the focus position. A control and evaluation unit sets the appropriate focus position in each case by means of the focusing unit in order to obtain a sharp image of the object. Together with the focusing unit, the control and evaluation unit in particular constitutes an autofocus device. For this purpose, for example, the distance to the object can be measured by means of an internal or external distance sensor and the focus position can be set depending on the measured distance. The control and evaluation unit is preferably further connected to the image sensor for reading out, preprocessing, evaluation, etc. of the image data. Alternatively, there are dedicated components in each case, which are responsible for focusing on the one hand and for other tasks in the camera, such as processing the image data on the other hand.

[0014] The basic idea from which the invention begins is to dynamically compensate for the influence of the focus adjustment on the angle of incidence of the received light. The intensity recorded by the light receiving elements of the image sensor is no longer dependent on this angle of incidence, but has a sensitivity change due to the respective angle of incidence. This can be called angle-dependent PRNU. The control and evaluation unit is designed to compensate the angle-dependent PRNU as a function of the respective angle of incidence.

[0015] The invention has the advantage that the brightness reproduction can be improved, preferably accurate. This leads to a higher image quality and, in the case of color cameras, also to a better color reproduction. In the subsequent image processing, better results are obtained, for example, during feature extraction. Standard PRNU compensation is no longer sufficient when the angle of incidence changes dynamically. This excludes some very efficient focusing methods, for example those described in US Pat. No. 5,399,633 or US Pat. No. 5,499,666, where the angle of incidence changes with the focus adjustment. According to the invention, PRNU compensation is possible even in the case of a changing angle of incidence, and thus such focusing methods can also be used.

[0016] The control and evaluation unit is preferably configured to compensate the acquisition of the image data by computationally and / or physically adapting the gain. The adapted gain serves to counteract the respective intensity changes based on the current angle of incidence. For this purpose, for example, an amplifier element in the image sensor or in a downstream readout circuit can be physically controlled to adapt its gain. Alternatively or additionally, computationally adapting the gain in the form of an image analysis is also conceivable. In this case, the read-out image data is adapted depending on the gain. In particular, the gain is used to rescale the brightness values ​​of the image data. Here, the brightness values ​​can be both grayscale values ​​and brightness values ​​of colored pixels.

[0017] It is preferred that the receiving optical system comprises a oscillating optical element, in particular a deflection mirror, the oscillating of which changes the focal position and thus the incidence angle of the received light. In such an embodiment, the oscillating optical element is one or the only reason why the incidence angle of the received light changes. This allows a very simple and fast focus adjustment by changing the optical path in the receiving path, where the change in the incidence angle is usually not the objective but a secondary effect. Such a focus adjustment is introduced, for example, in the above-mentioned patent documents 2 and 3, and reference is made to these documents for details. The present invention makes it possible to utilize the advantages of such a focus adjustment and to avoid or at least reduce the loss of image data due to the change in the incidence angle of the received light.

[0018] The control and evaluation unit preferably comprises a memory in which correction tables or correction formulas are stored, which assign a brightness adaptation to the respective angle of incidence of the received light. This can be an internal or external memory of the control and evaluation unit. The correction tables (LUT, Lookup Table) allow a very fast determination of the required brightness adaptation for the respective angle of incidence. As an alternative to the correction tables, correction formulas are stored, which can be understood as a function of the brightness adaptation depending on the angle of incidence. This function can be determined abstractly by modeling, simulation, etc. Very preferably, the correction formulas are derived from the correction tables, which are then compactified, for example by function fitting, in particular polynomial fitting, in order to save memory.

[0019] The control and evaluation unit preferably comprises a memory in which a correction table or a correction formula is stored, which assigns a brightness adaptation to the respective focus position. This may be the same memory as in the previous paragraph or a different memory, in the latter case, if two memories are provided, which can be called a first memory and a second memory. The change in the angle of incidence is caused by the focus adjustment. It is therefore possible to directly associate the compensation of the angle-dependent PRNU with the focus adjustment. The brightness adaptation is then now directly assigned to the focus position. The angle of incidence is then still taken into account in the focus position, angle of incidence, brightness adaptation chain, but no longer needs to be explicitly specified or known at all, since it is already included in the correction table or correction formula. With regard to the form of the correction table or correction formula, the statements in the previous paragraph apply in a meaningful sense.

[0020] Preferably, the focusing unit comprises a drive and the control and evaluation unit comprises a memory in which a correction table or correction formula is stored, which assigns a brightness adaptation to the respective position of the drive. Depending on the embodiment, this can again be the same memory, a second memory or a third memory. The chain of events is now extended once again: the drive acts on the focusing device, which changes the angle of incidence, for which a brightness adaptation is found. The correction table or correction formula now originates from the drive and potentially takes into account the focus position and the angle of incidence. The input values ​​of the drive are given, for example, in the form of a motor position, a rotational position or a motor increment. The previous explanations apply in terms of the form of the correction table or correction formula.

[0021] The correction table or formula is preferably determined in a learning step, in which the image sensor is uniformly illuminated and the intensity distribution over the photosensitive elements is measured for different angles of incidence of the received light. Such learning or calibration can take place, for example, during production or during start-up. If the learning process is carried out for the first time during start-up, it is empirically more difficult to obtain uniform illumination. In that case, the effects of non-uniformity can be calculated and compensated for in an additional calculation step, but this is more costly than learning during production under better controlled conditions. Images are taken under uniform illumination and the brightness of each of the photosensitive elements is measured. Since the illumination is uniform, the variations between the photosensitive elements are attributable to the PRNU. The variations resulting from changes in the angle of incidence are to be attributed to the angle-dependent PRNU. As already mentioned, the conventional PRNU and the angle-dependent PRNU can be processed separately or together, the conventional PRNU of the image sensor being adjusted, if possible, already at the factory. The control and evaluation unit can be configured to automatically carry out the learning step in the learning mode by scanning the focal position and the angle of incidence and taking and evaluating images in the process. From these images a correction table or formula can then be derived, which is essentially the inversion for each angular position of the intensity distribution on the images taken under uniform illumination. The camera may be equipped with a dedicated illumination to generate uniform illumination during the learning process.

[0022] The control and evaluation unit is preferably configured to compensate for the sensitivity changes of the light receiving elements due to the respective angle of incidence of the received light and other variously varying sensitivities, each in a separate step. The angle-dependent PRNU is only one of the effects that affect the sensitivity of the image sensor or the sensitivity distribution over the light receiving elements of the image sensor. In this embodiment, other compensations, for example conventional DSNU or PRNU, are further performed separately, and the compensation according to the invention is added as a separate step. Alternatively, the compensation of the angle-dependent PRNU according to the invention includes at least one other such step for the compensation of the sensitivity of the light receiving elements. This can be influenced through the way of learning, for example by including or excluding other combinations such as conventional DSNU or PRNU during the learning of the correction table or correction formula. In the former case, the correction table or correction formula includes other compensations together, and in the latter case, it includes only the compensation of the angle-dependent PRNU alone.

[0023] The control and evaluation unit is preferably configured to compensate for the sensitivity changes due to the respective angle of incidence of the received light for all light receiving elements together, or for groups, in particular lines, of light receiving elements together, or for each individual light receiving element. In this way, compensation for the angle-dependent PRNU is performed individually at the level of individual pixels, or somewhat more roughly at the level of groups of pixels, or collectively for the entire image sensor. Correspondingly, the writing of the correction table or correction formula is performed pixel by pixel, group by group, or for the entire image sensor at once. Highly preferred groups span a line of pixels.

[0024] It is preferable to arrange color filters in front of at least two or three light receiving elements. This allows color images to be captured. However, color filters generate stronger angle-dependent PRNU, which is especially parasitic on adjacent pixels. Therefore, when color filters are used, the advantage of the compensation of angle-dependent PRNU according to the present invention becomes particularly prominent.

[0025] The image sensor is preferably configured as a multi-line sensor with two to four lines of light receiving elements, including at least one white line with light receiving elements sensitive to white light for capturing a grayscale image, and at least one colored line with light receiving elements each sensitive to only one color of light for capturing a color image. In this way, the light receiving elements of the white line perceive the entire spectrum of light and are not equipped with, for example, color filters. Naturally, the received light is limited due to the unavoidable hardware limitations of the light receiving elements used. In principle, it is possible to sprinkle further white pixels on the colored line, but such image information is the responsibility of the white line in the first place. With a multi-line sensor, grayscale or black-and-white images can be captured at maximum resolution with high contrast and the highest possible signal-to-noise ratio, while at the same time obtaining color information that can be used for various additional evaluations. This additional color detection can be performed without sacrificing resolution or signal-to-noise ratio thanks to the white line.

[0026] The advantage of line sensors is that they can capture very high resolution images during relative motion between camera and object with relatively few pixels compared to matrix sensors. A multiple line sensor has only a few pixels compared to a high resolution matrix sensor, and preferably has a resolution of several thousand or even tens of thousands of pixels. Colored lines allow additional acquisition of color images with line sensors or multiple line sensors. The numbers of 2 to 4 line arrangements given above are stated precisely and are not a minimum. A small number of line arrangements allows a very compact construction of the image sensor. A minimal embodiment is a double line with one white line and one colored line. To achieve a higher resolution of the color image in the line direction, it is preferable to provide at least two colored lines.

[0027] Preferably, the receiving pixels in a colored line are sensitive to the same color. In other words, the entire colored line is a uniform line, for example a red, blue or green line. This allows the corresponding color information to be obtained with maximum resolution. The receiving pixels in a colored line may be sensitive to different colors, in particular arranged alternately, such as red-blue-red-blue. Furthermore, it is conceivable to combine lines of uniform color with lines of mixed color. It is particularly preferred that the colored lines each comprise a number of receiving pixels sensitive to one of the two primary colors, but no receiving pixels sensitive to a third primary color. The primary colors are the additive primary colors red, green and blue, or the subtractive primary colors cyan, magenta and yellow. Providing only two of them saves on receiving pixels and line arrangements. Alternatively, it is conceivable to provide all three respective primaries (RGBW, CMYW). The control and evaluation unit is preferably arranged to reconstruct the third primary color from the two primary colors with the aid of a white line. The white line captures all the primary colors superimposed, so that once two primary colors are captured, the third primary color can be separated. Preferably, the primary colors captured are red and blue, and green is reconstructed. For other possible configurations of color multi-line sensors and reconstruction of the primary colors, see the above-mentioned US Pat. No. 5,399,633.

[0028] In a multi-line sensor, depending on the color and arrangement of the colored pixels, the angular dependence PRNU of each line can be very different. The information of several lines is usually integrated, for example, to produce black and white and color images (especially reconstructions of primary colors). In practice, therefore, a multi-line sensor only captures one image line each time, and no additional resolution in the direction crossing the line is involved. This is only gradually achieved by repeatedly capturing the image lines during the relative movement. Without the compensation according to the invention, this combination of lines would be a very unfavorable combination, because the input data from the different lines is not only degraded by the angular dependence PRNU, but also to different degrees, so that color fidelity is hardly achievable without compensation.

[0029] It is preferable that a microlens is arranged in front of at least two to three light receiving elements. Preferably, a microlens is arranged in front of each light receiving element, so that a microlens array is provided. Although a one-to-one allocation is possible, one microlens can also correspond to multiple light receiving elements. The microlens is part of the light receiving optical system. This lens partially significantly increases the angle dependency PRNU.

[0030] The control and evaluation unit is preferably configured to read the code content of the code on the detected object using the image data. This makes the camera a camera-based code reader for barcodes and / or 2D codes according to various standards, possibly also for text recognition (OCR, Optical Character Reading). Prior to reading the code, a segmentation is further preferably performed, in which a Region of Interest (ROI) is identified as a code candidate. The high image quality after the compensation of the angle-dependent PRNU according to the invention increases the probability of successful code reading and thus the read rate, which is crucial for a code reader.

[0031] The camera is preferably fixedly mounted near a transport device which guides the object to be detected in the transport direction through the detection area. Such industrial applications of cameras are common, with the transport device creating a situation where the object moves through the detection area. This allows the detection to be carried out gradually line by line, as mentioned many times, in the embodiment in which the image sensor is a line sensor or a multi-line sensor. Since the parts of the object and the objects are constantly replaced during the progress of the transport movement, the focal position must be constantly adapted, which changes the angle of incidence of the received light, and the present invention dynamically compensates for the respective angular dependency PRNU. The speed of the transport device and the speed of the moving object can be determined, for example, when the object is in the shooting position by obtaining it from a sensor (encoder, etc.) near the transport control device or the transport device or from the parameter settings of the transport device.

[0032] The method according to the invention can be implemented in a similar manner to that described above, thereby achieving the same advantageous results, for example and without limitation as set out in the dependent claims following the independent claims of this application.

[0033] The invention, together with further features and advantages thereof, will now be described in greater detail with reference to exemplary embodiments and with reference to the accompanying drawings, in which: FIG. [Brief description of the drawings]

[0034] [Figure 1] FIG. [Diagram 2] 3D view of an exemplary application where the camera is mounted near a conveyor belt. [Diagram 3] FIG. 2 is a schematic diagram of a focusing device for a camera, showing the oscillating optical element at a first focus position and the received light on the image sensor at a first angle of incidence. [Figure 4] FIG. 4 is a view corresponding to FIG. 3, but this time showing the angle of incidence of the received light on the image sensor as normal. [Diagram 5] FIG. 4 is a view corresponding to FIG. 3, showing the received light on the image sensor at a different angle of incidence; [Figure 6] 3 shows an exemplary intensity profile of two pixels of an image sensor depending on the angle of incidence of the received light on the image sensor. [Figure 7] 7 shows exemplary intensity profiles corresponding to FIG. 6 for two further pixels of the image sensor. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0035] FIG. 1 is a schematic cross-sectional view of a camera 10. The camera is, for example, a camera-based code reader or an industrial camera (Machine Vision Camera) for quality control or automatic detection of specific features, etc. The received light 12 from a detection area 14 enters a receiving optical system 16, which directs the received light 12 to an image sensor 18 having a number of light receiving elements or pixels arranged in one, several rows or a matrix. The optical element of the receiving optical system 16 is preferably configured as an objective lens consisting of several lenses and other optical elements such as apertures and prisms, but is represented here for simplicity by only one lens. The receiving optical system 16 can be adjusted to various focus positions by a focusing device 20 in order to clearly capture objects at different distances. A wide variety of functional principles are possible for this, such as, for example, changing the image focal length by means of a step motor or a moving coil type actuator. The focusing device 20 is shown only diagrammatically in FIG. 1. As will be explained further below with reference to FIGS. 3 to 5, the angle of incidence of the received light 12 on the image sensor 18 changes simultaneously with the focus position. Although not shown, an optional internal or external distance sensor can be provided to measure the distance to the object being photographed and from that distance derive the required focus position.

[0036] To thoroughly illuminate the detection area 14 with emitted light 22 during imaging by the camera 10, the camera 10 includes an optional internal or external illumination unit 24, which is depicted in Fig. 1 as a simple light source without emission optics. In another embodiment, multiple light sources such as LEDs or laser diodes are arranged around the receiving light path, for example in a circular shape. They can also be polychromatic and collectively or individually controllable to adapt the parameters of the illumination unit 24, such as color, intensity and direction.

[0037] A control and evaluation unit 26 is connected to the focusing device 20, the lighting unit 24 and the image sensor 18 and is responsible for the tasks of control, evaluation and further regulation in the camera 10. That is to say, it controls the focusing device 20 in the appropriate focus position, in particular as a function of the measured distance to the object to be photographed, and also reads out the image data from the image sensor 18 and stores or outputs them to the interface 28. Preferably, this control and evaluation unit 26 is able to find and decode code fields in the image data, which makes the camera 10 a camera-based code reader. It is possible to provide several components for the various control and evaluation tasks, for example the focus adaptation can be performed in separate components and the pre-processing of the image data can be performed on a separate FPGA. The camera 10 is protected by a casing 30, which is closed in the front area into which the received light 12 enters by a front panel 32.

[0038] FIG. 2 shows that the camera 10 can be used by being installed near a conveyor belt 34, which conveys an object 36, as indicated by an arrow 38, past the detection area 14 of the camera 10. The object 36 can have a code area 40 on its surface. The task of the camera 10 is to capture the characteristics of the object 36 and, in the preferred use as a code reader, to recognize the code area 40, read the code applied there, decode and assign it respectively to the corresponding object 36. In order to also capture the side of the object, and in particular the code area 42 applied thereto, preferably an additional camera 10 (not shown) is used from a different perspective. Also, several cameras 10 can be arranged side by side in order to jointly cover a wider detection area 14.

[0039] 3 to 5 show very diagrammatically a focusing device 20 based on the oscillation of an optical element 44 (particularly a deflection mirror). Here, the image sensor 18 is exemplarily a multi-line sensor consisting of four line arrays A to D of light receiving elements or pixels. Such a multi-line sensor can be used in particular for the simultaneous acquisition of black-and-white and color images, as described in the above-mentioned patent document 1.

[0040] FIG. 3 shows a first pivoting position of the optical element 44 and the associated first focal position with an angle of incidence α, FIG. 4 shows a second pivoting position of the optical element and the associated second focal position with a perpendicular light incidence, and FIG. 5 shows a third pivoting position of the optical element and the associated third focal position with an angle of incidence β. Other focal positions of the optical element 44 result in other angles of incidence of the received light 12 on the image sensor 18. Such a focusing device 20 is described in detail, for example, in the above-mentioned patent documents 2 and 3, to which reference is made additionally. Depending on the angular position of the optical element 44, the optical path between the receiving optical system 16 and the image sensor 18 expands or contracts, and the focal position changes accordingly. It is conceivable to pivot the image sensor 18 together, so that the received light 12 still strikes the image sensor 18 at other angles of incidence. The illustrated focusing device 20 is to be understood as exemplary, and other focusing principles also allow the angle of incidence of the received light 12 on the image sensor 18 to change with the focal position.

[0041] FIG. 6 shows an exemplary intensity profile of two photosensitive elements or pixels of the image sensor 18 depending on the angle of incidence of the received light on the image sensor 18. The sensitivity of the photosensitive elements changes with the angle of incidence and is partly very different from each other. The reasons for this can be geometrical relations and quantum efficiency, but also microlenses or color filters in front of the photosensitive elements. The effect shown in FIG. 6 can be called angle-dependent PRNU. If the current angle of incidence and the angle-dependent PRNU are known, the effect of the angle-dependent PRNU can be compensated by inversely adapting the analog or digital amplification of the corresponding photosensitive element and / or by carrying out an appropriate subtraction calculation in the image data.

[0042] 7 shows exemplary intensity profiles of two further photodetectors. In contrast to FIG. 6, here there is also a difference for perpendicular light incidence at an angle of incidence corresponding to the position of the Y axis. Therefore, other effects that affect the sensitivity of the pixel may be superimposed on the angle-dependent PRNU, which effects can be compensated for together with the angle-dependent PRNU or separately depending on the embodiment.

[0043] The dependency between the angle of incidence and the required brightness adaptation can be stored as a compensation table (LUT, Look Up Table) or a compensation equation, i.e. a functional relationship or equation. The compensation equation can be generated in a compact form from the compensation table by function fitting or by polynomials.

[0044] The compensation table or formula can be obtained by theoretical considerations, for example in the form of a model or simulation of the camera 10. Alternatively or additionally, the compensation table or formula can be obtained in a learning or calibration step, for example during production adjustments. In that case, the angle of incidence of the received light 12 is changed, for example in steps of 1° or with another desired precision, with the image sensor 18 uniformly illuminated, and the intensity of the light received by the light receiving elements of the image sensor 18 is measured. From the results, the required brightness adaptation can be calculated. The control and evaluation unit 26 can provide for this purpose a learning mode, in which the change of the angle of incidence and the corresponding measurements and calculations for obtaining the compensation table or formula are automatically performed.

[0045] Indeed, it is ultimately the incidence angle that gives rise to the angle-dependent PRNU. However, the camera 10 has direct access to its focus position, to which the respective incidence angle corresponds. It is therefore conceivable to assign the respective brightness adaptation to the focus position in the correction table or formula, rather than to the incidence angle. The chain of processes can also be extended one step further by associating the correction table or formula with the motor control of the focusing device 20, and assigning the respective brightness adaptation to the motor position, since it is the actuator that is controlled to adjust the focus position and thus the angle of the optical element 44 and ultimately the incidence angle of the received light 12 on the image sensor 18.

[0046] The motor position can be expressed in particular in motor increments, which respectively correspond to each rotational position of the motor. In a learning process arranged for this purpose, the motor increments are scanned and the intensities of their pixels are measured after image acquisition under uniform illumination. By means of an incremental encoder, it can be checked whether the motor is actually in a respectively controlled rotational position in terms of adjusting the motor movement. Since the control and evaluation unit 26 usually also knows the assignment between the motor position or motor increment and the focal position, it is also possible to choose to link a correction table or correction formula to the motor position or the focal position. Instead of the rotational position of the motor, the linear motor position can be used as the basis.

[0047] During operation, the brightness adaptation is assigned to the motor position, the focal position or the angular position of the optical element 44 or the angle of incidence of the received light 12 on the image sensor, depending on the embodiment, by referring to a correction table or a correction formula. The correction table or the correction formula can directly store the compensation values, e.g. the amplification factor required for the compensation, or can store only the intensity deviation due to the angle-dependent PRNU first, from which the required compensation is determined in real time. Since the compensation should be performed as quickly as possible in real time, the corresponding functions of the control and evaluation unit 26 are advantageously implemented on an FPGA (Field Programmable Gate Array) or in an ASIC (Application-Specific Integrated Circuit). Preferably, no actual adjustment is performed during operation anymore, in which case the compensation is instead entirely based on previously learned relationships. The compensation can be performed as a control rather than as a regulation, since the disturbance quantities involved here are known, i.e. the respective focal position.

[0048] The compensation of the angle-dependent PRNU can be performed with different fineness. It can be compensated individually at the level of the individual light receiving elements of the image sensor 18. Or it can simply be adapted at once for the entire image sensor 18 as a whole. As an intermediate solution, the pixels to be compensated are grouped together and the pixels are compensated in the same way within the group, for example on the basis of the average value determined for the group. A particularly advantageous special case of such groups is the integration within a line, which is exemplarily shown in Figs. 3 to 5, in particular for a multi-line sensor. For the integration into groups to be meaningful, it is necessary that the angle-dependent PRNU within the group does not differ too much. This is the case for white or colored lines of a multi-line sensor.

[0049] In a preferred embodiment, the image sensor 18 is color-sensitive. For this purpose, color filters are arranged at least partially in front of the light receiving elements of the sensor, for example in a Bayer type, and the colored lines of the multi-line sensor are provided with uniform color filters covering the entire line or with color filters, for example with several alternating colors. There may be monochrome light receiving elements or at least one completely monochrome line in between. The angle-dependent PRNU changes particularly strongly in the presence of such color filters, depending on the color. Furthermore, even in light receiving elements without dedicated color filters, parasitic effects may occur in the vicinity of the color-filtered light receiving elements. In the case of a multi-line sensor, the information of several lines is preferably combined, so that in particular a single black-and-white image line or a color image line summed up from the primary colors is obtained. Since the respective influences of the angle-dependent PRNU are accumulated in such a combination, the compensation according to the invention is very advantageous, since otherwise a very significant error would occur overall. A constructive effect of the PRNU may also be produced by another element (for example a microlens) arranged in front of the image sensor 18 and acting as part of the light receiving optics 16 together with the focusable elements of said optics.

Claims

1. A camera (10) for detecting an object (36) in a detection area (14), the camera (10) comprising: an image sensor (18) having a number of light receiving elements for generating image data from received light (12) from the detection area (14); a light receiving optical system (16) having a focus adjustment unit (20) for adjusting a focus position, the angle of incidence of the received light (12) on the image sensor (18) changing with a change in the focus position; and a control and evaluation unit (26) configured to adjust the focus position in order to clearly capture image data of the object (36). The camera (10) is characterized in that the control and evaluation unit (26) is further configured to compensate for sensitivity changes in the acquisition of the image data due to the respective angle of incidence of the received light (12).

2. 2. The camera (10) according to claim 1, wherein the control and evaluation unit (26) is configured to compensate the acquisition of the image data by calculating a gain and / or by controlling and adapting an amplifying element.

3. 2. The camera (10) of claim 1, wherein the light receiving optical system (16) comprises a oscillating optical element (44), in particular a deflection mirror, and the oscillation of the optical element (44) changes the focal position, thereby changing the angle of incidence of the received light (12).

4. 4. The camera (10) according to claim 1, wherein the control and evaluation unit (26) comprises a memory in which correction tables or correction formulas are stored, which assign a brightness adaptation to the respective angle of incidence of the received light (12).

5. 4. The camera (10) according to claim 1, wherein the control and evaluation unit (26) comprises a memory in which correction tables or correction formulas are stored, which assign a brightness adaptation to the respective focus position.

6. 4. The camera (10) according to claim 1, wherein the focusing unit (20) comprises a drive, and the control and evaluation unit (26) comprises a memory in which correction tables or correction formulas are stored, which assign a brightness adaptation to the respective position of the drive.

7. A camera (10) as described in any one of claims 1 to 3, wherein a correction table or correction formula that assigns brightness adaptation to each incident angle of the received light (12), or assigns brightness adaptation to each focus position, or assigns brightness adaptation to each position of the drive unit provided in the focus adjustment unit (20) is determined in a learning process in which the image sensor (18) is uniformly illuminated and the intensity distribution across the group of light receiving elements is measured for various incident angles of the received light (12).

8. 4. The camera (10) according to claim 1, wherein the control and evaluation unit (26) is configured to compensate in each individual step for sensitivity changes of the light receiving elements due to the respective angle of incidence of the received light (12) and other varying sensitivities.

9. 4. The camera (10) according to claim 1, wherein the control and evaluation unit (26) is configured to compensate for sensitivity changes resulting from the respective angle of incidence of the received light (12) for all light receiving elements together, for groups of light receiving elements, in particular lines, together, or for each individual light receiving element.

10. A camera (10) according to any one of claims 1 to 3, wherein a color filter is arranged in front of at least two to three light receiving elements.

11. 4. The camera (10) of claim 1, wherein the image sensor (18) is configured as a multi-line sensor having two to four lines of light-receiving elements, including at least one white line having light-receiving elements sensitive to white light for capturing a grayscale image, and at least one colored line having light-receiving elements each sensitive to light of only one color for capturing a color image.

12. A camera (10) according to any one of claims 1 to 3, wherein a microlens is arranged in front of at least two to three light receiving elements.

13. 4. The camera (10) according to claim 1, wherein the control and evaluation unit (26) is configured to use the image data to read the code content of a code (40) on a detected object (36).

14. The camera (10) according to any one of claims 1 to 3, which is fixedly mounted near a conveying device (34) that guides an object (36) to be detected in a conveying direction (38) through the detection area (14).

15. A method for detecting an object (36) in a detection area (14), wherein an image sensor (18) having a number of light receiving elements generates image data from received light (12) from the detection area (14), and a focus adjustment unit (20) adjusts a focus position of a light receiving optical system (16) to capture clear image data of the object (36), and a change in the focus position causes a change in the incident angle of the received light (12) on the image sensor (18), 10. A method for compensating for sensitivity changes in the acquisition of image data due to the respective angle of incidence of the received light (12).

Citation Information

Patent Citations

  • Identification device

    EP1698995B1

  • Identification device

    EP1698996B1

  • Code reader and method for reading optical codes

    EP3822844B1

  • Image input device

    JP2003262785A

  • Optical gain correction filter and optical device provided with the same

    JP2004037867A