Photosensor and method for color detection and electrical product

Through the photoelectric sensor of red, green, blue and infrared light-emitting diodes, the optical characteristics of the infrared channel are used to calculate the signal components and set the threshold, which solves the misjudgment problem in blue label detection and achieves high-precision blue recognition.

CN120274884APending Publication Date: 2025-07-08OMRON SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410026789.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-08
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The prior art is prone to confusion with black labels when detecting blue labels, making it difficult to reliably distinguish, resulting in misjudgment.

Method used

A photoelectric sensor including red, green, blue and infrared light emitting diodes is used to obtain the light-receiving detection signals of the red, green, blue channels and infrared channels, and use the optical characteristics of the infrared channels to enhance the blue detection capability, calculate the signal components and set the threshold for judgment.

Benefits of technology

It improves the accuracy and accuracy of blue detection, avoids confusion and misdetection of other colors such as blue and black, and improves the detection body recognition rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120274884A_ABST
    Figure CN120274884A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a photoelectric sensor and method for color detection and an electrical product. The photoelectric sensor includes: a light projecting section including a light source that projects a light source having visible light to an infrared wavelength onto a subject; a light receiving unit that receives the reflected light or transmitted light projected from the light projecting unit to the subject, and acquires and outputs a light receiving detection signal including a red-green-blue channel and an infrared channel, which are channels to be determined, according to optical characteristics of reflection or transmission of the subject; and a control unit that determines whether or not the color of the subject is the color of the channel to be determined on the basis of the light reception detection signal including the red-green-blue channel and the infrared channel. According to the embodiment of the invention, RGB + IR four-color signals can be read, the perceived wavelength range is increased, and the spectral information of an infrared channel is increased, so that the detection precision of blue can be improved, and the confusion and / or false detection of blue and black are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of color detection, and in particular, to a photoelectric sensor and method for color detection, and an electrical product. Background Art

[0002] Currently, in many industries, it is necessary to detect or calibrate the color of an object to be inspected. For example, in the secondary battery industry, in its calibration process, it is necessary to detect the colors of various labels. For example, to calibrate red, usually, a red-green-blue three-color light-emitting diode (LED) method or a blue LED + phosphor method is used to project light onto the label, irradiate standard white onto the label and then return the color light to be detected, and then read by a photosensitive element, so as to determine whether the label is a red label. Thus, the red label can be distinguished from labels of other colors.

[0003] It should be noted that the above introduction of the technical background is only for the convenience of clearly and completely explaining the technical solutions of the present invention and facilitating the understanding of those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art just because these solutions are described in the background art part of the present invention. Summary of the Invention

[0004] The inventors found that in the above color detection method, when detecting the color of a blue or a test object including a blue component (such as phthalocyanine, cobalt blue, ultramarine, iron blue, etc.), misjudgment is likely to occur; for example, it is easy to confuse a blue label or a label including a blue component with a black label, that is, it is difficult to distinguish or differentiate a blue test object and a black test object. That is to say, in the secondary battery industry, there is a problem that it is difficult to reliably detect a blue detected object.

[0005] To solve at least one of the above problems or other similar problems, an embodiment of the present application provides a photoelectric sensor and method for color detection, and an electrical product. The photoelectric sensor and the color detection method can be mainly applied to a blue detected object of a secondary battery.

[0006] According to a first aspect of an embodiment of the present application, there is provided a photoelectric sensor for color detection, wherein the photoelectric sensor includes: a light projecting part, the light projecting part including a light source for projecting light with a visible light to infrared wavelength onto a test object; a light receiving part, the light receiving part for receiving the reflected light or transmitted light after being projected from the light projecting part onto the test object, and obtaining and outputting a light receiving detection signal including a red-green-blue channel and an infrared channel as channels to be determined according to the reflection or transmission optical characteristics of the test object; and a control part, the control part for judging whether the color of the test object is the color of the channel to be determined according to the light receiving detection signal including the red-green-blue channel and the infrared channel.

[0007] In some embodiments, the light source includes a red light-emitting diode, a green light-emitting diode, a blue light-emitting diode, and an infrared light-emitting diode, and the photosensitive element of the light-receiving part includes a photodiode photosensitive element.

[0008] In some embodiments, the light source includes a phosphor-excited light-emitting diode having white light and an infrared wavelength, and the photosensitive element of the light-receiving part includes a diode array of red, green, blue, and infrared.

[0009] In some embodiments, the control unit includes: a data processing unit that acquires a light-receiving detection signal including the red, green, and blue channels and the infrared channel, and obtains a signal component of each channel to be determined by calculating the light-receiving amount of each channel to be determined in the light-receiving detection signal; a comparison unit that compares the signal component of the channel to be determined acquired by the data processing unit with a minimum threshold and a maximum threshold of the color to be determined; and a determination unit that determines whether the object to be inspected is the color of the channel to be determined based on the comparison result, and if the signal component of the channel to be determined is greater than or equal to the minimum threshold and less than or equal to the maximum threshold, the object to be inspected is the color of the channel to be determined.

[0010] In some embodiments, the photoelectric sensor further includes: a reference color recording unit that records the reference color of the channel to be determined; a tolerance deviation setting unit that sets a tolerance deviation for the same color of each channel to be determined; and a threshold setting unit that sets the minimum threshold and the maximum threshold of the channel to be determined based on the reference color and the tolerance deviation for the same color.

[0011] In some embodiments, the threshold setting unit adds the reference color and the tolerance deviation for the same color as the maximum threshold of the channel to be determined, and subtracts the tolerance deviation for the same color from the reference color as the minimum threshold of the channel to be determined.

[0012] In some embodiments, the data processing unit calculates the signal component of each channel to be determined according to the following formula (1):

[0013] Red channel evaluation value = (R - rr) / (R + G + B + IR - rr - gg - bb - irr)

[0014] Green channel evaluation value = (G - gg) / (R + G + B + IR - rr - gg - bb - irr)

[0015] Blue channel evaluation value = (B - bb) / (R + G + B + IR - rr - gg - bb - irr)

[0016] Infrared channel evaluation value = (IR - irr) / (R + G + B + IR - rr - gg - bb - irr) (1);

[0017] Among them, R, G, B, and IR are the light reception amounts of each channel to be determined respectively; rr, gg, bb, and irr are the maximum values of the noise components for each channel to be determined respectively, and x% is the allowable deviation of the same color for each channel to be determined.

[0018] In some embodiments, the color of the channel to be determined includes blue.

[0019] According to a second aspect of the embodiments of the present application, an electrical product is provided, wherein the electrical product includes the photoelectric sensor described in the foregoing first aspect.

[0020] According to a third aspect of the embodiments of the present application, a method for color detection is provided, wherein the method includes: projecting a light source with visible to infrared wavelengths onto the object to be inspected; receiving the reflected light or transmitted light after being projected onto the object to be inspected, and obtaining and outputting a light reception detection signal including the red, green, blue channels and the infrared channel as channels to be determined according to the reflection or transmission optical characteristics of the object to be inspected; and determining whether the color of the object to be inspected is the color of the channel to be determined according to the light reception detection signal including the red, green, blue channels and the infrared channel.

[0021] One of the beneficial effects of the embodiments of the present invention is that by projecting a detection light source with an infrared wavelength onto the object to be inspected, the light receiving part can obtain an IR signal, thereby improving the detection accuracy of blue. Furthermore, the light receiving part obtains and outputs a light reception detection signal including the red, green, blue channels and the infrared channel as channels to be determined, and the control part determines whether the color of the object to be inspected is the color of the channel to be determined according to the light reception detection signal. That is, in the sensor of the present application, the light receiving part obtains RGB + IR four-color signals, expands the perceived wavelength range, increases the spectral information of the infrared channel, thereby improving the detection accuracy of blue and avoiding the confusion and / or misdetection of blue with other colors such as black.

[0022] Referring to the following description and drawings, specific embodiments of the present invention are disclosed in detail, indicating the ways in which the principles of the present invention can be adopted. It should be understood that the embodiments of the present invention are not limited thereby in scope. Within the spirit and terms of the appended claims, the embodiments of the present invention include many changes, modifications, and equivalents.

[0023] Features described and / or illustrated for one embodiment can be used in the same or similar way in one or more other embodiments, combined with the features in other embodiments, or replace the features in other embodiments.

[0024] It should be emphasized that the term "comprising / including" as used herein refers to the presence of features, whole units, steps or components, but does not exclude the presence or addition of one or more other features, whole units, steps or components. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings included are used to provide a further understanding of the embodiments of the present invention, which form a part of the specification, and are used to illustrate the embodiments of the present invention and, together with the written description, to explain the principles of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. In the drawings:

[0026] Figure 1 is a block diagram of a photoelectric sensor for color detection according to an embodiment of the first aspect of the present application.

[0027] Figure 2 is a schematic structural diagram of a photoelectric sensor 100 for color detection according to an embodiment of the first aspect of the present application.

[0028] Figure 3 is another schematic structural diagram of a photoelectric sensor 100 for color detection according to an embodiment of the first aspect of the present application.

[0029] Figure 4 is a block diagram of a control unit 103 according to an embodiment of the first aspect of the present application.

[0030] Figure 5 is a schematic diagram of a method for color detection according to an embodiment of the third aspect of the present application.

[0031] Figure 6 is a schematic diagram of step 503 according to an embodiment of the third aspect of the present application.

[0032] Figure 7 is a flowchart of a color detection method according to an embodiment of the third aspect of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0033] Referring to the accompanying drawings, through the following description, the foregoing and other features of the present invention will become apparent. In the description and drawings, specific embodiments of the present invention are disclosed, which show some embodiments in which the principles of the present invention can be applied. It should be understood that the present invention is not limited to the described embodiments, but on the contrary, the present invention includes all modifications, variations and equivalents falling within the scope of the appended claims.

[0034] In the embodiments of the present invention, terms such as "first" and "second" are used to distinguish different elements in terms of appellation, but do not represent the spatial arrangement or time sequence of these elements, and these elements should not be limited by these terms. The term "and / or" includes any one and all combinations of one or more of the associated listed terms.

[0035] In the embodiments of the present invention, the singular forms "a", "the", etc. include the plural forms and should be broadly understood as "a kind of" or "a class of" rather than being limited to the meaning of "one"; in addition, the term "said" should be understood to include both the singular form and the plural form unless the context clearly indicates otherwise. In addition, the term "according to" should be understood as "at least partly according to", and the term "based on" should be understood as "at least partly based on" unless the context clearly indicates otherwise.

[0036] The following describes various embodiments of the embodiments of the present invention with reference to the accompanying drawings. These embodiments are merely exemplary and do not limit the embodiments of the present invention.

[0037] Embodiments of the first aspect

[0038] Embodiments of the first aspect of the present application provide a photoelectric sensor for color detection, and the photoelectric sensor is, for example, a silicon-based sensor.

[0039] Figure 1 is a block diagram of a photoelectric sensor for color detection according to an embodiment of the first aspect of the present application.

[0040] As Figure 1 shown, the photoelectric sensor 100 may include: a light projecting unit 101, a light receiving unit 102, and a control unit 103. The light projecting unit 101 includes a light source for projecting light with a visible light (VIS) to an infrared wavelength (IR) onto the object to be inspected; the light receiving unit 102 is configured to receive the reflected light from the light projecting unit 101 after being projected onto the object to be inspected, and obtain and output a light receiving detection signal including a red-green-blue channel (RGB channel) and an infrared channel (IR channel) as channels to be determined according to the optical characteristics of the reflection of the object to be inspected; the control unit 103 is configured to determine whether the color of the object to be inspected is the color of the channel to be determined according to the light receiving detection signal including the RGB channel and the IR channel.

[0041] For example, in the calibration process of a secondary battery, it is necessary to calibrate the color of a label (the object to be inspected). For example, to calibrate blue, it is necessary to distinguish blue from other colors, that is, the color of the channel to be determined is blue; after projecting a light source with an infrared wavelength onto the label, a light receiving detection signal including the RGB channel and the IR channel is obtained according to the light reflected from the label, and based on this, it is determined whether the color of the label is blue.

[0042] In addition to calibrating blue, the embodiments of the present application can also calibrate colors such as red, purple, green, and yellow.

[0043] In addition to receiving the light reflected by the subject, the embodiments of the present application can also receive the light transmitted through the subject.

[0044] According to the above embodiments, the light receiving unit acquires and outputs a light receiving detection signal including the red, green, blue channels and the infrared channel as the channels to be determined, and the control unit determines whether the color of the subject is the color of the channels to be determined based on the light receiving detection signal. Through the sensor of the present application, the light receiving unit acquires RGB+IR four-color signals, expands the perceived wavelength range, increases the spectral information of the infrared channel, and thus the signal amount (information amount) of the blue component increases. Therefore, it is easier to distinguish blue from black, and thus blue can be accurately identified. Therefore, the detection accuracy of blue can be improved, and the detection ability of the mixed color containing the blue component is also greatly improved, avoiding the confusion and / or misdetection with other colors such as black, and the detection rate of the detected object is greatly improved.

[0045] The present application utilizes the optical characteristic that blue or the color including the blue component has a strong reflectivity in the infrared channel, that is, the optical characteristic of the infrared channel is used to enhance the detection ability of blue.

[0046] In the embodiments of the present application, the light source having an infrared wavelength is preferably a near-infrared (NIR) wavelength light source.

[0047] In the embodiments of the present application, the light projecting unit includes, for example, a light source and a light projecting circuit (not shown).

[0048] Figure 2 It is a schematic structural diagram of the optoelectronic sensor 100 for color detection according to the embodiments of the first aspect of the present application. Figure 3 It is another schematic structural diagram of the optoelectronic sensor 100 for color detection according to the embodiments of the first aspect of the present application. Figure 2 and Figure 3 show the signal flow direction.

[0049] In the embodiments of the present application, as Figure 2 shown, the light source S1 of the light projecting unit 101 is a red (R) light emitting diode, a green (G) light emitting diode, a blue (B) light emitting diode, and an infrared (IR) light emitting diode, and the photosensitive element of the light receiving unit 102 is a photodiode (PD) photosensitive element; as Figure 3 shown, the light source S2 of the light projecting unit 101 is a phosphor excitation type light emitting diode having white light and an IR wavelength, and the photosensitive element of the light receiving unit 102 is a diode array (IC) of RGB and IR.

[0050] That is to say, Figure 2The light sources of the light projecting parts of the photoelectric sensors shown share one light receiving part, that is, Figure 2 In the photoelectric sensor shown, light is divided into R, G, B, and IR on the light projecting side. On the light receiving side, PD detects the reflected R, G, B, and IR. The projected light is not filtered and is continuous. By controlling the timing of light projection, corresponding signals can be obtained. Figure 3 The light sources of the light projecting parts of the photoelectric sensors shown are phosphor-excited light emitting diodes having white light and IR wavelengths, and they respectively use two independent light receiving parts, that is, Figure 3 In the photoelectric sensor shown, a filter is arranged on the light receiving side. Therefore, a photosensitive diode (PD) array (IC) is used on the light receiving side to respectively identify R, G, B, and IR.

[0051] Compared with Figure 2 the photoelectric sensor shown and Figure 3 the photoelectric sensor shown, Figure 2 the product size of the photoelectric sensor shown is smaller, while Figure 3 the wavelength range that can be selected by the photoelectric sensor shown is wider.

[0052] In the embodiments of the present application, the light sources of the light projecting part 101 are not limited to the above-mentioned diodes, and any light emitting diodes that can emit light from the visible light band to the IR band are included in the present application.

[0053] Figure 4 It is a block diagram of the control part 103 of the embodiment of the first aspect of the present application.

[0054] As Figure 4 shown, the control part 103 may include: a data processing part 1031, a comparison part 1032, and a determination part 1033. Among them, the data processing part 1031 obtains the light receiving detection signals including the red, green, and blue channels and the infrared channel, and obtains the signal components of each channel to be determined by calculating the light receiving amounts of the channels to be determined in the light receiving detection signals; the comparison part 1032 compares the signal components of the channels to be determined obtained by the data processing part 1031 with the minimum threshold and the maximum threshold of the channels to be determined; the determination part 1033 determines whether the object to be inspected is the color of the channel to be determined according to the comparison result. If the signal component of the channel to be determined is greater than or equal to the minimum threshold and less than or equal to the maximum threshold, the object to be inspected is the color of the channel to be determined.

[0055] In the embodiments of the present application, as Figure 2 or Figure 3As shown, the photoelectric sensor 100 may further include: a reference color recording unit 104, a tolerance deviation setting unit 105, and a threshold setting unit 106. Among them, the reference color recording unit 104 records the reference color of the channel to be determined; the tolerance deviation setting unit 105 sets the tolerance deviation for the same color of each channel to be determined; the threshold setting unit 106 sets the maximum threshold and the minimum threshold of the channel to be determined according to the reference color of the channel to be determined and the tolerance deviation for the same color of the channel to be determined.

[0056] For example, the threshold setting unit 106 may add the reference color of the channel to be determined and the tolerance deviation for the same color of the channel to be determined as the maximum threshold of the channel to be determined, and subtract the tolerance deviation for the same color of the channel to be determined from the reference color of the channel to be determined as the minimum threshold of the channel to be determined.

[0057] For example, for the red channel, its reference color is R', and the tolerance deviation for the same color of the red channel is x R %, then the minimum threshold of the red channel is R' - x R %, and the maximum threshold is R' + x R %; for the green channel, its reference color is G', and the tolerance deviation for the same color of the green channel is x G %, then the minimum threshold of the green channel is G' - x G %, and the maximum threshold is G' + x G %; for the blue channel, its reference color is B', and the tolerance deviation for the same color of the blue channel is x B %, then the minimum threshold of the blue channel is B' - x B %, and the maximum threshold is B' + x B %; for the infrared channel, its reference color is IR', and the tolerance deviation for the same color of the infrared channel is x IR %, then the minimum threshold of the infrared channel is IR' - x IR %, and the maximum threshold is IR' + x IR %.

[0058] In the embodiment of the present application, the data processing unit 1031 calculates the signal components of each channel to be determined (for example: RGB channels and IR channels) according to the following formula (1):

[0059] Red channel evaluation value = (R - rr) / (R + G + B + IR - rr - gg - bb - irr)

[0060] Green channel evaluation value = (G - gg) / (R + G + B + IR - rr - gg - bb - irr)

[0061] Blue channel evaluation value = (B - bb) / (R + G + B + IR - rr - gg - bb - irr)

[0062] Infrared channel evaluation value = (IR - irr) / (R + G + B + IR - rr - gg - bb - irr) (1);

[0063] Wherein, R, G, B, and IR are the light reception amounts of each channel to be determined; rr, gg, bb, and irr are the maximum values of the noise components for each channel to be determined, and x% is the tolerance deviation of the same color for each channel to be determined.

[0064] For example, the evaluation value of each channel calculated by the above formula (1) is compared with the minimum threshold and the maximum threshold of each channel to be determined, and based on the comparison result, it is determined whether the color is the color of the channel to be determined; for example, if the color of the object to be inspected is blue, if the blue channel evaluation value calculated by the above formula (1) is greater than or equal to B' - x B % and less than or equal to B' + x B %, then it is determined that the color of the object to be inspected is blue.

[0065] The evaluation value of each channel calculated by this method is more accurate, so that the detection accuracy of blue objects can be better improved.

[0066] In the embodiment of the present application, as Figure 2 or Figure 3 shown, the data processing unit 1031 may include a noise filtering unit 10311. Among them, the noise filtering unit 10311 performs noise filtering on the light reception amount of each channel to be determined (for example, R, G, B, or IR in the above formula (1)), and obtains the light reception amount with the noise signal removed (for example, R - rr, G - gg, B - bb, or IR - irr in the above formula (1)).

[0067] In the embodiment of the present application, as Figure 2 or Figure 3 shown, the photoelectric sensor 100 may further include: a signal processing unit 107, an output unit 108, and a noise signal storage unit 109. Among them, the signal processing unit 107 identifies the light reception detection signal output by the light reception unit 102 as a signal of light for each determination channel, samples and holds the signal of light for each determination channel, and outputs the light reception detection signal for each determination channel; the output unit 108 receives the determination result of the determination unit 1033 and outputs the determination result as a binary signal. For example, if the determination result is yes, it outputs an ON signal, and if the determination result is no, it outputs an OFF signal; the noise signal storage unit 109 stores the noise signals of each channel to be determined (for example, rr, gg, bb, or irr in the above formula (1)), and the noise filtering unit 10311 performs noise filtering on the light reception amount based on the noise signals stored in the noise signal storage unit 109 and the noise signals of the channels to be determined.

[0068] In the embodiments of the present application, the color of the channel to be determined may be blue. Preferably, the color of the channel to be determined is of the cobalt blue type or the phthalocyanine type. However, the present application is not limited thereto. For example, the color of the channel to be determined may also be purple.

[0069] For the photoelectric sensor for color detection according to the embodiments of the present application, the light-receiving part obtains RGB+IR four-color signals, expands the wavelength range of perception, and increases the spectral information of the infrared channel. Therefore, the detection accuracy of blue can be improved, and the detection ability of mixed colors containing blue components is also greatly improved, avoiding the confusion and / or misdetection of blue with other colors such as black, and the detection rate of the detected object is greatly improved.

[0070] Embodiments of the second aspect

[0071] The embodiments of the second aspect of the present application provide an electrical product, which has the photoelectric sensor 100 for color detection described in the embodiments of the first aspect. Since the main structure of the photoelectric sensor 100 for color detection has been described in detail in the embodiments of the first aspect, the content is included herein and will not be repeated here.

[0072] In the embodiments of the present application, the electrical product including the photoelectric sensor 100 for color detection may be, for example, a device for color detection in the calibration process of a secondary battery.

[0073] For the electrical product according to the embodiments of the present application, through the included photoelectric sensor 100, the light-receiving part obtains and outputs a light-receiving detection signal including the red, green, and blue channels and the infrared channel as the channels to be determined. The control part determines whether the color of the object to be detected is the color of the channel to be determined according to the light-receiving detection signal. Through the sensor of the present application, the light-receiving part obtains RGB+IR four-color signals, expands the wavelength range of perception, and increases the spectral information of the infrared channel. As a result, the signal amount (information amount) of the blue component increases, and it is easier to distinguish blue from black, so that blue can be accurately identified. Therefore, the detection accuracy of blue can be improved, and the detection ability of mixed colors containing blue components is also greatly improved, avoiding the confusion and / or misdetection of blue with other colors such as black, and the detection rate of the detected object is greatly improved.

[0074] Embodiments of the third aspect

[0075] An embodiment of the third aspect of the present application provides a method for color detection. The color detection method is based on an RGB-IR optoelectronic sensor. Hereinafter, the color detection method in the calibration process of a secondary battery will be taken as an example for illustration. Since the principle of solving problems by this method is similar to that of the optoelectronic sensor for color detection in the embodiment of the first aspect, the specific implementation thereof can refer to the embodiment of the optoelectronic sensor for color detection in the first aspect, and the same content will not be repeated. In addition, the icons of the components used in the embodiment of the third aspect are the same as those in the embodiment of the first aspect.

[0076] Figure 5 It is a schematic diagram of the method for color detection according to the embodiment of the third aspect of the present application.

[0077] As Figure 5 shown, the method for color detection may include:

[0078] 501, projecting a light source with visible to infrared wavelengths onto the object to be inspected;

[0079] 502, receiving the reflected light or transmitted light after being projected onto the object to be inspected, and obtaining and outputting a light reception detection signal including red, green, blue channels and an infrared channel as channels to be determined according to the reflection or transmission optical characteristics of the object to be inspected; and

[0080] 503, judging whether the color of the object to be inspected is the color of the channel to be determined according to the light reception detection signal including red, green, blue channels and an infrared channel.

[0081] In the embodiment of the present application, the above infrared wavelength is preferably a near-infrared wavelength.

[0082] According to the above embodiment, by obtaining and outputting a light reception detection signal including red, green, blue channels and an infrared channel as channels to be determined, and judging whether the color of the object to be inspected is the color of the channel to be determined according to the light reception detection signal, RGB+IR four-color signals can be read out, the wavelength range of perception is increased, the spectral information of the infrared channel is increased, and thus the signal amount (information amount) of the blue component is increased, making it easier to distinguish blue from black, so that blue can be accurately identified. Therefore, the detection accuracy of blue can be improved, and the detection ability of mixed colors containing blue components is also greatly improved, avoiding the confusion and / or misdetection of blue with other colors such as black, and the detection rate of the detected object is greatly improved.

[0083] Figure 6 It is a schematic diagram of step 503 according to the embodiment of the third aspect of the present application.

[0084] As Figure 6 shown, judging whether the color of the object to be inspected is the color of the channel to be determined (503) according to the light reception detection signal including red, green, blue channels and an infrared channel may include:

[0085] 601. Obtain a light-receiving detection signal including red, green, blue channels and an infrared channel, and obtain the signal component of each channel to be determined by calculating the light-receiving amount of each channel to be determined in the light-receiving detection signal;

[0086] 602. Compare the obtained signal component of the channel to be determined with the maximum threshold and the minimum threshold of the channel to be determined; and

[0087] 603. Determine whether the object to be inspected is the color of the channel to be determined according to the comparison result.

[0088] For example, if the signal component of the channel to be determined is greater than or equal to the minimum threshold of the determination channel and less than or equal to the maximum threshold of the determination channel, the object to be inspected is the color of the channel to be determined.

[0089] Among them, step 601 calculates the signal components of each channel to be determined (for example, red, green, blue channels and infrared channels) according to the above formula (1).

[0090] In the embodiment of the present application, before the above step 501, the method for color detection may further include: recording the reference color of the channel to be determined; setting the allowable deviation of the same color for each channel to be determined; and setting the minimum and maximum thresholds of each channel to be determined according to the reference color and the allowable deviation of the same color.

[0091] In the embodiment of the present application, after the above step 502, the method for color detection may further include: identifying the output light-receiving detection signal as the signal of the light for each channel to be determined, performing sample and hold on the signal of the light for each channel to be determined, and outputting the light-receiving detection signal for each channel to be determined.

[0092] In the embodiment of the present application, after the above step 503, the method for color detection may further include: receiving the determination result and outputting the determination result as a binary signal.

[0093] In the embodiment of the present application, before the above step 601, the method for color detection may further include: storing the noise signal of each channel to be determined. The above step 601 performs noise filtering on each light-receiving amount based on the noise signal of the channel to be determined.

[0094] The specific process of the color detection method in the calibration process of the secondary battery will be described below.

[0095] Figure 7 It is the flowchart of the color detection method of the embodiment of the third aspect of the present application.

[0096] As Figure 7 shown, the specific process of the color detection method may include:

[0097] 701, Record the reference color of the channel to be determined.

[0098] 702, Set the allowable deviation of the same color x% for each channel to be determined.

[0099] 703, Set the minimum and maximum thresholds for each channel to be determined according to the reference color and the allowable deviation of the same color; for example, add the reference color and the allowable deviation of the same color as the maximum threshold of the channel to be determined, and subtract the allowable deviation of the same color from the reference color as the minimum threshold of the channel to be determined.

[0100] 704, Project a light source with visible to infrared wavelengths onto the object to be inspected.

[0101] 705, Obtain and output a light-receiving detection signal including the red, green, blue channels and the infrared channel as the channels to be determined according to the reflection or transmission optical characteristics of the object to be inspected.

[0102] 706, Identify the output light-receiving detection signal as a signal for the light of each channel to be determined, sample and hold the signal for the light of each channel to be determined, and output the light-receiving detection signal for each channel to be determined.

[0103] 707, Obtain the light-receiving detection signal including the red, green, blue channels and the infrared channel, and obtain the signal component of each channel to be determined by calculating the light-receiving amount of each channel to be determined of the light-receiving detection signal; for example, calculate the signal component of each channel to be determined according to the above formula (1).

[0104] 708, Compare the obtained signal component of the channel to be determined with the minimum and maximum thresholds of the color to be determined.

[0105] 709, Judge whether the object to be inspected is the color of the channel to be determined according to the comparison result; if the signal component of the channel to be determined is greater than or equal to the minimum threshold of the channel to be determined and greater than or equal to the maximum threshold of the channel to be determined, then go to 710; if the signal component of the channel to be determined is not within the range of the minimum threshold to the maximum threshold, then go to 711.

[0106] 710, Output an ON signal.

[0107] 711, Output an OFF signal.

[0108] After 710 or 711, the color calibration process of the object to be inspected (label) ends. If it is desired to perform the color calibration of the next label, the process can directly return to before step 704.

[0109] In this embodiment, by acquiring and outputting a light-receiving detection signal including the red, green, and blue channels and the infrared channel as the channels to be determined, and determining whether the color of the object to be inspected is the color of the channels to be determined according to the light-receiving detection signal, the light-receiving part can read RGB+IR four-color signals, expand the wavelength range of perception, increase the spectral information of the infrared channel, so as to improve the detection accuracy of blue, and also greatly improve the detection ability of mixed colors containing blue components, avoid the confusion and / or misdetection of blue with other colors such as black, and greatly improve the detection rate of the detected object.

[0110] The present application has been described in conjunction with specific embodiments, but those skilled in the art should understand that these descriptions are exemplary and not a limitation on the protection scope of the present application. Those skilled in the art can make various modifications and changes to the present application according to the spirit and principle of the present application, and these modifications and changes are also within the scope of the present application.

[0111] The preferred embodiments of the present application have been described above with reference to the accompanying drawings. Many features and advantages of these embodiments are clear from this detailed description, so the appended claims are intended to cover all these features and advantages that fall within the true spirit and scope of these embodiments. In addition, since many modifications and changes are readily envisioned by those skilled in the art, the embodiments of the present application are not to be limited to the exact structures and operations illustrated and described, but may cover all suitable modifications and equivalents that fall within their scope.

Claims

1. An optoelectronic sensor for color detection, characterized in that, The photoelectric sensor includes: A light projecting unit, which includes a light source for projecting light with visible to infrared wavelengths onto the object to be inspected; A light receiving unit, which is used to receive the reflected light or transmitted light after the light projected from the light projecting unit onto the object to be inspected, and obtain and output a light receiving detection signal including red, green, blue channels and an infrared channel as the channels to be determined according to the reflection or transmission optical characteristics of the object to be inspected; and A control unit, which is used to judge whether the color of the object to be inspected is the color of the channel to be determined according to the light receiving detection signal including the red, green, blue channels and the infrared channel.

2. The photoelectric sensor according to claim 1, wherein The light source includes a red light emitting diode, a green light emitting diode, a blue light emitting diode and an infrared light emitting diode, and the photosensitive element of the light receiving unit includes a photodiode photosensitive element.

3. The photoelectric sensor according to claim 1, wherein The light source includes a phosphor excitation type light emitting diode having white light and infrared wavelength, and the photosensitive element of the light receiving unit includes a diode array of red, green, blue and infrared.

4. The optoelectronic sensor according to claim 1, wherein The control unit includes: A data processing unit, which obtains the light receiving detection signal including the red, green, blue channels and the infrared channel, and obtains the signal component of each channel to be determined by calculating the light receiving amount of each channel to be determined of the light receiving detection signal; A comparison unit, which compares the signal component of the channel to be determined obtained by the data processing unit with the minimum threshold and the maximum threshold of the channel to be determined; and A determination unit, which judges whether the object to be inspected is the color of the channel to be determined according to the comparison result. If the signal component of the channel to be determined is greater than or equal to the minimum threshold and less than or equal to the maximum threshold, the object to be inspected is the color of the channel to be determined.

5. The optoelectronic sensor according to claim 4, wherein, The photoelectric sensor further includes: A reference color recording unit, which records the reference color of the channel to be determined; An allowable deviation setting unit, which sets the allowable deviation of the same color for each channel to be determined; and A threshold setting unit, which sets the minimum threshold and the maximum threshold of the channel to be determined according to the reference color and the allowable deviation of the same color.

6. The photoelectric sensor according to claim 5, wherein The threshold setting unit adds the reference color and the allowable deviation of the same color as the maximum threshold of the channel to be determined, and subtracts the allowable deviation of the same color from the reference color as the minimum threshold of the channel to be determined.

7. The photoelectric sensor according to claim 5, wherein The data processing unit calculates the signal component of each channel to be determined according to the following formula (1): Red channel evaluation value = (R - rr) / (R + G + B + IR - rr - gg - bb - irr) Green channel evaluation value = (G - gg) / (R + G + B + IR - rr - gg - bb - irr) Blue channel evaluation value = (B - bb) / (R + G + B + IR - rr - gg - bb - irr) Infrared channel evaluation value = (IR - irr) / (R + G + B + IR - rr - gg - bb - irr) (1); wherein, R, G, B, and IR are the light reception amounts of each channel to be determined; rr, gg, bb, and irr are respectively the maximum values of the noise components for each channel to be determined, and x% is the allowable deviation of the same color for each channel to be determined.

8. The optoelectronic sensor according to claim 1, wherein, The color of the channel to be determined includes blue.

9. An electrical product, wherein, The electrical product includes the optoelectronic sensor according to any one of claims 1 to 8.

10. A method for color detection, characterized in that, The method includes: projecting a light source having visible to infrared wavelengths onto the subject to be examined; receiving the reflected light or transmitted light after being projected onto the subject to be examined, and obtaining and outputting a light reception detection signal including the red, green, and blue channels and the infrared channel as channels to be determined according to the reflection or transmission optical characteristics of the subject to be examined; and judging whether the color of the subject to be examined is the color of the channel to be determined according to the light reception detection signal including the red, green, and blue channels and the infrared channel.