CN118089949A - Flash screen test method, electronic equipment, storage medium and system - Google Patents

Flash screen test method, electronic equipment, storage medium and system Download PDF

Info

Publication number
CN118089949A
CN118089949A CN202211488857.3A CN202211488857A CN118089949A CN 118089949 A CN118089949 A CN 118089949A CN 202211488857 A CN202211488857 A CN 202211488857A CN 118089949 A CN118089949 A CN 118089949A
Authority
CN
China
Prior art keywords
value
preset
hsv
screen
hsv value
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
CN202211488857.3A
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202211488857.3A priority Critical patent/CN118089949A/en
Publication of CN118089949A publication Critical patent/CN118089949A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention relates to the technical field of testing, in particular to a splash screen testing method, electronic equipment, a storage medium and a system, wherein the method comprises the steps of acquiring a display picture of target display equipment acquired by image acquisition equipment; after converting the color space of the display picture into an HSV color space, analyzing the HSV value, and determining a first timestamp with the HSV value of the display picture being a first preset HSV value and a second timestamp with the HSV value of the display picture being a second preset HSV value, wherein the first preset HSV value is the HSV value of the target display equipment in a bright screen state, and the second HSV value is the HSV value of the target display equipment in a screen-off state; and when the time interval between the first time stamp and the second time stamp is smaller than the preset time interval, determining that the target display device is in the screen flashing state. The screen flashing detection is carried out by utilizing the size relation between the time interval of the first preset HSV value in the screen flashing state and the second preset HSV value in the screen extinguishing state and the preset time interval, so that the accuracy and the detection efficiency of the screen flashing detection are improved.

Description

Flash screen test method, electronic equipment, storage medium and system
Technical Field
The invention relates to the technical field of testing, in particular to a splash screen testing method, electronic equipment, a storage medium and a system.
Background
In the existing screen-flash test scene, the screen-flash phenomenon is judged by the naked eyes of a tester to identify whether the screen-flash phenomenon exists or not. For the problem of probabilistic screen flashing, a screen flashing phenomenon may occur only once in thousands of attempts, even tens of thousands of attempts, and if the tester does not capture the phenomenon in time, the accuracy of the test result is low.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method, an electronic device, a storage medium, and a system for testing a splash screen, so as to solve the problem of low accuracy of the splash screen test.
According to a first aspect, an embodiment of the present invention provides a method for testing a splash screen, including:
acquiring a display picture of a target display device acquired by an image acquisition device;
After converting the color space of the display picture into an HSV color space, analyzing the HSV value, and determining a first timestamp with the HSV value of the display picture being a first preset HSV value and a second timestamp with the HSV value of the display picture being a second preset HSV value, wherein the first preset HSV value is the HSV value of the target display equipment in a bright screen state, and the second HSV value is the HSV value of the target display equipment in a screen-off state;
and when the time interval between the first time stamp and the second time stamp is smaller than a preset time interval, determining that the target display equipment is in screen flashing.
According to the splash screen testing method provided by the embodiment of the invention, the HSV value is used for defining one color through chromaticity, brightness and saturation, the color is more similar to the identification of human eyes, the splash screen detection is carried out by utilizing the size relation between the time interval of the first preset HSV value in the bright screen state and the second preset HSV in the idle screen state and the preset time interval, and the accuracy and the detection efficiency of the splash screen detection are improved.
According to a second aspect, an embodiment of the present invention provides an electronic device, including: the flash screen testing device comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so that the flash screen testing method in the first aspect or any implementation manner of the first aspect is executed.
According to a third aspect, an embodiment of the present invention provides a computer readable storage medium storing computer instructions for causing the computer to perform the method for testing a splash screen described in the first aspect or any implementation manner of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a splash screen testing system, including:
The image acquisition device is used for acquiring a display picture of the target display device;
The electronic device according to the second aspect of the present invention is connected to the image capturing device.
It should be noted that, the electronic device, the computer readable storage medium and the splash screen testing system described in the embodiments of the present invention refer to the description of the beneficial effects of the splash screen testing method described above, and are not repeated here.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a test scenario diagram of a splash screen test system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of testing a splash screen according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of testing a splash screen according to an embodiment of the present invention;
FIG. 4 is a block diagram of a splash screen testing device according to an embodiment of the present invention;
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides a screen flashing test system which is used for performing screen flashing detection on target display equipment and determining whether the target display equipment has a screen flashing phenomenon or not. As shown in fig. 1, the system includes an image acquisition device 10 and an electronic device 20. Wherein the image acquisition device 10 is used for image acquisition of a display screen of the target display device.
The image capturing device 10 may be an integral part of the electronic device 20, for example, the electronic device 20 is a mobile terminal with an image capturing function, i.e. a portable computer, a tablet, etc., and accordingly the image capturing device is a camera of the mobile terminal; the image capturing device 10 may be separately provided from the electronic device 20, and the image capturing device 10 may be fixed to ensure that it can capture a display screen of the target display device. The image acquisition device 10 is connected with the electronic device 20, the image acquisition device 10 sends the acquired image to the electronic device 20, and the electronic device 20 performs the screen-flash detection on the target display device by executing the screen-flash test method according to the embodiment of the invention.
As an optional application scenario of the splash screen testing system in the embodiment of the present invention, the image capturing device 10 and the electronic device 20 are respectively set, and the target display device is set in the capturing range of the image capturing device 10, so as to ensure that the image capturing device 10 can capture the display screen of the target display device. The operation of the target display device is started, the image acquisition device 10 acquires an image of the target display device, and the electronic device 20 is used for performing screen-flash detection on the acquired image to determine whether the target display device has a screen-flash phenomenon.
According to the splash screen testing system provided by the embodiment, the image acquisition equipment 10 and the electronic equipment 20 are matched to automatically test the splash screen phenomenon of the target display equipment, and the testing process is performed based on the splash screen testing method described below, so that the testing efficiency and the accuracy of the testing result are improved.
According to an embodiment of the present invention, there is provided a method embodiment of a splash screen test, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
In this embodiment, a method for testing a splash screen is provided, which may be used in the above electronic device, such as a computer, a tablet computer, etc., fig. 2 is a flowchart of a method for testing a splash screen according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
S11, acquiring a display picture of the target display device acquired by the image acquisition device.
The display picture of the target display device is the image frame displayed on the target display device, and the image acquisition device can acquire the display picture by adjusting the setting position of the image acquisition device. Of course, in some cases, the captured image of the image capturing apparatus may be larger than the display screen, i.e., an image other than the display screen is included in the captured image. And in the subsequent analysis, only the display picture in the display area is analyzed, or the acquired image needs to be processed, so that the display picture of the target display device is obtained.
In some embodiments, the step S21 includes:
(1) An image including a target display device is acquired.
(2) And extracting an image of a display area of the target display device in the image, and determining a display picture.
After the electronic device acquires the image comprising the target display device, the electronic device identifies the region of interest of the image and determines the display region of the target display device in the image. And then, based on the identified region of interest, intercepting the image to obtain a display picture. When the region of interest is identified, a display region identification model of the target display device can be obtained through sample image training, and the region of interest is identified by using the display region identification model; or detecting key points of the image, determining the edge of the target display device, reducing a certain size inwards from the edge, determining the display area of the target display device, and the like. The manner of identifying the display area of the target display device is not limited in any way, and may be specifically set according to actual requirements. And extracting the acquired image of the target display device from the image of the display area, and analyzing the image of the display area only to obtain an accurate display picture.
S12, analyzing the HSV value after converting the color space of the display picture into the HSV color space, and determining a first timestamp with the HSV value of the display picture being a first preset HSV value and a second timestamp with the HSV value of the display picture being a second preset HSV value.
The first preset HSV value is an HSV value of the target display equipment in a bright screen state, and the second HSV value is an HSV value of the target display equipment in a screen-off state.
For electronic devices, the color space of the acquired display screen is generally represented by using RGB values, that is, the pixel value of each pixel in the display screen is represented by using RGB values. Because the time of the occurrence of the splash screen phenomenon is short, it is difficult to accurately test the RGB color space of the display screen, and therefore, in the embodiment, the splash screen detection is performed based on the HSV value, and therefore, the RGB value needs to be converted into the HSV value. Wherein HSV is the representation of each point in RGB color space in an inverted cone, HSV is the chromaticity H, saturation S, and luminance V. Chromaticity is a basic attribute of a color, and is a name of a color commonly referred to, such as blue, green, and the like; saturation refers to the purity of the color, the higher the color, the more dark the lower the color, and the value is from 0 to 100%; brightness, 0-max (HSV value range in computer is related to stored length).
Because the probability and the duration of the occurrence of the screen-flash phenomenon are low, in order to accurately detect the occurrence of the screen-flash phenomenon, the display picture acquired by the image acquisition equipment is represented in a video form. On the basis, the electronic equipment analyzes the display pictures in the video frame by frame, and sequentially determines HSV values and time stamps of the image frames of the display pictures. The time stamp of each display picture image frame can be determined when the video is acquired, and the clock of the time stamp is kept consistent with the clock of the image acquisition equipment; of course, the representation of the time stamps may also be performed in other ways.
The method comprises the steps that a first preset HSV value of a target display device in a bright screen state and a second preset HSV value of the target display device in a screen-off state are stored in the electronic device. After the display screen is subjected to HSV analysis, the HSV value obtained through analysis can be compared with a first preset HSV value and a second preset HSV value, and whether the first preset HSV value and the second preset HSV value exist in the display screen or not is determined. If the existence of the first preset HSV value is detected, recording a first timestamp of a display picture of the first preset HSV value; likewise, if the presence of the second preset HSV value is detected, a second timestamp of the display screen of the second preset HSV value is recorded.
And S13, when the time interval between the first time stamp and the second time stamp is smaller than the preset time interval, determining that the target display device is in the screen flashing state.
The electronic device calculates a time interval between the first timestamp and the second timestamp after detecting the first preset HSV value and the second preset HSV value. And comparing the time interval with a preset time interval, and if the time interval is smaller than the preset time interval, indicating that the target display equipment has the screen flashing. Wherein the preset time interval is set according to actual requirements, for example, 2s,1s, etc.
According to the splash screen testing method, the HSV value is defined as one color through chromaticity, brightness and saturation, the color is more similar to the color identification of human eyes, splash screen detection is carried out by utilizing the size relation between the time interval of the first preset HSV value in a bright screen state and the second preset HSV in a screen-off state and the preset time interval, and the accuracy and the detection efficiency of splash screen detection are improved.
In this embodiment, a method for testing a splash screen is provided, which may be used in the above electronic device, such as a computer, a tablet computer, etc., and fig. 3 is a flowchart of a method for testing a splash screen according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
S21, acquiring a display picture of the target display device acquired by the image acquisition device.
Please refer to the embodiment S11 shown in fig. 2 in detail, which is not described herein.
S22, after converting the color space of the display picture into the HSV color space, analyzing the HSV value, and determining a first timestamp with the HSV value of the display picture being a first preset HSV value and a second timestamp with the HSV value of the display picture being a second preset HSV value.
The first preset HSV value is an HSV value of the target display equipment in a bright screen state, and the second HSV value is an HSV value of the target display equipment in a screen-off state.
Specifically, the step S22 includes:
s221, acquiring a preset HSV value.
The preset HSV values comprise a first preset HSV value and a second preset HSV value.
The preset HSV value may be input by a user through interaction with the electronic device before the target display device is subjected to the splash screen detection; or may be stored in the electronic device. For different target display devices, the first preset HSV value representing the bright screen state of the target display device and the second preset HSV value representing the off screen state of the target display device may be different or the same, and the target display device and the second preset HSV value are specifically required to be set according to actual requirements.
For example, before testing, acquiring a display picture of the target display device in a bright screen state and a display picture of the target display device in a screen-off state, and converting HSV values of the two display pictures, so as to obtain a first preset HSV value in the bright screen state and a second preset HSV value in the screen-off state.
For the given of the preset HSV value, a specific numerical value can be directly given; since the color space is typically represented by RGB in an electronic device, specific RGB values may be directly given, or a picture representing the RGB values may be given. The acquisition mode of the preset HSV value is the same as the color recognition mode.
In some embodiments, the step S221 includes:
(1) And acquiring a color recognition mode.
(2) And acquiring a preset RGB value based on a color recognition mode, wherein the preset RGB value comprises a first preset RGB value of which the target display equipment is in a bright screen state and a second preset RGB value of which the target display equipment is in a screen-off state.
(3) Converting the first preset RGB value and the second preset RGB value into HSV values, and determining the preset HSV values.
The color recognition method indicates a mode of acquiring a preset HSV value, and the preset RGB value can be directly given or a picture with the preset RGB value. The preset RGB values comprise a first preset RGB value representing a bright screen state and a second preset RGB value representing a screen-off state, and after the preset RGB values are obtained, the preset RGB values are converted into HSV values by utilizing the mapping relation of RGB and HSV to obtain the preset HSV values.
Before performing the screen flash test, a selection of a color recognition mode is provided on an interface of the electronic device, and a user determines the color recognition mode through interaction with the electronic device. And determining a preset RGB value based on the selected color recognition mode.
In some embodiments, step (2) of S221 above includes:
(1) When the color recognition mode is numerical value recognition, two RGB values are acquired.
(2) It is determined whether the two RGB values are correct based on the sizes of the two RGB values.
(3) When the two RGB values are correct, the two RGB values are determined to be preset RGB values.
When the user determines that the color recognition mode is numerical value recognition, the electronic equipment provides a numerical value input interface, and the user inputs two RGB values on the interface, wherein the two RGB values respectively represent the RGB values in a bright screen state and the RGB values in a screen-off state. After the electronic device obtains the RGB values, it is a priori verified whether the size of the RGB values meets the requirements, i.e. whether the input RGB values are within the range of RGB values, e.g. 0-255. Only when the two RGB values are determined to be correct, the acquired two RGB values are determined to be preset RGB values; otherwise, the electronic device may give an error alert to alert the user to re-enter the RGB values.
Note that the input method of the two RGB values is not limited to the above, but may be other methods, and is not limited in any way. Before the preset RGB value is determined, the accuracy of the acquired RGB value is judged, and then HSV conversion is carried out on the basis, so that the reliability of the acquired preset HSV is ensured.
In other embodiments, step (2) of S221 includes:
(1) When the color recognition mode is picture recognition, two pictures including a display area of the display device are acquired.
(2) RGB values of display areas in the two pictures are identified to determine preset RGB values.
When the user determines that the color recognition mode is numerical value recognition, the electronic device can provide an entry for inputting pictures, and the user inputs two pictures comprising the display area of the display device through the entry; or two pictures including the display area of the display device are stored in the electronic device, etc. The two pictures are respectively used for representing the picture of the target display device in the bright screen state and the picture in the off-screen state.
After obtaining the two pictures, positioning the two pictures to a display area in the pictures so as to obtain RGB values of the display area, and determining preset RGB values. By identifying the RGB values of the display area in the picture, the data processing amount can be reduced, the influence of the RGB values of other areas on the RGB values of the display area is avoided, and the accuracy of the preset RGB values is improved.
Taking the conversion of the first preset RGB value into the first preset HSV value as an example, the principle of converting RGB into HSV will be described. Specifically, in step (3) of S221, converting the first preset RGB value into an HSV value, determining the first preset HSV value includes:
(1) And obtaining the maximum value and the minimum value of the red channel value, the green channel value and the blue channel value in the first preset RGB value.
(2) The brightness in the first preset HSV value is determined based on the maximum value.
(3) The saturation in the first preset HSV value is determined based on the maximum value and the minimum value.
(4) Chromaticity in the first preset HSV value is determined based on the maximum value, the minimum value, and the first preset RGB value.
The red channel value R, the green channel value G and the blue channel value B in the first preset RGB value are compared R, G and B to determine the maximum value max and the minimum value min among the three values, so as to be used for calculating the brightness V, the saturation S and the chromaticity H in the first preset HSV value.
For example, the calculation can be performed using the following formula:
V=max(R,G,B)
s222, converting the color space of the display picture into an HSV color space, analyzing the HSV value, and determining the HSV value and the time stamp of the display picture.
As described above, the electronic device performs frame-by-frame analysis on the image frames of the display screen, and obtains the HSV value and the timestamp of each frame of the display screen. The details are described above, and are not repeated here.
S223, comparing the HSV value with a preset HSV value based on the HSV value and the time stamp of the display screen, and determining a first time stamp of the HSV value of the display screen as a first preset HSV value and a second time stamp of the HSV value of the display screen as a second preset HSV value.
When comparing the HSV value with a preset HSV value, the electronic device takes the example of detecting the first preset HSV value. If the timestamp of the first preset HSV value detected first is recorded as the first timestamp, then the HSV value of the display picture is compared with the second preset HSV value, and whether the second preset HSV value is detected or not is determined. If the second preset HSV value is detected, a second timestamp of the second preset HSV value is recorded.
S23, when the time interval between the first time stamp and the second time stamp is smaller than the preset time interval, determining that the target display device is in the screen flashing state.
Referring to the embodiment S13 shown in fig. 2 in detail, the details are not repeated here,
According to the splash screen testing method, the preset HSV value represents the HSV value of the target display device in the bright screen or the idle screen state, the HSV value of the display screen is compared with the preset HSV value through analysis of the HSV value of the display screen frame by frame, and therefore the first timestamp of the first preset HSV value and the second timestamp of the second preset HSV value can be accurately determined.
As an alternative implementation of this embodiment, the method further includes: when it is determined that the target display device is on the screen, saving the video clip between the first timestamp and the second timestamp. In order to facilitate the subsequent screen-flash analysis of the target display device, the acquired display screen is stored in the electronic device. When the occurrence of the screen flash is detected, the first time stamp and the second time stamp are utilized for image positioning, and the video clip between the first time stamp and the second time stamp is determined. The video clips between the first time stamp and the second time stamp are saved for subsequent detailed analysis of the splash screen phenomenon.
As a specific application example of the splash screen testing method in the embodiment of the invention, the method comprises the following steps:
(1) Uploading two pictures or inputting two RGB color values, wherein the two pictures or the two RGB color values respectively represent that the target display equipment is in a bright screen state and a screen-off state;
(2) Since RGB colors are mainly hardware-oriented, the colors observed for the human eye may be different for different environments or at different angles. Aiming at color identification under different environments, the difference of naked eyes judgment in each environment can not be accurately identified through RGB three primary colors, so that the method is more suitable for judging color change from three HSV indexes in the moment. In contrast, the HSV color model is also more consistent with human vision. Based on this, if uploading a picture is selected, the designated picture area is firstly converted into an RGB value and then into an HSV value; the input is converted directly into HSV values if it is RGB values.
(3) After the uploading mode is selected, the image acquisition equipment is started to acquire each frame of picture played by the target display equipment in real time. If the phenomenon that the screen flash speed is too high cannot be captured by using a common camera, capturing and judging a video picture by using a high-speed camera;
(4) When the first preset HSV value is judged in real time, the second preset HSV value does not appear in the appointed time (for example, within 2S), and then the splash screen change does not appear. Otherwise, if the first preset HSV value appears and the second preset HSV value appears within 2S at the same time, the time interval between the two HSV values appears is smaller than 2S, and then the occurrence of the splash screen is judged. At this time, the electronic device automatically saves the video clip in which the splash phenomenon occurs, and prints out the video clip.
The embodiment also provides a device for testing a splash screen, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a splash screen testing device, as shown in fig. 4, including:
an acquiring module 41, configured to acquire a display screen of a target display device acquired by an image acquisition device;
The analysis module 42 is configured to convert the color space of the display screen into an HSV color space, perform analysis on the HSV value, and determine that the HSV value of the display screen is a first timestamp of a first preset HSV value and a second timestamp of a second preset HSV value, where the first preset HSV value is an HSV value of the target display device in a bright screen state, and the second HSV value is an HSV value of the target display device in a screen-off state;
a determining module 43, configured to determine that the target display device is in a splash screen when the time interval between the first timestamp and the second timestamp is smaller than a preset time interval.
In some implementations, the analysis module 42 includes:
the first acquisition unit is used for acquiring preset HSV values, wherein the preset HSV values comprise the first preset HSV value and the second preset HSV value;
The analysis unit is used for analyzing the HSV value after converting the color space of the display picture into the HSV color space and determining the HSV value and the time stamp of the display picture;
And the comparison unit is used for comparing the HSV value with the preset HSV value based on the HSV value and the timestamp of the display picture, and determining that the HSV value of the display picture is a first timestamp of a first preset HSV value and a second timestamp of a second preset HSV value.
In some embodiments, the acquisition unit comprises:
The first acquisition subunit is used for acquiring a color identification mode;
The second acquisition subunit is used for acquiring preset RGB values based on the color recognition mode, wherein the preset RGB values comprise a first preset RGB value of the target display equipment in a bright screen state and a second preset RGB value of the target display equipment in a screen-off state;
The conversion subunit is configured to convert the first preset RGB value and the second preset RGB value into HSV values, and determine the preset HSV values.
In some embodiments, the first acquisition subunit comprises:
The third acquisition subunit is used for acquiring two RGB values when the color identification mode is numerical value identification;
a first determination subunit configured to determine whether the two RGB values are correct based on the sizes of the two RGB values;
and the second determination subunit is used for determining the two RGB values as the preset RGB values when the two RGB values are correct.
In some embodiments, the first acquisition subunit comprises:
A fourth obtaining subunit, configured to obtain two pictures including a display area of the display device when the color recognition mode is picture recognition;
And the identification subunit is used for identifying the RGB values of the display areas in the two pictures so as to determine the preset RGB values.
In some embodiments, the conversion subunit comprises:
a fifth obtaining subunit, configured to obtain a maximum value and a minimum value of a red channel value, a green channel value and a blue channel value in the first preset RGB value;
A brightness determination subunit configured to determine a brightness in the first preset HSV value based on the maximum value;
a saturation determination subunit configured to determine a saturation in the first preset HSV value based on the maximum value and the minimum value;
And a chromaticity determining subunit configured to determine chromaticity in the first preset HSV value based on the maximum value, the minimum value, and the first preset RGB value.
In some embodiments, the acquisition module comprises:
A second acquisition unit configured to acquire an image including the target display device;
and the extraction unit is used for extracting the image of the display area of the target display device in the image and determining the display picture.
In some embodiments, the apparatus further comprises:
And the storage module is used for storing the video clips between the first time stamp and the second time stamp when the target display equipment is determined to have the screen flash.
The splash screen testing device in this embodiment is presented in the form of functional units, where the units refer to ASIC circuitry, processors and memory that execute one or more software or firmware programs, and/or other devices that provide the functionality described above.
Further functional descriptions of the above respective modules are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the invention also provides electronic equipment, which is provided with the splash screen testing device shown in the figure 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 5, the electronic device may include: at least one processor 51, such as a CPU (Central Processing Unit ), at least one communication interface 53, a memory 54, at least one communication bus 52. Wherein the communication bus 52 is used to enable connected communication between these components. The communication interface 53 may include a Display screen (Display) and a Keyboard (Keyboard), and the selectable communication interface 53 may further include a standard wired interface and a wireless interface. The memory 54 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 54 may alternatively be at least one memory device located remotely from the aforementioned processor 51. Wherein the processor 51 may be as described in connection with fig. 4, the memory 54 stores an application program, and the processor 51 invokes the program code stored in the memory 54 for performing any of the method steps described above.
The communication bus 52 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The communication bus 52 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
Wherein the memory 54 may include volatile memory (english) such as random-access memory (RAM); the memory may also include a nonvolatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk (English: HARD DISK DRIVE, abbreviation: HDD) or a solid state disk (English: solid-STATE DRIVE, abbreviation: SSD); memory 54 may also include a combination of the types of memory described above.
The processor 51 may be a central processor (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP.
The processor 51 may further include a hardware chip, among others. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof (English: programmable logic device). The PLD may be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), a field-programmable gate array (English: field-programmable GATE ARRAY, abbreviated: FPGA), a general-purpose array logic (English: GENERIC ARRAY logic, abbreviated: GAL), or any combination thereof.
Optionally, the memory 54 is also used for storing program instructions. Processor 51 may invoke program instructions to implement the splash test method as shown in any of the embodiments of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, which stores computer executable instructions, and the computer executable instructions can execute the method for testing the splash screen in any of the method embodiments. Wherein the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a hard disk (HARD DISK DRIVE, abbreviated as HDD), a Solid state disk (Solid-state-STATE DRIVE, SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (11)

1. A method for testing a splash screen, comprising:
acquiring a display picture of a target display device acquired by an image acquisition device;
After converting the color space of the display picture into an HSV color space, analyzing the HSV value, and determining a first timestamp with the HSV value of the display picture being a first preset HSV value and a second timestamp with the HSV value of the display picture being a second preset HSV value, wherein the first preset HSV value is the HSV value of the target display equipment in a bright screen state, and the second HSV value is the HSV value of the target display equipment in a screen-off state;
and when the time interval between the first time stamp and the second time stamp is smaller than a preset time interval, determining that the target display equipment is in screen flashing.
2. The method according to claim 1, wherein the converting the color space of the display screen into the HSV color space and then analyzing the HSV value, determining a first timestamp of the HSV value of the display screen as a first preset HSV value and a second timestamp of the HSV value of the display screen as a second preset HSV value, includes:
Acquiring a preset HSV value, wherein the preset HSV value comprises the first preset HSV value and the second preset HSV value;
converting the color space of the display picture into an HSV color space, then analyzing the HSV value, and determining the HSV value and the time stamp of the display picture;
Comparing the HSV value with the preset HSV value based on the HSV value and the time stamp of the display picture, and determining that the HSV value of the display picture is a first time stamp of a first preset HSV value and the HSV value of the display picture is a second time stamp of a second preset HSV value.
3. The method of claim 2, wherein the obtaining the preset HSV value comprises:
Acquiring a color identification mode;
Acquiring a preset RGB value based on the color recognition mode, wherein the preset RGB value comprises a first preset RGB value of the target display equipment in a bright screen state and a second preset RGB value of the target display equipment in a screen-off state;
Converting the first preset RGB value and the second preset RGB value into HSV values, and determining the preset HSV values.
4. A method according to claim 3, wherein said obtaining a preset RGB value based on said color recognition scheme comprises:
When the color identification mode is numerical value identification, two RGB values are obtained;
determining whether the two RGB values are correct based on the magnitudes of the two RGB values;
and when the two RGB values are correct, determining that the two RGB values are the preset RGB values.
5. A method according to claim 3, wherein said obtaining a preset RGB value based on said color recognition scheme comprises:
when the color recognition mode is picture recognition, acquiring two pictures comprising the display area of the display equipment;
and identifying RGB values of display areas in the two pictures to determine the preset RGB values.
6. A method according to claim 3, wherein converting the first preset RGB values to HSV values, determining the first preset HSV values, comprises:
obtaining the maximum value and the minimum value of the red channel value, the green channel value and the blue channel value in the first preset RGB value;
Determining a brightness in the first preset HSV value based on the maximum value;
determining a saturation in the first preset HSV value based on the maximum value and the minimum value;
And determining chromaticity in the first preset HSV value based on the maximum value, the minimum value and the first preset RGB value.
7. The method of claim 1, wherein the acquiring the display of the target display device comprises:
acquiring an image comprising the target display device;
And extracting an image of a display area of the target display device in the image, and determining the display picture.
8. The method according to claim 1, wherein the method further comprises:
And when the target display device is determined to have the screen flash, saving the video clip between the first time stamp and the second time stamp.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of testing for a splash screen of any of claims 1-8.
10. A computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-8.
11. A splash screen testing system, comprising:
The image acquisition device is used for acquiring a display picture of the target display device;
The electronic device of claim 9, connected to the image acquisition device.
CN202211488857.3A 2022-11-25 2022-11-25 Flash screen test method, electronic equipment, storage medium and system Pending CN118089949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211488857.3A CN118089949A (en) 2022-11-25 2022-11-25 Flash screen test method, electronic equipment, storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211488857.3A CN118089949A (en) 2022-11-25 2022-11-25 Flash screen test method, electronic equipment, storage medium and system

Publications (1)

Publication Number Publication Date
CN118089949A true CN118089949A (en) 2024-05-28

Family

ID=91144679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211488857.3A Pending CN118089949A (en) 2022-11-25 2022-11-25 Flash screen test method, electronic equipment, storage medium and system

Country Status (1)

Country Link
CN (1) CN118089949A (en)

Similar Documents

Publication Publication Date Title
CN106951346B (en) Response time testing method and device
WO2016150134A1 (en) Test paper reading method, and pregnancy test and ovulation test method therefor
CN108764352B (en) Method and device for detecting repeated page content
US8289397B2 (en) System and method for testing a digital camera module
WO2017215527A1 (en) Hdr scenario detection method, device, and computer storage medium
CN107909569B (en) Screen-patterned detection method, screen-patterned detection device and electronic equipment
US11317067B2 (en) Method and system for inspecting display image
CN111105392B (en) Display performance testing method and device and storage medium
CN113781396B (en) Screen defect detection method, device, equipment and storage medium
CN113362270B (en) Method and device for monitoring abnormal display of display screen picture
WO2022105027A1 (en) Image recognition method and system, electronic device, and storage medium
US9147115B2 (en) Method and device for detecting an object in an image
CN115063342A (en) Lens dead pixel detection method and device, electronic equipment and storage medium
CN111291778B (en) Training method of depth classification model, exposure anomaly detection method and device
CN114066823A (en) Method for detecting color block and related product thereof
WO2020135097A1 (en) Method and apparatus for channel switch detection of display terminal
CN110782392B (en) Image processing method, device, electronic equipment and storage medium
CN108805883B (en) Image segmentation method, image segmentation device and electronic equipment
CN107527011B (en) Non-contact skin resistance change trend detection method, device and equipment
CN118089949A (en) Flash screen test method, electronic equipment, storage medium and system
CN112883762A (en) Living body detection method, device, system and storage medium
CN115115596A (en) Electronic component detection method and device and automatic quality inspection equipment
CN112967258B (en) Display defect detection method and device for watch and computer readable storage medium
CN111935480B (en) Detection method for image acquisition device and related device
US8538142B2 (en) Face-detection processing methods, image processing devices, and articles of manufacture

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