Contact Image Sensor

By adding comparators and registers to the control unit of the image sensor to generate lighting control signals to control the power and duration of the lighting unit, the problem of power waste during scanning of the image sensor is solved, and power saving and data effectiveness are improved.

CN116132777BActive Publication Date: 2025-01-24WEIHAI HUALING OPTO ELECTRONICS CO LTD

Patent Information

Application Number
CN202310076387.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-30
Publication Date
2025-01-24
Estimated Expiration
2043-01-30

AI Technical Summary

Technical Problem

The prior art image sensors have the problem of waste of power when scanning detection objects, and there is no effective solution yet.

Method used

By adding comparators and registers to the control unit of the image sensor, compare the output pulse and preset scan cycle of the encoder, generate lighting control signals, control the power and duration of the lighting unit to reduce unnecessary lighting and reduce power waste.

Benefits of technology

Achieve reduction of power waste when scanning the detection object of the image sensor, the effectiveness of the scanning data, and solving the problem of power waste of the image sensor during scanning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132777B_ABST
    Figure CN116132777B_ABST
Patent Text Reader

Abstract

The invention discloses a contact image sensor. The image sensor comprises: a control unit (11) for receiving an output pulse from an encoder, the control unit (11) comprising: a comparator (11_1), a register (11_2) and a timing generation circuit (11_3); the comparator (11_1) is used to compare the output pulse with a preset scanning cycle stored in the register (11_2) to obtain an illumination control signal; the timing generation circuit (11_3) is used to generate a scanning trigger signal, and determine the output trigger signal based on the output pulse; the illumination unit (12) is used to illuminate a detection object based on the illumination control signal; the scanning unit (13) is used to scan the detection object based on the scanning trigger signal to obtain a scanning signal; the data processing unit (14) is used to process the scanning signal to obtain an initial scanning result; the data output unit (15) is used to obtain a target scanning result based on the initial scanning result, and output the target scanning result based on the output trigger signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sensors, and in particular to a contact image sensor. Background Art

[0002] In the related art, the image sensor is connected to the transmission mechanism of the object to be detected through an encoder, and detects the object to be detected based on the output pulse of the encoder. However, the image sensor in the prior art will cause huge power waste during its operation.

[0003] Therefore, in the related art, there is a technical problem that the image sensor wastes power when scanning the detection object.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiment of the present invention provides a contact image sensor to at least solve the technical problem of power waste when the image sensor scans a detection object.

[0006] According to one aspect of an embodiment of the present invention, a contact image sensor is provided, comprising: a control unit 11, an illumination unit 12, a scanning unit 13, a data processing unit 14 and a data output unit 15, wherein the control unit 11 is used to receive an output pulse from an encoder, wherein the output pulse is determined based on the moving speed of the detection object, wherein the control unit 11 comprises: a comparator 11_1, a register 11_2 and a timing generation circuit 11_3; the comparator 11_1 is used to compare the output pulse with a preset scanning period stored in the register 11_2 to obtain an illumination control signal; the timing generation circuit 11_3 is used to generate a scanning trigger signal, and determine the output trigger signal based on the output pulse; the illumination unit 12 is used to illuminate the detection object based on the illumination control signal; the scanning unit 13 is used to scan the detection object based on the scanning trigger signal to obtain a scanning signal; the data processing unit 14 is used to process the scanning signal to obtain an initial scanning result; the data output unit 15 is used to obtain a target scanning result based on the initial scanning result, and output the target scanning result based on the output trigger signal.

[0007] Optionally, the comparator 11_1 is further used to compare the output pulse with a preset scanning cycle stored in a register 11_2 in the control unit 11 to obtain a valid scanning cycle and an invalid scanning cycle, and determine a lighting control signal based on the valid scanning cycle and the invalid scanning cycle.

[0008] Optionally, the comparator 11_1 is also used to determine a first lighting duration within a period corresponding to a valid scanning period; the comparator 11_1 is also used to determine a second lighting duration within a period corresponding to an invalid scanning period; the comparator 11_1 is also used to determine a lighting control signal based on the valid scanning period, the invalid scanning period, the first lighting duration and the second lighting duration, wherein the first lighting duration is greater than the second lighting duration.

[0009] Optionally, the lighting unit 12 is also used to illuminate the detection object according to a first power during a first lighting duration within a valid scanning cycle; the lighting unit 12 is also used to illuminate the detection object according to a second power during a second lighting duration within an invalid scanning cycle; wherein the first power is greater than the second power.

[0010] Optionally, the lighting unit 12 uses light emitting diodes for lighting.

[0011] Optionally, the scanning unit 13 is further configured to receive a light signal generated by the detection object under the illumination of the illumination unit 12 based on a scanning trigger signal, and convert the light signal into an electrical signal to obtain a scanning signal.

[0012] Optionally, the data output unit 15 also includes: a data output control unit 15_1, wherein the data output control unit 15_1 is used to determine an invalid scanning cycle in an invalid scanning cycle, in which the adjacent next cycle is a valid scanning cycle, as a target cycle; the data output control unit 15_1 is also used to delete the scanning data corresponding to the target cycle in the initial scanning result to obtain the target scanning result; the data output control unit 15_1 is also used to output the target scanning result based on the output trigger signal.

[0013] Optionally, the data output unit 15 also includes: a data output control unit 15_1, wherein the data output control unit 15_1 is used to determine an invalid scanning cycle as a target cycle; the data output control unit 15_1 is also used to delete the scanning data corresponding to the target cycle in the initial scanning result to obtain the target scanning result; the data output control unit 15_1 is also used to output the target scanning result based on the output trigger signal.

[0014] Optionally, the data output unit 15 further includes: a buffer 15_2, wherein the buffer 15_2 is used to store the initial scanning result.

[0015] In the embodiment of the present invention, a comparator 11_1 and a register 11_2 are added to the control unit 11 of the image sensor, and a data output control unit 15_1 is added to the data output unit 15. By using the comparator 11_1 to compare the output pulse from the encoder with the scanning period stored in the register 11_2, since the encoder will not have an output pulse when the object to be detected does not move or does not need to be detected, it can be concluded when it is not necessary to illuminate the object to be detected based on the above comparison result, that is, an illumination control signal is obtained, and the illumination unit 12 in the image sensor is controlled according to the illumination control signal to reduce power waste. The newly added data output control unit 15_1 can filter the scanned data, for example, it can only output valid data, or it can be used to control not to output some data that does not meet the requirements in the valid data, etc., thereby achieving the technical effect of reducing power waste when using the image sensor to scan the detection object and improving the effectiveness of the scanned data, thereby solving the technical problem of power waste when the image sensor scans the detection object. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0017] Figure 1 is a schematic diagram of a contact image sensor provided according to an embodiment of the present invention;

[0018] Figure 2 It is a schematic diagram of a contact image sensor provided according to the prior art;

[0019] Figure 3 It is a timing control schematic diagram of a contact image sensor provided according to the prior art;

[0020] Figure 4 is a schematic diagram of an optional contact image sensor provided according to the present invention;

[0021] Figure 5 The timing control provided by the optional contact image sensor according to the present invention Figure 1

[0022] Figure 6 The timing control provided by the optional contact image sensor according to the present invention Figure 2 . DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] In the related technology, contact image sensors have been widely used in the field of industrial inspection. In order to match the moving speed of the object to be inspected in industrial inspection, the contact image sensor is generally connected to the transmission mechanism of the object to be inspected through an encoder. The contact image sensor matches the output pulse of the encoder. Generally, the scanning unit and the lighting unit of the contact image sensor are used to trigger the scanning in a self-propelled mode. The data processing unit transmits the image information scanned by the scanning unit according to the output pulse of the encoder to form a 1:1 scanned image compared with the object to be inspected. However, sometimes, due to the replacement of the object to be inspected or the fact that some objects to be inspected do not need to be inspected, the moving speed of the object to be inspected is quite slow, and even the object to be inspected is completely stopped for a long time, and the moving speed is 0, and the encoder does not output pulses for a long time. At this time, the data processing unit of the contact image sensor does not receive the output pulse of the encoder and does not need to transmit the image information scanned by the scanning unit. The scanning unit and the lighting unit still perform line trigger scanning in the self-propelled mode, and the matching light source system is also lighting, resulting in a waste of electricity (for high-speed detection of objects with low grayscale values, high-brightness lighting is particularly required, and the current of some lighting is more than 10A, which consumes huge power). At the same time, the scanning unit and the lighting unit are always working, which will give users a bad experience.

[0026] Figure 2 is a schematic diagram of a contact image sensor provided according to the prior art, such as Figure 2As shown, the contact image sensor includes: an illumination unit 201, a control unit 202, a scanning unit 203, a data processing unit 204 and a data output unit 205.

[0027] The timing generation circuit in the control unit 202 generates the timing logic signals and the row trigger signal Sensor_TRIG2 required by the scanning unit 203, and controls the scanning unit 202 to perform the self-travel trigger scanning of the contact image sensor according to the self-travel trigger signal (i.e., the self-travel cycle) Sensor_TRIG2; the timing generation circuit in the control unit 202 also generates the trigger signal D_TRIG2 used for the data output unit output according to the TRIG1 signal of the external motor encoder 206; at the same time, the timing generation circuit in the control unit 202 also generates the lighting control signal LED2 required by the lighting unit 201. The light emitted by the lighting unit 201 is irradiated on the object to be detected, and the light signal generated on the object to be detected enters the scanning unit 203. The scanning unit 203 converts the received light signal into an electrical signal and transmits it to the data processing unit 204. The data processing unit 204 processes the data and transmits it to the data output unit 205. The data output unit 205 outputs the data according to the D_TRIG2 signal generated by the control unit 202 and transmits it to the host computer or industrial computer. The above is the entire scanning and data processing process of the contact image sensor.

[0028] Figure 3 Schematic diagram of timing control of a contact image sensor provided by prior art. Figure 3 As shown, the timing generation circuit in the control unit 202 generates the timing logic signals and the row trigger signal Sensor_TRIG2 required by the scanning unit 203, and controls the scanning unit 203 to perform the self-travel trigger scanning of the contact image sensor according to the self-travel trigger signal (i.e., the self-travel cycle) Sensor_TRIG2; the timing generation circuit in the control unit 202 also generates the trigger signal D_TRIG2 used by the data output unit output according to the TRIG1 signal of the external motor encoder 206; at the same time, the timing generation circuit in the control unit 202 also generates the lighting control signal LED2 required by the lighting unit 201. Figure 3It can be seen that in each row period of the scanning unit (Ta-1, Ta, Ta+1, Ta+2, Ta+3, Ta+4, Ta+5, Ta+6, Ta+7, Ta+8, Ta+9, Ta+10...), the lighting time of the lighting unit 201 is ton. The light emitted by the lighting unit 201 irradiates the object to be detected, and the object to be detected generates a light signal that enters the scanning unit 203. The scanning unit 203 converts the received light signal into an electrical signal and transmits it to the data processing unit 204. The data processing unit 204 processes the data and transmits it to the data output unit 205. The data output unit 205 outputs the self-running data SIG (Vsa-1, Vsa, Vsa+1, Vsa+2, Vsa+3, Vsa+4, Vsa+5, Vsa+6, Vsa+7, Vsa+8, Vsa+9, Vsa+10) according to the D_TRIG2 signal generated by the control unit 202, and outputs the data Vsa-1, Vsa, Vsa+7, Vsa+8, Vsa+9, Vsa+10 (the valid data output trigger signals in D_TRIG2 are n-1, n, n+1, n+2, n+3, n+4, and their corresponding data signals are Vsa-1, Vsa, Vsa+7, Vsa+8, Vsa+9, Vsa+10, respectively), and transmits them to the host computer or industrial computer. During the scanning work of the contact image sensor, the lighting of the lighting unit 1 is meaningful only during the scanning of data Vsa-1, Vsa, Vsa+7, Vsa+8, Vsa+9, and Vsa+10, while the lighting of the lighting unit 1 is invalid during the scanning of Vsa+2, Vsa+3, Vsa+4, Vsa+5, and Vsa+6, resulting in huge waste of electricity and poor user experience. Therefore, it is necessary to develop a contact image sensor that saves electricity and gives users a good experience.

[0029] In view of the above technical problems, an embodiment of the present invention provides a contact image sensor. Figure 1 is a schematic diagram of a contact image sensor provided according to an embodiment of the present invention, such as Figure 1 As shown, the contact image sensor includes: a control unit 11, an illumination unit 12, a scanning unit 13, a data processing unit 14 and a data output unit 15. The image sensor is described below.

[0030] A control unit 11 is used to receive an output pulse from an encoder, wherein the output pulse is determined based on a moving speed of a detection object, wherein the control unit 11 comprises: a comparator 11_1, a register 11_2 and a timing generation circuit 11_3;

[0031] The comparator 11_1 is used to compare the output pulse with the preset scanning period stored in the register 11_2 to obtain a lighting control signal;

[0032] The timing generation circuit 11_3 is used to generate a scan trigger signal and determine an output trigger signal based on the output pulse;

[0033] an illumination unit 12, configured to illuminate the detection object based on the illumination control signal;

[0034] The scanning unit 13 is used to scan the detection object based on the scanning trigger signal to obtain a scanning signal;

[0035] The data processing unit 14 is used to process the scanning signal to obtain an initial scanning result;

[0036] The data output unit 15 is used to obtain a target scanning result based on the initial scanning result, and output the target scanning result based on the output trigger signal.

[0037] By adding a comparator 11_1 and a register 11_2 to the control unit 11 of the image sensor, and adding a data output control unit 15_1 to the data output unit 15, the comparator 11_1 is used to compare the output pulse from the encoder and the scanning period stored in the register 11_2. Since the encoder will not have an output pulse when the object to be detected does not move or does not need to be detected, it can be concluded according to the above comparison result when it is not necessary to illuminate the object to be detected, that is, a lighting control signal is obtained, and the lighting unit 12 in the image sensor is controlled according to the lighting control signal to reduce power waste, thereby achieving the technical effect of reducing power waste when the image sensor is used to scan the detection object and improving the validity of the scan data, thereby solving the technical problem of power waste when the image sensor scans the detection object.

[0038] As an optional embodiment, the comparator 11_1 is also used to compare the output pulse and the preset scanning cycle stored in the register 11_2 in the control unit 11 to obtain the valid scanning cycle and the invalid scanning cycle, and determine the lighting control signal based on the valid scanning cycle and the invalid scanning cycle.

[0039] The preset scanning period in the register 11_2 can be adjusted accordingly according to the actual application scenario. For example, it can be set and adjusted according to the pulse period output by the encoder when the detection object moves at a normal speed, and so on.

[0040] When comparing the output pulse with the preset scanning cycle, the comparator 11_1 determines the valid scanning cycle and the invalid scanning cycle corresponding to the output pulse according to the comparison result. For example, the valid scanning cycle can be determined based on the output pulse generated by the encoder when the moving speed of the detection object is higher than the speed threshold, and the comparator 11_1 can determine the invalid scanning cycle based on the output pulse generated by the encoder when the moving speed of the detection object is not higher than the speed threshold, etc. Therefore, the comparator 11_1 can determine when the detection object needs normal lighting and when it does not need continuous lighting according to the comparison of the output pulse and the preset scanning cycle, that is, determine the lighting control signal.

[0041] As an optional embodiment, the comparator 11_1 is also used to determine a first lighting duration within a period corresponding to a valid scanning period; the comparator 11_1 is also used to determine a second lighting duration within a period corresponding to an invalid scanning period; the comparator 11_1 is also used to determine a lighting control signal based on the valid scanning period, the invalid scanning period, the first lighting duration and the second lighting duration, wherein the first lighting duration is greater than the second lighting duration.

[0042] In the process of determining the lighting control signal based on the effective scanning cycle and the invalid scanning cycle, the comparator 11_1 can also adjust the lighting control details corresponding to the lighting control signal, for example, the lighting duration in the effective scanning cycle and the invalid scanning cycle can be controlled. For the effective scanning cycle, the moving speed of the detection object is higher than the speed threshold at this time, indicating that the detection object needs to be scanned, that is, sufficient lighting is required. Therefore, the lighting control signal corresponding to the effective scanning cycle can control the lighting unit 12 to use the first lighting duration for lighting, so as to ensure that there can be sufficient lighting when scanning the detection object, and obtain accurate and effective scanning results. For the invalid scanning cycle, the moving speed of the detection object is not higher than the speed threshold at this time, indicating that the detection object is in a stationary or slowly moving state, that is, it is not necessary to scan the detection object, and it is not necessary to illuminate the detection object. Therefore, the lighting control signal corresponding to the invalid scanning cycle can control the lighting unit 12 to use the second lighting duration for lighting, so as to shorten the lighting time when the detection object does not need to be scanned, thereby achieving the technical effect of reducing power waste.

[0043] It should be noted that the above-mentioned first lighting duration and second lighting duration can be the duration within a lighting cycle. For example, a lighting cycle can be set, in which lighting is only performed during the first lighting duration / second lighting duration, and no lighting is performed during the remaining time of the lighting cycle T, and so on.

[0044] As an optional embodiment, the lighting unit 12 is also used to illuminate the detection object according to the first power during the first lighting duration in the effective scanning cycle; the lighting unit 12 is also used to illuminate the detection object according to the second power during the second lighting duration in the invalid scanning cycle; wherein the first power is greater than the second power. After receiving the lighting control signal from the comparator 11_1, the lighting unit 12 can adjust the power used for lighting according to the lighting control signal. For example, normal lighting is required during the first lighting duration, so the lighting unit 12 can illuminate according to the first power with higher power to ensure the lighting effect, while lighting is not required or the lighting intensity needs to be reduced during the second lighting duration, so the lighting unit 12 can illuminate according to the second power with lower power to save power resources.

[0045] It should be noted that when the comparator 11_1 generates the lighting control signal, it can also directly use the lighting control signal to control the lighting unit 12 not to illuminate the detection object during the invalid scanning period, that is, the second lighting duration can be set to zero, and / or the second power can be set to zero, etc.

[0046] As an optional embodiment, the lighting unit 12 uses light emitting diodes for lighting.

[0047] As an optional embodiment, the scanning unit 13 is also used to receive the light signal generated by the detection object under the illumination of the lighting unit 12 based on the scanning trigger signal, and convert the light signal into an electrical signal to obtain a scanning signal. The light emitted by the lighting unit 12 irradiates the detection object, and the light signal generated on the detection object enters the scanning unit 13. The scanning unit 13 converts the received light signal into an electrical signal, that is, obtains a scanning signal, and transmits the scanning signal to the data processing unit 14, and then the data processing unit 14 continues to perform operations such as data processing.

[0048] As an optional embodiment, the data output unit 15 further includes: a data output control unit 15_1, wherein the data output control unit 15_1 is used to determine the invalid scanning cycle in the invalid scanning cycle, in which the next cycle adjacent to the invalid scanning cycle is a valid scanning cycle, as the target cycle; the data output control unit 15_1 is also used to delete the scanning data corresponding to the target cycle in the initial scanning result to obtain the target scanning result; the data output control unit 15_1 is also used to output the target scanning result based on the output trigger signal. After the comparator 11_1 generates the illumination control signal, and the illumination unit 12 adjusts the illumination based on the illumination control signal, invalid data may exist in the scanning signal obtained by the scanning unit 13. Therefore, in this embodiment, by adding the data output control unit 15_1 in the data output unit 15 of the image sensor, these invalid data can be filtered out.

[0049] For example, at the junction of an invalid scanning cycle and a valid scanning cycle, that is, the current cycle is an invalid scanning cycle and the next cycle is a valid scanning cycle, since the lighting duration and / or power of the detection object during the invalid scanning cycle is low, there will be a row of data in the valid data obtained by the scan that is too low to be used. Therefore, this embodiment improves the data accuracy and availability of the scanning results by deleting the data corresponding to this cycle.

[0050] As an optional embodiment, the data output unit 15 further includes: a data output control unit 15_1, wherein the data output control unit 15_1 is used to determine the invalid scanning period as the target period; the data output control unit 15_1 is also used to delete the scanning data corresponding to the target period in the initial scanning result to obtain the target scanning result; the data output control unit 15_1 is also used to output the target scanning result based on the output trigger signal. In addition to deleting only the data corresponding to the period at the intersection of the valid scanning period and the invalid scanning period as described above, this embodiment can also delete all the data corresponding to the invalid scanning period and only output the scanning result corresponding to the valid scanning period.

[0051] As an optional embodiment, the data output unit 15 further includes: a buffer 15_2, wherein the buffer 15_2 is used to store the initial scanning result. The buffer 15_2 in this embodiment stores the scanning result that has not been deleted, that is, the initial scanning result, so as to facilitate the subsequent calling, checking or analysis of the data, etc.

[0052] Based on the above embodiments and optional embodiments, the present invention proposes an optional contact image sensor, which is described below.

[0053] Figure 4 is a schematic diagram of an optional contact image sensor provided according to the present invention, such as Figure 4 As shown, the image sensor is composed of an illumination unit 401 , a control unit 402 , a scanning unit 403 , a data processing unit 404 and a data output unit 405 .

[0054] The control unit 402 is composed of a comparator 4021, a register 4022 and a timing generation circuit 4023, and the data output unit 405 is composed of a buffer 4051 and a data output control unit 4052. The register 4022 stores a fixed time T, which is used to compare with the encoder's line cycle signal TRIG3 in the comparator 4021. The timing generating circuit in the control unit 402 generates the timing logic signals and the row trigger signal Sensor_TRIG4 required by the scanning unit 403, and controls the scanning unit 402 to perform the self-travel trigger scanning of the contact image sensor according to the self-travel trigger signal (i.e., the self-travel cycle) Sensor_TRIG4; the timing generating circuit in the control unit 402 also generates the trigger signal D_TRIG4 used for the data output unit output according to the TRIG3 signal of the external motor encoder 406; at the same time, the register 4022 in the timing generating circuit in the control unit 402 stores a fixed time T and the row cycle signal TRIG3 of the encoder, which are compared in the comparator 4021 to generate the lighting control signal LED4 required by the lighting unit 401. The lighting control signal LED4 controls the lighting unit 401 to emit light in bright and dark, that is, the lighting unit 401 emits light normally during the effective scanning row cycle, and the lighting time of the lighting unit is reduced and the light is weak during the ineffective scanning row cycle. The light emitted by the lighting unit 401 is irradiated onto the object to be detected, and the object to be detected generates a light signal which enters the scanning unit 403. The scanning unit 403 converts the received light signal into an electrical signal and transmits it to the data processing unit 404. The data processing unit 404 processes the data and transmits it to the data output unit 405. The buffer 4051 in the data output unit 405 temporarily stores the self-traveling data, and the data output control unit 4051 then outputs the data according to the D_TRIG4 signal generated by the control unit 402 and transmits it to the host computer or industrial computer.

[0055] The actual working condition of the contact image sensor is described below.

[0056] (1) Application 1

[0057] The control unit 402 is composed of a comparator 4021, a register 4022 and a timing generating circuit 4023. The timing generating circuit 4023 in the control unit 402 generates various timing logic signals and a self-traveling trigger signal Sensor_TRIG4 required by the scanning unit 403, and controls the scanning unit 403 to perform a self-traveling trigger scan of the contact image sensor according to the self-traveling trigger signal (i.e., the self-traveling cycle) Sensor_TRIG4; a fixed time T is stored in the register 4022, and the fixed time T is used to compare with the line cycle signal TRIG3 of the encoder in the comparator 4021 to generate the lighting control signal LED4 required by the lighting unit 401. The lighting control signal LED4 controls the lighting unit 401 to emit light in bright and dark, that is, the lighting unit 401 emits light normally during the effective scanning line cycle, and the lighting unit emits light with a reduced lighting time and weak light during the ineffective scanning line cycle.

[0058] Figure 5 The timing control provided by the optional contact image sensor according to the present invention Figure 1 ,like Figure 5As shown, after comparison, the illumination control signal LED4, within the time Tn-1, Tn, Tn+2, Tn+3, Tn+4 of the encoder line cycle signal TRIG3, the illumination time of LED4 is ton, within the time Tn+1 of TRIG3, the illumination time of LED4 is ton1, the illumination time ton1 is much less than the illumination time ton, which can greatly save the illumination power. The timing generation circuit in the control unit 402 also generates the trigger signal D_TRIG4 used for the data output unit output according to the TRIG3 signal of the external motor encoder 406. In each line cycle of the scanning unit (Ta-1, Ta, Ta+1, Ta+2, Ta+3, Ta+4, Ta+5, Ta+6, Ta+7, Ta+8, Ta+9, Ta+10...), the illumination control signal LED4 controls the illumination unit 401 to emit light according to the timing. The light emitted by the lighting unit 401 is irradiated onto the object to be detected, and the object to be detected generates a light signal which enters the scanning unit 403. The scanning unit 403 converts the received light signal into an electrical signal and transmits it to the data processing unit 404. The data processing unit 404 processes the data and transmits it to the data output unit 405. The buffer 4051 in the data output unit 405 temporarily stores the self-running data SIG (Vsa-1, Vsa, Vsa+1, Vsa+2, Vsa+3, Vsa+4, Vsa+5, Vsa+6, Vsa+7, Vsa+8, Vsa+9, Vsa+10), and the data output control unit 4052 outputs the data Vsa-1, Vsa, Vsa+7, Vsa+8, Vsa+9, Vsa+10 according to the D_TRIG4 signal generated by the control unit 402 (the valid data output trigger signals in D_TRIG4 are n-1, n, n+1, n+2, n+3, n+4, and their corresponding data signals are Vsa-1, Vsa, Vsa+7, Vsa+8, Vsa+9, Vsa+10, respectively), and transmits them to the host computer or industrial computer. During the scanning work of the contact image sensor, the lighting of lighting unit 1 is meaningful only during the scanning of data Vsa-1, Vsa, Vsa+7, Vsa+8, Vsa+9, and Vsa+10, while the lighting of lighting unit 1 is invalid during the scanning of Vsa+2, Vsa+3, Vsa+4, Vsa+5, and Vsa+6. During this period, the lighting time of the lighting unit in each row cycle is ton1, which is much shorter than the normal lighting time, greatly saving lighting power. The light is weak, giving customers a good experience.

[0059] (2) Application 2

[0060] In application 1, after lighting according to the lighting control signal LEDT4, the lighting time of a row of data Vsa+7 of the effective data signal is ton1, which is less than the normal lighting time ton, so that one row of data in the effective data is low, affecting the use. Therefore, in application 2, the data output control unit 4052 in the data output unit 405 may not output the data Vsa+7.

[0061] The control unit 402 is composed of a comparator 4021, a register 4022 and a timing generating circuit 4023. The timing generating circuit 4023 in the control unit 402 generates various timing logic signals and a self-traveling trigger signal Sensor_TRIG4 required by the scanning unit 403, and controls the scanning unit 403 to perform a self-traveling trigger scan of the contact image sensor according to the self-traveling trigger signal (i.e., the self-traveling cycle) Sensor_TRIG4; a fixed time T is stored in the register 4022, and the fixed time T is used to compare with the line cycle signal TRIG3 of the encoder in the comparator 4021 to generate the lighting control signal LED4 required by the lighting unit 401. The lighting control signal LED4 controls the lighting unit 401 to emit light in bright and dark, that is, the lighting unit 401 emits light normally during the effective scanning line cycle, and the lighting unit emits light with a reduced lighting time and weak light during the ineffective scanning line cycle.

[0062] Figure 6 The timing control provided by the optional contact image sensor according to the present invention Figure 2 ,like Figure 6As shown, after comparison, the illumination control signal LED4, within the time Tn-1, Tn, Tn+2, Tn+3, Tn+4 of the encoder line cycle signal TRIG3, the illumination time of LED4 is ton, within the time Tn+1 of TRIG3, the illumination time of LED4 is ton1, the illumination time ton1 is much less than the illumination time ton, which can greatly save the illumination power. The timing generation circuit in the control unit 402 also generates the trigger signal D_TRIG4 used for the data output unit output according to the TRIG3 signal of the external motor encoder 406. In each line cycle of the scanning unit (Ta-1, Ta, Ta+1, Ta+2, Ta+3, Ta+4, Ta+5, Ta+6, Ta+7, Ta+8, Ta+9, Ta+10...), the illumination control signal LED4 controls the illumination unit 401 to emit light according to the timing. The light emitted by the lighting unit 401 is irradiated onto the object to be detected, and the object to be detected generates a light signal which enters the scanning unit 403. The scanning unit 403 converts the received light signal into an electrical signal and transmits it to the data processing unit 404. The data processing unit 404 processes the data and transmits it to the data output unit 405. The buffer 4051 in the data output unit 405 temporarily stores the self-running data SIG (Vsa-1, Vsa, Vsa+1, Vsa+2, Vsa+3, Vsa+4, Vsa+5, Vsa+6, Vsa+7, Vsa+8, Vsa+9, Vsa+10), and the data output control unit 4052 outputs the data Vsa-1, Vsa, Vsa+8, Vsa+9, Vsa+10 according to the D_TRIG4 signal generated by the control unit 402. Although the valid data output trigger signals in D_TRIG4 are n-1, n, n+1, n+2, n+3, n+4, and their corresponding data signals are Vsa-1, Vsa, Vsa+7, Vsa+8, Vsa+9, Vsa+10, the data output control unit 4052 controls the data output unit not to output Vsa+7, and will not output the data within the lighting time of ton1, but only outputs the data within the normal lighting time ton. During the scanning work of the contact image sensor, the lighting of lighting unit 1 is meaningful only during the scanning of data Vsa-1, Vsa, Vsa+8, Vsa+9, and Vsa+10, while the lighting of lighting unit 1 is invalid during the scanning of Vsa+2, Vsa+3, Vsa+4, Vsa+5, Vsa+6, and Vsa+7. During this period, the lighting time of the lighting unit in each row cycle is ton1, which is much shorter than the normal lighting time, greatly saving lighting power. The light is weak, giving customers a good experience.

[0063] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0064] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0065] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0066] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0067] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0068] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0069] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A contact image sensor, characterized in that: include: A control unit (11), an illumination unit (12), a scanning unit (13), a data processing unit (14) and a data output unit (15), wherein: The control unit (11) is used to receive an output pulse from an encoder, wherein the output pulse is determined based on a moving speed of a detection object, wherein the control unit (11) comprises: a comparator (11_1), a register (11_2) and a timing generation circuit (11_3); The comparator (11_1) is used to compare the output pulse with the preset scanning period stored in the register (11_2) to obtain a lighting control signal; The timing generation circuit (11_3) is used to generate a scanning trigger signal and determine an output trigger signal based on the output pulse; The lighting unit (12) is used to illuminate the detection object based on the lighting control signal; The scanning unit (13) is used to scan the detection object based on the scanning trigger signal to obtain a scanning signal; The data processing unit (14) is used to process the scanning signal to obtain an initial scanning result; The data output unit (15) is used to obtain a target scanning result based on the initial scanning result, and output the target scanning result based on the output trigger signal; The comparator (11_1) is further used to compare the output pulse with a preset scanning cycle stored in a register (11_2) in the control unit (11), obtain a valid scanning cycle and an invalid scanning cycle, and determine the lighting control signal based on the valid scanning cycle and the invalid scanning cycle; The comparator (11_1) is also used to determine a first lighting duration within a period corresponding to the effective scanning period; The comparator (11_1) is also used to determine a second lighting duration within a period corresponding to the invalid scanning period; The comparator (11_1) is further used to determine the lighting control signal based on the effective scanning period, the invalid scanning period, the first lighting duration and the second lighting duration, wherein the first lighting duration is greater than the second lighting duration; The lighting unit (12) is also used to illuminate the detection object according to the first power within the first lighting duration within the effective scanning cycle; The lighting unit (12) is further used to illuminate the detection object according to the second power within the second lighting duration in the invalid scanning cycle; Wherein, the first power is greater than the second power.

2. The image sensor according to claim 1, characterized in that The lighting unit (12) uses light emitting diodes for lighting.

3. The image sensor according to claim 1, characterized in that The scanning unit (13) is also used to receive, based on the scanning trigger signal, a light signal generated by the detection object under the illumination of the illumination unit (12), and convert the light signal into an electrical signal to obtain the scanning signal.

4. The image sensor according to claim 1, characterized in that The data output unit (15) further comprises: a data output control unit (15_1), wherein: The data output control unit (15_1) is used to determine the invalid scanning cycle whose adjacent next cycle is a valid scanning cycle in the invalid scanning cycle as the target cycle; The data output control unit (15_1) is also used to delete the scan data corresponding to the target period in the initial scan result to obtain the target scan result; The data output control unit (15_1) is also used to output the target scanning result based on the output trigger signal.

5. The image sensor according to claim 1, characterized in that The data output unit (15) further comprises: a data output control unit (15_1), wherein: The data output control unit (15_1) is used to determine the invalid scanning period as a target period; The data output control unit (15_1) is also used to delete the scan data corresponding to the target period in the initial scan result to obtain the target scan result; The data output control unit (15_1) is also used to output the target scanning result based on the output trigger signal.

6. The image sensor according to claim 1, characterized in that: The data output unit (15) further comprises: a buffer (15_2), wherein: The buffer (15_2) is used to store the initial scanning result.

Citation Information

Patent Citations

  • Contact type image sensor

    CN112073592A

  • Image input device

    JP1995288658A

  • Manual scanning-type color image input device

    JP1999055471A

Cited By

  • Contact type image sensor

    EP4531407A1