Control module for a camera in a production system and method for acquiring images by means of such a camera
10644410 ยท 2020-05-05
Assignee
Inventors
Cpc classification
H01Q3/24
ELECTRICITY
Y02B20/40
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G03B15/05
PHYSICS
H01Q21/06
ELECTRICITY
International classification
H01Q21/06
ELECTRICITY
Abstract
The invention relates to a control module for a camera and an illumination apparatus, a camera, a production system and a method for acquiring images by means of such a camera. The exposure times and illumination times are controlled on the basis of a common control clock signal. Due to this, beats can be avoided. This even applies if short flashes are executed at irregular times.
Claims
1. Control module for a camera and at least one illumination apparatus controlled by a switching controller, wherein the switching controller supplies the illumination apparatus with a predetermined current and the control module is designed to control the exposure times and to read out pixels of a digital optical sensor of the camera and to control the illumination time of the at least one illumination apparatus and comprises a control clock generator for generating a control clock signal, wherein the control module comprises an interface where the control clock signal is made available for delivery to the switching controller of the illumination apparatus, so that the switching controller is clocked with the control clock signal of the control module and the illumination time can be controlled in synchrony with the control clock signal, wherein the control module comprises a trigger generator for generating an internal trigger signal, wherein the internal trigger signal comprises sequences of several internal trigger pulses, wherein each trigger pulse triggers an exposure process of an exposure sequence and the trigger generator is designed such that internal trigger pulses with different spacing can be generated, the control module being a part of the camera and having an interface for transferring the internal trigger signal to the illumination apparatus.
2. Control module according to claim 1, wherein the control module is designed such that each exposure process comprises the control of the at least one illumination apparatus for a defined illumination time and the control of exposure of the digital optical sensor for a defined exposure time.
3. Control module according to claim 1, wherein the control module is designed for the repeated execution of an exposure sequence with predetermined different exposure processes.
4. Control module according to claim 1, wherein the control module is designed such that during an exposure process the start and the end of both exposure of the digital optical sensor and illumination of the illumination apparatus are controlled by means of the same control clock signal.
5. Control module according to claim 1, wherein the control clock signal has a frequency of at least 100 kHz and preferably of at least 500 kHz.
6. Control module according to claim 1, wherein the control module comprises a trigger interface for an external trigger signal, wherein an exposure sequence is executed on each receipt of an external trigger pulse.
7. Control module according to claim 1 wherein the control module comprises an interface for delivering the control clock signal and/or a control signal for controlling the exposure time and/or the illumination time to a further camera.
8. Camera with a digital optical sensor and a control module for controlling the exposure time and for reading out pixels of the digital optical sensor, wherein the control module is designed according to claim 1.
9. Camera according to claim 8, wherein the digital optical sensor is a line sensor.
10. Production system with a conveying device whereby a strip-shaped product or a plurality of products is conveyed on the conveying device, with a camera, according to claim 8 and with an illumination apparatus, wherein the conveying device comprises a trigger signal generator with which an external trigger signal is generated, an external trigger pulse being generated whenever the conveying device has covered a predetermined distance.
11. Production system according to claim 10, wherein the illumination apparatus has light-emitting diodes as illumination means.
12. Method for acquiring images by means of a camera comprising a digital optical sensor for receiving light reflected by an object for a defined exposure time and a control module for controlling the exposure time and reading out pixels of the digital optical sensor, the method comprising executing several exposure sequences repeatedly, each with predetermined different exposure processes, wherein in the exposure processes at least one illumination apparatus for illuminating the object for a defined illumination time and the digital optical sensor are both controlled by means of the control module, wherein the control module is designed to control the illumination time of the at least one illumination apparatus, which is controlled by a switching controller that supplies the illumination apparatus with a predetermined current, and the control module comprises a control clock generator for generating a control clock signal, an interface where the control clock signal is made available for delivery to the switching controller of the illumination apparatus, so that the switching controller is clocked with the control clock signal of the control module and the illumination time can be controlled in synchrony with the control clock signal, and a trigger generator for generating an internal trigger signal, which comprises sequences of several internal trigger pulses, each of which triggers one of the exposure processes of the exposure sequence, the trigger generator being designed such that internal trigger pulses with different spacing can be generated and the control module being a part of the camera and having an interface for transferring the internal trigger signal to the illumination apparatus.
13. Method according to claim 12, wherein the illumination time and the exposure time run in synchrony with one another.
14. Method according to claim 12, wherein both the illumination time and the exposure time are synchronous with the control clock signal.
15. Method according to claim 14, wherein the exposure time and/or the illumination time of at least one of the exposure processes is/are no longer than 20 times an individual cycle of the control clock signal.
16. Method according to claim 12, wherein an exposure sequence is executed whenever an external trigger signal is received.
17. Method according to claim 12, wherein each exposure sequence is executed with predetermined exposure processes of different length, the individual exposure processes starting at irregularly arranged points in time.
18. Control module for a camera and at leak one illumination apparatus controlled by a switching controller, wherein the switching controller supplies the illumination apparatus with a predetermined current and the control module is designed to control the exposure times and to read out pixels of a digital optical sensor of the camera and to control the illumination time of the at least one illumination apparatus and comprises a control clock generator for generating a control clock signal, wherein the control module comprises an interface where the control clock signal is made available for delivery to the switching controller of the illumination apparatus, so that the switching controller is clocked with the control clock signal of the control module and the illumination time can be controlled in synchrony with the control clock signal, the control module being a part of the camera and having an interface for transferring internal trigger signals to the illumination apparatus.
Description
(1) The invention is explained in greater detail below by way of example with reference to the drawings, of which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11) An encoder 4 with a roller is coupled to the web product; this generates a trigger pulse if the strip-shaped product 2 moves a predetermined distance. The trigger pulses of the encoder 4 are hereinafter described as external trigger pulses.
(12) The production system 1 comprises a camera 5. The camera 5 comprises a line sensor 6 for detecting light 7 reflected from the product 2.
(13) The camera comprises a control module 8, by means of which the exposure time of the camera, during which the line sensor 6 is switched to light-sensitive, is controlled and the pixel values detected with the line sensor 6 are read out.
(14) The control module 8 comprises an internal trigger generator 9, which is connected to an interface 10 of the camera 5 to which the encoder 4 is connected via a data line, so that the internal trigger generator 9 receives the external trigger pulses of the encoder 4.
(15) The internal trigger generator 9 is designed such that a series of internal trigger pulses is generated on receipt of an external trigger pulse. The internal trigger pulses can have different chronological spacing.
(16) The internal trigger generator 9 is connected to a control pulse controller 11. The control pulse controller 11 generates a control signal 14 (
(17) The control pulse controller 11 is connected to a clock generator 13. The clock generator 13 generates clock signals 15, which are fed to the control pulse controller 11.
(18) The control pulses of the control signal 14 are synchronized with the control clock signal 15 and/or the pulses contained therein, i.e. an edge of a control pulse of the control signal 14 corresponds to an edge of a pulse of the control clock signal 15. The control pulses of the control signal 14 are therefore rasterized in accordance with the edges of the clock signal 15.
(19) The control pulse controller 11 is connected to a switching device 12. The switching device 12 also receives the control clock signals 15 from the clock generator 13. The switching device 12 is a clock generator which switches on the exposure unit at the line sensor 6 in accordance with the control signal 14 and in accordance with the clock signals 15 of the clock generator 13 (
(20) The production system 1 comprises three light sources 17, 18, 19. The three light sources 17, 18, 19 are connected to a light source control unit 20. The light source control unit 20 comprises a light source switching device 21 and a first and a second interface 22, 23. The light source switching device has a switching controller for supplying the individual light sources 17, 18, 19 with a predetermined current. The current is controlled by the switching controller independently of the internal resistance of the respective load, which is why such a power supply is particularly suitable for light sources having light-emitting diodes. A corresponding first interface 24 and a second interface 25 are provided on the camera 5. The clock generator 13 is coupled to the first interface 24 of the camera 5. The first interface 24 of the camera 5 is connected to the first interface 22 of the light source control unit 20, so that the clock signal is delivered from the clock generator 13 to the light source switching device 21. The switching controller is actuated with this clock signal, i.e. the switching controller uses this clock signal as an internal control clock. Via the second interfaces 23, 25, the control signal 14 of the control pulse controller 11 is delivered to the light source switching device 21, with a separate line leading from the control pulse controller 11 to the light source switching device 21 for each of the light sources 17-19. In the present embodiment, three light sources 17-19 and thus three separate lines are provided. Each of these lines is assigned to one of the light sources 17-19. In the light source switching device 21, the inputs of the control pulses are switched in the same way as in the switching device 12 of the camera 5 by means of the clock signal 15 transmitted in parallel, wherein in any case at least one of the light sources 17-19 is switched on.
(21) A switching signal 16 for activating one of the light sources 17, 18, 19 is switched on or off whenever the state of the control signal 14 differs from the state of the switching signal 16 while there is a positive-going edge of the control dock signal 15. In other words: if the control signal 14 is on and the switching signal 16 is off, the switching signal 16 is switched on at the next positive-going edge of the control clock signal 15. If the control signal 14 is off and the switching signal 16 is on, the switching signal is switched off at the next positive-going edge of the control clock signal 15. The switching signal therefore always follows the control signal at the next positive-going edge of the control dock signal 15. In each case, there is a time delay between the edges of the control signal 14 and the edges of the switching signal; this is identified in
(22) The duration of the pulses of the switching signal 16 is clocked with the cycles of the control clock signal 15, i.e. the pulses of the switching signal 16 are quantized according to the cycles of the control clock signal 15.
(23) The switching signal 16 is adjusted to a defined current value by means of the switching device 12 designed as switching controller. As a result, the light sources 17-19 are operated with a defined current which is preferably adjusted such that the light sources are activated at their optimum operating point.
(24) In the present embodiment, the control signal 14 generated by the control pulse controller 11 is identical for the exposure time of the line sensor 6 and the illumination time of the light sources 17-19. The control pulse controller 11 can simultaneously apply a control pulse to one or more of the three lines leading to the light source control unit 20, so that one or more of the light sources 17-19 is/are switched on simultaneously. If fluorescence effects are to be observed, for example, it can make sense to provide different control signals for the line sensor 6 and the light sources 17-19, so that the line sensor 6 is still activated while all light sources are already switched off and therefore dark.
(25) In principle, it is also possible to provide separate control pulse controllers 11 in the camera 5 and the light source control unit 20, in which case the internal trigger pulses of the internal trigger generator 9 have to be fed to both control pulse controllers.
(26) In most cases each internal trigger pulse triggers an exposure time during which the line sensor 6 is activated and an illumination time during which at least one the light sources 17-19 is on. In the detection of fluorescence effects, it is possible to trigger only an illumination time with one trigger pulse and only an exposure time with a subsequent trigger pulse. The light signals detected by the line sensor 6 are converted into electric signals by the line sensor 6, wherein pixels of the line sensor are read out individually and the corresponding pixel values are stored in a storage device 26. The storage device 26 as a rule only has a low storage capacity for some or a few line images. The content of the storage device is usually immediately transferred to an evaluation device, which is a computer as a rule.
(27) The pixels of the line sensor are read out after the end of the exposure time, so that the readout as a rule at least partially overlaps chronologically with the exposure time of the following exposure process.
(28) As the same clock signal 15 is used for controlling both the line sensor 6 and the light sources 17-19, the illumination times and the exposure times are always synchronous. In conventional exposure devices, the light source control unit has its own internal clock generator, which is independent of the clock generator of the camera.
(29)
(30) In conventional control units, beats can also occur between the illumination time and the exposure time if non-synchronized clock signals are used for controlling the light sources and the sensor. As in the present embodiment the same control signal 15 is used both in the camera 5 and in the light source control unit 20, such differences in the exposure times and the illumination times are avoided.
(31) In conventional illumination apparatuses, in which an exposure sequence with several consecutive different exposure processes is to be executed, the individual exposure processes are always started on the expiry of a time interval which corresponds at least to the maximum illumination time during the exposure sequence (
(32) In the present embodiment, the individual exposure processes can be started in an irregular sequence and executed immediately consecutively. The total duration of an exposure sequence T.sub.Sequenz, optimiert therefore amounts to the sum of the durations of the individual illumination times and is therefore considerably shorter. In this context, it has to be considered, however, that an exposure process takes at least as long as the minimum readout time, even if the illumination time of the respective exposure process is shorter, because no further exposure process can be started before a readout process is finished.
(33) In conventional illumination apparatuses, an irregular start of the illumination times carries the risk of additional beats. As the control pulses 14 and the clock signals of both the camera 5 and the light source control unit 20 are mutually synchronous in the present embodiment, there is no risk of beats. As a result, the scanning of a strip-shaped product with a complex exposure sequence is accelerated considerably, and quality is improved compared to conventional methods, because there are no differences in brightness caused by beats. As the total time of an exposure sequence is considerably reduced, the web speed with which the product 2 is moved in the conveying direction 3 or the resolution with which the object is depicted is increased compared to conventional methods.
(34)
(35) The cameras 5/1 and 5/2 are connected to a common power supply.
(36) The master camera 5/1 is connected to an encoder 4 for receiving external trigger signals. The master camera 5/1 is furthermore connected to three light source control units 20/1, 20/2, 20/3, each of which controls a light source. In the present embodiment, these light sources are cellular light sources 17, 18, 19 with light-emitting diodes as illumination means. The light sources are provided with light-emitting diodes of the colors red, green and blue. With these three light sources, the shade with which a product to be scanned is illuminated can be adjusted individually by superimposing light of the individual light sources with different intensity.
(37)
(38) The third flash operation is followed by an idle time T.sub.idle, until the next external trigger pulse 29 is received. This idle time permits a change of the speed at which the product web is moved. The web speed can be increased until the idle time is zero.
(39)
(40) The control module according to the invention facilitates the control of highly different exposure sequences with different complex illumination patterns of bright field, dark field and/or transmitted light illumination and/or with different color combinations.
(41) The duration of an individual flash operation can be between a few microseconds and some hundred milliseconds. The minimum flash duration is predetermined by the control clock signal, the minimum flash duration corresponding to a cycle of the control clock signal. The higher the clock frequency, the shorter the minimum flash duration can be.
(42) The individual flash operations generate sub-lines which can be processed in different ways. Examples for this are HDR (high dynamic range) images and differential images.
(43) HDR images are generated by reckoning up sub-lines which have been exposed for different lengths of time to produce a single output line. This output line than has a higher dynamic than the respective individual lines. This at the same time results in an information compression into the frame width available for output, which is 8 bits per channel as a rule. Following transmission for display/processing, this can once again be re-linearized, so that the image can be displayed on a screen.
(44) In order to make certain effects of the objects to be scanned better visible, the sub-lines exposed in different ways can be reckoned up together. The difference of two sub-lines can be formed, for example.
(45) A bright field illumination and a dark field illumination can also be provided as a light source. In this way, brilliance fractions in the objects to be monitored can be separated. For this purpose, it may be expedient to form the difference of lines generated with a bright field illumination from lines generated with a dark field illumination.
(46) In the embodiment shown in
(47) It is furthermore possible in principle to provide both in the camera and in the light source control unit separate internal trigger generators, each of them controlling a control pulse controller, as long as a common clock signal is used, the control pulse controller being preferably also controlled by the common clock signal. This, too, maintains the synchronicity of the control pulses with the exposure times and the illumination times.
(48) Conventional cameras and light source control units or light source drivers as a rule comprise a clock generator which provides an internal clock signal. For the invention, it may be expedient to provide a clock signal which differs therefrom in its frequency and has a frequency which is lower as a rule than that of the internal clock signal of the camera or the light source control unit.
(49) In this way, the clock signal can be transmitted more easily from the camera to the light source control unit or vice versa. The control clock signal according to the invention can, for example, be generated by means of a frequency divider from an internal clock signal of a camera or of a light source control unit.
(50) Within the scope of the invention, it is also possible to generate the inventive common control clock signal in the camera or the light source control unit and to generate the control pulse by means of a control pulse controller in the respective other device.
(51) In principle, it is also possible to provide a control module which receives the external trigger signals and generates the control signal as a function of the external trigger signals outside the camera and the light source control unit. This external control module should, however, likewise receive the common control clock signal or generate it itself and deliver it to the camera and the light source control unit.
(52) The control module can also be provided in the light source control unit, in which case the common control clock signal likewise has to be delivered from the light source control unit to the camera, so that the exposure time can be switched using the common control dock signal.
(53) With the control module according to the invention and/or with the camera according to the invention, system speeds and image qualities which are considerably higher than in the methods commonly used up to now are achieved.
(54) By controlling the exposure sequences by means of the control module according to the invention, which is preferably located in a camera, the exposure sequences are always image-synchronous. In conventional systems, this can only be achieved at great expense, if at all.
(55) In conventional systems, the light source control units are operated asynchronously relative to the cameras. This results in beats in brightness, particularly at short illumination times. These beats are avoided by the invention.
(56) The system can easily be extended with a master camera and one or more slave cameras, all cameras being 100% synchronous. The cameras are preferably cell cameras.
(57) The invention can be summarized briefly as follows:
(58) The invention relates to a control module for a camera and an illumination apparatus, a camera, a production system and a method for acquiring images by means of such a camera.
(59) The exposure times and the illumination times are controlled on the basis of a common control clock signal. In this way, beats can be avoided. This even applies if short flash operations are executed at irregular points in time.
USE OF REFERENCE NUMBERS
(60) 1 Production system 2 Product 3 Conveying direction 4 Encoder 5 Camera 6 Line sensor 7 Reflected light 8 Control module 9 Internal trigger generator 10 Interface 11 Control pulse controller 12 Switching device 13 Clock generator 14 Control signal 15 Control clock signal 16 Switching signal 17 Light source 18 Light source 19 Light source 20 Light source control unit 21 Light source switching device 22 First interface 23 Second interface 24 First interface 25 Second interface 26 Storage device in PC 27 Computer 28 Power supply 29 External trigger pulse 30 Internal trigger pulse 31 Flash operation