CN113495818B - Keyboard lamp detection system and method, computer readable storage medium and electronic device - Google Patents

Keyboard lamp detection system and method, computer readable storage medium and electronic device Download PDF

Info

Publication number
CN113495818B
CN113495818B CN202010198731.7A CN202010198731A CN113495818B CN 113495818 B CN113495818 B CN 113495818B CN 202010198731 A CN202010198731 A CN 202010198731A CN 113495818 B CN113495818 B CN 113495818B
Authority
CN
China
Prior art keywords
keyboard
preset
notebook computer
lamp
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010198731.7A
Other languages
Chinese (zh)
Other versions
CN113495818A (en
Inventor
宋正伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MSI Computer Shenzhen Co Ltd
Original Assignee
MSI Computer Shenzhen 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 MSI Computer Shenzhen Co Ltd filed Critical MSI Computer Shenzhen Co Ltd
Priority to CN202010198731.7A priority Critical patent/CN113495818B/en
Publication of CN113495818A publication Critical patent/CN113495818A/en
Application granted granted Critical
Publication of CN113495818B publication Critical patent/CN113495818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface

Abstract

The disclosure relates to the technical field of automatic detection, and provides a keyboard lamp detection system and method, a computer readable storage medium and electronic equipment. The keyboard lamp detection system is used for detecting a keyboard lamp of the notebook computer and comprises a body, a rotary table and an image acquisition part, wherein the rotary table is arranged on the body, a preset acquisition part is arranged on the rotary table, the rotary table is arranged opposite to a camera of the notebook computer, the camera is used for acquiring preset information of the preset acquisition part, and the notebook computer controls the keyboard lamp to be lightened according to the acquired preset information; the image acquisition part is arranged on the body and used for acquiring the image information of the keyboard after the keyboard lamp is lightened. The notebook computer is interacted with the preset acquisition part on the turntable by using the camera, so that the notebook computer can control the keyboard lamp to be lightened by the preset information acquired by the camera, the image acquisition part acquires the image information, and the automatic detection is high in efficiency and high in judgment accuracy by the image information.

Description

Keyboard lamp detection system and method, computer readable storage medium and electronic device
Technical Field
The disclosure relates to the technical field of automatic detection, and in particular relates to a keyboard lamp detection system and method, a computer readable storage medium and electronic equipment.
Background
At present, in the keyboard lamp detection process of the notebook computer, the keyboard lamp is lightened through software, and is observed by human eyes, but the human judgment is sensory judgment, the judgment standard is not clear, the efficiency is low, and misjudgment is easy to occur.
Disclosure of Invention
It is a primary object of the present disclosure to overcome at least one of the above-mentioned drawbacks of the prior art, and to provide a keyboard light detection system and method, a computer-readable storage medium, and an electronic device.
According to a first aspect of the present invention, there is provided a keyboard light detection system for detecting a keyboard light of a notebook computer, comprising:
a body;
the turntable is arranged on the body, a preset acquisition part is arranged on the turntable, the turntable is arranged opposite to a camera of the notebook computer, the camera is used for acquiring preset information of the preset acquisition part, and the notebook computer controls the keyboard lamp to be lightened according to the acquired preset information;
and the image acquisition part is arranged on the body and used for acquiring the image information of the keyboard after the keyboard lamp is lightened.
In one embodiment of the invention, the plurality of preset collecting parts are arranged on the turntable, and the camera is arranged opposite to one of the plurality of preset collecting parts;
the position of the turntable is adjustably set, so that the camera can acquire corresponding preset information of the preset acquisition parts one by one, and the notebook computer can switch the display color of the keyboard lamp according to the acquired preset information.
In one embodiment of the present invention, a plurality of preset collecting parts are provided along the circumferential direction of the turntable;
the rotary table is rotatably arranged so that one of the plurality of preset acquisition parts is opposite to the camera.
In one embodiment of the present invention, the keyboard light detection system further comprises:
a stop ring is arranged on the body, a notch is arranged on the stop ring, and the notch is arranged opposite to the camera;
the turntable is positioned in the check ring and is rotatably arranged relative to the check ring, so that any one of the preset collecting parts can be arranged opposite to the notch.
In one embodiment of the present invention, the plurality of preset collecting parts includes a plurality of first preset collecting parts, a second preset collecting part and a third preset collecting part, and the notebook computer switches the display color of the keyboard lamp according to the corresponding preset information of the plurality of first preset collecting parts, and the keyboard lamp detection system further includes:
The industrial personal computer is connected with the image acquisition part and receives and analyzes the image information to determine whether the keyboard lamp is normal or not;
when the keyboard lamp is normal, the position of the turntable is adjusted to be opposite to the camera, so that the notebook computer judges that the keyboard lamp is normal according to the preset information of the second preset acquisition part; when the keyboard lamp is abnormal, the position of the turntable is adjusted to be opposite to the third preset acquisition part and the camera, so that the notebook computer judges that the keyboard lamp is abnormal according to the preset information of the third preset acquisition part.
In one embodiment of the present invention, the keyboard light detection system further comprises:
the stop assembly comprises a first driving part and a stop part, wherein the first driving part is in driving connection with the stop part, so that the stop part has a first position contacted with the notebook computer and a second position separated from the notebook computer; and/or the number of the groups of groups,
the positioning assembly comprises a second driving part and a positioning part, and the second driving part is in driving connection with the positioning part so that the positioning part drives the notebook computer to move to a preset position.
In one embodiment of the invention, the image acquisition part is movably arranged relative to the body so as to adjust the relative position between the image acquisition part and the keyboard; and/or the number of the groups of groups,
The turntable is movably arranged relative to the body so as to adjust the relative position between the turntable and the camera.
According to a second aspect of the present invention, there is provided a keyboard light detection method, comprising:
acquiring preset information of a first preset acquisition part arranged on a turntable;
controlling the keyboard lamp to be lightened according to preset information;
acquiring image information of a keyboard after a keyboard lamp is lightened;
the image information is analyzed to determine whether the keyboard light is normal.
In one embodiment of the present invention, when the display colors of the keyboard lamps are multiple, corresponding preset information of the first preset acquisition units is acquired one by one, and the display colors of the keyboard lamps are switched according to the acquired preset information.
In one embodiment of the present invention, analyzing image information to determine whether a keyboard light is normal includes:
framing the range of each key of the keyboard on the image information;
selecting pixel points with R parameters larger than R threshold values in the pixel points and pixel points with B parameters larger than B threshold values and pixel points with G parameters larger than G threshold values in the range of each key;
respectively calculating average values of R parameters, B parameters and G parameters according to the selected pixel points;
and when the average value of the R parameter, the average value of the B parameter and the average value of the G parameter are all within the corresponding preset range values, determining that the keyboard lamp is normal.
In one embodiment of the present invention, when the display colors of the keyboard lamp are plural, the image information is analyzed to determine whether the keyboard lamp is normal, further comprising:
calculating the difference value among the display colors, and determining that the display colors of the keyboard lamp are normal when the difference value is within a preset difference value range;
wherein the difference value between the first display color and the second display color= |average value of B parameters of the first display color-average value of G parameters of the second display color|+|average value of G parameters of the first display color-average value of G parameters of the second display color|+|average value of R parameters of the first display color-average value of R parameters of the second display color|.
In one embodiment of the present invention, further comprising:
before acquiring preset information of a first preset acquisition part arranged on the turntable,
and obtaining the type of the keyboard and calling the configuration file according to the type of the keyboard.
In one embodiment of the present invention, further comprising:
after determining whether the keyboard light is normal or not,
the position of the control turntable is adjusted to be opposite to the camera of the notebook computer at the second preset acquisition part or the third preset acquisition part;
when the keyboard lamp is normal, the position of the turntable is adjusted to be opposite to the camera, so that the notebook computer judges that the keyboard lamp is normal according to the preset information of the second preset acquisition part; when the keyboard lamp is abnormal, the position of the turntable is adjusted to be opposite to the third preset acquisition part and the camera, so that the notebook computer judges that the keyboard lamp is abnormal according to the preset information of the third preset acquisition part.
According to a third aspect of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described keyboard light detection method.
According to a fourth aspect of the present invention, there is provided an electronic device comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the above-described keyboard light detection method via execution of the executable instructions.
The keyboard lamp detection system can rapidly acquire the image information of the keyboard after the keyboard lamp is lightened through the rotary disc and the image acquisition part on the body, and judge whether the keyboard lamp is normal or not according to the image information. When specifically gathering, utilize the notebook computer from the camera that takes with predetermine collection portion interaction on the carousel to the preset information control keyboard lamp that makes notebook computer obtain through the camera lights, and image acquisition portion gathers the keyboard after the keyboard lamp lights later and surveys for the automation, and is not only efficient and judge the accuracy also higher through image information.
Drawings
Various objects, features and advantages of the present disclosure will become more apparent from the following detailed description of the preferred embodiments of the disclosure, when taken in conjunction with the accompanying drawings. The drawings are merely exemplary illustrations of the present disclosure and are not necessarily drawn to scale. In the drawings, like reference numerals refer to the same or similar parts throughout. Wherein:
FIG. 1 is a schematic diagram of a keyboard light detection system according to an exemplary embodiment;
FIG. 2 is a schematic diagram of a keyboard according to an exemplary embodiment;
FIG. 3 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the present disclosure;
fig. 4 schematically illustrates a schematic diagram of an electronic device in an exemplary embodiment of the present disclosure.
The reference numerals are explained as follows:
10. a notebook computer; 11. a keyboard; 20. a body; 30. a turntable; 40. an image acquisition unit; 50. a check ring; 51. a notch; 60. a stop assembly; 61. a first driving section; 62. a stop portion; 70. a positioning assembly; 71. a second driving section; 72. a positioning part; 73. a first driving motor; 74. a second driving motor; 75. a third driving motor; 80. a code scanner;
300. a program product; 600. an electronic device; 610. a processing unit; 620. a storage unit; 6201. a random access memory unit (RAM); 6202. a cache storage unit; 6203. a read only memory unit (ROM); 6204. program/utility; 6205. a program module; 630. a bus; 640. a display unit; 650. an input/output (I/O) interface; 660. a network adapter; 700. an external device.
Detailed Description
Exemplary embodiments that embody features and advantages of the present disclosure are described in detail in the following description. It will be understood that the present disclosure is capable of various modifications in the various embodiments, all without departing from the scope of the present disclosure, and that the description and drawings are intended to be illustrative in nature and not to be limiting of the present disclosure.
In the following description of various exemplary embodiments of the present disclosure, reference is made to the accompanying drawings, which form a part hereof, and in which are shown by way of illustration various exemplary structures, systems, and steps in which aspects of the disclosure may be practiced. It is to be understood that other specific arrangements of parts, structures, example devices, systems, and steps may be used, and structural and functional modifications may be made without departing from the scope of the present disclosure. Moreover, although the terms "over," "between," "within," and the like may be used in this description to describe various example features and elements of the disclosure, these terms are used herein for convenience only, e.g., in accordance with the directions of examples in the drawings. Nothing in this specification should be construed as requiring a particular three-dimensional orientation of structures to fall within the scope of this disclosure.
Referring to fig. 1, a keyboard light detection system for detecting a keyboard light of a notebook computer 10 is provided in an embodiment of the present invention, and includes: a body 20; the turntable 30 is arranged on the body 20, a preset acquisition part is arranged on the turntable 30, the turntable 30 is arranged opposite to a camera of the notebook computer 10, the camera is used for acquiring preset information of the preset acquisition part, and the notebook computer 10 controls the keyboard lamp to be lightened according to the acquired preset information; and an image acquisition unit 40, wherein the image acquisition unit 40 is disposed on the main body 20, and is used for acquiring the image information of the keyboard 11 after the keyboard lamp is lighted.
The keyboard light detection system according to an embodiment of the present invention can rapidly acquire the image information of the keyboard 11 after the keyboard light is turned on through the turntable 30 and the image acquisition unit 40 on the main body 20, and determine whether the keyboard light is normal according to the image information. During specific collection, the notebook computer 10 is interacted with the preset collection part on the turntable 30 by using the camera, so that the notebook computer 10 controls the keyboard lamp to be lightened by the preset information acquired by the camera, the image collection part 40 then collects the image information of the keyboard 11 after the keyboard lamp is lightened, and the whole process is automatic detection, so that the efficiency is high, and the judgment accuracy by the image information is higher.
In one embodiment, the notebook computer 10 interacts with the keyboard light detection system through a camera, and when the notebook computer 10 is specifically used, the camera is used for collecting preset information of the preset collecting part, that is, after the notebook computer 10 obtains the preset information, the notebook computer 10 controls the keyboard light to be turned on, and the whole turning on process of the keyboard light is realized by means of a control program of the notebook computer 10.
In one embodiment, the preset collection information may be an image or a bar code, a two-dimensional code, an ID code, or the like.
In one embodiment, the number of preset collecting parts is multiple, the preset collecting parts are all arranged on the turntable 30, and the camera is arranged opposite to one of the preset collecting parts; the position of the turntable 30 is adjustably set, so that the camera can acquire corresponding preset information of the preset acquisition parts one by one, and the notebook computer 10 switches the display color of the keyboard lamp according to the acquired preset information. When the keyboard 11 of the notebook computer 10 is a multi-color keyboard, it is necessary to detect each color displayed by the keyboard lamp, so that the display color of the keyboard lamp is switched by adopting the interactions between the plurality of preset collecting parts and the camera, so that the image collecting part 40 sequentially collects the image information when the keyboard lamp displays different colors.
In one embodiment, in a specific detection process, by automatically adjusting the position of the turntable 30, different preset collecting units can be made to correspond to the camera, so that the camera obtains different preset information, and the preset information can correspond to different colors of the keyboard lamp, that is, after the notebook computer 10 obtains certain preset information, the user can know that the keyboard lamp needs to be controlled to display the corresponding color, similar to a control signal. For example, when the keyboard lamp can display red, green, blue and white, the turntable 30 has 4 preset collection units corresponding to the keyboard lamp one by one, and the camera is controlled to display the corresponding colors after collecting the corresponding preset information.
In one embodiment, a plurality of preset acquisitions are provided along the circumferential direction of the turntable 30; wherein, the turntable 30 is rotatably arranged so that one of the plurality of preset collecting parts is arranged opposite to the camera. The turntable 30 enables each preset collecting part to be arranged opposite to the camera in the rotating process, so that the camera can acquire preset information of the preset collecting parts one by one, and the keyboard lamp can be controlled to display corresponding colors.
In one embodiment, the number of preset collection units on the turntable 30 is plural, and when the keyboard lamp displays only one color, the keyboard lamp detection system controls the corresponding preset collection unit to rotate to be opposite to the camera, so as to ensure that the keyboard lamp is lighted, and the preset collection units for displaying other colors do not need to interact with the camera. The keyboard lamp detecting system is good in universality due to the arrangement of the plurality of preset collecting parts, and the keyboard lamp detecting system can adapt to keyboard lamps with different color display numbers.
In one embodiment, as shown in fig. 1, the keyboard light detection system further comprises: the check ring 50, the check ring 50 is arranged on the body 20, a notch 51 is arranged on the check ring 50, and the notch 51 is arranged opposite to the camera; the turntable 30 is located in the check ring 50 and is rotatably disposed relative to the check ring 50, so that any one of the preset collecting portions can be disposed opposite to the notch 51. The check ring 50 is arranged to ensure that only one preset collecting part is arranged opposite to the camera after passing through the notch 51, so that the problem of false collection of the camera is avoided, and the control accuracy is ensured.
In one embodiment, the keyboard light detection system further comprises: and the driving motor is in driving connection with the turntable 30 to drive the turntable 30 to rotate, wherein the driving motor can adopt a stepping motor.
In one embodiment, the plurality of preset collecting parts includes a plurality of first preset collecting parts, a second preset collecting part and a third preset collecting part, and the notebook computer 10 switches the display color of the keyboard lamp according to the corresponding preset information of the plurality of first preset collecting parts, and the keyboard lamp detection system further includes: the industrial personal computer is connected with the image acquisition part 40 and receives and analyzes the image information to determine whether the keyboard lamp is normal or not; when the keyboard lamp is normal, the position of the turntable 30 is adjusted to be opposite to the second preset collecting part and the camera, so that the notebook computer 10 judges that the keyboard lamp is normal according to the preset information of the second preset collecting part; when the keyboard lamp is abnormal, the position of the turntable 30 is adjusted to be opposite to the third preset collecting part and the camera, so that the notebook computer 10 judges that the keyboard lamp is abnormal according to the preset information of the third preset collecting part.
In one embodiment, after the image information is acquired by the image acquisition unit 40, the image information is transmitted to the industrial personal computer, and the industrial personal computer can determine whether the keyboard lamp is displayed normally or not by analyzing the image information, that is, the industrial personal computer has a final determination structure, and the determination result can be transmitted to the notebook computer 10 according to the preset acquisition unit on the turntable 30, that is, the second preset acquisition unit corresponds to a normal result, and the third preset acquisition unit corresponds to an abnormal result. After determining that the keyboard lamp is normal, the notebook computer 10 can determine that the keyboard lamp is normal, and then the rotation of the turntable 30 is controlled to enable the second preset collecting part to be opposite to the camera. On the contrary, after determining that the keyboard lamp is abnormal, the notebook computer 10 may determine that the keyboard lamp is abnormal, by controlling the rotation of the turntable 30 so that the third preset collecting portion is opposite to the camera, and the camera obtains an abnormal judgment result corresponding to the third preset collecting portion. The industrial personal computer comprises CCD visual analysis software and is used for analyzing and processing image information.
In one embodiment, as shown in fig. 1, the keyboard light detection system further comprises: a stopper assembly 60, the stopper assembly 60 including a first driving part 61 and a stopper part 62, the first driving part 61 being drivingly connected to the stopper part 62 such that the stopper part 62 has a first position contacting the notebook computer 10 and a second position separated from the notebook computer 10; and/or, the positioning assembly 70 includes a second driving portion 71 and a positioning portion 72, and the second driving portion 71 is in driving connection with the positioning portion 72, so that the positioning portion 72 drives the notebook computer 10 to move to a preset position. The notebook computer 10 can be conveyed by a conveying line in the detection process, namely, the notebook computer 10 needs to be controlled by the stop part 62 to stop moving after reaching a preset position, and after the detection is finished, the notebook computer 10 needs to be released to be conveyed to other stations. After the notebook computer 10 is limited by the stop portion 62, the notebook computer 10 can be driven by the positioning portion 72 to move to a preset position, i.e. a position where the image information is conveniently collected by the image collecting portion 40.
In one embodiment, the first driving part 61 has a telescopic rod connected to the stopping part 62 by the telescopic rod, and the extension and retraction of the telescopic rod can control the stopping and moving of the notebook computer 10, wherein a cushion pad is disposed at a side of the stopping part 62 contacting the notebook computer 10, and the first driving part 61 is a blocking cylinder. Accordingly, the second driving part 71 has a telescopic rod, which is connected to the positioning part 72 through the telescopic rod, and the extension of the telescopic rod can drive the notebook computer 10 to move, wherein the second driving part 71 is an air cylinder.
In one embodiment, the image capturing section 40 is movably disposed with respect to the body 20 to adjust the relative position between the image capturing section 40 and the keyboard 11; and/or the turntable 30 is movably disposed with respect to the body 20 to adjust the relative position between the turntable 30 and the camera. In the actual detection process, since the notebook computer 10 has different models, the position of the image capturing portion 40 or the turntable 30 needs to be properly adjusted, that is, the image capturing portion 40 or the turntable 30 can be moved in the horizontal direction or the vertical direction, and the driving manner can be a conventional driving manner, such as a ball screw, an electric sliding table module, etc., which is not limited herein and can be selected according to the actual requirement.
In one embodiment, as shown in fig. 1, the keyboard light detection system further includes a first driving motor 73, a second driving motor 74, and a third driving motor 75, where the first driving motor 73, the third driving motor 75, and the second driving motor 74 cooperate with the ball screw to drive the turntable 30 to move in the X, Y and Z directions.
In one embodiment, the image capturing section 40 is a CCD camera.
In one embodiment, the keyboard light detection system further includes a code scanner 80, where the code scanner 80 is configured to obtain a pre-formed code on the notebook computer 10 to determine a model of the notebook computer 10, so that the industrial personal computer selects a corresponding configuration file to detect the keyboard light.
In one embodiment, the keyboard light detection system further includes a darkroom, at least a portion of the keyboard light detection system is located within the darkroom, such as the turntable 30, the image capture portion 40, the stop collar 50, the stop assembly 60, the positioning assembly 70, the scanner 80, the first drive motor 73, the second drive motor 74, and the third drive motor 75, and the notebook computer 10 is also located within the darkroom during testing.
An embodiment of the present invention further provides a keyboard lamp detection method, including: acquiring preset information of a first preset acquisition part arranged on the turntable 30; controlling the keyboard lamp to be lightened according to preset information; acquiring image information of the keyboard 11 after the keyboard lamp is lighted; the image information is analyzed to determine whether the keyboard light is normal.
According to the keyboard lamp detection method, the image information is acquired after the keyboard lamp is turned on, then the final detection result can be obtained through image analysis, the whole detection process is automatic detection, and the accurate detection result is obtained through image analysis.
In one embodiment, when the display colors of the keyboard lamps are multiple, corresponding preset information of the first preset acquisition parts is acquired one by one, and the display colors of the keyboard lamps are switched according to the acquired preset information. For the analysis of the colorful keyboard 11, the keyboard lamp is switched to display different colors by collecting the corresponding preset information of different first preset collecting parts, so that the image information of the keyboard 11 corresponding to different colors is obtained, the image information is analyzed sequentially, when the judging result of the image information collected by each color is normal, the display of the keyboard lamp is normal, namely, when the final judging result is that all the color displays are normal, the display is normal.
In one embodiment, analyzing the image information to determine whether the keyboard light is normal includes: the range of each key of the keyboard 11 is framed on the image information; selecting pixel points with R parameters larger than R threshold values in the pixel points and pixel points with B parameters larger than B threshold values and pixel points with G parameters larger than G threshold values in the range of each key; respectively calculating average values of R parameters, B parameters and G parameters according to the selected pixel points; and when the average value of the R parameter, the average value of the B parameter and the average value of the G parameter are all within the corresponding preset range values, determining that the keyboard lamp is normal. The image information of the keyboard 11 is an image of the whole keyboard 11, and the keyboard lamps correspond to each key, so that the image area except the keys can be removed during analysis, only the range corresponding to the keys is determined, so that the separation of the image information is firstly performed, a complete image is separated according to the number of the keys (after the separation according to the number of the keys, the range corresponding to the keys can be separated again), after the separation of the image information, the area corresponding to each key is not completely lighted, so that the unlit or insufficiently bright part can be removed, at this time, the three-dimensional vector of R, G, B components contained in the pixel point can be selected according to the fact that only one of the three-dimensional vectors is larger than the corresponding threshold value, the R parameter, the B parameter and the G parameter corresponding to each selected pixel point can be selected, and finally the average value of the R parameter, the B parameter and the G parameter is calculated.
In one embodiment, for the CCD photographing part, i.e. the obtained image information, the range of each key is framed, and in the range of each key, the pixels with R parameter larger than R threshold, the pixels with B parameter larger than B threshold and the pixels with G parameter larger than G threshold are selected, so that the opaque or non-luminous part in the framed range can be removed, and the calculation of the pixels with only selected luminous is achieved. And calculating the average value of RGB according to the selected luminous points, and judging whether the average value is within a set standard, the average value is within the standard, and the average value is not within the standard. For a multicolor keyboard, such as a color display lamp, a lamp failure will result in a failure of r=0, g=0, or b=0 because no satisfactory pixels are collected in the frame.
In one embodiment, as shown in the schematic structural diagram of the keyboard 11 in fig. 2, the portion in the range of the box a may be understood as the acquired image information of the entire keyboard 11, and the portion in the range of each box B (which may be interpreted as the range of each key in conjunction with fig. 2) may be understood as the range of each key of the keyboard 11 is framed on the image information, that is, after a plurality of B ranges are framed in the range a, the pixels emitting light in each B range are selected for calculation (the opaque or non-light emitting portions are removed according to the selection condition).
In one embodiment, when the display colors of the keyboard lamp are plural, the image information is analyzed to determine whether the keyboard lamp is normal, and further comprising: calculating difference values among a plurality of display colors, and determining that the display colors of the keyboard lamp are normal when the difference values are within a preset difference value range; wherein the difference value between the first display color and the second display color = |average value of B parameters of the first display color-average value of B parameters of the second display color +|average value of G parameters of the first display color-average value of G parameters of the second display color +|average value of R parameters of the first display color-average value of R parameters of the second display color |, and the difference value calculation formula between any two other colors adopts the above formula. The judgment of the difference value is mainly used for determining whether an error occurs in display of a certain color, for example, when blue light should be displayed, red light or green light is actually displayed.
In one embodiment, the red state (R state), the green state (B state), the blue state (G state) and the difference value are added, and if any two test changes are smaller than the set range, it is proved that there is a display error of one color, which may be that the red light emits the actual green light or the blue light, that the blue light emits the actual red light or the green light, and that the green light emits the actual blue light or the red light.
Wherein, the calculation formulas of the RB differential value, the RG differential value and the BG differential value are as follows:
RB difference value: r state R value-B state R value +|R state G value-B state G value +|R state B value-B state B value.
RG difference value: r state R value-G state R value |+|R state G value-G state G value|+|R state B value-G state B value|.
GB difference value: the R value of the B state-the R value of the G state-the G value of the G state-the B value of the B state-the B value of the G state.
In one embodiment, the keyboard light detection method further comprises: before acquiring the preset information of the first preset acquisition part set on the turntable 30, the type of the keyboard 11 is acquired, and a configuration file is called according to the type of the keyboard 11. In view of the detection of different types of keyboards 11, different configuration files are configured for controlling the rotation of the dial 30, performing image information analysis judgment, and the like.
In one embodiment, the keyboard light detection method further comprises: after determining whether the keyboard lamp is normal, adjusting the position of the control dial 30 to a position where the second preset acquisition part or the third preset acquisition part is arranged opposite to the camera of the notebook computer 10; when the keyboard lamp is normal, the position of the turntable 30 is adjusted to be opposite to the second preset collecting part and the camera, so that the notebook computer 10 judges that the keyboard lamp is normal according to the preset information of the second preset collecting part; when the keyboard lamp is abnormal, the position of the turntable 30 is adjusted to be opposite to the third preset collecting part and the camera, so that the notebook computer 10 judges that the keyboard lamp is abnormal according to the preset information of the third preset collecting part.
In one embodiment, the keyboard light detection method is applicable to the keyboard light detection system, and includes:
1. the keyboard type can be obtained by scanning the bar code to obtain the corresponding model information before entering the keyboard lamp detection system.
2. By means of the acquired model, a model configuration file, i.e. a program file for the subsequent rotation of the control dial 30 and for analysing the image information, is automatically invoked.
3. The blocking cylinder positions the notebook computer, that is, the first driving part 61 drives the stop part 62 to limit the notebook computer, and the second driving part 71 drives the positioning part 72 to adjust the position of the notebook computer.
4. And collecting a first state, a red state and photographing and judging of the keyboard LED lamp.
5. The two-dimensional code rotating disc is turned to the LED2, the notebook computer scans the two-dimensional code, the notebook computer is switched to a green state, and photographing and judging are carried out, wherein the two-dimensional code rotating disc is the two-dimensional code arranged on the rotating disc 30, and the LED2 can be understood to be an acquisition position corresponding to the second state of the keyboard LED lamp.
6. The two-dimensional code turntable is turned to the LED3, the notebook computer scans the two-dimensional code, the two-dimensional code is switched to a blue state, and photographing and judging are carried out.
7. The two-dimensional code turntable is turned to the LED4, the notebook computer scans the two-dimensional code, the two-dimensional code is switched to a white state, and photographing and judging are carried out.
8. If the test is in a single-color state, if the test is in a multi-color state, namely D, E, F and G, the test result accords with the SPEC as a pass, and the test result does not accord with the SPEC as fail. The above color states and the number of color displays are just one list, and are determined according to the actual keyboard lamp.
9. And the test result is a pass, the pass two-dimensional code is transmitted to the notebook computer, and the keyboard lamp of the notebook computer tests the pass of the project. And the test result is fail, and the fail two-dimensional code is transmitted to a notebook computer, so that the keyboard lamp of the notebook computer tests the project fail.
The keyboard lamp detection system and the keyboard lamp detection method can replace human eyes, detect whether the brightness and the color of each key lamp of a keyboard of a notebook computer are correct, automatically switch configuration files by using serial water codes of all notebooks, have the same configuration for the LEDs of the keyboard lamps aiming at the same key positions, and can be used for different printing. For a notebook computer, a colorful LED keyboard is used, a two-dimensional code is scanned through a notebook camera, the states of LED lamps of the keyboard are respectively switched, and the states are respectively photographed for detection, such as whether the color and the brightness of each key red, green, blue and white LED of the keyboard are in a normal range or not. And automatically judging the test result, generating a test log, storing the test log, and reversely transmitting the test result to the notebook computer under test through the two-dimensional code.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the keyboard light detection method described above.
In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the above-mentioned keyboard light detection method section of this specification, when said program product is run on the terminal device.
Referring to fig. 3, a program product 300 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The invention also provides an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-described keyboard light detection method via execution of the executable instructions.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 4. The electronic device 600 shown in fig. 4 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, the electronic device 600 is embodied in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above-described keyboard light detection method section of the present specification.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-mentioned keyboard light detection method according to the embodiments of the present disclosure.
The keyboard lamp detection system and the keyboard lamp detection method have strong configuration universality, the same model and the same type of keyboard lamp color only need to be configured once, the human eye observation is completely replaced, the test reliability is strong, the test result is automatically returned, the test efficiency is high, and whether the brightness and the color of all 102 keys of the keyboard are normal or not is tested in 20 seconds.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and example embodiments be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (13)

1. A keyboard light detection system for detecting a keyboard light of a notebook computer (10), comprising:
a body (20);
the rotary table (30), the rotary table (30) is arranged on the body (20), a preset acquisition part is arranged on the rotary table (30), the rotary table (30) is arranged opposite to a camera of the notebook computer (10), the camera is used for acquiring preset information of the preset acquisition part, and the notebook computer (10) is enabled to control the keyboard lamp to be lightened according to the acquired preset information;
an image acquisition unit (40), wherein the image acquisition unit (40) is arranged on the main body (20) and is used for acquiring the image information of the keyboard (11) after the keyboard lamp is lighted;
the number of the preset collecting parts is multiple, the preset collecting parts are all arranged on the turntable (30), and the camera is arranged opposite to one of the preset collecting parts;
the position of the rotary table (30) is adjustably set, so that the camera can acquire corresponding preset information of the preset acquisition parts one by one, and the notebook computer (10) switches the display color of the keyboard lamp according to the acquired preset information.
2. The keyboard light detection system according to claim 1, wherein a plurality of the preset collecting parts are provided along a circumferential direction of the turntable (30);
wherein the turntable (30) is rotatably arranged so that one of the plurality of preset collection parts is arranged opposite to the camera.
3. The keyboard light detection system of claim 2, further comprising:
the stop ring (50), the stop ring (50) is arranged on the body (20), a notch (51) is arranged on the stop ring (50), and the notch (51) is arranged opposite to the camera;
the turntable (30) is located in the stop ring (50) and is rotatably arranged relative to the stop ring (50), so that any one of the preset collecting parts can be arranged opposite to the notch (51).
4. The keyboard light detection system according to claim 1, wherein the plurality of preset collecting parts includes a plurality of first preset collecting parts, a second preset collecting part, and a third preset collecting part, the notebook computer (10) switches a display color of the keyboard light according to corresponding preset information of the plurality of first preset collecting parts, the keyboard light detection system further comprising:
The industrial personal computer is connected with the image acquisition part (40) and is used for receiving and analyzing the image information to determine whether the keyboard lamp is normal or not;
when the keyboard lamp is normal, the position of the rotary table (30) is adjusted to be opposite to the camera, so that the notebook computer (10) judges that the keyboard lamp is normal according to the preset information of the second preset acquisition part; when the keyboard lamp is abnormal, the position of the rotary table (30) is adjusted to be opposite to the setting of the third preset collecting part and the camera, so that the notebook computer (10) judges that the keyboard lamp is abnormal according to the preset information of the third preset collecting part.
5. The keyboard light detection system of claim 1, further comprising:
a stop assembly (60), the stop assembly (60) comprising a first drive portion (61) and a stop portion (62), the first drive portion (61) being in driving connection with the stop portion (62) such that the stop portion (62) has a first position in contact with the notebook computer (10) and a second position separated from the notebook computer (10); and/or the number of the groups of groups,
The positioning assembly (70), the positioning assembly (70) comprises a second driving part (71) and a positioning part (72), and the second driving part (71) is in driving connection with the positioning part (72), so that the positioning part (72) drives the notebook computer (10) to move to a preset position.
6. The keyboard light detection system according to claim 1, wherein the image capturing section (40) is movably arranged with respect to the body (20) to adjust a relative position between the image capturing section (40) and the keyboard (11); and/or the number of the groups of groups,
the turntable (30) is movably arranged relative to the body (20) to adjust the relative position between the turntable (30) and the camera.
7. A keyboard light detection method, comprising:
acquiring preset information of a first preset acquisition part arranged on a turntable (30);
controlling the keyboard lamp to be lightened according to the preset information;
acquiring image information of a keyboard (11) after the keyboard lamp is lightened;
analyzing the image information to determine whether the keyboard light is normal, comprising:
-framing the range of individual keys of the keyboard (11) on the image information;
selecting pixels with R parameters larger than R threshold values, B parameters larger than B threshold values and G parameters larger than G threshold values from the range of each key;
Respectively calculating average values of R parameters, B parameters and G parameters according to the selected pixel points;
and when the average value of the R parameter, the average value of the B parameter and the average value of the G parameter are all within the corresponding preset range values, determining that the keyboard lamp is normal.
8. The method according to claim 7, wherein when the display colors of the keyboard lamps are plural, the corresponding preset information of the plural first preset collecting parts is acquired one by one, and the display colors of the keyboard lamps are switched according to the acquired preset information.
9. The keyboard light detection method of claim 7, wherein when the display colors of the keyboard lights are plural, analyzing the image information to determine whether the keyboard lights are normal, further comprising:
calculating difference values among a plurality of display colors, and determining that the display colors of the keyboard lamp are normal when the difference values are within a preset difference value range;
wherein the difference value between the first display color and the second display color= |average value of B parameters of the first display color-average value of G parameters of the second display color|+|average value of G parameters of the first display color-average value of G parameters of the second display color|+|average value of R parameters of the first display color-average value of R parameters of the second display color|.
10. The keyboard light detection method of claim 7, further comprising:
before acquiring preset information of a first preset acquisition part arranged on the turntable (30),
the type of the keyboard (11) is acquired, and a configuration file is called according to the type of the keyboard (11).
11. The keyboard light detection method of claim 7, further comprising:
after determining whether the keyboard light is normal,
controlling the position of the rotary table (30) to be adjusted to a position where the second preset acquisition part or the third preset acquisition part is arranged opposite to the camera of the notebook computer (10);
when the keyboard lamp is normal, the position of the rotary table (30) is adjusted to be opposite to the camera, so that the notebook computer (10) judges that the keyboard lamp is normal according to the preset information of the second preset acquisition part; when the keyboard lamp is abnormal, the position of the rotary table (30) is adjusted to be opposite to the setting of the third preset collecting part and the camera, so that the notebook computer (10) judges that the keyboard lamp is abnormal according to the preset information of the third preset collecting part.
12. A computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the keyboard light detection method of any one of claims 7 to 11.
13. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the keyboard light detection method of any one of claims 7 to 11 via execution of the executable instructions.
CN202010198731.7A 2020-03-20 2020-03-20 Keyboard lamp detection system and method, computer readable storage medium and electronic device Active CN113495818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010198731.7A CN113495818B (en) 2020-03-20 2020-03-20 Keyboard lamp detection system and method, computer readable storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010198731.7A CN113495818B (en) 2020-03-20 2020-03-20 Keyboard lamp detection system and method, computer readable storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113495818A CN113495818A (en) 2021-10-12
CN113495818B true CN113495818B (en) 2024-03-15

Family

ID=77993517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010198731.7A Active CN113495818B (en) 2020-03-20 2020-03-20 Keyboard lamp detection system and method, computer readable storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113495818B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242695A (en) * 2008-02-29 2008-08-13 深圳华为通信技术有限公司 Method and terminal for activating terminal keyboard lamp
CN102928207A (en) * 2012-11-23 2013-02-13 上海市共进通信技术有限公司 Onboard LED automatic testing method
CN104656927A (en) * 2013-11-25 2015-05-27 西安青于蓝信息科技有限公司 Computer keyboard with digital photo frame
CN106040608A (en) * 2016-05-20 2016-10-26 上海交通大学 Dynamic optical detection device and detection method for laptop keyboards
CN206906562U (en) * 2017-07-31 2018-01-19 昆山兴协和光电科技有限公司 Keyboard pcb LED vision inspection apparatus
CN108226816A (en) * 2017-11-30 2018-06-29 群光电子(苏州)有限公司 A kind of equipment of proved keyboard LED light function
CN108319532A (en) * 2018-01-15 2018-07-24 昆山欧博精密机械电子有限公司 The automatic p-wire of notebook and automatic test approach
CN110868547A (en) * 2019-12-02 2020-03-06 RealMe重庆移动通信有限公司 Photographing control method, photographing control device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009265692A (en) * 2008-04-21 2009-11-12 Pfu Ltd Notebook type information processor and image reading method
US20140164650A1 (en) * 2012-12-07 2014-06-12 Dell Products L.P. System, method and computer program product for monitoring and alerting the health of sub-system connectors
FR3078416A1 (en) * 2018-02-23 2019-08-30 Blade MEASURING DEVICE FOR MEASURING THE LATENCY TIME OF PROCESSING A COMPUTER SYSTEM, METHOD OF USING THE SAME

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242695A (en) * 2008-02-29 2008-08-13 深圳华为通信技术有限公司 Method and terminal for activating terminal keyboard lamp
CN102928207A (en) * 2012-11-23 2013-02-13 上海市共进通信技术有限公司 Onboard LED automatic testing method
CN104656927A (en) * 2013-11-25 2015-05-27 西安青于蓝信息科技有限公司 Computer keyboard with digital photo frame
CN106040608A (en) * 2016-05-20 2016-10-26 上海交通大学 Dynamic optical detection device and detection method for laptop keyboards
CN206906562U (en) * 2017-07-31 2018-01-19 昆山兴协和光电科技有限公司 Keyboard pcb LED vision inspection apparatus
CN108226816A (en) * 2017-11-30 2018-06-29 群光电子(苏州)有限公司 A kind of equipment of proved keyboard LED light function
CN108319532A (en) * 2018-01-15 2018-07-24 昆山欧博精密机械电子有限公司 The automatic p-wire of notebook and automatic test approach
CN110868547A (en) * 2019-12-02 2020-03-06 RealMe重庆移动通信有限公司 Photographing control method, photographing control device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113495818A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
US10234355B2 (en) Leakage oil detection system
CN105808416B (en) A kind of automated testing method and system of man-machine figure interactive interface
CN110044405B (en) Automatic automobile instrument detection device and method based on machine vision
CN101836180A (en) Detecting ambient light levels in a vision system
JP6989444B2 (en) Work terminal, oil leak detection device, and oil leak detection method
CN208568630U (en) A kind of mixed version detection device of the printed matter based on image
CN104581135A (en) Light source brightness detection method and system
CN101187684B (en) Main board light-emitting diode detection device and method
CN112730406A (en) Product testing method, system and readable storage medium
CN204241186U (en) Detection device and detection system for detecting light-emitting component
US20210216062A1 (en) System and Method for Intelligently Monitoring the Production Line
CN111783640A (en) Detection method, device, equipment and storage medium
CN108072664B (en) Appearance detection system and method
CN210690739U (en) LED light source characteristic inspection device
US9218655B2 (en) Brightness measuing method and system of device with backlight
TW201327425A (en) The detection method of the LED of using the digital image
CN101929843B (en) Device and method for automatically measuring spike length of rice
CN113496661A (en) LED display control system detection method, device and system
CN104122264A (en) Appearance flaw detection system and method
CN113495818B (en) Keyboard lamp detection system and method, computer readable storage medium and electronic device
CN109596317B (en) Detection method and device for panel lamp
US20180365269A1 (en) Method and apparatus for improving the efficiency of remote diagnosis of electronic and other equipment
KR102286470B1 (en) LED Digital Signage Defect Detection system through Similarity Analysis of Original Image Information and Displayed Image Information
CN101178422B (en) Character type illuminating device detecting method
TWI502180B (en) Brightness measuring method and system of device with backlight

Legal Events

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