CN112200200B - LED light color detection method - Google Patents

LED light color detection method Download PDF

Info

Publication number
CN112200200B
CN112200200B CN202011081614.9A CN202011081614A CN112200200B CN 112200200 B CN112200200 B CN 112200200B CN 202011081614 A CN202011081614 A CN 202011081614A CN 112200200 B CN112200200 B CN 112200200B
Authority
CN
China
Prior art keywords
color
image
led light
led
characteristic parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011081614.9A
Other languages
Chinese (zh)
Other versions
CN112200200A (en
Inventor
彭登永
张红英
邵长冬
冯勇
葛利跃
孙峻岭
辛厚智
胡晓林
童恒
何述国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bengbu Ei Fire Electronics Co ltd
Original Assignee
Bengbu Ei Fire Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bengbu Ei Fire Electronics Co ltd filed Critical Bengbu Ei Fire Electronics Co ltd
Priority to CN202011081614.9A priority Critical patent/CN112200200B/en
Publication of CN112200200A publication Critical patent/CN112200200A/en
Application granted granted Critical
Publication of CN112200200B publication Critical patent/CN112200200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

The invention discloses an LED light color detection method which comprises the steps of fixing an image acquisition device, setting an LED light acquisition position, placing LED lamps with various colors on the LED light acquisition position, acquiring color digital images of the LED light through the image acquisition device, sending the acquired color digital images to a processor for processing, calculating to obtain the value range of color characteristic parameters of the LED light with various colors, and forming a color characteristic parameter value range database. The LED lamp to be detected is placed at an LED lamp light collection position and is lightened, the image collection equipment collects color digital images of the LED lamp light to be detected, the color digital images are sent to the processor to be processed, color characteristic parameter values of the LED lamp light to be detected are obtained through calculation and are matched with the color characteristic parameter value range database, and the color of the LED lamp light to be detected is obtained. The invention can accurately and efficiently detect and identify the color of the LED light under any relatively stable external environment condition, has wider application range, and can improve the detection efficiency, thereby improving the production efficiency.

Description

LED light color detection method
Technical Field
The invention relates to the field of LED light color detection, in particular to an LED light color detection method.
Background
At present, LEDs, which are one of important components in the electronic field, are widely used in electronic products. However, in the production test link of the LED and the production test link of the electronic product with the LED, the state of the LED lamp is often observed manually to complete the detection related to the LED, and this detection method is harmful to the eyes of the inspector, which easily causes occupational diseases, and visual fatigue easily causes false detection, and finally results in high production cost and low production efficiency.
In the prior art, LED detection is also carried out by shooting with a common camera, but when the LED is shot with the common camera in a lighting state, the obtained image has a distortion phenomenon, and specifically, other color pixels are mixed in the image of a monochromatic LED. In addition, the images of the same LED lighting state acquired by the same image acquisition device in different external environments have a large difference. These factors have a great influence on the detection and identification of the color of the LED light.
Disclosure of Invention
The invention provides a method for detecting the color of LED light, which aims to improve the efficiency of a production test link of an LED lamp and a production test link of an electronic product with the LED lamp.
The invention adopts the following technical scheme:
a method for detecting the color of LED light comprises the following steps:
step 1: fixing an image acquisition device, setting an LED light acquisition position, keeping the shooting angle and distance of the image acquisition device to the LED light acquisition position unchanged, placing lighted LED lamps with various colors at the LED light acquisition position, acquiring color digital images of the LED light through the image acquisition device, sending the acquired color digital images to a processor for processing by the image acquisition device, calculating to obtain the value ranges of the color characteristic parameters of the LED light with various colors, forming a color characteristic parameter value range database, and storing the color characteristic parameter value range database in a memory;
step 2: the LED lamp to be detected is placed at an LED lamp light collection position and is lightened, the image collection equipment collects color digital images of the LED lamp light to be detected, the collected color digital images are sent to the processor to be processed, color characteristic parameter values of the LED lamp light to be detected are obtained through calculation and are matched with the color characteristic parameter value range database, and the color of the LED lamp light to be detected is obtained.
Preferably, the calculation process of the value range of the color characteristic parameter is as follows:
step a: intercepting the color digital image, intercepting sub-images of the area where the LED light is located in the image, and carrying out normalization processing on the sizes of the sub-images to enable all the sub-images to be the same in size;
step b: adjusting white balance of the normalized sub-image, converting the sub-image into HSV color space, and separating into 3 single-channel images which are respectively a hue channel image, a saturation channel image and a brightness channel image;
step c: denoising the hue channel image, the saturation channel image and the brightness channel image, and respectively calculating histograms of the hue channel image, the saturation channel image and the brightness channel image after denoising;
step d: calculating an expected value e1 and a variance value s1 of the hue channel image histogram, calculating an expected value e2 and a variance value s2 of the saturation channel image histogram, and calculating an expected value e3 and a variance value s3 of the brightness channel image histogram;
step e: calculating color characteristic parameter values of the sub-images, wherein the color characteristic parameter values comprise an expected total value E and a variance total value S;
E=e1*m1+e2*m2+e3*m3;
S=s1*n1+s2*n2+s3*n3;
m1, m2 and m3 represent desired weights, and n1, n2 and n3 represent variance weights;
step f: and calculating a large number of color characteristic parameter values of the LED light of each color to form a color characteristic parameter value range of the LED light of each color.
Preferably, the image capture device is an industrial camera.
The invention has the beneficial effects that:
according to the invention, the image acquisition equipment is used for replacing human eyes, then the acquired image is processed, the state of the LED light is detected and identified, the automatic detection of the color of the LED light is realized, and the automatic detection of the color of the LED light in the detection link of the electronic product with the LED light is realized.
The detection method provided by the invention can accurately and efficiently detect and identify the color of the LED light under any relatively stable external environment condition, and has a wider application range; the LED light color is detected and recognized based on image processing, and the detection efficiency is improved, so that the production efficiency is improved.
Drawings
FIG. 1 is a flow chart of a method for detecting LED light color.
Fig. 2 is a flowchart of calculating the value range of the color characteristic parameter.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings:
with reference to fig. 1 and 2, a method for detecting LED light color is based on the characteristic parameters of the LED light color, and the detection result is the type of the LED light color, so that the corresponding relationship between the type of the LED light color and the characteristic parameters must be established first, that is, the value range of the characteristic parameters of various LED light colors is determined. And (4) detecting and identifying links, namely matching the calculated color characteristic parameters of the LED light with the measured value ranges of the color characteristic parameters of various LED lights one by one, so as to identify the color of the LED light.
In order to cope with complex illumination environment and reduce errors, the method provided by the invention needs to measure the value range of the color characteristic parameters of the LED light as a judgment standard in the detection and identification process. The light color characteristic parameters used in the invention are obtained based on statistical analysis, and errors can be reduced to a greater extent.
In order to reduce the influence of external factors on LED light color detection, the method provided by the invention needs stable and consistent image acquisition process and relatively stable external illumination environment, and a certain fixed image acquisition device is used, so that the shooting angle and distance are completely the same. If any link changes, the value range of the color characteristic parameters of the LED light needs to be measured again.
The method specifically comprises the following steps:
step 1: fixing the image acquisition equipment, setting the LED light acquisition position, and keeping the shooting angle and distance of the image acquisition equipment to the LED light acquisition position unchanged. The image acquisition device is an industrial camera.
Placing lighted LED lamps of various colors at an LED lamp light collection position, collecting color digital images of the LED lamp light through image collection equipment, sending the collected color digital images to a processor for processing by the image collection equipment, calculating to obtain color characteristic parameter value ranges of the LED lamp light of various colors, forming a color characteristic parameter value range database, and storing the color characteristic parameter value range database in a memory;
measuring the value ranges of the color characteristic parameters of various LED lights, acquiring a large number of color digital images with complete color types of LED lighting states, classifying and marking according to the colors of the LEDs, calculating the color characteristic parameters of the LED lights in each color sample, and finally counting the value ranges of the color characteristic parameters of different types of LED lights.
The calculation process of the value range of the color characteristic parameter comprises the following steps:
step a: intercepting the color digital image, intercepting sub-images of the area where the LED light is located in the image, and carrying out normalization processing on the sizes of the sub-images to enable all the sub-images to be the same in size;
step b: adjusting white balance of the normalized sub-image, converting the sub-image into HSV color space, and separating into 3 single-channel images which are respectively a hue channel image, a saturation channel image and a brightness channel image;
step c: denoising the hue channel image, the saturation channel image and the brightness channel image, and respectively calculating histograms of the hue channel image, the saturation channel image and the brightness channel image after denoising;
step d: calculating an expected value e1 and a variance value s1 of the hue channel image histogram, calculating an expected value e2 and a variance value s2 of the saturation channel image histogram, and calculating an expected value e3 and a variance value s3 of the brightness channel image histogram;
step e: calculating color characteristic parameter values of the sub-images, wherein the color characteristic parameter values comprise an expected total value E and a variance total value S;
E=e1*m1+e2*m2+e3*m3;
S=s1*n1+s2*n2+s3*n3;
m1, m2 and m3 represent desired weights, and n1, n2 and n3 represent variance weights;
step f: and (3) calculating a large number of color characteristic parameter values of the LED light of each color to form a color characteristic parameter value range of the LED light of each color, namely the color characteristic parameter of the LED light of each color has a value range, and the color characteristic parameter value falling into the value range is specific to the LED light of the color.
The formed color characteristic parameter value range database can be called by a processor and is matched with the color characteristic parameter values of the LED lamplight to be detected.
Step 2: the LED lamp to be detected is placed at an LED lamp light collection position and is lightened, the image collection equipment collects color digital images of the LED lamp light to be detected, the collected color digital images are sent to the processor to be processed, color characteristic parameter values of the LED lamp light to be detected are obtained through calculation and are matched with the color characteristic parameter value range database, and the color of the LED lamp light to be detected is obtained.
And e, calculating the color characteristic parameter value of the LED light to be detected in the same process as the steps from the step a to the step e.
In addition, when LED light detection is carried out, external environmental conditions, collection equipment and the like in the collection process are guaranteed to be unchanged as much as possible, and the influence of external factors on the final result is avoided.
Example 1
In this example, m1: m2: m3=0.8, n1: n2: n3=0.8:
E=e1*0.8+e2*0.1+e3*0.1;
S=s1*0.8+s2*0.1+s3*0.1。
it is to be understood that the above description is not intended to limit the present invention, and the present invention is not limited to the above examples, and those skilled in the art may make various changes, modifications, additions and substitutions within the spirit and scope of the present invention.

Claims (2)

1. A method for detecting the color of LED light is characterized by comprising the following steps:
step 1: fixing an image acquisition device, setting an LED light acquisition position, enabling the image acquisition device to keep the shooting angle and distance of the LED light acquisition position unchanged, placing lighted LED lamps with various colors at the LED light acquisition position, acquiring color digital images of the LED light through the image acquisition device, sending the acquired color digital images to a processor for processing by the image acquisition device, calculating to obtain the value ranges of color characteristic parameters of the LED light with various colors, forming a color characteristic parameter value range database, and storing the color characteristic parameter value range database in a memory;
the calculation process of the value range of the color characteristic parameter comprises the following steps:
step a: intercepting the color digital image, intercepting sub-images of the area where the LED light is located in the image, and carrying out normalization processing on the sizes of the sub-images to enable all the sub-images to be the same in size;
step b: adjusting white balance of the normalized sub-image, converting the sub-image into HSV color space, and separating into 3 single-channel images which are respectively a hue channel image, a saturation channel image and a brightness channel image;
step c: denoising the hue channel image, the saturation channel image and the brightness channel image, and respectively calculating histograms of the hue channel image, the saturation channel image and the brightness channel image after denoising;
step d: calculating an expected value e1 and a variance value s1 of the hue channel image histogram, calculating an expected value e2 and a variance value s2 of the saturation channel image histogram, and calculating an expected value e3 and a variance value s3 of the brightness channel image histogram;
step e: calculating color characteristic parameter values of the sub-images, wherein the color characteristic parameter values comprise an expected total value E and a variance total value S;
E=e1*m1+e2*m2+e3*m3;
S=s1*n1+s2*n2+s3*n3;
m1, m2 and m3 represent desired weights, and n1, n2 and n3 represent variance weights;
step f: calculating a large number of color characteristic parameter values of the LED light of each color to form a color characteristic parameter value range of the LED light of each color;
step 2: the LED lamp to be detected is placed at an LED lamp light collection position and is lightened, the image collection equipment collects color digital images of the LED lamp light to be detected, the collected color digital images are sent to the processor to be processed, color characteristic parameter values of the LED lamp light to be detected are obtained through calculation and are matched with the color characteristic parameter value range database, and the color of the LED lamp light to be detected is obtained.
2. The method for detecting the color of the LED lamp light according to claim 1, wherein the image acquisition equipment is an industrial camera.
CN202011081614.9A 2020-10-12 2020-10-12 LED light color detection method Active CN112200200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011081614.9A CN112200200B (en) 2020-10-12 2020-10-12 LED light color detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011081614.9A CN112200200B (en) 2020-10-12 2020-10-12 LED light color detection method

Publications (2)

Publication Number Publication Date
CN112200200A CN112200200A (en) 2021-01-08
CN112200200B true CN112200200B (en) 2023-04-18

Family

ID=74014329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011081614.9A Active CN112200200B (en) 2020-10-12 2020-10-12 LED light color detection method

Country Status (1)

Country Link
CN (1) CN112200200B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117274405B (en) * 2023-11-22 2024-02-02 深圳市蓝方光电有限公司 LED lamp working color detection method based on machine vision

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10102607A1 (en) * 2001-01-21 2002-07-25 Patrick Herzog System to test fabrics and the like, for color and/or sheen, uses a multi-spectral digital scanner to provide color data for comparison with the data from a positive image model
CN104574389A (en) * 2014-12-26 2015-04-29 康奋威科技(杭州)有限公司 Battery piece chromatism selection control method based on color machine vision
CN107122776A (en) * 2017-04-14 2017-09-01 重庆邮电大学 A kind of road traffic sign detection and recognition methods based on convolutional neural networks
CN108460380A (en) * 2018-03-13 2018-08-28 广西师范大学 A kind of bamboo cane method for sorting colors and system based on domain color
CN111340897A (en) * 2020-02-24 2020-06-26 威斯泰(苏州)智能科技有限公司 Color identification method based on fuzzy mathematical similarity

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496228B2 (en) * 2003-06-13 2009-02-24 Landwehr Val R Method and system for detecting and classifying objects in images, such as insects and other arthropods
CN102446345B (en) * 2010-09-30 2015-09-30 株式会社理光 A kind of method, Apparatus and system blank coloured image being carried out to color enhancing
CN104715239B (en) * 2015-03-12 2019-01-18 哈尔滨工程大学 A kind of vehicle color identification method based on defogging processing and weight piecemeal
CN108009555A (en) * 2017-12-15 2018-05-08 上海索广电子有限公司 A kind of LED light Color Recognition System
CN109035235B (en) * 2018-07-27 2021-09-07 郑州工程技术学院 Car light guide chromatic aberration detection method
CN109308456B (en) * 2018-08-31 2021-06-08 北京字节跳动网络技术有限公司 Target object information determination method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10102607A1 (en) * 2001-01-21 2002-07-25 Patrick Herzog System to test fabrics and the like, for color and/or sheen, uses a multi-spectral digital scanner to provide color data for comparison with the data from a positive image model
CN104574389A (en) * 2014-12-26 2015-04-29 康奋威科技(杭州)有限公司 Battery piece chromatism selection control method based on color machine vision
CN107122776A (en) * 2017-04-14 2017-09-01 重庆邮电大学 A kind of road traffic sign detection and recognition methods based on convolutional neural networks
CN108460380A (en) * 2018-03-13 2018-08-28 广西师范大学 A kind of bamboo cane method for sorting colors and system based on domain color
CN111340897A (en) * 2020-02-24 2020-06-26 威斯泰(苏州)智能科技有限公司 Color identification method based on fuzzy mathematical similarity

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Esmael Hamuda et al..Automatic crop detection under field conditions using the HSV colour space and morphological operations.《Elsveir》.2017,全文. *
桂欣悦;李振伟;吴晨晨;李彦玥.基于MATLAB的红绿灯识别系统研究.电子设计工程.2020,(16),全文. *

Also Published As

Publication number Publication date
CN112200200A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN109269951B (en) Image-based flotation tailing ash content, concentration and coarse particle content detection method
TWI603074B (en) Optical film defect detection method and system thereof
CN104198325B (en) Stem ratio measuring method in pipe tobacco based on computer vision
CN104256882B (en) Based on reconstituted tobacco ratio measuring method in the pipe tobacco of computer vision
CN104198324A (en) Computer vision-based method for measuring proportion of cut leaves in cut tobacco
US8700498B2 (en) Feature analyzing apparatus for a surface of an object
JP2009524884A (en) Method and system for identifying an illumination area in an image
WO2018010386A1 (en) Method and system for component inversion testing
Birla et al. An efficient method for quality analysis of rice using machine vision system
CN112200200B (en) LED light color detection method
CN104637425A (en) Assembly-line LED (light emitting diode) display unit uniformity detection method, system and device
CN109035235A (en) A kind of car light light guide acetes chinensis method
CN110009609B (en) Method for rapidly detecting yellow rice
WO2015198401A1 (en) Method for setting inspection condition for fastener element, and method for inspecting fastener element
CN115049530A (en) Method, apparatus and system for debugging image signal processor
TWI695969B (en) Inspecting system and method for light emitting source
CN115343313A (en) Visual identification method based on artificial intelligence
CN105445286A (en) Method and device for detecting quality defects of mark on glass fuse tube products
CN110856847A (en) Capacitance character detection method and device based on intelligent vision
KR102272745B1 (en) Inspection System and Method for Compact Camera Module Cover
CN110807817B (en) Machine vision method for target color recognition adapting to illumination change
CN111886492B (en) Color grading process and system for jadeite
CN104198491B (en) Based on expansive cut tobacco ratio measuring method in the tobacco shred of computer vision
CN103592304A (en) Stem object analysis system and stem object analysis method
CN109975299B (en) Light source detection system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant