CN113709065A - Automatic detection method, system, equipment and storage medium for panel light of switch - Google Patents

Automatic detection method, system, equipment and storage medium for panel light of switch Download PDF

Info

Publication number
CN113709065A
CN113709065A CN202110876880.9A CN202110876880A CN113709065A CN 113709065 A CN113709065 A CN 113709065A CN 202110876880 A CN202110876880 A CN 202110876880A CN 113709065 A CN113709065 A CN 113709065A
Authority
CN
China
Prior art keywords
lighting
color
target panel
panel lamp
determining
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
CN202110876880.9A
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 CN202110876880.9A priority Critical patent/CN113709065A/en
Publication of CN113709065A publication Critical patent/CN113709065A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

本申请公开了一种交换机的面板灯的自动检测方法,包括:向交换机发送携带有目标面板灯的编号以及亮灯颜色的指令,以使交换机控制目标面板灯按照亮灯颜色进行亮灯;接收图像采集装置拍摄的目标面板灯的的亮灯图像;通过机器视觉识别算法确定出亮灯图像中的目标面板灯的颜色,并判断是否与指令中的亮灯颜色一致;如果是,则确定出目标面板灯的亮灯颜色的检测结果为通过;如果否,则确定出目标面板灯的亮灯颜色的检测结果为未通过。应用本申请的方案,可以快速,有效地进行交换机的面板灯的检测,且可以降低成本,便于部署。本申请还提供了一种交换机的面板灯的自动检测系统、设备及存储介质,具有相应技术效果。

Figure 202110876880

The present application discloses an automatic detection method for a panel light of a switch, which includes: sending an instruction carrying the number of the target panel light and the lighting color to the switch, so that the switch controls the target panel light to light up according to the lighting color; receiving The lighting image of the target panel light captured by the image acquisition device; determine the color of the target panel light in the lighting image through the machine vision recognition algorithm, and determine whether it is consistent with the lighting color in the instruction; if so, determine the color of the target panel light. The detection result of the lighting color of the target panel light is a pass; if not, it is determined that the detection result of the lighting color of the target panel light is a failure. By applying the solution of the present application, the detection of the panel light of the switch can be performed quickly and effectively, the cost can be reduced, and the deployment can be facilitated. The present application also provides an automatic detection system, device and storage medium for a panel light of a switch, which have corresponding technical effects.

Figure 202110876880

Description

Automatic detection method, system, equipment and storage medium for panel light of switch
Technical Field
The invention relates to the technical field of detection and monitoring, in particular to an automatic detection method, system, equipment and storage medium for panel lamps of a switch.
Background
A plurality of indicator lamps can be arranged on a panel of the switch, and before leaving a factory, the function detection of the indicator lamps is needed. The early adoption is that manual identification pilot lamp colour realizes the function detection of pilot lamp, and such scheme exists inefficiency, produces visual fatigue, erroneous judgement scheduling problem easily. The scheme adopted at present is a scheme of a sensor and a color analyzer, and fig. 1 can be referred to as a schematic diagram of a detection structure of a panel lamp of a conventional switch. A color sensor fixture needs to be customized for the target to be detected. During detection, the server issues a lighting instruction, for example, the lighting instruction is turned on to green, so that the LED lamp of the switch is turned on. And finally, the server compares the color in the lighting instruction with the color detected by the sensor to determine the detection result of the LED lamp.
When adopting this kind of scheme, because in practical application, the panel lamp of switch arranges densely, and general sensor can't satisfy the operation requirement, consequently, sensor and support need the customization, need customize color sensor promptly to and customize color sensor tool, the cost is very high. In addition, the sensors need to be wired to a color analyzer, which makes field wiring messy and increases deployment costs.
In summary, how to effectively detect the panel light of the switch, reduce the cost, and facilitate the deployment is a technical problem that needs to be solved by technicians in the field at present.
Disclosure of Invention
The invention aims to provide an automatic detection method, system, equipment and storage medium for panel lamps of an exchanger, so that the panel lamps of the exchanger can be effectively detected, the cost is reduced, and the panel lamps are convenient to deploy.
In order to solve the technical problems, the invention provides the following technical scheme:
an automatic detection method for panel lamps of an exchanger comprises the following steps:
sending an instruction carrying the number and the lighting color of a target panel lamp to a switch so that the switch controls the target panel lamp to light according to the lighting color;
receiving a lighting image of the target panel lamp shot by an image acquisition device;
determining the color of the target panel lamp in the lighting image through a machine vision recognition algorithm, and judging whether the color is consistent with the lighting color in the instruction;
if so, determining that the detection result of the lighting color of the target panel lamp is pass;
and if not, determining that the detection result of the lighting color of the target panel lamp is failed.
Preferably, the method further comprises the following steps:
after the detection of each lighting color of the target panel lamp is carried out in sequence, judging whether the detection results of each lighting color of the target panel lamp pass or not;
if yes, determining that the target panel lamp is not abnormal;
if not, determining that the target panel lamp is abnormal in lighting.
Preferably, the determining the color of the target panel light in the lighting image through a machine vision recognition algorithm includes:
constructing a Cartesian coordinate system of the lighting image, and determining coordinates of a preset reference object in the Cartesian coordinate system;
determining the coordinates of the target panel lamp in the Cartesian coordinate system according to the relative position relationship between the target panel lamp and the reference object;
and determining the color of the target panel lamp in the lighting image based on the coordinates of the target panel lamp in the Cartesian coordinate system.
Preferably, the determining, by a machine vision recognition algorithm, the color of the target panel lamp in the lighting image, and determining whether the color of the target panel lamp is consistent with the lighting color in the instruction includes:
determining the RGB color value of the target panel lamp in the lighting image through a machine vision recognition algorithm;
judging whether the determined errors between the RGB color values of the target panel lamp and the RGB lighting color values in the instruction are within a preset range or not;
if so, determining that the RGB color value of the target panel lamp is consistent with the RGB lighting color value in the instruction;
and if not, determining that the RGB color value of the target panel lamp is inconsistent with the RGB lighting color value in the instruction.
Preferably, after determining that the detection result of the lighting color of the target panel lamp is passed, the method further includes:
sending a light-out instruction carrying the number of a target panel lamp to a switch so that the switch controls the target panel lamp to be turned off;
receiving a light-out image shot by an image acquisition device;
determining the color of the target panel lamp in the light-out image through a machine vision recognition algorithm, and judging whether the color is consistent with a preset light-out color or not;
if so, determining that the light-out detection result of the target panel light is passed;
if not, determining that the light-out detection result of the target panel light is failed.
Preferably, the method further comprises the following steps:
after the detection results of the lighting colors of the panel lamps of the switch and the light-out detection results of the panel lamps are obtained, when all the detection results pass, outputting first prompt information indicating that the panel lamps of the switch are normal; and when any detection result is that the lamp passes through the first detection result, outputting second prompt information indicating that the panel lamp of the switch is abnormal.
Preferably, the method further comprises the following steps:
after the detection result of any lighting color of any panel lamp of the switch is determined, storing a lighting image used for determining the detection result into a preset database;
and when a retrieval instruction is received, reading corresponding bright light images from the database according to the retrieval instruction.
An automatic detection system for panel lights of a switch, comprising:
the lighting instruction issuing module is used for sending an instruction carrying the number of a target panel lamp and the lighting color to the switch so that the switch controls the target panel lamp to light according to the lighting color;
the lighting image receiving module is used for receiving the lighting image of the target panel lamp shot by the image acquisition device;
the machine vision recognition module is used for determining the color of the target panel lamp in the lighting image through a machine vision recognition algorithm and judging whether the color is consistent with the lighting color in the instruction;
if yes, executing a first result output module for determining that the detection result of the lighting color of the target panel lamp is passed;
and if not, executing a second result output module for determining that the detection result of the lighting color of the target panel lamp is failed.
An automatic inspection apparatus of a panel light of a switch, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method for automatically detecting a panel light of a switch as described in any one of the above.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for automatic detection of panel lights of a switch of any of the above.
By applying the technical scheme provided by the embodiment of the invention, the panel light of the switch is automatically detected based on a machine vision identification mode. Specifically, the instruction carrying the number of the target panel lamp and the lighting color can be sent to the switch, so that the switch controls the target panel lamp to be lit according to the lighting color. Then, receiving a lighting image of the target panel lamp shot by the image acquisition device, determining the color of the target panel lamp in the lighting image through a machine vision recognition algorithm, and judging whether the color is consistent with the lighting color in the instruction; if so, determining that the detection result of the lighting color of the target panel lamp is a pass; if not, determining that the detection result of the lighting color of the target panel lamp is failed. It can be seen that, because the panel light of the switch is automatically detected based on the machine vision recognition, the scheme of the application does not need to be wired in a large amount as in the conventional scheme, and therefore the scheme of the application is convenient to deploy. Simultaneously, through the bright lamp image of shooting, can be convenient according to machine vision recognition algorithm, determine the testing result of the bright lamp colour of target panel lamp fast to, need not adopt special sensor and support, make this application scheme application scope wide, and the cost is lower.
To sum up, the scheme of this application can be fast, carries out the panel light's of switch detection effectively, and can reduce cost, is convenient for arrange.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a detection structure of a panel lamp of a conventional switch;
FIG. 2 is a flow chart of an embodiment of a method for automatically detecting panel lights of a switch according to the present invention;
fig. 3 is a schematic structural diagram of an automatic detection system for panel lights of a switch according to the present invention.
Detailed Description
The core of the invention is to provide an automatic detection method for the panel lamp of the switch, which can quickly and effectively detect the panel lamp of the switch, reduce the cost and facilitate the deployment.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.
Referring to fig. 2, fig. 2 is a flowchart illustrating an implementation of a method for automatically detecting a panel light of an exchange according to the present invention, where the method for automatically detecting a panel light of an exchange may include the following steps:
step S101: and sending an instruction carrying the number of the target panel lamp and the lighting color to the switch so that the switch controls the target panel lamp to light according to the lighting color.
Specifically, each step of the present application may be executed by a server, and of course, other devices may also be selected to execute in other embodiments, and each step of the present application may be implemented. The following description will be made by taking a server as an example.
The server may send an instruction to the switch carrying the number of the target panel light and the color of the light. A plurality of panel lights are generally provided in the switch, and in practical applications, these panel lights are generally arranged on the front panel of the switch, and thus may also be referred to as individual front panel lights of the switch.
The specific type of each panel light can also be set and adjusted according to the needs, and in practical application, the panel light can be a widely used LED light. Moreover, a monochromatic lamp or a multicolor lamp can be selected, and the specific type of each panel lamp depends on actual needs.
The target panel light may be any one of the panel lights of the switch, and in practical applications, the panel lights of the switch are usually detected automatically in sequence, and the automatic detection processes of the other panel lights may refer to the description of the target panel light in this application.
The server sends an instruction to the switch, wherein the instruction carries the number of the target panel lamp, so that the current specific detection object is specified from each panel lamp, and the instruction also carries the lighting color, so that the current specific detection color is specified from each displayable color of the target panel lamp.
After the switch receives the instruction, the switch controls the target panel lamp to light according to the lighting color required by the instruction according to the requirement of the instruction.
Step S102: and receiving a lighting image of the target panel lamp shot by the image acquisition device.
The image capturing device may be a video camera, a still camera, or the like, and in practical applications, the image capturing device may be generally fixed right in front of the front panel of the switch, so that each panel light of the switch is included in an image captured by the image capturing device.
Step S103: and determining the color of the target panel lamp in the lighting image through a machine vision recognition algorithm, and judging whether the color is consistent with the lighting color in the instruction.
If so, step S104 may be performed: determining that the detection result of the lighting color of the target panel lamp is passed;
if not, step S105 is executed: and determining that the detection result of the lighting color of the target panel lamp is failed.
When the color of the target panel lamp in the lighting image is determined through the machine vision recognition algorithm, various machine vision recognition algorithms can be specifically adopted, and the implementation of the method is not influenced.
In an embodiment of the present invention, the determining, by the machine vision recognition algorithm, the color of the target panel light in the lighting image in step S103 may specifically include:
constructing a Cartesian coordinate system of the lighting image, and determining the coordinates of a preset reference object in the Cartesian coordinate system;
determining the coordinates of the target panel lamp in a Cartesian coordinate system according to the relative position relationship between the target panel lamp and the reference object;
and determining the color of the target panel lamp in the lighting image based on the coordinates of the target panel lamp in the Cartesian coordinate system.
Specifically, in practical application, before the cartesian coordinate system is constructed, in order to ensure the accuracy of the coordinates of the subsequently determined target panel lamp in the cartesian coordinate system, the graying processing and the binarization processing of the lighting image can be performed first, and the cartesian coordinate system is constructed after the processing is finished, so that the noise can be reduced, and the accuracy of the coordinates of the determined target panel lamp in the cartesian coordinate system can be ensured.
The predetermined reference object may be predetermined, and is usually selected to be capable of being quickly, clearly and accurately identified, for example, as a right angle position of the edge of the switch. Furthermore, a pre-set reference can be generally used as the origin of the constructed cartesian coordinate system.
The relative positional relationship between the target panel lamp and the reference object may be predetermined, and thus, after the coordinates of the reference object in the cartesian coordinate system are determined, the coordinates of the target panel lamp in the cartesian coordinate system may be determined according to the relative positional relationship.
And the bright light image of the target panel lamp that utilizes to shoot can obtain the colour value of every pixel point of this bright light image, then combines the aforesaid coordinate in the cartesian coordinate system of the target panel lamp who determines, alright in order to obtain the colour of the target panel lamp in the bright light image.
After the color of the target panel lamp in the lighting image is determined through the machine vision recognition algorithm, the server can judge whether the color is consistent with the lighting color in the instruction.
In practical applications, considering that the color can be generally expressed by RBG color, in an embodiment of the present invention, step S103 may include:
determining the RGB color value of a target panel lamp in the lighting image through a machine vision recognition algorithm;
judging whether the errors between the determined RGB color values of the target panel lamp and the RGB lighting color values in the instruction are within a preset range or not;
if so, determining that the RGB color value of the target panel lamp is consistent with the RGB lighting color value in the instruction;
and if not, determining that the RGB color value of the target panel lamp is inconsistent with the RGB lighting color value in the instruction.
The RGB color values of the target panel light in the lighted image are determined by a machine vision recognition algorithm, which in this embodiment is compared to the RGB lighted color values in the command. And as long as the error is within the preset range, the determined RGB color value of the target panel lamp is considered to be consistent with the RGB lighting color value in the command.
There are also various methods for determining the error between two RGB color values, for example, comparing the R, G, B values of the two RGB color values, and selecting the largest difference as the error between the two RGB color values. For another example, the R, G, and B values of the two are compared to obtain 3 error values, and only if the 3 error values are all within the corresponding preset range, the determined RGB color value of the target panel lamp is considered to be consistent with the RGB lighting color value in the command.
When the color of the target panel lamp in the lighting image determined by the machine vision recognition algorithm is consistent with the lighting color in the command, it may be determined that the detection result of the lighting color of the target panel lamp is pass, for example, it may be determined that the detection result of green of panel lamp No. 1 is pass. Otherwise, if the detected light color of the target panel light is inconsistent, the detection result of the lighting color of the target panel light is determined to be failed.
In an embodiment of the present invention, the method may further include:
after the detection of each lighting color of the target panel lamp is carried out in sequence, judging whether the detection results of each lighting color of the target panel lamp pass;
if yes, determining that the lighting of the target panel lamp is not abnormal;
if not, the lighting of the target panel lamp is determined to be abnormal.
In this embodiment, the lighting colors of the target panel light are detected in sequence, so that whether the lighting function of the target panel light is abnormal or not can be determined.
Further, in an embodiment of the present invention, after step S104, the method may further include:
sending a light-out instruction carrying the number of the target panel lamp to the switch so that the switch controls the target panel lamp to be turned off;
receiving a light-out image shot by an image acquisition device;
determining the color of a target panel lamp in the lamp-out image through a machine vision recognition algorithm, and judging whether the color is consistent with a preset lamp-out color or not;
if so, determining that the light-out detection result of the target panel light is passed;
if not, determining that the light-out detection result of the target panel light is failed.
The foregoing embodiment is also a main detection content, but in this embodiment, it is considered that, in a small part of cases, the lighting of each color of the target panel lamp may be normal, but a case that the lighting cannot be turned off may occur, and therefore, in this embodiment, the lighting-off condition of the target panel lamp is detected to determine whether the lighting-off detection result of the target panel lamp passes or not, and specific implementation steps and principles are the same as above, and a description thereof will not be repeated.
In an embodiment of the present invention, the method may further include:
after the detection results of the lighting colors of the panel lamps of the switch and the light-out detection results of the panel lamps are obtained, when all the detection results pass, outputting first prompt information indicating that the panel lamps of the switch are normal; and when any one detection result is failed, outputting second prompt information indicating that the panel lamp of the switch is abnormal.
As described above, in practical applications, each panel light of the switch is usually detected in sequence, and therefore, in this embodiment, after the detection result of each lighting color of each panel light of the switch and the detection result of the lighting-out of each panel light are obtained, when each detection result passes, it indicates that the panel light of the switch is normal, and therefore, first prompt information indicating that the panel light of the switch is normal may be output, so that a worker notices this condition and finishes the detection. And when any detection result is failed, the abnormality of at least one panel lamp of the switch is indicated, so that second prompt information indicating that the panel lamp of the switch is abnormal is output, and the second prompt information can usually carry the serial number of each panel lamp which has the condition that the detection result fails, so that the subsequent positioning and maintenance are facilitated.
In an embodiment of the present invention, the method may further include:
after the detection result of any lighting color of any panel lamp of the switch is determined, storing a lighting image used for determining the detection result into a preset database;
and when a retrieval instruction is received, reading corresponding bright light images from the database according to the retrieval instruction.
In this embodiment, after the detection result of the lighting color of any one of the panel lights of the switch is determined, the lighting image used for determining the detection result is stored in the preset database, so that when the retrieval instruction is received, the corresponding lighting images can be read from the database according to the retrieval instruction, and the later-stage tracing of the staff is facilitated.
By applying the technical scheme provided by the embodiment of the invention, the panel light of the switch is automatically detected based on a machine vision identification mode. Specifically, the instruction carrying the number of the target panel lamp and the lighting color can be sent to the switch, so that the switch controls the target panel lamp to be lit according to the lighting color. Then, receiving a lighting image of the target panel lamp shot by the image acquisition device, determining the color of the target panel lamp in the lighting image through a machine vision recognition algorithm, and judging whether the color is consistent with the lighting color in the instruction; if so, determining that the detection result of the lighting color of the target panel lamp is a pass; if not, determining that the detection result of the lighting color of the target panel lamp is failed. It can be seen that, because the panel light of the switch is automatically detected based on the machine vision recognition, the scheme of the application does not need to be wired in a large amount as in the conventional scheme, and therefore the scheme of the application is convenient to deploy. Simultaneously, through the bright lamp image of shooting, can be convenient according to machine vision recognition algorithm, determine the testing result of the bright lamp colour of target panel lamp fast to, need not adopt special sensor and support, make this application scheme application scope wide, and the cost is lower.
To sum up, the scheme of this application can be fast, carries out the panel light's of switch detection effectively, and can reduce cost, is convenient for arrange.
Corresponding to the above method embodiment, the embodiment of the present invention further provides an automatic detection system for a panel light of an exchange, which can be referred to in correspondence with the above.
Referring to fig. 3, a schematic structural diagram of an automatic detection system for panel lights of an exchange according to the present invention includes:
the lighting instruction issuing module 301 is configured to send an instruction carrying the number of the target panel lamp and the lighting color to the switch, so that the switch controls the target panel lamp to light according to the lighting color;
a lighting image receiving module 302, configured to receive a lighting image of a target panel light captured by an image capturing device;
the machine vision recognition module 303 is configured to determine the color of the target panel lamp in the lighting image through a machine vision recognition algorithm, and determine whether the color is consistent with the lighting color in the instruction;
if yes, executing a first result output module 304 for determining that the detection result of the lighting color of the target panel lamp is pass;
if not, executing a second result output module 305 for determining that the detection result of the lighting color of the target panel lamp is failed.
In one embodiment of the present invention, the method further comprises:
the judging module is used for judging whether the detection results of all the lighting colors of the target panel lamp pass or not after the detection of all the lighting colors of the target panel lamp is carried out in sequence;
if yes, executing a third result output module for determining that the lighting of the target panel lamp is abnormal;
and if not, executing a fourth result output module for determining that the lighting of the target panel is abnormal.
In an embodiment of the present invention, the machine vision recognition module 303 determines the color of the target panel light in the lighting image through a machine vision recognition algorithm, and is specifically configured to:
constructing a Cartesian coordinate system of the lighting image, and determining the coordinates of a preset reference object in the Cartesian coordinate system;
determining the coordinates of the target panel lamp in a Cartesian coordinate system according to the relative position relationship between the target panel lamp and the reference object;
and determining the color of the target panel lamp in the lighting image based on the coordinates of the target panel lamp in the Cartesian coordinate system.
In an embodiment of the present invention, the machine vision recognition module 303 is specifically configured to:
determining the RGB color value of a target panel lamp in the lighting image through a machine vision recognition algorithm;
judging whether the errors between the determined RGB color values of the target panel lamp and the RGB lighting color values in the instruction are within a preset range or not;
if so, determining that the RGB color value of the target panel lamp is consistent with the RGB lighting color value in the instruction;
and if not, determining that the RGB color value of the target panel lamp is inconsistent with the RGB lighting color value in the instruction.
In a specific embodiment of the present invention, after the first result output module 304 determines that the detection result of the lighting color of the target panel light passes, the lighting instruction issuing module 301 is further configured to send a light-off instruction carrying the number of the target panel light to the switch, so that the switch controls the target panel light to be turned off;
the lighting image receiving module 302 is further configured to receive a lighting-out image captured by the image capturing device;
the machine vision recognition module 303 is further configured to determine the color of the target panel lamp in the light-out image through a machine vision recognition algorithm, and determine whether the color is consistent with a preset light-out color;
if yes, executing the first result output module 304, where the first result output module 304 is further configured to determine that the light-out detection result of the target panel light is passed;
if not, executing a second result output module 305, where the second result output module 305 is further configured to determine that the light-out detection result of the target panel light is failed.
In one embodiment of the present invention, the method further comprises:
the prompt information output module is used for outputting first prompt information indicating that the panel lamps of the switch are normal when all detection results pass after the detection results of the lighting colors of all the panel lamps of the switch and the lighting-out detection results of all the panel lamps are obtained; and when any one detection result is failed, outputting second prompt information indicating that the panel lamp of the switch is abnormal.
In one embodiment of the present invention, the method further comprises:
the data storage module is used for storing a lighting image used for determining the detection result into a preset database after determining the detection result of any lighting color of any panel lamp of the switch;
and the retrieval feedback module is used for reading corresponding bright light images from the database according to the retrieval instruction when receiving the retrieval instruction.
Corresponding to the above method and system embodiments, the present invention further provides an automatic detection device for a panel light of a switch and a computer readable storage medium, where a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the automatic detection method for a panel light of a switch in any of the above embodiments are implemented. A computer-readable storage medium as referred to herein may include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The automatic detection apparatus of the panel light of the switch may include:
a memory for storing a computer program;
a processor for executing a computer program to implement the steps of the method for automatically detecting a panel light of a switch in any of the above embodiments.
It is further noted that, herein, relational terms such as first and second, and the like may be 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.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An automatic detection method for a panel lamp of an exchange is characterized by comprising the following steps:
sending an instruction carrying the number and the lighting color of a target panel lamp to a switch so that the switch controls the target panel lamp to light according to the lighting color;
receiving a lighting image of the target panel lamp shot by an image acquisition device;
determining the color of the target panel lamp in the lighting image through a machine vision recognition algorithm, and judging whether the color is consistent with the lighting color in the instruction;
if so, determining that the detection result of the lighting color of the target panel lamp is pass;
and if not, determining that the detection result of the lighting color of the target panel lamp is failed.
2. The method for automatically detecting a panel light of an exchange according to claim 1, further comprising:
after the detection of each lighting color of the target panel lamp is carried out in sequence, judging whether the detection results of each lighting color of the target panel lamp pass or not;
if yes, determining that the target panel lamp is not abnormal;
if not, determining that the target panel lamp is abnormal in lighting.
3. The method of claim 1, wherein the determining the color of the target panel light in the lighting image by a machine vision recognition algorithm comprises:
constructing a Cartesian coordinate system of the lighting image, and determining coordinates of a preset reference object in the Cartesian coordinate system;
determining the coordinates of the target panel lamp in the Cartesian coordinate system according to the relative position relationship between the target panel lamp and the reference object;
and determining the color of the target panel lamp in the lighting image based on the coordinates of the target panel lamp in the Cartesian coordinate system.
4. The method according to claim 1, wherein the determining the color of the target panel lamp in the lighting image through a machine vision recognition algorithm and determining whether the color of the target panel lamp is consistent with the lighting color in the command comprises:
determining the RGB color value of the target panel lamp in the lighting image through a machine vision recognition algorithm;
judging whether the determined errors between the RGB color values of the target panel lamp and the RGB lighting color values in the instruction are within a preset range or not;
if so, determining that the RGB color value of the target panel lamp is consistent with the RGB lighting color value in the instruction;
and if not, determining that the RGB color value of the target panel lamp is inconsistent with the RGB lighting color value in the instruction.
5. The method according to claim 1, further comprising, after determining that the detection result of the lighting color of the target panel light is a pass, the step of:
sending a light-out instruction carrying the number of a target panel lamp to a switch so that the switch controls the target panel lamp to be turned off;
receiving a light-out image shot by an image acquisition device;
determining the color of the target panel lamp in the light-out image through a machine vision recognition algorithm, and judging whether the color is consistent with a preset light-out color or not;
if so, determining that the light-out detection result of the target panel light is passed;
if not, determining that the light-out detection result of the target panel light is failed.
6. The method for automatically detecting a panel light of an exchange according to claim 5, further comprising:
after the detection results of the lighting colors of the panel lamps of the switch and the light-out detection results of the panel lamps are obtained, when all the detection results pass, outputting first prompt information indicating that the panel lamps of the switch are normal; and when any detection result is that the lamp passes through the first detection result, outputting second prompt information indicating that the panel lamp of the switch is abnormal.
7. The method for automatically detecting a panel light of an exchange according to claim 1, further comprising:
after the detection result of any lighting color of any panel lamp of the switch is determined, storing a lighting image used for determining the detection result into a preset database;
and when a retrieval instruction is received, reading corresponding bright light images from the database according to the retrieval instruction.
8. An automatic detection system of a panel light of a switch, comprising:
the lighting instruction issuing module is used for sending an instruction carrying the number of a target panel lamp and the lighting color to the switch so that the switch controls the target panel lamp to light according to the lighting color;
the lighting image receiving module is used for receiving the lighting image of the target panel lamp shot by the image acquisition device;
the machine vision recognition module is used for determining the color of the target panel lamp in the lighting image through a machine vision recognition algorithm and judging whether the color is consistent with the lighting color in the instruction;
if yes, executing a first result output module for determining that the detection result of the lighting color of the target panel lamp is passed;
and if not, executing a second result output module for determining that the detection result of the lighting color of the target panel lamp is failed.
9. An automatic detection device of a panel light of a switch, comprising:
a memory for storing a computer program;
processor for executing said computer program for implementing the steps of the method for automatic detection of panel lights of a switch according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method for automatic detection of panel lights of a switch according to any one of claims 1 to 7.
CN202110876880.9A 2021-07-31 2021-07-31 Automatic detection method, system, equipment and storage medium for panel light of switch Pending CN113709065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110876880.9A CN113709065A (en) 2021-07-31 2021-07-31 Automatic detection method, system, equipment and storage medium for panel light of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110876880.9A CN113709065A (en) 2021-07-31 2021-07-31 Automatic detection method, system, equipment and storage medium for panel light of switch

Publications (1)

Publication Number Publication Date
CN113709065A true CN113709065A (en) 2021-11-26

Family

ID=78651165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110876880.9A Pending CN113709065A (en) 2021-07-31 2021-07-31 Automatic detection method, system, equipment and storage medium for panel light of switch

Country Status (1)

Country Link
CN (1) CN113709065A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115031933A (en) * 2022-08-09 2022-09-09 苏州浪潮智能科技有限公司 Testing device and related assembly of display lamp
CN116256151A (en) * 2023-02-03 2023-06-13 苏州浪潮智能科技有限公司 LED lamp detection method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009555A (en) * 2017-12-15 2018-05-08 上海索广电子有限公司 A kind of LED light Color Recognition System
CN111259892A (en) * 2020-01-19 2020-06-09 福建升腾资讯有限公司 Method, device, equipment and medium for inspecting state of indicator light
CN111445467A (en) * 2020-04-08 2020-07-24 珠海格力电器股份有限公司 Lighting defect detection method and device, electronic equipment and storage medium
CN112395928A (en) * 2019-08-19 2021-02-23 珠海格力电器股份有限公司 Method for automatically detecting equipment state operation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009555A (en) * 2017-12-15 2018-05-08 上海索广电子有限公司 A kind of LED light Color Recognition System
CN112395928A (en) * 2019-08-19 2021-02-23 珠海格力电器股份有限公司 Method for automatically detecting equipment state operation
CN111259892A (en) * 2020-01-19 2020-06-09 福建升腾资讯有限公司 Method, device, equipment and medium for inspecting state of indicator light
CN111445467A (en) * 2020-04-08 2020-07-24 珠海格力电器股份有限公司 Lighting defect detection method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115031933A (en) * 2022-08-09 2022-09-09 苏州浪潮智能科技有限公司 Testing device and related assembly of display lamp
CN116256151A (en) * 2023-02-03 2023-06-13 苏州浪潮智能科技有限公司 LED lamp detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112100039B (en) Equipment fault alarm method and system
TWI467500B (en) The detection method of the led of using the digital image
CN110702376B (en) Display module troubleshooting method and device
CN113709065A (en) Automatic detection method, system, equipment and storage medium for panel light of switch
CN111915601A (en) Intelligent terminal abnormity testing method, device and system
CN112378908A (en) Capacitor polarity installation detection device and detection method
CN113724240A (en) Refrigerator caster detection method, system and device based on visual identification
CN101153854B (en) Optical detection system
CN112730406A (en) Product testing method, system and readable storage medium
CN119492522A (en) Bad pixel detection method, system, device and storage medium for liquid crystal display screen
CN107084989B (en) Method and system for adding AOI device database
KR102286470B1 (en) LED Digital Signage Defect Detection system through Similarity Analysis of Original Image Information and Displayed Image Information
KR101893823B1 (en) Board inspection apparatus and method of compensating board distortion using the same
CN110853031B (en) Exclusive detection method for lightening of indicator light of automobile combined instrument
CN109596317B (en) Detection method and device for panel lamp
EP4358020A1 (en) Method of detecting errors in the placement of elements in the pcb
CN111460189B (en) Panel re-judging method, device, server, computer equipment and storage medium
CN113325299A (en) Quality inspection method for PCBA (printed circuit board assembly) and related components thereof
CN113888656A (en) Method and device for detecting light emitting diode of front panel of switch
CN119828037A (en) Indicator lamp testing method and device and electronic equipment
CN116246555B (en) Inspection methods and devices for automated display screen testing equipment
JP2007285880A (en) Sample image registration method and sample image creation apparatus in substrate inspection
CN117321641A (en) Automated optical inspection of automotive components
CN109565919A (en) Verification device for connected lighting system
CN111145674A (en) Display panel detection method, electronic device and storage medium

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

Application publication date: 20211126

RJ01 Rejection of invention patent application after publication