CN117156210B - Flicker screen detection method and flicker screen detection device - Google Patents
Flicker screen detection method and flicker screen detection device Download PDFInfo
- Publication number
- CN117156210B CN117156210B CN202310151061.7A CN202310151061A CN117156210B CN 117156210 B CN117156210 B CN 117156210B CN 202310151061 A CN202310151061 A CN 202310151061A CN 117156210 B CN117156210 B CN 117156210B
- Authority
- CN
- China
- Prior art keywords
- picture
- brightness value
- jump
- value
- brightness
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 128
- 238000000034 method Methods 0.000 claims abstract description 72
- 238000004590 computer program Methods 0.000 claims description 15
- 230000007704 transition Effects 0.000 claims description 15
- 230000007423 decrease Effects 0.000 claims description 13
- 230000009286 beneficial effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 20
- 230000006870 function Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 12
- 238000012545 processing Methods 0.000 description 12
- 230000002159 abnormal effect Effects 0.000 description 9
- 230000003247 decreasing effect Effects 0.000 description 9
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 4
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 3
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 206010052143 Ocular discomfort Diseases 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 241000023320 Luma <angiosperm> Species 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000001427 coherent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000001356 surgical procedure Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4425—Monitoring of client processing errors or hardware failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及终端技术领域,尤其涉及一种闪屏检测方法和闪屏检测装置。The present application relates to the field of terminal technology, and in particular to a screen flash detection method and a screen flash detection device.
背景技术Background technique
随着终端设备在研发或使用过程中,因为软件配置不合理或硬件故障等原因,终端设备在播放连续画面时,经常会出现错误帧快速闪过的现象,也就是发生闪屏。闪屏会严重影响用户对终端设备的使用。因此,需要及时检测到终端设备存在闪屏的问题,并尽快进行相应处理。During the development or use of terminal devices, due to unreasonable software configuration or hardware failure, when the terminal device plays continuous images, error frames often flash quickly, that is, screen flickering occurs. Screen flickering will seriously affect the user's use of the terminal device. Therefore, it is necessary to detect the problem of screen flickering in the terminal device in time and handle it as soon as possible.
目前,检测设备通常先获取连续画面对应的亮度值波形,然后将亮度值波形中发生跳变的亮度值对应的画面确定为错误帧画面,但是,这种实现方式的误报率较高。Currently, the detection device usually first obtains the brightness value waveform corresponding to the continuous pictures, and then determines the picture corresponding to the brightness value with a jump in the brightness value waveform as the error frame picture. However, this implementation method has a high false alarm rate.
发明内容Summary of the invention
本申请提供一种闪屏检测方法和闪屏检测装置,有利于提高闪屏的检测准确度。The present application provides a screen flicker detection method and a screen flicker detection device, which are beneficial to improving the accuracy of screen flicker detection.
第一方面,提供了一种闪屏检测方法,包括:获取终端设备显示的第一画面的第一亮度值、终端设备显示的第二画面的第二亮度值、终端设备显示的第三画面的第三亮度值和终端设备显示的第四画面的第四亮度值,第二画面为第一画面之后的第一帧画面,第四画面为第三画面之后的第一帧画面,第四画面与第二画面之间间隔的帧的数量小于或等于第一数值,或第四画面与第二画面之间间隔的时长小于或等于时长阈值;若第二亮度值与第一亮度值之间发生第一跳变,第四亮度值与第三亮度值之间发生第二跳变,且第一跳变的方向与第二跳变的方向相反,则确定终端设备发生了闪屏。In a first aspect, a screen flash detection method is provided, including: obtaining a first brightness value of a first picture displayed by a terminal device, a second brightness value of a second picture displayed by the terminal device, a third brightness value of a third picture displayed by the terminal device, and a fourth brightness value of a fourth picture displayed by the terminal device, wherein the second picture is the first frame picture after the first picture, the fourth picture is the first frame picture after the third picture, the number of frames between the fourth picture and the second picture is less than or equal to a first value, or the duration of the interval between the fourth picture and the second picture is less than or equal to a duration threshold; if a first jump occurs between the second brightness value and the first brightness value, a second jump occurs between the fourth brightness value and the third brightness value, and the direction of the first jump is opposite to the direction of the second jump, it is determined that a screen flash has occurred on the terminal device.
检测设备可以对终端设备显示的连续画面进行检测,以判断终端设备是否发生闪屏。The detection device can detect the continuous images displayed by the terminal device to determine whether the terminal device has a screen flicker.
画面也可以称为画面数据、图像或者图像数据,本申请对此不作限定。第一画面、第二画面、第三画面以及第四画面为终端设备显示的连续画面中的画面。第二画面为第一画面之后的第一帧画面,也就是说,第一画面和第二画面为相邻的两个画面,且终端设备先显示第一画面,再显示第二画面。第四画面为第三画面之后的第一帧画面,也就是说,第三画面和第四画面为相邻的两个画面,且终端设备先显示第三画面,再显示第四画面。A picture may also be referred to as picture data, an image or image data, which is not limited in this application. The first picture, the second picture, the third picture and the fourth picture are pictures in the continuous pictures displayed by the terminal device. The second picture is the first frame picture after the first picture, that is, the first picture and the second picture are two adjacent pictures, and the terminal device displays the first picture first and then displays the second picture. The fourth picture is the first frame picture after the third picture, that is, the third picture and the fourth picture are two adjacent pictures, and the terminal device displays the third picture first and then displays the fourth picture.
第四画面与第二画面之间间隔的帧的数量小于或等于第一数值,也可以说,第四画面与第二画面之间间隔的帧数小于或等于预设帧数。第四画面与第二画面之间间隔的时长小于或等于时长阈值,也可以说,第四画面与第二画面之间间隔的时长小于或等于预设时长。The number of frames between the fourth picture and the second picture is less than or equal to the first value, which means that the number of frames between the fourth picture and the second picture is less than or equal to the preset number of frames. The duration between the fourth picture and the second picture is less than or equal to the duration threshold, which means that the duration between the fourth picture and the second picture is less than or equal to the preset duration.
第四画面与第二画面之间间隔的帧的数量小于或等于第一数值,或第四画面与第二画面之间间隔的时长小于或等于时长阈值,可以说明显示第四画面与显示第二画面之间的时间较近,若第二亮度值与第一亮度值之间发生第一跳变,第四亮度值与第三亮度值之间发生第二跳变,且第一跳变的方向与第二跳变的方向相反,则检测设备可以确定存在亮度值脉冲,进而可以确定终端设备发生了闪屏。换句话说,检测设备检测到终端设备显示的画面的亮度值在较短时间内跳变两次,且两次跳变的方向相反,则确定终端设备发生了闪屏。If the number of frames between the fourth screen and the second screen is less than or equal to the first value, or the duration between the fourth screen and the second screen is less than or equal to the duration threshold, it can be said that the time between displaying the fourth screen and displaying the second screen is relatively close. If a first jump occurs between the second brightness value and the first brightness value, and a second jump occurs between the fourth brightness value and the third brightness value, and the direction of the first jump is opposite to that of the second jump, the detection device can determine that there is a brightness value pulse, and further determine that the terminal device has a screen flicker. In other words, if the detection device detects that the brightness value of the screen displayed by the terminal device jumps twice in a short period of time, and the directions of the two jumps are opposite, it is determined that the terminal device has a screen flicker.
本申请提供的闪屏检测方法,第二亮度值与第一亮度值之间发生第一跳变,第四亮度值与第三亮度值之间发生第二跳变,第一跳变的方向与第二跳变的方向相反,且第一跳变与第二跳变之间间隔的时间满足要求,则可以确定存在亮度值脉冲,进而可以确定终端设备发生了闪屏,有利于提高闪屏的检测准确度。In the screen flicker detection method provided by the present application, a first jump occurs between the second brightness value and the first brightness value, and a second jump occurs between the fourth brightness value and the third brightness value, the direction of the first jump is opposite to the direction of the second jump, and the time interval between the first jump and the second jump meets the requirements. In this way, it can be determined that there is a brightness value pulse, and further it can be determined that a screen flicker has occurred in the terminal device, which is beneficial to improving the detection accuracy of the screen flicker.
结合第一方面,在第一方面的某些实现方式中,第一跳变的方向为亮度值增加的方向,第二跳变的方向为亮度值减小的方向;或者,第一跳变的方向为亮度值减小的方向,第二跳变的方向为亮度值增加的方向。In combination with the first aspect, in certain implementations of the first aspect, the direction of the first jump is a direction in which the brightness value increases, and the direction of the second jump is a direction in which the brightness value decreases; or, the direction of the first jump is a direction in which the brightness value decreases, and the direction of the second jump is a direction in which the brightness value increases.
第二亮度值与第一亮度值之间发生第一跳变,第四亮度值与第三亮度值之间发生第二跳变,存在两种可能的情况。There are two possible situations in which a first jump occurs between the second brightness value and the first brightness value, and a second jump occurs between the fourth brightness value and the third brightness value.
一种可能的情况是,第二亮度值远大于第一亮度值,第一亮度值跳变至第二亮度值,则第一跳变的方向为亮度值增加的方向。第四亮度值远小于第三亮度值,第三亮度值跳变至第四亮度值,则第一跳变的方向为亮度值减小的方向,第二跳变的方向与第一跳变的方向相反。One possible situation is that the second brightness value is much greater than the first brightness value, and when the first brightness value jumps to the second brightness value, the direction of the first jump is the direction of increasing brightness. The fourth brightness value is much less than the third brightness value, and when the third brightness value jumps to the fourth brightness value, the direction of the first jump is the direction of decreasing brightness, and the direction of the second jump is opposite to the direction of the first jump.
另一种可能的情况是,第二亮度值远小于第一亮度值,第一亮度值跳变至第二亮度值,则第一跳变的方向为亮度值减小的方向。第四亮度值远大于第三亮度值,第三亮度值跳变至第四亮度值,则第一跳变的方向为亮度值增加的方向,第二跳变的方向与第一跳变的方向相反。Another possible situation is that the second brightness value is much smaller than the first brightness value, and the first brightness value jumps to the second brightness value, then the direction of the first jump is the direction of brightness decrease. The fourth brightness value is much larger than the third brightness value, and the third brightness value jumps to the fourth brightness value, then the direction of the first jump is the direction of brightness increase, and the direction of the second jump is opposite to the direction of the first jump.
本申请提供的闪屏检测方法,基于亮度值的增加或者减小,区别跳变的方向,有利于精准地确定跳变的方向,进而提高闪屏的检测准确度。The screen flicker detection method provided in the present application distinguishes the direction of the jump based on the increase or decrease of the brightness value, which is conducive to accurately determining the direction of the jump, thereby improving the accuracy of screen flicker detection.
结合第一方面,在第一方面的某些实现方式中,第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积小于0。In combination with the first aspect, in some implementations of the first aspect, a product of a brightness transition value of the first transition and a brightness transition value of the second transition is less than 0.
第一跳变的亮度跳变值为第二亮度值与第一亮度值之差,若第一跳变的方向为亮度值增加的方向,则第二亮度值与第一亮度值之差大于0。第二跳变的亮度跳变值为第四亮度值与第三亮度值之差,若第二跳变的方向为亮度值减小的方向,则第二亮度值与第一亮度值之差小于0。故第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积小于0。The brightness jump value of the first jump is the difference between the second brightness value and the first brightness value. If the direction of the first jump is the direction of increasing brightness value, the difference between the second brightness value and the first brightness value is greater than 0. The brightness jump value of the second jump is the difference between the fourth brightness value and the third brightness value. If the direction of the second jump is the direction of decreasing brightness value, the difference between the second brightness value and the first brightness value is less than 0. Therefore, the product of the brightness jump value of the first jump and the brightness jump value of the second jump is less than 0.
第一跳变的亮度跳变值为第二亮度值与第一亮度值之差,若第一跳变的方向为亮度值减小的方向,则第二亮度值与第一亮度值之差小于0。第二跳变的亮度跳变值为第四亮度值与第三亮度值之差,若第二跳变的方向为亮度值增加的方向,则第二亮度值与第一亮度值之差大于0。故第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积小于0。The brightness jump value of the first jump is the difference between the second brightness value and the first brightness value. If the direction of the first jump is the direction of decreasing brightness value, the difference between the second brightness value and the first brightness value is less than 0. The brightness jump value of the second jump is the difference between the fourth brightness value and the third brightness value. If the direction of the second jump is the direction of increasing brightness value, the difference between the second brightness value and the first brightness value is greater than 0. Therefore, the product of the brightness jump value of the first jump and the brightness jump value of the second jump is less than 0.
检测设备判断第一跳变的方向与第二跳变的方向是否相反的具体实现方式可以为:检测设备判断第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积是否小于0。若第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积小于0,则第一跳变的方向与第二跳变的方向相反;若第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积大于或等于0,则第一跳变的方向与第二跳变的方向不同。The specific implementation method of the detection device determining whether the direction of the first jump is opposite to the direction of the second jump can be: the detection device determines whether the product of the brightness jump value of the first jump and the brightness jump value of the second jump is less than 0. If the product of the brightness jump value of the first jump and the brightness jump value of the second jump is less than 0, the direction of the first jump is opposite to the direction of the second jump; if the product of the brightness jump value of the first jump and the brightness jump value of the second jump is greater than or equal to 0, the direction of the first jump is different from the direction of the second jump.
本申请提供的闪屏检测方法,若第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积小于0,则可以确定第一跳变的方向与第二跳变的方向相反,简单便捷,有利于提高检测速度。The screen flash detection method provided in the present application can determine that the direction of the first jump is opposite to the direction of the second jump if the product of the brightness jump value of the first jump and the brightness jump value of the second jump is less than 0. This method is simple and convenient, and is conducive to improving the detection speed.
结合第一方面,在第一方面的某些实现方式中,在获取终端设备显示的第一画面的第一亮度值、终端设备显示的第二画面的第二亮度值、终端设备显示的第三画面的第三亮度值和终端设备显示的第四画面的第四亮度值之前,方法还包括:从终端设备的内存空间中获取第一画面、第二画面、第三画面以及第四画面中至少一个。In combination with the first aspect, in certain implementations of the first aspect, before obtaining a first brightness value of a first picture displayed by the terminal device, a second brightness value of a second picture displayed by the terminal device, a third brightness value of a third picture displayed by the terminal device, and a fourth brightness value of a fourth picture displayed by the terminal device, the method also includes: obtaining at least one of the first picture, the second picture, the third picture, and the fourth picture from the memory space of the terminal device.
终端设备显示的画面可以存储于终端设备内存空间中,其中,内存空间可以包括内存或者显存。The images displayed by the terminal device may be stored in the memory space of the terminal device, wherein the memory space may include the internal memory or the video memory.
终端设备与检测设备建立连接,终端设备从内存或者显存中实时获取连续画面,并实时将连续画面发送至检测设备。其中,连续画面可以包括第一画面、第二画面、第三画面以及第四画面中至少一个。终端设备还可以从内存或者显存中实时获取连续画面,并在屏幕中显示。The terminal device establishes a connection with the detection device, and the terminal device obtains continuous images from the memory or video memory in real time, and sends the continuous images to the detection device in real time. The continuous images may include at least one of the first image, the second image, the third image, and the fourth image. The terminal device can also obtain continuous images from the memory or video memory in real time and display them on the screen.
本申请提供的闪屏检测方法,从内存空间中直接获取画面,有利于防止屏幕亮度的干扰,有利于准确地获取画面的亮度值。The screen flash detection method provided in the present application directly obtains the picture from the memory space, which is helpful to prevent the interference of the screen brightness and is helpful to accurately obtain the brightness value of the picture.
结合第一方面,在第一方面的某些实现方式中,在获取终端设备显示的第一画面的第一亮度值、终端设备显示的第二画面的第二亮度值、终端设备显示的第三画面的第三亮度值和终端设备显示的第四画面的第四亮度值之前,方法还包括:通过相机获取第一画面、第二画面、第三画面以及第四画面中至少一个。In combination with the first aspect, in certain implementations of the first aspect, before obtaining a first brightness value of a first picture displayed by the terminal device, a second brightness value of a second picture displayed by the terminal device, a third brightness value of a third picture displayed by the terminal device, and a fourth brightness value of a fourth picture displayed by the terminal device, the method also includes: obtaining at least one of the first picture, the second picture, the third picture, and the fourth picture through a camera.
终端设备实时显示连续画面数据时,检测设备可以控制相机例如高速相机采集终端设备显示的连续画面。When the terminal device displays continuous image data in real time, the detection device can control a camera, such as a high-speed camera, to capture the continuous images displayed by the terminal device.
本申请提供的闪屏检测方法,检测设备可以在终端设备无感知的情况下,对终端设备显示的画面数据进行检测。The screen flash detection method provided in the present application enables the detection device to detect the screen data displayed by the terminal device without the terminal device being aware of it.
结合第一方面,在第一方面的某些实现方式中,获取终端设备显示的第一画面的第一亮度值、终端设备显示的第二画面的第二亮度值、终端设备显示的第三画面的第三亮度值和终端设备显示的第四画面的第四亮度值,包括:通过亮度传感器采集第一亮度值、第二亮度值、第三亮度值以及第四亮度值中至少一个。In combination with the first aspect, in certain implementations of the first aspect, obtaining a first brightness value of a first picture displayed by a terminal device, a second brightness value of a second picture displayed by the terminal device, a third brightness value of a third picture displayed by the terminal device, and a fourth brightness value of a fourth picture displayed by the terminal device includes: collecting at least one of the first brightness value, the second brightness value, the third brightness value, and the fourth brightness value through a brightness sensor.
本申请提供的闪屏检测方法,第一亮度值、第二亮度值、第三亮度值以及第四亮度值中至少一个亮度值可以通过亮度传感器采集得到,可以减少检测设备计算亮度值的过程,有利于提高闪屏的检测准确度。In the flash screen detection method provided in the present application, at least one brightness value among the first brightness value, the second brightness value, the third brightness value and the fourth brightness value can be acquired by a brightness sensor, which can reduce the process of calculating the brightness value by the detection device and is conducive to improving the detection accuracy of the flash screen.
结合第一方面,在第一方面的某些实现方式中,方法还包括:计算第一亮度值与第二亮度值的差值;若差值的模大于或等于亮度差阈值,则确定第二亮度值与第一亮度值之间发生第一跳变。In combination with the first aspect, in certain implementations of the first aspect, the method further includes: calculating the difference between the first brightness value and the second brightness value; if the modulus of the difference is greater than or equal to a brightness difference threshold, determining that a first jump occurs between the second brightness value and the first brightness value.
第一亮度值与第二亮度值的差值可以是第二亮度值减去第一亮度值,也可以是第一亮度值减去第二亮度值,本申请对此不作限定。差值的模也可以称为差值的绝对值,本申请对此不作限定。亮度差阈值也可以称为预设阈值或者亮度值阈值,本申请对此不作限定。亮度差阈值可以通过大量实验标定,本申请对亮度差阈值的具体数值不作限定。The difference between the first brightness value and the second brightness value can be the second brightness value minus the first brightness value, or the first brightness value minus the second brightness value, which is not limited in this application. The modulus of the difference can also be called the absolute value of the difference, which is not limited in this application. The brightness difference threshold can also be called a preset threshold or a brightness value threshold, which is not limited in this application. The brightness difference threshold can be calibrated through a large number of experiments, and the specific value of the brightness difference threshold is not limited in this application.
若差值的模大于或等于亮度差阈值,则可以说明第一亮度值与第二亮度值之间相差较大,检测设备可以确定第二亮度值与第一亮度值之间发生第一跳变。If the modulus of the difference is greater than or equal to the brightness difference threshold, it can be explained that there is a large difference between the first brightness value and the second brightness value, and the detection device can determine that a first jump occurs between the second brightness value and the first brightness value.
可以理解的是,第三亮度值与第四亮度值的差值的模大于或等于亮度差阈值,则检测设备确定第四亮度值与第三亮度值之间发生第二跳变。It can be understood that if the modulus of the difference between the third brightness value and the fourth brightness value is greater than or equal to the brightness difference threshold, the detection device determines that a second jump occurs between the fourth brightness value and the third brightness value.
本申请提供的闪屏检测方法,若相邻画面的亮度值之差大于或等于亮度差阈值,则可以说明亮度值发生跳变,有利于准确地检测到两只至发生跳变,进而有利于提高闪屏的检测准确度。The screen flicker detection method provided in the present application can indicate that a brightness jump has occurred if the difference in brightness values between adjacent images is greater than or equal to a brightness difference threshold, which is helpful for accurately detecting that a jump has occurred between the two images, thereby helping to improve the accuracy of screen flicker detection.
第二方面,提供了一种闪屏检测装置,包括:获取模块和处理模块。其中,获取模块用于:获取终端设备显示的第一画面的第一亮度值、终端设备显示的第二画面的第二亮度值、终端设备显示的第三画面的第三亮度值和终端设备显示的第四画面的第四亮度值,第二画面为第一画面之后的第一帧画面,第四画面为第三画面之后的第一帧画面,第四画面与第二画面之间间隔的帧的数量小于或等于第一数值,或第四画面与第二画面之间间隔的时长小于或等于时长阈值;处理模块用于:若第二亮度值与第一亮度值之间发生第一跳变,第四亮度值与第三亮度值之间发生第二跳变,且第一跳变的方向与第二跳变的方向相反,则确定终端设备发生了闪屏。In the second aspect, a screen flash detection device is provided, including: an acquisition module and a processing module. The acquisition module is used to: acquire a first brightness value of a first picture displayed by a terminal device, a second brightness value of a second picture displayed by the terminal device, a third brightness value of a third picture displayed by the terminal device, and a fourth brightness value of a fourth picture displayed by the terminal device, wherein the second picture is the first frame picture after the first picture, the fourth picture is the first frame picture after the third picture, the number of frames between the fourth picture and the second picture is less than or equal to the first value, or the duration of the interval between the fourth picture and the second picture is less than or equal to the duration threshold; the processing module is used to: if a first jump occurs between the second brightness value and the first brightness value, a second jump occurs between the fourth brightness value and the third brightness value, and the direction of the first jump is opposite to the direction of the second jump, then it is determined that a screen flash has occurred on the terminal device.
结合第二方面,在第二方面的某些实现方式中,第一跳变的方向为亮度值增加的方向,第二跳变的方向为亮度值减小的方向;或者,第一跳变的方向为亮度值减小的方向,第二跳变的方向为亮度值增加的方向。In combination with the second aspect, in certain implementations of the second aspect, the direction of the first jump is the direction of increasing brightness value, and the direction of the second jump is the direction of decreasing brightness value; or, the direction of the first jump is the direction of decreasing brightness value, and the direction of the second jump is the direction of increasing brightness value.
结合第二方面,在第二方面的某些实现方式中,第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积小于0。In combination with the second aspect, in some implementations of the second aspect, a product of a brightness transition value of the first transition and a brightness transition value of the second transition is less than 0.
结合第二方面,在第二方面的某些实现方式中,获取模块还用于:从终端设备的内存空间中获取第一画面、第二画面、第三画面以及第四画面中至少一个。In combination with the second aspect, in some implementations of the second aspect, the acquisition module is further used to: acquire at least one of the first picture, the second picture, the third picture, and the fourth picture from the memory space of the terminal device.
结合第二方面,在第二方面的某些实现方式中,获取模块还用于:通过相机获取第一画面、第二画面、第三画面以及第四画面中至少一个。In combination with the second aspect, in some implementations of the second aspect, the acquisition module is further used to: acquire at least one of the first picture, the second picture, the third picture, and the fourth picture through a camera.
结合第二方面,在第二方面的某些实现方式中,获取模块还用于:通过亮度传感器采集第一亮度值、第二亮度值、第三亮度值和第四亮度值中至少一个。In combination with the second aspect, in some implementations of the second aspect, the acquisition module is further used to: collect at least one of the first brightness value, the second brightness value, the third brightness value, and the fourth brightness value through a brightness sensor.
结合第二方面,在第二方面的某些实现方式中,处理模块还用于:计算第一亮度值与第二亮度值的差值;若差值的模大于或等于亮度差阈值,则确定第二亮度值与第一亮度值之间发生第一跳变。In combination with the second aspect, in certain implementations of the second aspect, the processing module is also used to: calculate the difference between the first brightness value and the second brightness value; if the modulus of the difference is greater than or equal to the brightness difference threshold, determine that a first jump occurs between the second brightness value and the first brightness value.
第三方面,本申请提供一种网络接入装置,该网络接入装置包括:处理器和存储器;存储器存储计算机执行指令;处理器执行存储器存储的计算机执行指令,使得网络接入执行如第一方面所述的方法。In a third aspect, the present application provides a network access device, which includes: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the network access executes the method described in the first aspect.
第四方面,本申请提供一种检测设备,该检测设备可以用于执行如第一方面所述的方法。In a fourth aspect, the present application provides a detection device, which can be used to execute the method described in the first aspect.
第五方面,本申请提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如第一方面所述的方法。In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method described in the first aspect is implemented.
第六方面,本申请提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面所述的方法。In a sixth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method described in the first aspect.
第七方面,本申请提供了一种芯片,芯片包括处理器,处理器用于调用存储器中的计算机程序,以执行如第一方面所述的方法。In a seventh aspect, the present application provides a chip, the chip comprising a processor, the processor being used to call a computer program in a memory to execute the method described in the first aspect.
应当理解的是,本申请的第二方面至第七方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second to seventh aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是一种手机闪屏的示意图;FIG1 is a schematic diagram of a mobile phone flash screen;
图2是一种亮度值跳变的示意图;FIG2 is a schematic diagram of a brightness value jump;
图3是本申请实施例提供的一种亮度值跳变的示意图;FIG3 is a schematic diagram of a brightness value jump provided by an embodiment of the present application;
图4是本申请实施例提供的另一种亮度值脉冲的示意图;FIG4 is a schematic diagram of another brightness value pulse provided in an embodiment of the present application;
图5是本申请实施例提供的一种闪屏检测方法的示意性流程图;FIG5 is a schematic flow chart of a screen flash detection method provided in an embodiment of the present application;
图6是本申请实施例提供的一种绘制亮度值波形的示意图;FIG6 is a schematic diagram of drawing a brightness value waveform provided by an embodiment of the present application;
图7是本申请实施例提供的另一种绘制亮度值波形的示意图;FIG7 is a schematic diagram of another method for drawing a brightness value waveform provided by an embodiment of the present application;
图8是本申请实施例提供的一种检测亮度值窄脉冲的示意图;FIG8 is a schematic diagram of a method for detecting a narrow pulse of brightness value provided by an embodiment of the present application;
图9是本申请实施例提供的一种检测亮度值宽脉冲的示意图;FIG9 is a schematic diagram of a wide pulse for detecting brightness values provided in an embodiment of the present application;
图10是本申请实施例提供的一种闪屏检测装置的示意性框图;FIG10 is a schematic block diagram of a screen flash detection device provided in an embodiment of the present application;
图11是本申请实施例提供的另一种闪屏检测装置的示意性框图。FIG. 11 is a schematic block diagram of another screen flash detection device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the accompanying drawings.
本申请实施例涉及的终端设备也可以称为终端(terminal)、用户设备(userequipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。The terminal device involved in the embodiments of the present application may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.
随着终端设备在研发或使用过程中,因为软件配置不合理或硬件故障等原因,终端设备在播放连续画面时,经常会出现错误帧快速闪过的现象,也就是发生闪屏。闪屏会对用户视觉造成冲击,引起用户不适,严重影响用户对终端设备的使用。因此,需要及时检测到终端设备存在闪屏的问题,并尽快进行相应处理。During the development or use of terminal devices, due to unreasonable software configuration or hardware failure, when the terminal device plays continuous images, error frames often flash quickly, that is, screen flickering occurs. Screen flickering will cause visual impact to users, causing discomfort to users and seriously affecting users' use of terminal devices. Therefore, it is necessary to detect the problem of screen flickering in terminal devices in a timely manner and handle it as soon as possible.
示例性地,由于人眼视觉暂留特性,渐变的图像帧会在大脑中形成连贯的画面,形成良好的观察体验。连续画面中突闪异常图像帧,会带来视觉上的不适,对于视频出现的异常帧,会造成不流畅的感觉,引起用户不适,严重影响用户对终端设备的使用。终端设备可以为手机,图1示出了一种手机闪屏的示意图。如图1所示,图1中的a界面、b界面、c界面、d界面、e界面、f界面、g界面、h界面以及i界面组成连续画面,a界面为第一帧画面、b界面为第二帧画面、c界面为第三帧画面、d界面为第四帧画面、e界面为第五帧画面、f界面为第六帧画面、g界面为第七帧画面、h界面为第八帧画面、i界面为第九帧画面。第一帧画面至第三帧画面为手机锁屏界面,第四帧画面至第八帧画面应该均为通知消息界面,但是第六帧画面也就是f界面无任何显示内容,为异常画面(或者称为异常帧)。异常帧会造成不流畅的感觉,引起用户不适,严重影响用户对手机的使用。Exemplarily, due to the persistence of vision of the human eye, the gradually changing image frames will form a coherent picture in the brain, forming a good viewing experience. The sudden flash of abnormal image frames in the continuous picture will cause visual discomfort. For the abnormal frames in the video, it will cause a sense of unsmoothness, causing discomfort to the user, and seriously affecting the user's use of the terminal device. The terminal device can be a mobile phone, and Figure 1 shows a schematic diagram of a mobile phone flash screen. As shown in Figure 1, the a interface, b interface, c interface, d interface, e interface, f interface, g interface, h interface and i interface in Figure 1 form a continuous picture, the a interface is the first frame, the b interface is the second frame, the c interface is the third frame, the d interface is the fourth frame, the e interface is the fifth frame, the f interface is the sixth frame, the g interface is the seventh frame, the h interface is the eighth frame, and the i interface is the ninth frame. The first frame to the third frame are the mobile phone lock screen interface, and the fourth frame to the eighth frame should all be notification message interfaces, but the sixth frame, that is, the f interface, has no display content and is an abnormal picture (or abnormal frame). Abnormal frames will cause a sense of unsmoothness, causing discomfort to users and seriously affecting their use of the phone.
在对画面进行检测时,检测设备通常先获取连续画面对应的亮度值波形,然后将亮度值波形中发生跳变的亮度值对应的画面确定为错误帧画面。When detecting a picture, the detection device usually first obtains the brightness value waveform corresponding to the continuous pictures, and then determines the picture corresponding to the brightness value with a jump in the brightness value waveform as an error frame picture.
具体地,检测设备在对终端设备的画面进行检测时,可以实时获取终端设备播放的画面数据,计算画面数据对应的亮度值,并基于画面数据对应的亮度值绘制实时的亮度值波形。若画面数据中未出现异常画面数据(或者称为异常帧),则亮度值的变化趋势会呈现平滑的特点,也就是亮度值波形平滑;若画面数据中出现异常画面数据(或者称为异常帧),则亮度值的变化趋势会呈现不平滑的特点,也就是亮度值波形不平滑,即跳变。若检测到亮度值发生跳变,则将发生跳变的亮度值对应的画面确定为错误帧画面,即检测并捕获到闪屏画面。Specifically, when the detection device detects the picture of the terminal device, it can obtain the picture data played by the terminal device in real time, calculate the brightness value corresponding to the picture data, and draw a real-time brightness value waveform based on the brightness value corresponding to the picture data. If there is no abnormal picture data (or abnormal frame) in the picture data, the change trend of the brightness value will be smooth, that is, the brightness value waveform is smooth; if there is abnormal picture data (or abnormal frame) in the picture data, the change trend of the brightness value will be not smooth, that is, the brightness value waveform is not smooth, that is, jump. If a jump in the brightness value is detected, the picture corresponding to the brightness value that jumps is determined as an error frame picture, that is, the splash screen picture is detected and captured.
示例性地,图2示出了一种亮度值跳变的示意图。如图2所示,随着画面的帧数的增加或者随着时间的增加,亮度值不断变化。检测设备可以计算当前画面(或者称为当前帧)的亮度值与前一个画面(或者称为前一帧)的亮度值的差判断亮度值是否发生跳变。若亮度值的差较大,检测设备可以确定亮度值发生跳变。在图2所示的亮度值波形中,存在两次亮度值的差较大,检测设备可以确定亮度值发生了两次跳变,也就是画面发生了两次闪屏。Exemplarily, FIG2 shows a schematic diagram of a brightness value jump. As shown in FIG2, as the number of frames of the picture increases or as time increases, the brightness value changes continuously. The detection device can calculate the difference between the brightness value of the current picture (or the current frame) and the brightness value of the previous picture (or the previous frame) to determine whether the brightness value jumps. If the difference in brightness value is large, the detection device can determine that the brightness value jumps. In the brightness value waveform shown in FIG2, there are two times when the difference in brightness value is large, and the detection device can determine that the brightness value jumps twice, that is, the screen flashes twice.
但是,通过判断亮度值的跳变来判断闪屏的方式,误报率较高。However, the method of judging screen flicker by judging the jump of brightness value has a high false alarm rate.
申请人发现,画面中经常出现的正常界面切换(例如打开新的窗口)或者不同场景切换(例如电影切换画面),也会出现大的亮度值跳变,若仅仅通过亮度值跳变来判断是否闪屏,会有很大的误报率,导致此方法不能有效应用于真实场景。The applicant has found that normal interface switching (such as opening a new window) or switching between different scenes (such as switching scenes in a movie) that often appears on the screen will also result in large brightness value jumps. If the screen flash is judged only by the brightness value jump, there will be a high false alarm rate, resulting in this method not being effectively applied to real scenes.
示例性地,图3示出了另一种亮度值跳变的示意图。如图3所示,随着画面的帧数的增加或者随着时间的增加,亮度值不断变化。在终端设备正常切换界面例如打开新的窗口时,亮度值发生跳变,检测设备判断发生了闪屏,则出现了误报,会降低闪屏检测的准确度。For example, FIG3 shows another schematic diagram of brightness value jump. As shown in FIG3, as the number of frames of the picture increases or as time increases, the brightness value changes continuously. When the terminal device switches interfaces normally, such as opening a new window, the brightness value jumps, and the detection device determines that a screen flash has occurred, a false alarm occurs, which reduces the accuracy of the screen flash detection.
申请人还发现,真正给用户会带来视觉不适感的闪屏,在亮度值波形上大多表现为脉冲的形式,即亮度值突然升高(或降低)之后很短时间内又突然降低(或升高)。故通过捕获亮度值波形中的脉冲,有利于准确捕获画面中的闪屏。The applicant also found that the screen flicker that really causes visual discomfort to the user is mostly in the form of pulses in the brightness value waveform, that is, the brightness value suddenly increases (or decreases) and then suddenly decreases (or increases) in a short time. Therefore, by capturing the pulses in the brightness value waveform, it is helpful to accurately capture the screen flicker in the picture.
示例性地,图4示出了一种亮度值脉冲的示意图。如图4所示,随着画面的帧数的增加或者随着时间的增加,亮度值不断变化。在画面播放的某一个时间点或者播放某一帧画面时,亮度值突然升高之后又突然降低,则出现了亮度值脉冲。For example, FIG4 shows a schematic diagram of a brightness value pulse. As shown in FIG4, as the number of frames of the picture increases or as time increases, the brightness value changes continuously. At a certain time point of the picture playback or when a certain frame of the picture is played, the brightness value suddenly increases and then suddenly decreases, and a brightness value pulse occurs.
有鉴于此,本申请实施例提供一种闪屏检测方法和闪屏检测装置,若检测到亮度值波形中存在脉冲,则确定出现了闪屏现象,有利于提高闪屏的检测准确度。In view of this, the embodiments of the present application provide a screen flicker detection method and a screen flicker detection device. If a pulse is detected in the brightness value waveform, it is determined that a screen flicker phenomenon has occurred, which is beneficial to improving the accuracy of screen flicker detection.
为了便于清楚描述本申请实施例的技术方案,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.
需要说明的是,本申请实施例中的“在……时”,可以为在某种情况发生的瞬时,也可以为在某种情况发生后的一段时间内,本申请实施例对此不作具体限定。此外,本申请实施例提供的显示界面仅作为示例,显示界面还可以包括更多或更少的内容。It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or can be a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.
上述画面数据也可以称为画面、图像数据或者图像,本申请实施例对此不作限定。本申请实施例提供的闪屏检测方法,可以实时对终端设备显示的画面进行检测,也可以对终端设备以显示过的画面例如录制的视频进行检测。下面以对终端设备实时显示的画面数据进行检测为例进行说明。The above-mentioned screen data may also be referred to as screen, image data or image, which is not limited in the embodiments of the present application. The flash screen detection method provided in the embodiments of the present application can detect the screen displayed by the terminal device in real time, or can detect the screen displayed by the terminal device, such as a recorded video. The following is an example of detecting the screen data displayed in real time by the terminal device.
示例性地,图5示出了一种闪屏检测方法500的示意性流程图。该方法500可以由检测设备执行,例如,终端设备或者服务器等等。如图5所示,该方法500可以包括如下步骤:Exemplarily, FIG5 shows a schematic flow chart of a screen flash detection method 500. The method 500 may be executed by a detection device, such as a terminal device or a server, etc. As shown in FIG5, the method 500 may include the following steps:
S501、获取终端设备实时显示的连续画面数据。S501. Acquire continuous picture data displayed in real time by a terminal device.
终端设备也可以称为待测设备,本申请实施例对此不作限定。The terminal device may also be referred to as a device under test, which is not limited in the embodiments of the present application.
终端设备显示连续画面数据时,检测设备可以实时获取终端设备显示的画面数据。When the terminal device displays continuous image data, the detection device can obtain the image data displayed by the terminal device in real time.
检测设备获取终端设备实时显示的连续画面数据,存在多种可能的实现方式。There are many possible implementations for the detection device to obtain the continuous image data displayed in real time by the terminal device.
在一种可能的实现方式中,检测设备接收来自终端设备从内存或者显存中实时获取的连续画面数据。In a possible implementation, the detection device receives continuous picture data obtained in real time from a memory or a video memory of the terminal device.
具体地,终端设备与检测设备建立连接,终端设备从内存或者显存中实时获取连续画面数据,并实时将连续画面数据发送至检测设备例如通过Socket函数以流的方式将画面数据实时传输至检测设备,同时,终端设备还可以实时将连续画面数据传输至屏幕显示。Specifically, the terminal device establishes a connection with the detection device, the terminal device obtains continuous screen data from the memory or video memory in real time, and sends the continuous screen data to the detection device in real time, for example, by transmitting the screen data to the detection device in real time in a streaming manner through a Socket function. At the same time, the terminal device can also transmit the continuous screen data to the screen for display in real time.
可以理解的是,若检测设备为终端设备,则终端设备可以从内存或者显存中实时获取连续画面数据。It is understandable that if the detection device is a terminal device, the terminal device can obtain continuous picture data from the memory or video memory in real time.
这种实现方式,在画面数据显示之前获取,有利于防止屏幕亮度的干扰,有利于准确地获取画面数据的亮度值。This implementation method is to obtain the brightness value of the picture data before it is displayed, which is beneficial to prevent interference from the screen brightness and to accurately obtain the brightness value of the picture data.
在另一种可能的实现方式中,检测设备通过高速相机采集显示连续画面数据的屏幕画面。In another possible implementation, the detection device collects screen images showing continuous image data through a high-speed camera.
具体地,终端设备实时显示连续画面数据时,检测设备可以控制高速相机采集终端设备显示的连续画面数据。Specifically, when the terminal device displays continuous picture data in real time, the detection device can control the high-speed camera to collect the continuous picture data displayed by the terminal device.
这种实现方式,检测设备可以在终端设备无感知的情况下,对终端设备显示的画面数据进行检测。In this implementation mode, the detection device can detect the screen data displayed by the terminal device without the terminal device being aware of it.
S502、计算相邻画面数据对应的亮度值之差。S502: Calculate the difference in brightness values corresponding to adjacent picture data.
相邻画面数据对应的亮度值之差可以是后一帧的画面数据对应的亮度值与前一帧的画面数据对应的亮度值之差。The difference between the brightness values corresponding to the adjacent picture data may be the difference between the brightness value corresponding to the picture data of the subsequent frame and the brightness value corresponding to the picture data of the previous frame.
示例性地,检测设备可以计算每一个画面数据对应的亮度值,并依次计算后一帧的画面数据对应的亮度值与前一帧的画面数据对应的亮度值之差,基于这些亮度值之差,检测设备可以绘制亮度值波形,亮度值波形的横坐标可以是帧数或者时间,纵坐标可以是亮度。图6示出了一种绘制亮度值波形的示意图。如图6所示,检测设备接收来自终端设备从内存或者显存中实时获取的连续画面数据,并依次计算相邻画面数据对应的亮度值之差,并基于这些亮度值之差,检测设备可以实时绘制亮度值波形。图7示出了另一种绘制亮度值波形的示意图。如图7所示,检测设备通过高速相机采集显示连续画面数据的屏幕画面数据,并通过亮度传感器获取每一个屏幕画面数据对应的亮度值,并依次计算后一帧的屏幕画面数据对应的亮度值与前一帧的屏幕画面数据对应的亮度值之差,基于这些亮度值之差,检测设备可以实时绘制亮度值波形。Exemplarily, the detection device can calculate the brightness value corresponding to each picture data, and sequentially calculate the difference between the brightness value corresponding to the picture data of the next frame and the brightness value corresponding to the picture data of the previous frame. Based on the difference in these brightness values, the detection device can draw a brightness value waveform, and the horizontal coordinate of the brightness value waveform can be the number of frames or time, and the vertical coordinate can be brightness. Figure 6 shows a schematic diagram of drawing a brightness value waveform. As shown in Figure 6, the detection device receives continuous picture data obtained from the memory or video memory in real time from the terminal device, and sequentially calculates the difference in brightness values corresponding to adjacent picture data, and based on the difference in these brightness values, the detection device can draw a brightness value waveform in real time. Figure 7 shows another schematic diagram of drawing a brightness value waveform. As shown in Figure 7, the detection device collects screen picture data that displays continuous picture data through a high-speed camera, and obtains the brightness value corresponding to each screen picture data through a brightness sensor, and sequentially calculates the difference in brightness value corresponding to the screen picture data of the next frame and the brightness value corresponding to the screen picture data of the previous frame. Based on the difference in these brightness values, the detection device can draw a brightness value waveform in real time.
检测设备计算每一个画面数据的亮度值,可以包括:检测设备可以将每一个画面数据分为n块子画面数据,并将该n块子画面数据的对应的亮度值的平均数作为该画面数据的亮度值。The detection device calculates the brightness value of each picture data, which may include: the detection device may divide each picture data into n blocks of sub-picture data, and take the average of the corresponding brightness values of the n blocks of sub-picture data as the brightness value of the picture data.
示例性地,检测设备获取连续画面数据后,可以将连续画面数据中每一个画面数据分为n块子画面数据,并将每一个子画面数据解码为YUV格式,则得到n个YUV格式的子画面数据,这n个YUV格式的子画面数据可以称为YUV格式的序列。其中,Y表示明亮度(Luminance或Luma),也就是灰阶值,U和V表示色度(Chrominance或Chroma),用于指定像素的颜色。检测设备可以将Y分量的序列作为亮度值序列或者可以将UV分量的序列作为亮度值序列。本申请实施例以将Y分量的序列作为亮度值序列为例进行说明。Exemplarily, after the detection device obtains the continuous picture data, each picture data in the continuous picture data can be divided into n blocks of sub-picture data, and each sub-picture data is decoded into a YUV format, then n sub-picture data in a YUV format are obtained, and the sub-picture data in the n YUV format can be referred to as a sequence in a YUV format. Wherein, Y represents brightness (Luminance or Luma), that is, grayscale value, and U and V represent chromaticity (Chrominance or Chroma), which is used to specify the color of a pixel. The detection device can use the sequence of the Y component as a brightness value sequence or can use the sequence of the UV component as a brightness value sequence. The embodiment of the present application is described by taking the sequence of the Y component as a brightness value sequence as an example.
若YUV格式的序列用data表示,data[0]对应的数组可以存放Y分量,每个画面数据包括n块子画面数据,也就是包括n个Y分量,则data[0][1]可以用于表示每个画面数据中第1块子画面数据的Y分量,data[0][2]可以用于表示每个画面数据中第2块子画面数据的Y分量,以此类推,data[0][n]可以用于表示每个画面数据中第n块子画面数据的Y分量。检测设备可以计算data[0][1]、data[0][2]……data[0][n]的平均值,并将该平均值作为画面数据的亮度值。If the sequence in YUV format is represented by data, the array corresponding to data[0] can store the Y component, and each picture data includes n blocks of sub-picture data, that is, n Y components, then data[0][1] can be used to represent the Y component of the first block of sub-picture data in each picture data, data[0][2] can be used to represent the Y component of the second block of sub-picture data in each picture data, and so on, data[0][n] can be used to represent the Y component of the nth block of sub-picture data in each picture data. The detection device can calculate the average value of data[0][1], data[0][2]...data[0][n], and use the average value as the brightness value of the picture data.
需要说明的是,检测设备将每一个子画面数据解码为YUV格式仅仅为一种可能的实现方式,在另一种可能的实现方式中,检测设备可以将每一个子画面数据解码为RGB格式,并基于RGB格式的至少一个分量计算亮度值或者色度。It should be noted that decoding each sub-picture data into the YUV format by the detection device is only one possible implementation method. In another possible implementation method, the detection device can decode each sub-picture data into the RGB format and calculate the brightness value or chromaticity based on at least one component of the RGB format.
检测设备可以根据画面数据的亮度值和画面数据显示的时间(或者画面数据的帧数),绘制亮度值波形。例如,若画面数据的亮度值即为M,则检测设备可以建立M-时间的坐标系,在该坐标系上绘制亮度值曲线,以观察亮度变化趋势。The detection device can draw a brightness value waveform according to the brightness value of the picture data and the time when the picture data is displayed (or the number of frames of the picture data). For example, if the brightness value of the picture data is M, the detection device can establish an M-time coordinate system and draw a brightness value curve on the coordinate system to observe the brightness change trend.
S503、若相邻画面数据对应的亮度值之差的模大于预设阈值,则发生一次亮度值跳变。S503: If the modulus of the difference between the brightness values corresponding to the adjacent picture data is greater than a preset threshold, a brightness value jump occurs.
相邻画面数据对应的亮度值之差的模,也可以称为相邻画面数据对应的亮度值之差的绝对值,本申请实施例对此不作限定。The modulus of the difference between the brightness values corresponding to the adjacent picture data may also be referred to as the absolute value of the difference between the brightness values corresponding to the adjacent picture data, which is not limited in the embodiment of the present application.
检测设备可以实时判断相邻画面数据对应的亮度值之差的模是否大于预设阈值。预设阈值可以由通过大量实验标定的,本申请实施例对预设阈值的具体数值不作限定。The detection device can determine in real time whether the modulus of the difference between the brightness values corresponding to the adjacent picture data is greater than a preset threshold. The preset threshold can be calibrated through a large number of experiments, and the specific value of the preset threshold is not limited in the embodiment of the present application.
相邻画面数据对应的亮度值之差的模大于预设阈值,可以包括两种情况:后一帧的画面数据对应的亮度值相比前一帧的画面数据对应的亮度值突然升高,或者,后一帧的画面数据对应的亮度值相比前一帧的画面数据对应的亮度值突然降低。The modulus of the difference between the brightness values corresponding to adjacent picture data is greater than a preset threshold, which may include two situations: the brightness value corresponding to the picture data of the subsequent frame suddenly increases compared with the brightness value corresponding to the picture data of the previous frame, or the brightness value corresponding to the picture data of the subsequent frame suddenly decreases compared with the brightness value corresponding to the picture data of the previous frame.
S504、若在亮度值跳变之后的预设帧数或者预设时长内,再次发生亮度值跳变,且与之前的亮度值跳变方向相反,则发生了一次亮度值脉冲。S504: If the brightness value jumps again within the preset number of frames or the preset duration after the brightness value jumps, and the direction is opposite to the previous brightness value jump, a brightness value pulse occurs.
预设帧数可以是2帧、3帧或者5帧等等,本申请实施例对此不作限定。预设时长可以是1毫秒、2毫秒或者3毫秒等等,本申请实施例对此不作限定。亮度值跳变可以包括两个方向,一个方向是升高(或者称为增加),另一个方向是降低(或者称为减少)。The preset number of frames may be 2 frames, 3 frames, or 5 frames, etc., which is not limited in the embodiment of the present application. The preset duration may be 1 millisecond, 2 milliseconds, or 3 milliseconds, etc., which is not limited in the embodiment of the present application. The brightness value jump may include two directions, one direction is rising (or increasing), and the other direction is falling (or decreasing).
若在亮度值跳变之后的预设帧数或者预设时长内,再次发生亮度值跳变,也就是相邻画面数据对应的亮度值之差的模再次大于预设阈值,且与之前的亮度值跳变方向相反,则发生了一次亮度值脉冲。If the brightness value jumps again within the preset number of frames or preset duration after the brightness value jumps, that is, the modulus of the difference in brightness values corresponding to adjacent picture data is greater than the preset threshold again, and the direction is opposite to the previous brightness value jump, then a brightness value pulse occurs.
例如,若出现第一次亮度值跳变时,后一帧的画面数据对应的亮度值相比前一帧的画面数据对应的亮度值突然升高,也就是跳变方向为升高,且在亮度值跳变之后的2帧内,再次发生亮度值跳变,也就是相邻画面数据对应的亮度值之差的模再次大于预设阈值,后一帧的画面数据对应的亮度值相比前一帧的画面数据对应的亮度值突然降低,也就是跳变方向为降低,则在较短时间内,发生了两次跳变,且跳变方向相反,故发生了一次亮度值脉冲。For example, if the first brightness value jump occurs, the brightness value corresponding to the picture data of the next frame suddenly increases compared with the brightness value corresponding to the picture data of the previous frame, that is, the jump direction is increasing, and within 2 frames after the brightness value jump, the brightness value jump occurs again, that is, the modulus of the difference between the brightness values corresponding to the adjacent picture data is greater than the preset threshold again, and the brightness value corresponding to the picture data of the next frame suddenly decreases compared with the brightness value corresponding to the picture data of the previous frame, that is, the jump direction is decreasing, then two jumps occur in a relatively short period of time, and the jump directions are opposite, so a brightness value pulse occurs.
又如,若出现第一次亮度值跳变时,后一帧的画面数据对应的亮度值相比前一帧的画面数据对应的亮度值突然降低,也就是跳变方向为降低,且在亮度值跳变之后的1毫秒内,再次发生亮度值跳变,也就是相邻画面数据对应的亮度值之差的模再次大于预设阈值,后一帧的画面数据对应的亮度值相比前一帧的画面数据对应的亮度值突然升高,也就是跳变方向为升高,则在较短时间内,发生了两次跳变,且跳变方向相反,故发生了一次亮度值脉冲。For example, if the first brightness value jump occurs, the brightness value corresponding to the picture data of the subsequent frame suddenly decreases compared with the brightness value corresponding to the picture data of the previous frame, that is, the jump direction is decreasing, and within 1 millisecond after the brightness value jump, the brightness value jump occurs again, that is, the modulus of the difference between the brightness values corresponding to the adjacent picture data is greater than the preset threshold again, and the brightness value corresponding to the picture data of the subsequent frame suddenly increases compared with the brightness value corresponding to the picture data of the previous frame, that is, the jump direction is increasing, then two jumps occur in a relatively short period of time, and the jump directions are opposite, so a brightness value pulse occurs.
S505、基于亮度值脉冲,确定发生了闪屏。S505: Determine whether screen flickering occurs based on the brightness value pulse.
检测设备检测到了亮度值脉冲,则可以确定发生了闪屏,并可以确定出现闪屏的画面帧数或者出现闪屏的时间。If the detection device detects a brightness value pulse, it can be determined that a screen flicker has occurred, and the number of picture frames at which the screen flicker has occurred or the time at which the screen flicker has occurred can be determined.
可以理解的是,检测设备在以下条件均满足的情况下,可以确定发生了闪屏:It is understandable that the detection device can determine that a screen flash has occurred when the following conditions are met:
发生了两次跳变;两次跳变的方向相反;两次跳变的画面帧数之差小于预设帧数,或者,两次跳变的时间之差小于预设时长。Two jumps occurred; the directions of the two jumps are opposite; the difference between the number of picture frames of the two jumps is less than the preset number of frames, or the difference between the time of the two jumps is less than the preset duration.
在一种示例中,检测设备检测到发生了两次跳变后,可以先判断两次跳变的画面帧数之差是否小于预设帧数,或者,两次跳变的时间之差是否小于预设时长,在满足条件的情况下,再判断两次跳变的方向是否相反,这种实现方式,有利于快速检测到是否在较短时间内发生多次跳变,可以提高识别脉冲的速度。In one example, after the detection device detects that two jumps have occurred, it can first determine whether the difference in the number of picture frames of the two jumps is less than a preset number of frames, or whether the difference in the time of the two jumps is less than a preset duration. If the conditions are met, it can then determine whether the directions of the two jumps are opposite. This implementation method is conducive to quickly detecting whether multiple jumps have occurred in a short period of time, and can increase the speed of identifying pulses.
本申请实施例提供的闪屏检测方法,在预设帧数或者预设时长内,若亮度值发生两次跳变方向相反的跳变,也就是检测到亮度值脉冲,则确定出现了闪屏现象,有利于提高闪屏的检测准确度。The screen flicker detection method provided in the embodiment of the present application determines that a screen flicker phenomenon has occurred if the brightness value undergoes two jumps in opposite directions within a preset number of frames or a preset duration, that is, a brightness value pulse is detected, which is beneficial to improving the accuracy of screen flicker detection.
上述预设阈值还可以称为亮度阈值,预设帧数或者预设时长可以通过脉宽阈值表示,若检测设备检测到相邻画面数据对应的亮度值之差的模大于亮度阈值,则发生一次亮度值跳变,若在脉宽阈值内,再次检测到亮度值跳变,且亮度值跳变方向相反,则发生了一次亮度值脉冲。该亮度值脉冲还可以称为亮度值窄脉冲。The above-mentioned preset threshold value can also be called a brightness threshold value, and the preset number of frames or the preset duration can be represented by a pulse width threshold value. If the detection device detects that the modulus of the difference between the brightness values corresponding to the adjacent picture data is greater than the brightness threshold value, a brightness value jump occurs. If the brightness value jump is detected again within the pulse width threshold value, and the brightness value jump direction is opposite, a brightness value pulse occurs. This brightness value pulse can also be called a brightness value narrow pulse.
示例性地,图8示出了一种检测亮度值窄脉冲的示意图。如图8所示,亮度阈值用字母T表示,脉宽阈值用字母W表示。第n帧或者在n时间时,画面数据的平均亮度值可以为Ln,前一帧画面数据的平均亮度值可以为Ln-1,相邻画面数据对应的亮度值之差可以为Ln-Ln-1,Ln-Ln-1可以记为ΔLn,若相邻画面数据对应的亮度值之差ΔLn的模大于T,即ΔLn>T,则发生一次亮度值跳变,检测设备可以记录n值和ΔLn。检测设备可以寻找反方向的亮度值跳变。若第m帧或者在m时间时,画面数据的平均亮度值可以为Lm,前一帧画面数据的平均亮度值可以为Lm-1,相邻画面数据对应的亮度值之差可以为Lm-Lm-1,Lm-Lm-1可以记为ΔLm,若相邻画面数据对应的亮度值之差ΔLm的模大于T,即ΔLm>T,则又发生一次亮度值跳变。若ΔLn*ΔLm<0,则说明两次跳变方向相反,脉冲发生。若m-n<W,则可以说明是窄脉冲,则出现闪屏。Exemplarily, FIG8 shows a schematic diagram of detecting a narrow pulse of brightness value. As shown in FIG8 , the brightness threshold is represented by the letter T, and the pulse width threshold is represented by the letter W. In the nth frame or at the time n, the average brightness value of the picture data may be L n , the average brightness value of the previous frame of picture data may be L n-1 , the difference in brightness values corresponding to adjacent picture data may be L n -L n-1 , L n -L n-1 may be recorded as ΔL n , if the modulus of the difference in brightness values corresponding to adjacent picture data ΔL n is greater than T, that is, ΔL n >T, then a brightness value jump occurs, and the detection device may record the n value and ΔL n . The detection device may look for brightness value jumps in the opposite direction. If the average brightness value of the picture data in the mth frame or at the mth time is Lm , the average brightness value of the previous frame of picture data is Lm -1 , the difference in brightness values corresponding to adjacent picture data is Lm - Lm-1 , Lm - Lm-1 can be recorded as ΔLm , if the modulus of the difference in brightness values corresponding to adjacent picture data ΔLm is greater than T, that is, ΔLm >T, then another brightness value jump occurs. If ΔLn * ΔLm <0, it means that the two jump directions are opposite and a pulse occurs. If mn<W, it can be said that it is a narrow pulse, and a flickering screen occurs.
若检测设备检测到宽脉冲,则可以确定未出现闪屏,可以再继续寻找跳变点。If the detection device detects a wide pulse, it can be determined that no screen flicker occurs and the search for the transition point can continue.
示例性地,图9示出了一种检测亮度值宽脉冲的示意图。如图9所示,亮度阈值用字母T表示,脉宽阈值用字母W表示。第n帧或者在n时间时,相邻画面数据对应的亮度值之差的模大于T,则发生一次亮度值跳变。第m帧或者在m时间时,相邻画面数据对应的亮度值之差的模大于T,则又发生一次亮度值跳变。第一次亮度值跳变的方向为升高,第二次亮度值跳变的方向为降低,则两次跳变方向相反,脉冲发生。m-n>W,则可以说明是宽脉冲,故未出现闪屏。Exemplarily, FIG9 shows a schematic diagram of detecting a brightness value wide pulse. As shown in FIG9 , the brightness threshold is represented by the letter T, and the pulse width threshold is represented by the letter W. In the nth frame or at the time n, if the modulus of the difference in brightness values corresponding to the adjacent picture data is greater than T, a brightness value jump occurs. In the mth frame or at the time m, if the modulus of the difference in brightness values corresponding to the adjacent picture data is greater than T, another brightness value jump occurs. If the direction of the first brightness value jump is increasing, and the direction of the second brightness value jump is decreasing, the two jump directions are opposite, and a pulse occurs. If m-n>W, it can be explained that it is a wide pulse, so no screen flicker occurs.
作为一个可选的实施例,上述获取终端设备实时显示的连续画面数据的两种实现方式,可以同时进行,以便于对闪屏的原因进行定位。As an optional embodiment, the above two implementation methods of acquiring continuous picture data displayed in real time by the terminal device can be performed simultaneously to facilitate locating the cause of the screen flickering.
检测设备可以在接收来自终端设备从内存或者显存中实时获取的连续画面数据的同时,还通过高速相机采集显示连续画面数据的屏幕画面,并通过亮度传感器采集屏幕的亮度值。需要说明的是,亮度传感器采集屏幕的亮度值为屏幕本身的亮度值与画面数据的亮度值的叠加。The detection device can receive the continuous picture data obtained from the terminal device in real time from the memory or video memory, and can also collect the screen image showing the continuous picture data through a high-speed camera, and collect the brightness value of the screen through a brightness sensor. It should be noted that the brightness value of the screen collected by the brightness sensor is the superposition of the brightness value of the screen itself and the brightness value of the picture data.
检测设备可以计算从内存或者显存中实时获取的连续画面数据对应的亮度值,并绘制亮度值波形A,检测设备还可以基于亮度传感器采集的屏幕的亮度值,并绘制亮度值波形B。检测设备可以基于亮度值波形A和亮度值波形B,对闪屏的原因进行定位。The detection device can calculate the brightness value corresponding to the continuous picture data obtained in real time from the memory or video memory, and draw the brightness value waveform A. The detection device can also draw the brightness value waveform B based on the brightness value of the screen collected by the brightness sensor. The detection device can locate the cause of the screen flicker based on the brightness value waveform A and the brightness value waveform B.
具体地,若检测设备检测到亮度值波形A中第i帧画面数据至第j帧画面数据对应的亮度值出现脉冲,且亮度值波形B中第i帧画面数据至第j帧画面数据对应的亮度值也出现了脉冲,则检测设备可以确定屏幕没有显示问题,是因为画面数据而发生闪屏,可以进一步在终端设备的软件配置中查找具体发生闪屏的原因。Specifically, if the detection device detects that a pulse appears in the brightness values corresponding to the i-th frame screen data to the j-th frame screen data in the brightness value waveform A, and a pulse also appears in the brightness values corresponding to the i-th frame screen data to the j-th frame screen data in the brightness value waveform B, then the detection device can determine that there is no display problem on the screen, and that the screen flickers due to the screen data, and the specific cause of the screen flicker can be further found in the software configuration of the terminal device.
若检测设备检测到亮度值波形A中第i帧画面数据至第j帧画面数据对应的亮度值出现脉冲,但亮度值波形B中第i帧画面数据至第j帧画面数据对应的亮度值未出现脉冲,则检测设备可以确定屏幕存在显示问题,可能出现故障。If the detection device detects that a pulse appears in the brightness values corresponding to the i-th frame data to the j-th frame data in the brightness value waveform A, but no pulse appears in the brightness values corresponding to the i-th frame data to the j-th frame data in the brightness value waveform B, the detection device can determine that there is a display problem with the screen and a possible fault has occurred.
若检测设备检测到亮度值波形A中第i帧画面数据至第j帧画面数据对应的亮度值未出现脉冲,但亮度值波形B中第i帧画面数据至第j帧画面数据对应的亮度值出现了脉冲,则检测设备可以确定屏幕存在显示问题。If the detection device detects that there is no pulse in the brightness values corresponding to the i-th frame data to the j-th frame data in the brightness value waveform A, but there is a pulse in the brightness values corresponding to the i-th frame data to the j-th frame data in the brightness value waveform B, the detection device can determine that there is a display problem on the screen.
若检测设备检测到亮度值波形A中第i帧画面数据至第j帧画面数据对应的亮度值未出现脉冲,但亮度值波形B中第i帧画面数据至第j帧画面数据对应的亮度值未出现脉冲,则检测设备可以确定终端设备显示画面数据良好。If the detection device detects that there is no pulse in the brightness values corresponding to the i-th frame picture data to the j-th frame picture data in the brightness value waveform A, but there is no pulse in the brightness values corresponding to the i-th frame picture data to the j-th frame picture data in the brightness value waveform B, then the detection device can determine that the terminal device displays good picture data.
上述本申请实施例提供的方法可以由检测设备执行,检测设备可以包括显示图像获取模块,闪屏判断模块以及后续处理模块。其中,显示图像获取模块用于获取画面数据,闪屏判断模块用于对画面数据中是否出现闪屏,后续处理模块用于在出现闪屏的情况下,对闪屏的画面数据进行处理。The method provided in the above embodiment of the present application can be executed by a detection device, which may include a display image acquisition module, a flash screen judgment module, and a subsequent processing module. The display image acquisition module is used to acquire screen data, the flash screen judgment module is used to determine whether a flash screen appears in the screen data, and the subsequent processing module is used to process the screen data of the flash screen if a flash screen appears.
示例性地,显示图像获取模块可以执行上述S501,显示图像获取模块可以向闪屏判断模块发送连续画面数据,闪屏判断模块接收该连续画面数据后,可以执行上述S502~S505。闪屏判断模块确定发生了闪屏之后,可以向后续处理模块发送指示信息,该指示信息用于指示后续处理模块对闪屏的画面数据进行处理。闪屏判断模块可以基于该指示信息,可以生成系统日志,以便于相关人员利用系统日志进行问题排查,尽快发现终端设备中存在的故障。Exemplarily, the display image acquisition module can execute the above S501, and the display image acquisition module can send continuous screen data to the flash screen judgment module. After receiving the continuous screen data, the flash screen judgment module can execute the above S502 to S505. After the flash screen judgment module determines that a flash screen has occurred, it can send indication information to the subsequent processing module, and the indication information is used to instruct the subsequent processing module to process the screen data of the flash screen. The flash screen judgment module can generate a system log based on the indication information, so that relevant personnel can use the system log to troubleshoot problems and find faults in the terminal device as soon as possible.
上述实施例中各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。The size of the serial number of each process in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
上文中结合图1至图9,详细描述了本申请实施例提供的方法,下面将结合图10和图11,详细描述本申请实施例提供的装置。The method provided in the embodiment of the present application is described in detail above in conjunction with Figures 1 to 9 , and the device provided in the embodiment of the present application will be described in detail below in conjunction with Figures 10 and 11 .
图10示出了本申请实施例提供的一种闪屏检测装置1000的示意性框图。如图10所示,该闪屏检测装置1000包括:获取模块1010和处理模块1020。其中,获取模块1010用于:获取终端设备显示的第一画面的第一亮度值、终端设备显示的第二画面的第二亮度值、终端设备显示的第三画面的第三亮度值和终端设备显示的第四画面的第四亮度值,第二画面为第一画面之后的第一帧画面,第四画面为第三画面之后的第一帧画面,第四画面与第二画面之间间隔的帧的数量小于或等于第一数值,或第四画面与第二画面之间间隔的时长小于或等于时长阈值;处理模块1020用于:若第二亮度值与第一亮度值之间发生第一跳变,第四亮度值与第三亮度值之间发生第二跳变,且第一跳变的方向与第二跳变的方向相反,则确定终端设备发生了闪屏。FIG10 shows a schematic block diagram of a screen flash detection device 1000 provided in an embodiment of the present application. As shown in FIG10 , the screen flash detection device 1000 includes: an acquisition module 1010 and a processing module 1020. The acquisition module 1010 is used to: acquire a first brightness value of a first picture displayed by a terminal device, a second brightness value of a second picture displayed by a terminal device, a third brightness value of a third picture displayed by a terminal device, and a fourth brightness value of a fourth picture displayed by a terminal device, wherein the second picture is the first frame picture after the first picture, the fourth picture is the first frame picture after the third picture, the number of frames between the fourth picture and the second picture is less than or equal to the first value, or the duration between the fourth picture and the second picture is less than or equal to the duration threshold; the processing module 1020 is used to: if a first jump occurs between the second brightness value and the first brightness value, a second jump occurs between the fourth brightness value and the third brightness value, and the direction of the first jump is opposite to the direction of the second jump, then it is determined that a screen flash has occurred in the terminal device.
可选地,第一跳变的方向为亮度值增加的方向,第二跳变的方向为亮度值减小的方向;或者,第一跳变的方向为亮度值减小的方向,第二跳变的方向为亮度值增加的方向。Optionally, the direction of the first jump is a direction in which the brightness value increases, and the direction of the second jump is a direction in which the brightness value decreases; or, the direction of the first jump is a direction in which the brightness value decreases, and the direction of the second jump is a direction in which the brightness value increases.
可选地,第一跳变的亮度跳变值与第二跳变的亮度跳变值的乘积小于0。Optionally, a product of a brightness transition value of the first transition and a brightness transition value of the second transition is less than 0.
可选地,获取模块1010还用于:从终端设备的内存空间中获取第一画面、第二画面、第三画面以及第四画面中至少一个。Optionally, the acquisition module 1010 is further used to: acquire at least one of the first picture, the second picture, the third picture and the fourth picture from the memory space of the terminal device.
可选地,获取模块1010还用于:通过相机获取第一画面、第二画面、第三画面以及第四画面中至少一个。Optionally, the acquisition module 1010 is further used to: acquire at least one of the first picture, the second picture, the third picture and the fourth picture through a camera.
可选地,获取模块1010还用于:通过亮度传感器采集第一亮度值、第二亮度值、第三亮度值和第四亮度值中至少一个。Optionally, the acquisition module 1010 is further configured to: collect at least one of the first brightness value, the second brightness value, the third brightness value, and the fourth brightness value through a brightness sensor.
可选地,处理模块1020还用于:计算第一亮度值与第二亮度值的差值;若差值的模大于或等于亮度差阈值,则确定第二亮度值与第一亮度值之间发生第一跳变。Optionally, the processing module 1020 is further used to: calculate the difference between the first brightness value and the second brightness value; if the modulus of the difference is greater than or equal to the brightness difference threshold, determine that a first jump occurs between the second brightness value and the first brightness value.
应理解,这里的闪屏检测装置1000以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选的例子中,本领域技术人员可以理解,闪屏检测装置1000可以具体为上述方法实施例中的检测设备,或者,上述方法实施例中检测设备的功能可以集成在闪屏检测装置1000中,闪屏检测装置1000可以用于执行上述方法实施例中与检测设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the flash screen detection device 1000 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and/or other suitable components that support the described functions. In an optional example, those skilled in the art may understand that the flash screen detection device 1000 may be specifically the detection device in the above-mentioned method embodiment, or the function of the detection device in the above-mentioned method embodiment may be integrated in the flash screen detection device 1000, and the flash screen detection device 1000 may be used to execute the various processes and/or steps corresponding to the detection device in the above-mentioned method embodiment, and in order to avoid repetition, it will not be repeated here.
上述闪屏检测装置1000具有实现上述方法实施例中检测设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。The above-mentioned screen flash detection device 1000 has the function of implementing the corresponding steps performed by the detection device in the above-mentioned method embodiment; the above-mentioned function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned function.
在本申请的实施例中,图10中的闪屏检测装置1000也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。In an embodiment of the present application, the screen flash detection device 1000 in FIG. 10 may also be a chip or a chip system, for example, a system on chip (SoC).
图11是本申请实施例提供的另一种闪屏检测装置1100的示意性框图。如图11所示,该闪屏检测装置1100包括:处理器1110、收发器1120和存储器1130。其中,处理器1110、收发器1120和存储器1130通过内部连接通路互相通信,该存储器1130用于存储指令,该处理器1110用于执行该存储器1130存储的指令,以控制该收发器1120发送信号和/或接收信号。FIG11 is a schematic block diagram of another flash screen detection device 1100 provided in an embodiment of the present application. As shown in FIG11 , the flash screen detection device 1100 includes: a processor 1110, a transceiver 1120, and a memory 1130. The processor 1110, the transceiver 1120, and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is used to store instructions, and the processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send and/or receive signals.
应理解,闪屏检测装置1100可以具体为上述方法实施例中的检测设备,或者,上述方法实施例中检测设备的功能可以集成在闪屏检测装置1100中,闪屏检测装置1100可以用于执行上述方法实施例中与检测设备对应的各个步骤和/或流程。可选地,该存储器1130可以包括只读存储器和随机存取存储器,并向处理器1110提供指令和数据。存储器1130的一部分还可以包括非易失性随机存取存储器。例如,存储器1130还可以存储设备类型的信息。该处理器1110可以用于执行存储器1130中存储的指令,并且该处理器1110执行该指令时,该处理器1110可以执行上述方法实施例中与检测设备对应的各个步骤和/或流程。It should be understood that the flash screen detection device 1100 can be specifically the detection device in the above method embodiment, or the function of the detection device in the above method embodiment can be integrated in the flash screen detection device 1100, and the flash screen detection device 1100 can be used to execute the various steps and/or processes corresponding to the detection device in the above method embodiment. Optionally, the memory 1130 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1110. A portion of the memory 1130 may also include a non-volatile random access memory. For example, the memory 1130 may also store information about the device type. The processor 1110 can be used to execute instructions stored in the memory 1130, and when the processor 1110 executes the instruction, the processor 1110 can execute the various steps and/or processes corresponding to the detection device in the above method embodiment.
应理解,在本申请实施例中,该处理器1110可以是中央处理单元(centralprocessing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor 1110 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序用于实现上述方法实施例中检测设备对应的方法。The present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is used to implement the method corresponding to the detection device in the above method embodiment.
本申请还提供了一种芯片系统,该芯片系统用于支持上述方法实施例中检测设备实现本申请实施例所示的功能。The present application also provides a chip system, which is used to support the detection device in the above method embodiment to implement the functions shown in the embodiment of the present application.
本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序(也可以称为代码,或指令),当该计算机程序在计算机上运行时,该计算机可以执行上述方法实施例所示的检测设备对应的方法。The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method corresponding to the detection device shown in the above method embodiment.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310151061.7A CN117156210B (en) | 2023-02-07 | 2023-02-07 | Flicker screen detection method and flicker screen detection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310151061.7A CN117156210B (en) | 2023-02-07 | 2023-02-07 | Flicker screen detection method and flicker screen detection device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117156210A CN117156210A (en) | 2023-12-01 |
CN117156210B true CN117156210B (en) | 2024-07-23 |
Family
ID=88908800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310151061.7A Active CN117156210B (en) | 2023-02-07 | 2023-02-07 | Flicker screen detection method and flicker screen detection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117156210B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113365103A (en) * | 2021-06-02 | 2021-09-07 | 深圳市帧彩影视科技有限公司 | Automatic bad frame detection method, device, equipment, storage medium and program product |
CN113496477A (en) * | 2020-04-07 | 2021-10-12 | 华为技术有限公司 | Screen detection method and electronic equipment |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3823314B2 (en) * | 2001-12-18 | 2006-09-20 | ソニー株式会社 | Imaging signal processing apparatus and flicker detection method |
CN100391232C (en) * | 2005-01-07 | 2008-05-28 | 智辉研发股份有限公司 | digital image flash scene detection and elimination method |
EP2262228A1 (en) * | 2009-06-09 | 2010-12-15 | Global IP Solutions (GIPS) AB | Detection and supression of flicker in a sequence of images |
CN102222456B (en) * | 2010-04-16 | 2013-05-29 | 北京京东方光电科技有限公司 | Common electrode driving method, circuit and liquid crystal displayer |
WO2013069515A1 (en) * | 2011-11-07 | 2013-05-16 | シャープ株式会社 | Display device and method for driving same |
JP2016014834A (en) * | 2014-07-03 | 2016-01-28 | 株式会社リコー | Image processing apparatus, image processing method, and program |
CN111045876A (en) * | 2019-11-12 | 2020-04-21 | 广州视源电子科技股份有限公司 | Splash screen detection method and device, storage medium and electronic equipment |
CN112669768B (en) * | 2020-12-29 | 2022-06-10 | 深圳Tcl数字技术有限公司 | LED display screen brightness adjusting method, device and equipment and readable storage medium |
CN113707072B (en) * | 2021-09-03 | 2023-01-31 | 合肥维信诺科技有限公司 | Flicker debugging method and device for display panel |
CN114222110A (en) * | 2021-10-20 | 2022-03-22 | 浙江工商职业技术学院 | Video flicker detection method and device |
CN114038416B (en) * | 2021-10-22 | 2023-02-28 | 合肥维信诺科技有限公司 | Flicker determination method and flicker determination device |
CN114202519B (en) * | 2021-12-02 | 2025-02-14 | 中国联合网络通信集团有限公司 | Video flicker determination method, device, equipment and storage medium |
CN114323594B (en) * | 2022-01-04 | 2024-09-24 | 合肥维信诺科技有限公司 | Testing method, processing equipment and testing device of display device |
CN114582287B (en) * | 2022-04-21 | 2023-01-03 | 武汉天马微电子有限公司 | Display panel and display device |
-
2023
- 2023-02-07 CN CN202310151061.7A patent/CN117156210B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113496477A (en) * | 2020-04-07 | 2021-10-12 | 华为技术有限公司 | Screen detection method and electronic equipment |
CN113365103A (en) * | 2021-06-02 | 2021-09-07 | 深圳市帧彩影视科技有限公司 | Automatic bad frame detection method, device, equipment, storage medium and program product |
Also Published As
Publication number | Publication date |
---|---|
CN117156210A (en) | 2023-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8169501B2 (en) | Output apparatus, output method and program | |
US20210409597A1 (en) | Image processing apparatus and output information control method | |
JP2765674B2 (en) | Data supply device | |
US9204086B2 (en) | Method and apparatus for transmitting and using picture descriptive information in a frame rate conversion processor | |
US20180232943A1 (en) | System and method for generating a virtual viewpoint apparatus | |
WO2022237591A1 (en) | Moving object identification method and apparatus, electronic device, and readable storage medium | |
CN113766217B (en) | Video delay testing method and device, electronic equipment and storage medium | |
CN110300326B (en) | Video jamming detection method and device, electronic equipment and storage medium | |
CN111416979B (en) | Self-adaptive decoding method and device | |
CN102314057B (en) | Device and method for improving rainbow effect and color sequential display | |
CN110930340B (en) | Image processing method and device | |
CN117156210B (en) | Flicker screen detection method and flicker screen detection device | |
US20220036093A1 (en) | Information processing apparatus, information processing method, and storage medium | |
JP3327520B2 (en) | Shooting method with NG warning function, shooting apparatus with NG warning function, and recording medium storing shooting program | |
JP5074067B2 (en) | Suspicious object monitoring device | |
CN115361545B (en) | Video delay detection method and detection system | |
JPH10247135A (en) | Message display device and display method | |
JP2018073129A (en) | Image processing device, image processing system, image processing method and program | |
CN112527539B (en) | Interface detection method and related device | |
JP5150943B2 (en) | Monitoring system, monitoring method, and program | |
CN101094422B (en) | Apparatus and method for detecting motion in consecutive images | |
CN114783192A (en) | Signal lamp color processing method and device | |
CN111179317A (en) | Interactive teaching system and method | |
JP2001014471A (en) | Image pattern comparing device, image pattern change detector, device and system for monitoring | |
CN116156253B (en) | Visualization method for video monitoring on intelligent large screen |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |