CN115031933A - Testing device and related assembly of display lamp - Google Patents

Testing device and related assembly of display lamp Download PDF

Info

Publication number
CN115031933A
CN115031933A CN202210947592.2A CN202210947592A CN115031933A CN 115031933 A CN115031933 A CN 115031933A CN 202210947592 A CN202210947592 A CN 202210947592A CN 115031933 A CN115031933 A CN 115031933A
Authority
CN
China
Prior art keywords
display lamp
color
test
display
testing
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.)
Pending
Application number
CN202210947592.2A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210947592.2A priority Critical patent/CN115031933A/en
Publication of CN115031933A publication Critical patent/CN115031933A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J3/00Spectrometry; Spectrophotometry; Monochromators; Measuring colours
    • G01J3/46Measurement of colour; Colour measuring devices, e.g. colorimeters
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The invention discloses a testing device and related components of a display lamp, and relates to the field of testing, comprising an industrial control host, a color acquisition module and an image acquisition module of the display lamp, wherein the color acquisition module of the display lamp is connected with the image acquisition module; the color acquisition module of display lamp is used for gathering the colour of display lamp, and the image acquisition module is used for shooing the image that the color acquisition module of display lamp was gathered, and the industrial control host computer is used for controlling the display lamp to show predetermined colour to confirm whether the colour of display lamp passes the test according to the image that the image acquisition module was shot. But automatic control display lamp shows the colour to whether the colour that judges demonstration is unanimous with the colour of control, test all colours to the display lamp in proper order, make the test result more accurate, test process automation reduces the cost of labor.

Description

Testing device and related assembly of display lamp
Technical Field
The invention relates to the field of testing, in particular to a testing device of a display lamp and a related assembly.
Background
There are the display lamp that the quantity is more on the switch, every display lamp need show multiple colour at the in-process of normal work, need test the display lamp before the switch leaves the factory. And the tester manually controls the display lamps to sequentially display all colors, and controls the display lamps to be turned off after all colors are normally displayed after confirmation. When all the display lamps in the switch complete the test process, the state of the display lamps is normal. The test process is labor-consuming, and the repeated detection results in lower accuracy of manual detection.
Disclosure of Invention
The invention aims to provide a testing device and related components of a display lamp, which can automatically control the display color of the display lamp, judge whether the displayed color is consistent with the controlled color, and sequentially test all colors of the display lamp, so that the testing result is more accurate, the testing process is automatic, and the labor cost is reduced.
In order to solve the technical problem, the invention provides a test device of a display lamp, which comprises an industrial control host, a color acquisition module of the display lamp and an image acquisition module, wherein the color acquisition module of the display lamp is connected with the image acquisition module, and the image acquisition module is also connected with the industrial control host;
the color acquisition module of the display lamp is used for acquiring the color of the display lamp, the image acquisition module is used for shooting the image acquired by the color acquisition module of the display lamp, the industrial personal computer is used for controlling the display lamp to display the preset color, and the industrial personal computer determines whether the color of the display lamp passes the test or not according to the image shot by the image acquisition module.
Preferably, the color acquisition module of the display lamp comprises a plurality of detachably arranged brackets, a plurality of probes are arranged on the brackets, and the probes correspond to the display lamp in position, so that the optical fibers in the probes can acquire the color of the display lamp.
Preferably, the bottom of the color collection module of the display lamp is provided with a movable caster, and the support is arranged on the color collection module of the display lamp in an adjustable position.
Preferably, the probe comprises a sizing hose, a tapered tube and an optical fiber, the optical fiber penetrates through a tube hole of the sizing hose and a tube hole of the tapered tube, one end of the sizing hose is connected with the support, the other end of the sizing hose is connected with the bottom end of the tapered tube, and the top end of the tapered tube corresponds to the position of the display lamp.
Preferably, the shaping hose is a metal shaping hose, and the conical pipe is a rubber conical pipe.
Preferably, the display lamp further comprises a shading device, wherein the shading device is arranged between the color acquisition module and the image acquisition module of the display lamp and used for shading ambient light.
In order to solve the above technical problem, the present invention further provides a method for testing a display lamp, which is applied to the industrial control host, and includes:
controlling the display lamp to display the corresponding current color in the preset test sequence;
acquiring the color of the display lamp;
judging whether the color of the display lamp is consistent with the current color or not;
when the color of the display lamp is consistent with the current color, judging whether the display lamp completes the test of all colors;
when the display lamp does not finish the test of all colors, controlling the current color to be changed into the next color of the test sequence, and returning to the step of controlling the display lamp to display the current color corresponding to the test sequence;
when the display lamp completes the test of all colors, the control prompt module prompts that the test of the display lamp is successful.
Preferably, before controlling the display lamp to display the corresponding current color in the preset test sequence, the method further includes:
controlling a counter to be set to zero;
after judging whether the color of the display lamp is consistent with the current color, the method further comprises the following steps:
when the color of the display lamp is inconsistent with the current color, judging whether the frequency recorded by the counter exceeds a preset frequency;
and when the frequency does not exceed the preset frequency, adding one to the numerical value recorded by the counter, and returning to the step of controlling the display lamp to display the corresponding current color in the preset test sequence.
Preferably, after determining whether the number of times recorded by the counter exceeds a preset number of times, the method further includes:
when the frequency exceeds the preset frequency, the control prompt module prompts that whether the color of the display lamp is consistent with the current color needs to be manually confirmed, and controls the counter to be reset;
when the consistency is confirmed manually, the step of judging whether the display lamp completes the test of all colors is carried out;
and when the inconsistency is confirmed manually, the control prompt module prompts that the test of the display lamp fails.
Preferably, the acquiring the color of the display lamp includes:
acquiring an image of the display lamp;
determining an HSV value for the image;
and determining the color of the display lamp according to the preset corresponding relation between the color and the HSV range and the HSV value of the image.
Preferably, the determining whether the color of the display lamp is consistent with the current color includes:
generating a color dictionary of the display lamp, wherein the color dictionary comprises the position of the display lamp and the color of the display lamp;
generating the preset color dictionary, wherein the color dictionary comprises the position of the display lamp and the current color;
judging whether the color dictionary of the display lamp is consistent with the preset color dictionary or not;
if so, the color of the display lamp is consistent with the current color;
and if not, the color of the display lamp is inconsistent with the current color.
Preferably, after the display lamp completes the test of all colors, the method further comprises:
controlling the display lamp to be turned off;
judging whether the display lamp is turned off or not;
and when the display lamp is turned off, entering a step of prompting the display lamp to test successfully by a control prompt module.
In order to solve the above technical problem, the present invention further provides a test system for a display lamp, including:
the control unit is used for controlling the display lamp to display the corresponding current color in the preset test sequence; when the display lamp does not finish the test of all colors, controlling the current color to be changed into the next color of the test sequence, and returning to the step of controlling the display lamp to display the current color corresponding to the test sequence; when the display lamp completes the test of all colors, the control prompt module prompts the display lamp to test successfully;
an acquisition unit configured to acquire a color of the display lamp;
the judging unit is used for judging whether the color of the display lamp is consistent with the current color or not; and when the color of the display lamp is consistent with the current color, judging whether the display lamp completes the test of all colors.
In order to solve the above technical problem, the present invention further provides an industrial control host, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the testing method of the display lamp when executing the computer program.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the method for testing the display lamp.
The invention discloses a testing device and related components of a display lamp, and relates to the field of testing, wherein the testing device comprises an industrial control host, a color acquisition module and an image acquisition module of the display lamp, wherein the color acquisition module of the display lamp is connected with the image acquisition module, and the image acquisition module is also connected with the industrial control host; the color acquisition module of display lamp is used for gathering the colour of display lamp, and the image acquisition module is used for shooting the image that the color acquisition module of display lamp was gathered, and the industrial control host computer is used for controlling the display lamp to show predetermined colour to confirm whether the colour of display lamp passes the test according to the image that the image acquisition module was shot. But automatic control display lamp shows the colour to whether the colour that judges demonstration is unanimous with the colour of control, test all colours to the display lamp in proper order, make the test result more accurate, test process automation reduces the cost of labor.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a testing apparatus for a display lamp according to the present invention;
FIG. 2a is a schematic front view of a probe according to the present invention;
FIG. 2b is a schematic side view of a probe according to the present invention;
fig. 3 is a schematic front structural view of a light shielding device according to the present invention;
FIG. 4 is a flow chart of a method for testing a display lamp according to the present invention;
FIG. 5 is a schematic structural diagram of a testing system for a display lamp according to the present invention;
fig. 6 is a schematic structural diagram of an industrial control host provided in the present invention.
Detailed Description
The core of the invention is to provide a testing device and related components of a display lamp, which can automatically control the display color of the display lamp, judge whether the displayed color is consistent with the controlled color, and sequentially test all colors of the display lamp, so that the testing result is more accurate, the testing process is automatic, and the labor cost is reduced.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, a display lamp on a switch needs to be tested before the switch leaves a factory. Take the example of three colors of the display lamp, red, green and yellow. In the testing process, a tester firstly controls the display lamp to display red, controls the display lamp to display green after determining that the display lamp displays red, controls the display lamp to display yellow after determining that the display lamp displays green, and controls the display lamp to extinguish after determining that the display lamp displays yellow. This process is a step of manually testing the display lights of the switch. Because the display lamp is more in the switch, more manpower can be consumed in manual testing, and long-time repeated test can lead to the degree of accuracy of manual testing lower simultaneously.
Fig. 1 is a schematic structural diagram of a testing device of a display lamp provided by the invention, which includes an industrial control host 1, and further includes a color acquisition module 2 and an image acquisition module 3 of the display lamp, wherein the color acquisition module 2 of the display lamp is connected with the image acquisition module 3, and the image acquisition module 3 is further connected with the industrial control host 1;
the color acquisition module 2 of display lamp is used for gathering the colour of display lamp, and image acquisition module 3 is used for shooting the image that the color acquisition module 2 of display lamp was gathered, and industrial control host 1 is used for controlling the display lamp to show predetermined colour to confirm whether the colour of display lamp passes the test according to the image that image acquisition module 3 was shot.
In order to realize the test of the display lamp conveniently, the invention also provides a test device of the display lamp, which comprises an industrial control host 1, wherein the industrial control host 1 is used for realizing the steps of the method, the test device also comprises a color acquisition module 2 of the display lamp and an image acquisition module 3, and the color acquisition module 2 of the display lamp is used for acquiring the color of the display lamp so that the image acquisition module 3 can shoot the acquired color of the display lamp.
Specifically, the image capturing module 3 may be a camera, and the present application is not limited herein.
On the basis of the above-described embodiment:
as a preferred embodiment, the color collection module 2 of the display lamp comprises a plurality of detachably arranged brackets 21, a plurality of probes are arranged on the brackets 21, and the probes correspond to the display lamp in position, so that the optical fibers 223 inside the probes collect the color of the display lamp.
The color acquisition module 2 of the display lamp is a cuboid frame. Considering that the quantity of display lamp is probably more, it is probably comparatively troublesome to test one by one, the display lamp of server is not necessarily arranged at same line simultaneously, so set up a plurality of support 21, every support 21 is provided with a plurality of probe, the position of display lamp can be aimed at to the probe to the colour of the inside light collection display lamp of probe, and then spread the colour of display lamp through optic fibre 223, so that image acquisition module 3 shoots, and then carries out subsequent step.
The bracket 21 is detachably arranged on the color acquisition module 2 of the display lamp, and the position of the bracket 21 on the color acquisition module 2 of the display lamp can be adjusted so as to align the display lamp. Specifically, the bracket 21 is connected with the color acquisition module 2 of the display lamp through an adjusting bolt.
In addition, the number of the probes corresponds to the number of the display lamps.
Set up a plurality of probe on a plurality of support 21 and every support 21 through the colour collection module 2 at the display lamp to the colour that the colour collection module 2 of display lamp is more accurate gathers the display lamp, reduces the in-process problem that appears gathering.
As a preferred embodiment, the bottom of the color collection module 2 of the display lamp is provided with a movable caster, and the support 21 is arranged on the color collection module 2 of the display lamp in an adjustable position.
Considering that the position of the switch is not suitable for frequent movement, the color acquisition module 2 of the display lamp needs to be moved frequently when testing different switches. Therefore, the bottom of the color acquisition module 2 of the display lamp is provided with a movable caster which moves to the front of the exchanger during testing.
In addition, the movable caster wheel of bottom still has the function of locking, and when the colour collection module 2 of display lamp removed before the switch, it was dead with the movable caster wheel lock, prevented that the colour collection module 2 of display lamp from sliding at the in-process of test.
Specifically, the movable caster wheel is a universal wheel, has multiple moving directions, and is convenient to move to the front of the exchanger to complete the test.
FIG. 2a is a schematic front view of a probe according to the present invention;
FIG. 2b is a schematic side view of a probe according to the present invention;
in a preferred embodiment, the probe comprises a fixed hose 221, a tapered tube 222 and an optical fiber 223, the optical fiber 223 passes through the tube hole of the fixed hose 221 and the tube hole of the tapered tube 222, one end of the fixed hose 221 is connected with the bracket 21, the other end of the fixed hose 221 is connected with the bottom end of the tapered tube 222, and the top end of the tapered tube 222 corresponds to the position of the display lamp.
Considering that the probe needs to be aligned with the display lamp to collect colors, and the probe needs to be adjusted in position relation with the display lamp, the setting hose 221 and the tapered tube 222 are arranged as the probe, the setting hose 221 is convenient to adjust and fix after the shape is adjusted, and keeps the unchanged state in the testing process, the tapered tube 222 is used for shielding ambient light so as to more accurately obtain the colors of the display lamp, the optical fiber 223 penetrates through the setting hose 221 and the tube hole of the tapered tube 222 and is wrapped by the setting hose 221 and the tapered tube 222 to prevent breakage, and the optical fiber 223 is used for collecting and transmitting the colors of the display lamp.
The optical fiber 223 transmission has the advantages of wide frequency band, low loss, light weight, strong anti-interference capability and the like, so that the transmission effect is better.
In a preferred embodiment, the shaped hose 221 is a metal shaped hose 221, and the tapered tube 222 is a rubber tapered tube 222.
The metal shaping hose 221, namely the gooseneck, is convenient for position adjustment, has good shaping effect, and can be shaped and kept unchanged after the position shape of the probe is adjusted.
The surface near the display lamp is irregular, and the rubber conical tube can be better attached to the surface of the display lamp, so that the effect of shielding ambient light is better achieved.
Fig. 3 is a schematic front structural view of a light shielding device according to the present invention.
As a preferred embodiment, the display lamp further comprises a light shielding device, and the light shielding device is disposed between the color collection module 2 and the image collection module 3 of the display lamp and is used for shielding ambient light.
Considering that the image transmitted by the color acquisition module 2 of the display lamp is directly shot by the image acquisition module 3 and may be influenced by indoor light or outdoor light, the shading device is arranged to shade the ambient light of the current environment, so that the shooting result is more accurate.
Fig. 4 is a flowchart of a method for testing a display lamp according to the present invention, which is applied to the industrial control host, and includes:
s41: controlling a display lamp to display the corresponding current color in the preset test sequence;
the testing sequence of the display lamps is preset, and the display lamps are controlled to display the current color in sequence in the testing process.
S42: acquiring the color of a display lamp;
and after the display lamp is controlled to display the current color, the color of the display lamp is acquired so as to determine the test result of the display lamp in the following.
S43: judging whether the color of the display lamp is consistent with the current color; if yes, go to step S44;
if the color of the display lamp is consistent with the current color, the test of the current color is proved to be successful, and the test can be continued to determine the next color.
S44: judging whether the display lamp completes the test of all colors; if not, go to step S45; if yes, go to step S46;
s45: controlling the current color to change to the next color of the test sequence and returning to step S41;
and after the current color test passes, controlling the next color which is played at the current time and is changed into the test sequence. For example, the test sequence is red, green, yellow. When the current color is red, the test is passed, the green color is controlled to be the current color, and the display lamp is controlled to display the green color. The test of each color of the display lamp is realized.
S46: the control prompt module prompts the display lamp to test successfully.
And when the test of each color passes, displaying that the test of the lamp passes.
It should be noted that the industrial personal computer needs to be configured in advance, and the configuration content includes, but is not limited to, the number of the display lamps of the switch, for example, how many display lamps are in each row, the positions of the display lamps, for example, the position corresponding to the display lamp in each row, and the last of the first, second, and … ….
In summary, the present application provides a method for testing a display lamp, which controls the display lamp to display a current color corresponding to a preset test sequence; acquiring the color of a display lamp; when the color of the display lamp is consistent with the current color, judging whether the display lamp completes the test of all colors; when the display lamp does not finish the test of all colors, controlling the current color to be changed into the next color of the test sequence, and returning to the step of controlling the display lamp to display the current color corresponding to the test sequence; when the display lamp finishes the test of all colors, the control prompt module prompts the display lamp to test successfully. But automatic control display lamp shows the colour to whether the colour that judges demonstration is unanimous with the colour of control, test all colours to the display lamp in proper order, make the test result more accurate, test process automation reduces the cost of labor.
As a preferred embodiment, before controlling the display lamp to display the corresponding current color in the preset test sequence, the method further includes:
controlling a counter to be set to zero;
after judging whether the color of the display lamp is consistent with the current color, the method further comprises the following steps:
when the color of the display lamp is inconsistent with the current color, judging whether the times recorded by the counter exceed the preset times;
and when the frequency does not exceed the preset frequency, adding one to the numerical value recorded by the counter, and returning to the step of controlling the display lamp to display the corresponding current color in the preset test sequence.
Considering that there is a possibility of control failure during the test, for example, the display lamp is controlled to display the current color, but a problem occurs during the control, and the reason why the display lamp does not display the current color is that the control process is problematic, and the display lamp itself is not problematic. The control of presetting the number of times has been set up to this application, if the colour of display lamp is inconsistent with current colour, the number of times is preset to the colour of repetitive control display lamp present display. To ensure the accuracy of the test.
Specifically, the preset times are three times, and if the color displayed by the display lamp is the same as the current color within the three times, the test of the display lamp is proved to be passed.
The repetitive control of the preset times is set, so that the inaccuracy of the test result of the display lamp caused by the problems in the control process is prevented. The accuracy of the test is improved, so that the switch after leaving the factory is more reliable.
As a preferred embodiment, after determining whether the number of times recorded by the counter exceeds a preset number of times, the method further includes:
when the frequency exceeds the preset frequency, the control prompt module prompts that whether the color of the display lamp is consistent with the current color needs to be manually confirmed, and the counter is controlled to be reset;
when the consistency is confirmed manually, the step of judging whether the display lamp completes the test of all colors is carried out;
when the inconsistency is confirmed manually, the control prompt module prompts that the test of the display lamp fails.
The color of the display lamp which is still detected after the preset times of repetition is considered to be inconsistent with the current color. There may be problems in acquiring the color of the display lamp, that is, there is no problem in the control process, there is no problem in the display of the display lamp, and problems in the process of acquiring the color of the display lamp. So after the number of times is predetermine in repetitive control, the colour that the display lamp shows is still different with current colour, and this application is different in the number of times colour of predetermineeing, and the suggestion is artifical and is confirmed. Whether the color displayed by the display lamp is consistent with the current color is determined by a tester, when the color is manually determined to be consistent, the test can be continued, and the step of judging whether the display lamp completes the test of all colors is carried out. When the inconsistency is confirmed manually, the test of the display lamp fails.
The prompt module can be a display screen, and also can be a voice broadcast, or send information to the terminal equipment of the tester, a specific prompt mode, and the application is not limited too much here. The user can confirm whether the color displayed by the display lamp is consistent with the current color or not by clicking the display screen, and can also confirm whether the color displayed by the display lamp is consistent with the current color or not by using the external key or two different keys. The present application is not limited to the specific confirmation method.
As a preferred embodiment, acquiring the color of the display lamp includes:
acquiring an image of a display lamp;
determining an HSV (HSV, Hue Saturation Value) Value of the image;
and determining the color of the display lamp according to the preset corresponding relation between the color and the HSV range and the HSV value of the image.
HSV is the abbreviation of Hue, Saturation and Value, wherein HSV corresponds to the following meanings:
hue H: the value range is 0-360 degrees by angle measurement, and the counter-clockwise direction is calculated from red, wherein the red is 0 degree, the green is 120 degrees, and the blue is 240 degrees. Their complementary colors are: yellow is 60 °, cyan is 180 °, violet is 300 °;
saturation S: the saturation S represents the degree to which the color approaches the spectral color. A color can be seen as the result of a mixture of a certain spectral color and white. The greater the proportion of spectral colors, the higher the degree of color approaching spectral colors and the higher the saturation of colors. High saturation and dark and bright color. The white light component of the spectral color is 0, and the saturation reaches the highest. The value range is usually 0% -100%, and the larger the value is, the more saturated the color is.
Lightness V: lightness refers to the degree to which a color is bright, and for a source color, the lightness value is related to the lightness of the illuminant, and for an object color, the lightness value is related to the transmittance or reflectance of the object. Values typically range from 0% (black) to 100% (white).
Considering whether the color of the current display lamp is the same as the current color needs to be determined, the HSV value of the image is determined from the photographed image by photographing the image of the display lamp. Each color has an HSV range corresponding to the color, and when the value of the image is within a certain HSV range, the color is determined to be the color corresponding to the HSV range.
The current color of the display lamp is determined through the HSV value, so that the test result is more accurate.
As a preferred embodiment, the determining whether the color of the display lamp is consistent with the current color includes:
generating a color dictionary of the display lamp, wherein the color dictionary comprises the position of the display lamp and the color of the display lamp;
generating a preset color dictionary, wherein the color dictionary comprises the positions of the display lamps and the current colors;
judging whether the color dictionary of the display lamp is consistent with a preset color dictionary or not;
if so, the color of the display lamp is consistent with the current color;
if not, the color of the display lamp is inconsistent with the current color.
Considering that the number of the display lamps of the switch is large, and the test is time-consuming one by one, a plurality of display lamps are tested simultaneously in the test process. In order to distinguish each display lamp and the color displayed by the display lamp, a color dictionary of the display lamp is generated, wherein the dictionary comprises the position of the display lamp and the color of the display lamp. And meanwhile, generating a preset color dictionary for comparison, and further determining whether the color of the display lamp is consistent with the current color.
Specifically, the current control display lamp is used for displaying green, and 51 display lamps are taken as an example. The preset color dictionary is { 1: "green", 2: "green", 51: "green", and a color dictionary at the display lamp is { 1: "green", 2: "green", 51: "green", the color dictionary of the display lamp is consistent with the preset color dictionary, and at this time, it is determined that the color of the display lamp is consistent with the current color. In the color dictionary of the display lamp { 1: "green", 2: "red", 51: "green", the color dictionary of the display lamp is inconsistent with the preset color dictionary, and at this time, it is determined that the color of the display lamp is inconsistent with the current color.
By setting the color dictionary, the colors of a plurality of display lamps can be tested simultaneously, and whether the colors of the display lamps are consistent with the current colors or not is determined by comparing the color dictionary.
As a preferred embodiment, after the display lamp completes the test of all colors, the method further comprises:
controlling the display lamp to be turned off;
judging whether the display lamp is turned off or not; and when the display lamp is turned off, entering a step of prompting the display lamp to test successfully by the control prompt module.
And after the display color of the display lamp is tested successfully, the display lamp is controlled to be turned off. If the display lamp is successfully turned off, all the functions of the display lamp are tested successfully at the moment, and the success of the test can be prompted.
Fig. 5 is a schematic structural diagram of a test system for a display lamp provided in the present invention, including:
a control unit 51 for controlling the display lamp to display the corresponding current color in the preset test sequence; when the display lamp does not finish the test of all colors, controlling the current color to be changed into the next color of the test sequence, and returning to the step of controlling the display lamp to display the current color corresponding to the test sequence; when the display lamp completes the test of all colors, the control prompt module prompts the display lamp to test successfully;
an acquisition unit 52 for acquiring the color of the display lamp;
a judging unit 53 for judging whether the color of the display lamp is consistent with the current color; and when the color of the display lamp is consistent with the current color, judging whether the display lamp completes the test of all colors. Please refer to the above embodiments for introduction of the test system of the display lamp provided by the present application, which is not described herein again.
The judging unit is also used for judging whether the times recorded by the counter exceed the preset times when the color of the display lamp is inconsistent with the current color; judging whether the color dictionary of the display lamp is consistent with a preset color dictionary or not; judging whether the display lamp is turned off or not;
the acquisition unit is also used for acquiring an image of the display lamp;
in addition, the test system of the display lamp further comprises:
the control unit is used for controlling the counter to be set to zero before the display lamp displays the corresponding current color in the preset test sequence; when the times do not exceed the preset times, adding one to the numerical value recorded by the counter, and returning to the step of controlling the display lamp to display the corresponding current color in the preset test sequence; when the frequency exceeds the preset frequency, the control prompt module prompts that whether the color of the display lamp is consistent with the current color needs to be manually confirmed, and the counter is controlled to be reset; when the inconsistency is manually confirmed, the control prompt module prompts that the test of the display lamp fails; controlling the display lamp to be turned off;
a determination unit that determines HSV values of the images; and determining the color of the display lamp according to the preset corresponding relation between the color and the HSV range and the HSV value of the image.
The generating unit is used for generating a color dictionary of the display lamp, and the color dictionary comprises the position of the display lamp and the color of the display lamp; and generating a preset color dictionary, wherein the color dictionary comprises the positions of the display lamps and the current colors.
Fig. 6 is a schematic structural diagram of an industrial control host provided by the present invention, including:
a memory 61 for storing a computer program;
and a processor 62 for implementing the steps of the above-mentioned display lamp testing method when executing the computer program. Specifically, the processor 62 is configured to implement the following steps:
controlling a display lamp to display the corresponding current color in the preset test sequence;
acquiring the color of a display lamp;
judging whether the color of the display lamp is consistent with the current color or not;
when the color of the display lamp is consistent with the current color, judging whether the display lamp completes the test of all colors;
when the display lamp does not finish the test of all colors, controlling the current color to be changed into the next color of the test sequence, and returning to the step of controlling the display lamp to display the current color corresponding to the test sequence;
when the display lamp finishes the test of all colors, the control prompt module prompts the display lamp to test successfully.
Before controlling the display lamp to display the corresponding current color in the preset test sequence, the method further comprises:
controlling a counter to be set to zero;
after judging whether the color of the display lamp is consistent with the current color, the method further comprises the following steps:
when the color of the display lamp is inconsistent with the current color, judging whether the number of times recorded by the counter exceeds a preset number of times;
and when the frequency does not exceed the preset frequency, adding one to the numerical value recorded by the counter, and returning to the step of controlling the display lamp to display the corresponding current color in the preset test sequence.
After judging whether the number of times that the counter recorded exceeds the preset number of times, still include:
when the frequency exceeds the preset frequency, the control prompt module prompts that whether the color of the display lamp is consistent with the current color needs to be manually confirmed, and the counter is controlled to be reset;
when the consistency is confirmed manually, the step of judging whether the display lamp completes the test of all colors is carried out;
when the inconsistency is confirmed manually, the control prompt module prompts that the test of the display lamp fails.
Acquiring the color of a display lamp, comprising:
acquiring an image of a display lamp;
determining HSV values of the images;
and determining the color of the display lamp according to the preset corresponding relation between the color and the HSV range and the HSV value of the image.
Judging whether the color of the display lamp is consistent with the current color or not, comprising the following steps:
generating a color dictionary of the display lamp, wherein the color dictionary comprises the position of the display lamp and the color of the display lamp;
generating a preset color dictionary, wherein the color dictionary comprises the positions of the display lamps and the current colors;
judging whether the color dictionary of the display lamp is consistent with a preset color dictionary or not;
if so, the color of the display lamp is consistent with the current color;
if not, the color of the display lamp is inconsistent with the current color.
After the display lamp completes the test of all colors, the method further comprises the following steps:
controlling the display lamp to be turned off;
judging whether the display lamp is turned off or not;
and when the display lamp is turned off, entering a step of prompting the display lamp to test successfully by the control prompt module.
For introduction of the industrial control host provided in the present application, please refer to the above embodiments, which are not described herein again.
The industrial personal computer is used as a control main body of the test method of the display lamp.
The application further provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for testing the display lamp are realized.
Specifically, the computer scale storage medium is used for realizing the following steps:
controlling a display lamp to display the corresponding current color in the preset test sequence;
acquiring the color of a display lamp;
judging whether the color of the display lamp is consistent with the current color;
when the color of the display lamp is consistent with the current color, judging whether the display lamp completes the test of all colors;
when the display lamp does not finish the test of all colors, controlling the current color to be changed into the next color of the test sequence, and returning to the step of controlling the display lamp to display the current color corresponding to the test sequence;
when the display lamp completes the test of all colors, the control prompt module prompts the display lamp to test successfully.
Before controlling the display lamp to display the corresponding current color in the preset test sequence, the method further comprises:
controlling a counter to be set to zero;
after judging whether the color of the display lamp is consistent with the current color, the method further comprises the following steps:
when the color of the display lamp is inconsistent with the current color, judging whether the number of times recorded by the counter exceeds a preset number of times;
and when the frequency does not exceed the preset frequency, adding one to the numerical value recorded by the counter, and returning to the step of controlling the display lamp to display the corresponding current color in the preset test sequence.
After judging whether the number of times that the counter recorded exceeds the preset number of times, still include:
when the frequency exceeds the preset frequency, the control prompt module prompts that whether the color of the display lamp is consistent with the current color needs to be manually confirmed, and the counter is controlled to be reset;
when the consistency is confirmed manually, the step of judging whether the display lamp completes the test of all colors is carried out;
when the inconsistency is confirmed manually, the control prompt module prompts that the test of the display lamp fails.
Acquiring the color of a display lamp, comprising:
acquiring an image of a display lamp;
determining HSV values of the image;
and determining the color of the display lamp according to the preset corresponding relation between the color and the HSV range and the HSV value of the image.
Judging whether the color of the display lamp is consistent with the current color or not, comprising the following steps:
generating a color dictionary of the display lamp, wherein the color dictionary comprises the position of the display lamp and the color of the display lamp;
generating a preset color dictionary, wherein the color dictionary comprises the positions of the display lamps and the current colors;
judging whether the color dictionary of the display lamp is consistent with a preset color dictionary or not;
if so, the color of the display lamp is consistent with the current color;
if not, the color of the display lamp is inconsistent with the current color.
After the display lamp completes the test of all colors, the method further comprises the following steps:
controlling the display lamp to be turned off;
judging whether the display lamp is turned off or not;
and when the display lamp is turned off, entering a step of prompting the display lamp to test successfully by the control prompt module.
For the introduction of the computer-readable storage medium provided in the present application, reference is made to the above embodiments, which are not repeated herein.
The invention discloses a testing device and related components of a display lamp, and relates to the field of testing, comprising an industrial control host, a color acquisition module and an image acquisition module of the display lamp, wherein the color acquisition module of the display lamp is connected with the image acquisition module; the color acquisition module of display lamp is used for gathering the colour of display lamp, and the image acquisition module is used for shooting the image that the color acquisition module of display lamp was gathered, and the industrial control host computer is used for controlling the display lamp to show predetermined colour to confirm whether the colour of display lamp passes the test according to the image that the image acquisition module was shot. But automatic control display lamp shows the colour to whether the colour that judges demonstration is unanimous with the colour of control, test all colours to the display lamp in proper order, make the test result more accurate, test process automation reduces the cost of labor.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (15)

1. The testing device of the display lamp is characterized by comprising an industrial control host, a color acquisition module and an image acquisition module of the display lamp, wherein the color acquisition module of the display lamp is connected with the image acquisition module;
the color acquisition module of the display lamp is used for acquiring the color of the display lamp, the image acquisition module is used for shooting the image acquired by the color acquisition module of the display lamp, the industrial personal computer is used for controlling the display lamp to display the preset color, and the industrial personal computer determines whether the color of the display lamp passes the test or not according to the image shot by the image acquisition module.
2. The device for testing the display lamp according to claim 1, wherein the color collection module of the display lamp comprises a plurality of detachably disposed brackets, the brackets are provided with a plurality of probes, and the probes correspond to the display lamp in position, so that the optical fibers inside the probes collect the color of the display lamp.
3. The device for testing the display lamp according to claim 2, wherein the bottom of the color collection module of the display lamp is provided with a movable caster, and the bracket is adjustably arranged on the color collection module of the display lamp.
4. The apparatus for testing a display lamp according to claim 2, wherein the probe comprises a sizing hose, a tapered tube and an optical fiber, the optical fiber passes through the tube hole of the sizing hose and the tube hole of the tapered tube, one end of the sizing hose is connected to the bracket, the other end of the sizing hose is connected to the bottom end of the tapered tube, and the top end of the tapered tube corresponds to the position of the display lamp.
5. The apparatus for testing a display lamp of claim 4, wherein the flexible shaping tube is a metal flexible shaping tube, and the tapered tube is a rubber tapered tube.
6. The device for testing a display lamp according to any one of claims 1 to 5, further comprising a light shielding device disposed between the color collection module and the image collection module of the display lamp for shielding ambient light.
7. The method for testing the display lamp is applied to the industrial control host machine according to claim 1, and comprises the following steps:
controlling the display lamp to display the corresponding current color in the preset test sequence;
acquiring the color of the display lamp;
judging whether the color of the display lamp is consistent with the current color or not;
when the color of the display lamp is consistent with the current color, judging whether the display lamp completes the test of all colors;
when the display lamp does not finish the test of all colors, controlling the current color to be changed into the next color of the test sequence, and returning to the step of controlling the display lamp to display the current color corresponding to the test sequence;
and when the display lamp completes the test of all colors, the control prompt module prompts that the test of the display lamp is successful.
8. The method for testing a display lamp of claim 7, wherein before controlling the display lamp to display the corresponding current color in the preset test sequence, further comprising:
controlling a counter to be set to zero;
after judging whether the color of the display lamp is consistent with the current color, the method further comprises the following steps:
when the color of the display lamp is inconsistent with the current color, judging whether the times recorded by the counter exceed preset times;
and when the frequency does not exceed the preset frequency, adding one to the numerical value recorded by the counter, and returning to the step of controlling the display lamp to display the corresponding current color in the preset test sequence.
9. The method for testing a display lamp of claim 8, wherein after determining whether the number of times recorded by the counter exceeds a preset number of times, further comprising:
when the times exceed the preset times, a control prompt module prompts that whether the color of the display lamp is consistent with the current color needs to be manually confirmed, and controls the counter to be reset;
when the consistency is confirmed manually, the step of judging whether the display lamp completes the test of all colors is carried out;
and when the inconsistency is confirmed manually, the control prompt module prompts that the test of the display lamp fails.
10. The method for testing a display lamp of claim 7, wherein obtaining the color of the display lamp comprises:
acquiring an image of the display lamp;
determining an HSV value for the image;
and determining the color of the display lamp according to the preset corresponding relation between the color and the HSV range and the HSV value of the image.
11. The method for testing a display lamp according to any one of claims 7 to 10, wherein the determining whether the color of the display lamp is consistent with the current color comprises:
generating a color dictionary of the display lamp, wherein the color dictionary comprises the position of the display lamp and the color of the display lamp;
generating the preset color dictionary, wherein the color dictionary comprises the position of the display lamp and the current color;
judging whether the color dictionary of the display lamp is consistent with the preset color dictionary or not;
if so, the color of the display lamp is consistent with the current color;
and if not, the color of the display lamp is inconsistent with the current color.
12. The method for testing a display lamp as claimed in claim 11, further comprising, after the display lamp completes the test of all colors:
controlling the display lamp to be turned off;
judging whether the display lamp is turned off or not;
and when the display lamp is turned off, entering a step of prompting the display lamp to test successfully by a control prompt module.
13. A system for testing a display lamp, comprising:
the control unit is used for controlling the display lamp to display the corresponding current color in the preset test sequence; when the display lamp does not finish the test of all colors, controlling the current color to be changed into the next color of the test sequence, and returning to the step of controlling the display lamp to display the current color corresponding to the test sequence; when the display lamp completes the test of all colors, the control prompt module prompts the display lamp to test successfully;
an acquisition unit configured to acquire a color of the display lamp;
the judging unit is used for judging whether the color of the display lamp is consistent with the current color or not; and when the color of the display lamp is consistent with the current color, judging whether the display lamp completes the test of all colors.
14. An industrial personal computer, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for testing a display lamp according to any one of claims 7 to 12 when executing the computer program.
15. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for testing a display lamp according to any one of claims 7 to 12.
CN202210947592.2A 2022-08-09 2022-08-09 Testing device and related assembly of display lamp Pending CN115031933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210947592.2A CN115031933A (en) 2022-08-09 2022-08-09 Testing device and related assembly of display lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210947592.2A CN115031933A (en) 2022-08-09 2022-08-09 Testing device and related assembly of display lamp

Publications (1)

Publication Number Publication Date
CN115031933A true CN115031933A (en) 2022-09-09

Family

ID=83131322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210947592.2A Pending CN115031933A (en) 2022-08-09 2022-08-09 Testing device and related assembly of display lamp

Country Status (1)

Country Link
CN (1) CN115031933A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204229077U (en) * 2014-11-27 2015-03-25 常州驰网智能检测技术有限公司 LCD LCD screen detection device
CN105137927A (en) * 2015-07-30 2015-12-09 王云丽 Interference-free fiber signal lamp state acquisition system and method
CN108469591A (en) * 2018-03-22 2018-08-31 上海康斐信息技术有限公司 A kind of detection method and system of RGB LED displays
CN112040160A (en) * 2020-08-26 2020-12-04 深圳创维-Rgb电子有限公司 Display parameter setting method and device, multimedia equipment and storage medium
CN112304969A (en) * 2019-07-15 2021-02-02 西安诺瓦星云科技股份有限公司 Display module detection device, method, apparatus and system and storage medium
CN112766026A (en) * 2019-11-05 2021-05-07 深圳市大富科技股份有限公司 Traffic light detection method, computer storage medium, vehicle-mounted terminal and vehicle
CN113709065A (en) * 2021-07-31 2021-11-26 苏州浪潮智能科技有限公司 Automatic detection method, system, equipment and storage medium for panel light of switch
CN113810618A (en) * 2021-10-29 2021-12-17 北京环境特性研究所 Image acquisition device and acquisition system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204229077U (en) * 2014-11-27 2015-03-25 常州驰网智能检测技术有限公司 LCD LCD screen detection device
CN105137927A (en) * 2015-07-30 2015-12-09 王云丽 Interference-free fiber signal lamp state acquisition system and method
CN108469591A (en) * 2018-03-22 2018-08-31 上海康斐信息技术有限公司 A kind of detection method and system of RGB LED displays
CN112304969A (en) * 2019-07-15 2021-02-02 西安诺瓦星云科技股份有限公司 Display module detection device, method, apparatus and system and storage medium
CN112766026A (en) * 2019-11-05 2021-05-07 深圳市大富科技股份有限公司 Traffic light detection method, computer storage medium, vehicle-mounted terminal and vehicle
CN112040160A (en) * 2020-08-26 2020-12-04 深圳创维-Rgb电子有限公司 Display parameter setting method and device, multimedia equipment and storage medium
CN113709065A (en) * 2021-07-31 2021-11-26 苏州浪潮智能科技有限公司 Automatic detection method, system, equipment and storage medium for panel light of switch
CN113810618A (en) * 2021-10-29 2021-12-17 北京环境特性研究所 Image acquisition device and acquisition system

Similar Documents

Publication Publication Date Title
CN104853109B (en) A kind of method and camera terminal for automatically adjusting flash of light
US4700218A (en) Automated system for adjustment of the white balance in a signal displayed on the screen of a color cathode ray tube
JP4937840B2 (en) Ophthalmic equipment
EP3187099A1 (en) Vision testing system and method for testing eyes
US9161689B2 (en) Ophthalmologic photographing apparatus
EP3184029A2 (en) Vision testing system and method for testing eyes
JP2003135393A (en) Automatic adjusting method for endoscope system
WO2001084222A1 (en) Device for determining spectacle lens centering data
CN109451289B (en) Method and system for detecting and correcting projector
EP2162051A1 (en) Auto-phoropter interface and computer monitor filter
US5440339A (en) System and method for testing intensity response of a medical monochrome video monitor
CN115031933A (en) Testing device and related assembly of display lamp
CN112995492B (en) Parameter adjusting method and device, image acquisition system and computer readable storage medium
CN106017870B (en) Welding mask detection device and detection method thereof
CN113115031B (en) Method and system for detecting camera
CN214856574U (en) Vision detection device
CN214856579U (en) Vision detection device
EP2064878B1 (en) Diaphragm value recognition
KR100921717B1 (en) Relative exposure value measuring apparatus and method
WO2012144075A1 (en) Opthalmologic measurement device
CN207640376U (en) Visual field instrument brightness calibration device
CN113473100A (en) Color difference checking and adjusting system and method for LCD spliced screen
JPH06229931A (en) Method and equipment for calibration for image measuring apparatus
CN111709949A (en) Outdoor display screen detection and repair method, device, equipment and storage medium
CN112075918A (en) Dynamic instantaneous vision continuous measurement system with variable test conditions

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220909