[go: up one dir, main page]

CN115423795A - Still frame detection method, electronic device and storage medium - Google Patents

Still frame detection method, electronic device and storage medium Download PDF

Info

Publication number
CN115423795A
CN115423795A CN202211153932.0A CN202211153932A CN115423795A CN 115423795 A CN115423795 A CN 115423795A CN 202211153932 A CN202211153932 A CN 202211153932A CN 115423795 A CN115423795 A CN 115423795A
Authority
CN
China
Prior art keywords
image
detected
optical flow
moving object
moving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211153932.0A
Other languages
Chinese (zh)
Inventor
王凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202211153932.0A priority Critical patent/CN115423795A/en
Publication of CN115423795A publication Critical patent/CN115423795A/en
Priority to PCT/CN2022/142038 priority patent/WO2024060448A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

本申请公开了一种静帧检测方法、电子设备及存储介质,所述静帧检测方法包括:获取待检测图像以及位于所述待检测图像前一帧的第一参照图像;若根据帧间差分算法、所述待检测图像和所述第一参照图像,检测到第一运动目标,则根据所述第一运动目标的第一运动方向,判断所述第一运动目标是否处于打字状态;若确定所述第一运动目标不处于打字状态,则根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标;若在所述待检测图像中未检测到第二运动目标,则判定当前显示画面为静帧画面。本申请解决了解决现有技术静帧检测的准确性较低的技术问题。

Figure 202211153932

The present application discloses a still frame detection method, an electronic device and a storage medium. The still frame detection method includes: acquiring an image to be detected and a first reference image located one frame before the image to be detected; The algorithm, the image to be detected and the first reference image detect a first moving object, then judge whether the first moving object is in a typing state according to the first moving direction of the first moving object; if determined The first moving object is not in the typing state, then according to the optical flow algorithm, the image to be detected and the first reference image, detect the second moving object; if the second moving object is not detected in the image to be detected target, it is determined that the currently displayed image is a still frame image. The present application solves the technical problem of low accuracy of static frame detection in the prior art.

Figure 202211153932

Description

静帧检测方法、电子设备及存储介质Still frame detection method, electronic device and storage medium

技术领域technical field

本申请涉及图像显示技术领域,尤其涉及一种静帧检测方法、电子设备及存储介质。The present application relates to the technical field of image display, and in particular to a still frame detection method, electronic equipment and a storage medium.

背景技术Background technique

随着广播电视和视频监控等行业的迅速发展,视频数字化程度不断加快,准确安全且连续的播放视频的要求越来越高。在视频播放的过程中检测视频图像中是否有物体运动,即判断该视频信号是否存在静止现象,以便于及时做出补救措施,确保电视节目播出的完整和稳定性,确保视频监控的实时性和安全性,例如,在视频监控领域,安保人员需要挨个对着多台显示屏进行观察,确保视频中未出现到危险情况,若显示屏过多,安保人员必然处理不过来,在这个过程中出现视频静止,危险情况未及时发现,这将带来很大的安全隐患,人工检测视频是否出现静止状态危险系数高,且易出现工作人员疲劳无法及时发现异常情况。目前对视频信号中的静帧的检测方法主要是对画面全局进行检测,通过对图像进行分区,确定静帧分区的数量,将静帧分区数量大于阈值的判定为静止图像,然而,这种方式对于运动幅度小或运动目标较小的情况容易造成误判,导致静帧检测的准确率降低。With the rapid development of industries such as radio and television and video surveillance, the degree of digitalization of video is accelerating, and the requirements for accurate, safe and continuous video playback are getting higher and higher. Detect whether there is movement of objects in the video image during video playback, that is, judge whether the video signal is static, so as to make timely remedial measures, ensure the integrity and stability of TV program broadcasting, and ensure the real-time performance of video surveillance and security. For example, in the field of video surveillance, security personnel need to observe multiple display screens one by one to ensure that no dangerous situations appear in the video. If there are too many display screens, security personnel will inevitably be unable to handle them. If the video is still and the dangerous situation is not detected in time, this will bring great safety hazards. Manual detection of whether the video is in a static state has a high risk factor, and it is prone to fatigue of the staff and cannot detect abnormal situations in time. At present, the method for detecting still frames in video signals is mainly to detect the whole picture. By partitioning the image, the number of still frame partitions is determined, and the number of still frame partitions greater than the threshold is determined as a still image. However, this method It is easy to cause misjudgment when the motion range is small or the moving target is small, resulting in a decrease in the accuracy of still frame detection.

发明内容Contents of the invention

本申请的主要目的在于提供一种静帧检测方法、电子设备及存储介质,旨在解决现有技术静帧检测的准确性较低的技术问题。The main purpose of the present application is to provide a still frame detection method, an electronic device and a storage medium, aiming at solving the technical problem of low accuracy of still frame detection in the prior art.

为实现上述目的,本申请提供一种静帧检测方法,所述静帧检测方法包括:In order to achieve the above purpose, the present application provides a still frame detection method, the still frame detection method comprising:

获取待检测图像以及位于所述待检测图像前一帧的第一参照图像;Acquiring an image to be detected and a first reference image located one frame before the image to be detected;

若根据帧间差分算法、所述待检测图像和所述第一参照图像,检测到第一运动目标,则根据所述第一运动目标的第一运动方向,判断所述第一运动目标是否处于打字状态;If the first moving object is detected according to the inter-frame difference algorithm, the image to be detected and the first reference image, then according to the first moving direction of the first moving object, it is judged whether the first moving object is in Typing status;

若确定所述第一运动目标不处于打字状态,则根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标;If it is determined that the first moving object is not in the typing state, then detecting the second moving object according to the optical flow algorithm, the image to be detected and the first reference image;

若在所述待检测图像中未检测到第二运动目标,则判定当前显示画面为静帧画面。If no second moving object is detected in the image to be detected, it is determined that the currently displayed image is a still frame image.

可选地,所述若在所述待检测图像中未检测到第二运动目标,则判定所述待检测图像为静帧画面的步骤包括:Optionally, if the second moving target is not detected in the image to be detected, the step of determining that the image to be detected is a still picture includes:

若在所述待检测图像中未检测到第二运动目标,则判定所述当前显示画面为疑似静帧画面;If no second moving object is detected in the image to be detected, then determining that the currently displayed image is a suspected still frame image;

获取所述待检测图像之前预设第一数量帧的历史待检测图像对应的疑似静帧画面历史检测结果;Acquiring historical detection results of suspected still frame pictures corresponding to the historical images to be detected by a preset first number of frames before the image to be detected;

若各所述疑似静帧画面历史检测结果中,判定为疑似静帧画面的次数大于或等于预设次数阈值,则判定当前显示画面为静帧画面。If it is determined that the number of suspected freeze-frame pictures is greater than or equal to a preset number of times threshold in the history detection results of each suspected freeze-frame picture, then it is determined that the currently displayed picture is a freeze-frame picture.

可选地,所述光流算法包括稀疏光流算法,所述根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标的步骤包括:Optionally, the optical flow algorithm includes a sparse optical flow algorithm, and the step of detecting the second moving target according to the optical flow algorithm, the image to be detected and the first reference image includes:

检测所述第一参照图像中的第一角点;detecting a first corner point in the first reference image;

根据稀疏光流算法,从所述待检测图像中确定与所述第一角点相匹配的第二角点,相互匹配的第一角点和第二角点组成角点对;According to the sparse optical flow algorithm, a second corner point matching the first corner point is determined from the image to be detected, and the matched first corner point and the second corner point form a corner point pair;

根据角点对的相对位置关系,判断所述待检测图像中是否存在第二运动目标。According to the relative positional relationship of the pair of corner points, it is judged whether there is a second moving object in the image to be detected.

可选地,所述根据角点对的相对位置关系,判断所述待检测图像中是否存在第二运动目标的步骤包括:Optionally, the step of judging whether there is a second moving object in the image to be detected according to the relative positional relationship between the corner point pairs includes:

在预设画布上,确定各所述角点对中的第一角点和第二角点的位置;On the preset canvas, determining the positions of the first corner point and the second corner point in each pair of corner points;

连接各所述角点对中的第一角点和第二角点,得到角点对连线;connecting the first corner point and the second corner point in each of the corner point pairs to obtain a connecting line between the corner point pairs;

若在所述画布的预设非边缘区域检测到所述角点对连线,则判定所述待检测图像中存在第二运动目标。If the pair of corner points is detected in the preset non-edge area of the canvas, it is determined that there is a second moving object in the image to be detected.

可选地,所述光流算法包括稠密光流算法,所述根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标的步骤包括:Optionally, the optical flow algorithm includes a dense optical flow algorithm, and the step of detecting the second moving target according to the optical flow algorithm, the image to be detected and the first reference image includes:

根据光流算法、所述待检测图像和所述第一参照图像,确定所述待检测图像中每个像素点对应的光流矢量;determining an optical flow vector corresponding to each pixel in the image to be detected according to an optical flow algorithm, the image to be detected, and the first reference image;

根据所述光流矢量的光流模长和光流方向,生成光流图像;generating an optical flow image according to the optical flow mode length and the optical flow direction of the optical flow vector;

若在所述光流图像中检测到运动图像,则判定所述待检测图像中存在的第二运动目标。If a moving image is detected in the optical flow image, it is determined that a second moving object exists in the image to be detected.

可选地,所述若在所述光流图像中检测到运动图像,则判定所述待检测图像中存在的第二运动目标的步骤包括:Optionally, if a moving image is detected in the optical flow image, the step of determining the second moving object existing in the image to be detected includes:

将所述光流图像灰度化,得到光流灰度图;Grayscale the optical flow image to obtain an optical flow grayscale image;

对所述光流灰度图进行自适应二值化,得到待检测图像;performing adaptive binarization on the optical flow grayscale image to obtain an image to be detected;

根据轮廓发现算法确定所述待检测图像中的运动图像的第二轮廓;determining a second contour of the moving image in the image to be detected according to a contour finding algorithm;

若在所述待检测图像的预设非边缘区域中检测到第二轮廓,则判定所述待检测图像中存在的第二运动目标。If the second contour is detected in the preset non-edge area of the image to be detected, then determine the second moving object existing in the image to be detected.

可选地,所述根据所述第一运动目标的第一运动方向,判断所述第一运动目标是否处于打字状态的步骤包括:Optionally, the step of judging whether the first moving object is in a typing state according to the first moving direction of the first moving object includes:

根据轮廓发现算法,确定各所述第一运动目标各自对应的目标轮廓;According to the contour finding algorithm, determine the respective target contours corresponding to each of the first moving targets;

从各所述目标轮廓中确定面积最大的最大目标轮廓;determining, from each of said object contours, the largest object contour having the largest area;

确定所述最大目标轮廓的最小外接矩形;determining the minimum circumscribed rectangle of the maximum target contour;

若根据所述最小外接矩形的倾斜角度确定所述最小外接矩形处于水平状态或垂直状态,则判定所述第一运动目标处于打字状态。If it is determined according to the inclination angle of the minimum circumscribed rectangle that the minimum circumscribed rectangle is in a horizontal state or a vertical state, then it is determined that the first moving object is in a typing state.

可选地,所述判定当前显示画面为静帧画面的步骤之后,还包括:Optionally, after the step of determining that the currently displayed picture is a still frame picture, it also includes:

获取位于所述待检测图像之前预设第二数量帧的第二参照图像;Acquiring a second reference image that is preset a second number of frames before the image to be detected;

确定所述待检测图像对应的第一峰值信噪比,以及各所述第二参照图像对应的第二峰值信噪比的信噪比均值;determining the first peak signal-to-noise ratio corresponding to the image to be detected, and the average signal-to-noise ratio of the second peak signal-to-noise ratio corresponding to each of the second reference images;

若所述第一峰值信噪比与所述信噪比均值之间的差值大于或等于预设差值阈值,则确定所述静帧画面受到噪声干扰;If the difference between the first peak signal-to-noise ratio and the average value of the signal-to-noise ratio is greater than or equal to a preset difference threshold, it is determined that the still-frame picture is disturbed by noise;

若所述第一峰值信噪比与所述信噪比均值之间的差值小于预设差值阈值,则确定所述静帧画面为完全静帧画面。If the difference between the first peak signal-to-noise ratio and the average value of the signal-to-noise ratio is smaller than a preset difference threshold, it is determined that the still-frame picture is a completely still-frame picture.

本申请还提供一种电子设备,所述电子设备为实体设备,所述电子设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述静帧检测方法的程序,所述静帧检测方法的程序被处理器执行时可实现如上述的静帧检测方法的步骤。The present application also provides an electronic device, the electronic device is a physical device, and the electronic device includes: a memory, a processor, and the still frame detection method stored in the memory and operable on the processor A program of the still frame detection method, when the program of the still frame detection method is executed by a processor, the steps of the above still frame detection method can be realized.

本申请还提供一种存储介质,所述存储介质为计算机可读存储介质,所述计算机可读存储介质上存储有实现静帧检测方法的程序,所述静帧检测方法的程序被处理器执行时实现如上述的静帧检测方法的步骤。The present application also provides a storage medium, the storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a program for implementing a still frame detection method, and the program for the still frame detection method is executed by a processor When realizing the steps of the still frame detection method as above.

本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的静帧检测方法的步骤。The present application also provides a computer program product, including a computer program, when the computer program is executed by a processor, the steps of the above still frame detection method are realized.

本申请提供了一种静帧检测方法、电子设备及存储介质,通过获取待检测图像以及位于所述待检测图像前一帧的第一参照图像,若根据帧间差分算法、所述待检测图像和所述第一参照图像,检测到第一运动目标,则根据所述第一运动目标的第一运动方向,判断所述第一运动目标是否处于打字状态,实现了通过帧间差分算法对前后两帧图像中的第一运动目标是否处于打字状态的检测,进而通过若确定所述第一运动目标不处于打字状态,则根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标,实现了通过光流算法对不处于打字状态的第二运动目标的检测,进而通过若在所述待检测图像中未检测到第二运动目标,则判定当前显示画面为静帧画面,实现了静帧检测。由于打字状态下,整体画面中的像素点的变化非常小,静帧分区检测或光流法均难以检测到,或者容易判定为噪声或误差,导致对静帧画面的误判,本申请通过帧间差分算法可以快速检测出打字状态,而对于不处于打字状态的第二运动目标,可以进一步通过光流法进行准确的检测,相比于静帧分区检测,对于类似光标移动这种细微像素点的移动变化的检测准确性更高,故而可以有效提高静帧检测的准确性,克服了解决现有技术静帧检测的准确性较低的技术问题。The present application provides a still frame detection method, electronic equipment and a storage medium. By acquiring an image to be detected and a first reference image located one frame before the image to be detected, if according to the inter-frame difference algorithm, the image to be detected and the first reference image, if the first moving object is detected, then according to the first moving direction of the first moving object, it is judged whether the first moving object is in the typing state, and the front and rear through the frame difference algorithm are realized. The detection of whether the first moving object in the two frames of images is in the typing state, and then if it is determined that the first moving object is not in the typing state, then according to the optical flow algorithm, the image to be detected and the first reference image, Detecting the second moving object realizes the detection of the second moving object that is not in the typing state through the optical flow algorithm, and then if the second moving object is not detected in the image to be detected, it is determined that the current display screen is static Frame picture, realized still frame detection. Since the change of pixels in the overall picture is very small in the typing state, it is difficult to detect the still frame partition detection or the optical flow method, or it is easy to judge it as noise or error, resulting in misjudgment of the still frame picture. The difference algorithm can quickly detect the typing state, and for the second moving target that is not in the typing state, it can be further accurately detected by the optical flow method. The detection accuracy of motion changes is higher, so the accuracy of still frame detection can be effectively improved, and the technical problem of low accuracy of still frame detection in the prior art is overcome.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.

图1为本申请实施例中静帧检测方法涉及的硬件运行环境的电子设备结构示意图;FIG. 1 is a schematic structural diagram of an electronic device of a hardware operating environment involved in a still frame detection method in an embodiment of the present application;

图2为本申请实施例中光标移动的场景示意图;FIG. 2 is a schematic diagram of a scene where the cursor moves in the embodiment of the present application;

图3为本申请静帧检测方法一实施例的流程示意图;FIG. 3 is a schematic flow diagram of an embodiment of the still frame detection method of the present application;

图4为本申请实施例中倾斜角度的场景示意图;FIG. 4 is a schematic diagram of a scene of an inclination angle in an embodiment of the present application;

图5为本申请一种可实施方式中图像存储格式转换的场景示意图;FIG. 5 is a schematic diagram of a scene of image storage format conversion in an implementation manner of the present application;

图6为本申请静帧检测方法另一实施例的流程示意图。FIG. 6 is a schematic flowchart of another embodiment of a still frame detection method of the present application.

附图标号说明:Explanation of reference numbers:

标号label 名称name 标号label 名称name 11 前一帧的位置previous frame position 22 当前位置current position 33 最小外接矩形Minimum enclosing rectangle 44 水平线horizontal line 55 垂直线Vertical line 66 倾斜角度slope

本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functions and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式detailed description

为使本发明的上述目的、特征和优点能够更加明显易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其它实施例,均属于本发明保护的范围。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

随着广播电视和视频监控等行业的迅速发展,视频数字化程度不断加快,准确安全且连续的播放视频的要求越来越高。在视频播放的过程中检测视频图像中是否有物体运动,即判断该视频信号是否存在静止现象,以便于及时做出补救措施,确保电视节目播出的完整和稳定性,确保视频监控的实时性和安全性,例如,在视频监控领域,安保人员需要挨个对着多台显示屏进行观察,确保视频中未出现到危险情况,若显示屏过多,安保人员必然处理不过来,在这个过程中出现视频静止,危险情况未及时发现,这将带来很大的安全隐患,人工检测视频是否出现静止状态危险系数高,且易出现工作人员疲劳无法及时发现异常情况。目前对视频信号中的静帧的检测方法主要是利用前后帧的相似关系或者帧内像素分布情况判定画面是否出现静帧,例如,基于像素点YUV的加权累加得到每一帧的加权和,然后对加权和进行对比,但该方法像素点数据量大,加权累加计算必将带来很多的运算开销,算法相对复杂,占用资源多,检测结果也不准确,又例如,对画面全局进行检测,通过对图像进行分区,确定静帧分区的数量,将静帧分区数量大于阈值的判定为静止图像,然而这种方式对于运动幅度小或运动目标较小的情况容易造成误判,导致静帧检测的准确率降低。With the rapid development of industries such as radio and television and video surveillance, the degree of digitalization of video is accelerating, and the requirements for accurate, safe and continuous video playback are getting higher and higher. Detect whether there is movement of objects in the video image during video playback, that is, judge whether the video signal is static, so as to make timely remedial measures, ensure the integrity and stability of TV program broadcasting, and ensure the real-time performance of video surveillance and security. For example, in the field of video surveillance, security personnel need to observe multiple display screens one by one to ensure that no dangerous situations appear in the video. If there are too many display screens, security personnel will inevitably be unable to handle them. If the video is still and the dangerous situation is not detected in time, this will bring great safety hazards. Manual detection of whether the video is in a static state has a high risk factor, and it is prone to fatigue of the staff and cannot detect abnormal situations in time. The current detection method for still frames in video signals is mainly to use the similarity relationship between the front and back frames or the pixel distribution in the frame to determine whether there is a still frame in the picture. For example, the weighted sum of each frame is obtained based on the weighted accumulation of pixel YUV, and then The weighted sum is compared, but this method has a large amount of pixel data, and the weighted accumulation calculation will inevitably bring a lot of computing overhead. The algorithm is relatively complicated, takes up a lot of resources, and the detection result is not accurate. For example, to detect the whole picture, By partitioning the image, the number of still frame partitions is determined, and the number of still frame partitions greater than the threshold is judged as a still image. However, this method is likely to cause misjudgment when the motion range is small or the moving target is small, resulting in still frame detection. accuracy is reduced.

本申请通过帧间差分算法对打字状态的第一运动目标进行快速检测,并通过光流法对不处于打字状态的第二运动目标进行检测,对于由于打字产生的小幅度和小面积变化,通过帧间差分算法可以快速判断运动方向,进行准确识别,而对于其他小幅度和小面积变化,例如光标的移动等,特别是复杂背景下的细小变化,虽然画面中可视的变化结果较小,但其变化过程并不小,参照图1,图1中光标从前一帧的位置1移动到当前位置2,整体画面中甚至没有增加或者减少任何像素点,且背景本身较为复杂,故而光标的这一移动变化难以被检测到,需要说明的是,图1中还将背景中的字体颜色浅化以突出显示光标的变化,在实际用于检测的图像中,光标的变化更难被发现,但其从前一帧的位置1移动到当前位置2的运动轨迹若能够可视化,是很容易被检测到的,故而本申请通过光流法检测运动目标的运动轨迹,可以更加准确地检测到小幅度和小面积变化的运动目标。This application uses the inter-frame difference algorithm to quickly detect the first moving target in the typing state, and uses the optical flow method to detect the second moving target that is not in the typing state. For the small amplitude and small area changes caused by typing, through The inter-frame difference algorithm can quickly determine the direction of motion and perform accurate identification. For other small-amplitude and small-area changes, such as cursor movement, etc., especially small changes in complex backgrounds, although the results of visible changes in the screen are small, But the change process is not small. Referring to Figure 1, in Figure 1, the cursor moves from the position 1 of the previous frame to the current position 2, and there is no increase or decrease of any pixels in the overall picture, and the background itself is relatively complex, so the cursor moves from position 1 to current position 2. It is difficult to detect a movement change. It should be noted that in Figure 1, the font color in the background is also lightened to highlight the change of the cursor. In the actual image used for detection, the change of the cursor is more difficult to be found, but If the movement trajectory from position 1 of the previous frame to the current position 2 can be visualized, it can be easily detected. Therefore, this application detects the movement trajectory of the moving target through the optical flow method, and can more accurately detect small amplitude and A sporty target with small area changes.

参照图2,图2为本申请实施例中静帧检测方法涉及的硬件运行环境的电子设备结构示意图。本公开实施例中的电子设备可以包括但不限于电视机、OLED显示器、LCD(LiquidCrystal Display,液晶显示器)、LED(light-emitting diode,发光二极管)显示器等。Referring to FIG. 2 , FIG. 2 is a schematic structural diagram of an electronic device in a hardware operating environment involved in a still frame detection method in an embodiment of the present application. The electronic device in the embodiments of the present disclosure may include, but not limited to, a television, an OLED display, an LCD (Liquid Crystal Display, liquid crystal display), an LED (light-emitting diode, light-emitting diode) display, and the like.

如图2所示,所述电子设备还包括:处理器1001,例如中央处理器(CentralProcessing Unit,CPU),通信总线1002,网络接口1003,存储器1004。其中,通信总线1002用于实现这些组件之间的连接通信。网络接口1003可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,WI-FI)接口)。存储器1004可以是高速的随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1004可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 2 , the electronic device further includes: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a network interface 1003 , and a memory 1004 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. Optionally, the network interface 1003 may include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1004 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. Optionally, the memory 1004 may also be a storage device independent of the aforementioned processor 1001 .

可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors such as light sensors, motion sensors and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and/or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile terminals (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.

本领域技术人员可以理解,图2中示出的结构并不构成对运行设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 2 does not constitute a limitation on the operating equipment, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

如图2所示,作为一种存储介质的存储器1004中可以包括操作系统、数据存储模块、网络通信模块以及静帧检测程序。As shown in FIG. 2 , the memory 1004 as a storage medium may include an operating system, a data storage module, a network communication module, and a still frame detection program.

在图2所示的运行设备中,网络接口1003主要用于与其他设备进行数据通信。本发明运行设备中的处理器1001、存储器1004可以设置在运行设备中,所述运行设备通过处理器1001调用存储器1004中存储的静帧检测程序,并执行以下操作:In the running device shown in FIG. 2 , the network interface 1003 is mainly used for data communication with other devices. The processor 1001 and the memory 1004 in the running device of the present invention can be set in the running device, and the running device calls the still frame detection program stored in the memory 1004 through the processor 1001, and performs the following operations:

获取待检测图像以及位于所述待检测图像前一帧的第一参照图像;Acquiring an image to be detected and a first reference image located one frame before the image to be detected;

若根据帧间差分算法、所述待检测图像和所述第一参照图像,检测到第一运动目标,则根据所述第一运动目标的第一运动方向,判断所述第一运动目标是否处于打字状态;If the first moving object is detected according to the inter-frame difference algorithm, the image to be detected and the first reference image, then according to the first moving direction of the first moving object, it is judged whether the first moving object is in Typing status;

若确定所述第一运动目标不处于打字状态,则根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标;If it is determined that the first moving object is not in the typing state, then detecting the second moving object according to the optical flow algorithm, the image to be detected and the first reference image;

若在所述待检测图像中未检测到第二运动目标,则判定当前显示画面为静帧画面。If no second moving object is detected in the image to be detected, it is determined that the currently displayed image is a still frame image.

进一步地,处理器1001可以调用存储器1004中存储的静帧检测程序,还执行以下操作:Further, the processor 1001 may call the still frame detection program stored in the memory 1004, and also perform the following operations:

若在所述待检测图像中未检测到第二运动目标,则判定所述当前显示画面为疑似静帧画面;If no second moving object is detected in the image to be detected, then determining that the currently displayed image is a suspected still frame image;

获取所述待检测图像之前预设第一数量帧的历史待检测图像对应的疑似静帧画面历史检测结果;Acquiring historical detection results of suspected still frame pictures corresponding to the historical images to be detected by a preset first number of frames before the image to be detected;

若各所述疑似静帧画面历史检测结果中,判定为疑似静帧画面的次数大于或等于预设次数阈值,则判定当前显示画面为静帧画面。If it is determined that the number of suspected freeze-frame pictures is greater than or equal to a preset number of times threshold in the history detection results of each suspected freeze-frame picture, then it is determined that the currently displayed picture is a freeze-frame picture.

进一步地,处理器1001可以调用存储器1004中存储的静帧检测程序,还执行以下操作:Further, the processor 1001 may call the still frame detection program stored in the memory 1004, and also perform the following operations:

检测所述第一参照图像中的第一角点;detecting a first corner point in the first reference image;

根据稀疏光流算法,从所述待检测图像中确定与所述第一角点相匹配的第二角点,相互匹配的第一角点和第二角点组成角点对;According to the sparse optical flow algorithm, a second corner point matching the first corner point is determined from the image to be detected, and the matched first corner point and the second corner point form a corner point pair;

根据角点对的相对位置关系,判断所述待检测图像中是否存在第二运动目标。According to the relative positional relationship of the pair of corner points, it is judged whether there is a second moving object in the image to be detected.

进一步地,处理器1001可以调用存储器1004中存储的静帧检测程序,还执行以下操作:Further, the processor 1001 may call the still frame detection program stored in the memory 1004, and also perform the following operations:

在预设画布上,确定各所述角点对中的第一角点和第二角点的位置;On the preset canvas, determining the positions of the first corner point and the second corner point in each pair of corner points;

连接各所述角点对中的第一角点和第二角点,得到角点对连线;connecting the first corner point and the second corner point in each of the corner point pairs to obtain a connecting line between the corner point pairs;

若在所述画布的预设非边缘区域检测到所述角点对连线,则判定所述待检测图像中存在第二运动目标。If the pair of corner points is detected in the preset non-edge area of the canvas, it is determined that there is a second moving object in the image to be detected.

进一步地,处理器1001可以调用存储器1004中存储的静帧检测程序,还执行以下操作:Further, the processor 1001 may call the still frame detection program stored in the memory 1004, and also perform the following operations:

根据光流算法、所述待检测图像和所述第一参照图像,确定所述待检测图像中每个像素点对应的光流矢量;determining an optical flow vector corresponding to each pixel in the image to be detected according to an optical flow algorithm, the image to be detected, and the first reference image;

根据所述光流矢量的光流模长和光流方向,生成光流图像;generating an optical flow image according to the optical flow mode length and the optical flow direction of the optical flow vector;

若在所述光流图像中检测到运动图像,则判定所述待检测图像中存在的第二运动目标。If a moving image is detected in the optical flow image, it is determined that a second moving object exists in the image to be detected.

进一步地,处理器1001可以调用存储器1004中存储的静帧检测程序,还执行以下操作:Further, the processor 1001 may call the still frame detection program stored in the memory 1004, and also perform the following operations:

将所述光流图像灰度化,得到光流灰度图;Grayscale the optical flow image to obtain an optical flow grayscale image;

对所述光流灰度图进行自适应二值化,得到待检测图像;performing adaptive binarization on the optical flow grayscale image to obtain an image to be detected;

根据轮廓发现算法确定所述待检测图像中的运动图像的第二轮廓;determining a second contour of the moving image in the image to be detected according to a contour finding algorithm;

若在所述待检测图像的预设非边缘区域中检测到第二轮廓,则判定所述待检测图像中存在的第二运动目标。If the second contour is detected in the preset non-edge area of the image to be detected, then determine the second moving object existing in the image to be detected.

进一步地,处理器1001可以调用存储器1004中存储的静帧检测程序,还执行以下操作:Further, the processor 1001 may call the still frame detection program stored in the memory 1004, and also perform the following operations:

根据轮廓发现算法,确定各所述第一运动目标各自对应的目标轮廓;According to the contour finding algorithm, determine the respective target contours corresponding to each of the first moving targets;

从各所述目标轮廓中确定面积最大的最大目标轮廓;determining, from each of said object contours, the largest object contour having the largest area;

确定所述最大目标轮廓的最小外接矩形;determining the minimum circumscribed rectangle of the maximum target contour;

若根据所述最小外接矩形的倾斜角度确定所述最小外接矩形处于水平状态或垂直状态,则判定所述第一运动目标处于打字状态。If it is determined according to the inclination angle of the minimum circumscribed rectangle that the minimum circumscribed rectangle is in a horizontal state or a vertical state, then it is determined that the first moving object is in a typing state.

进一步地,处理器1001可以调用存储器1004中存储的静帧检测程序,还执行以下操作:Further, the processor 1001 may call the still frame detection program stored in the memory 1004, and also perform the following operations:

获取位于所述待检测图像之前预设第二数量帧的第二参照图像;Acquiring a second reference image that is preset a second number of frames before the image to be detected;

确定所述待检测图像对应的第一峰值信噪比,以及各所述第二参照图像对应的第二峰值信噪比的信噪比均值;determining the first peak signal-to-noise ratio corresponding to the image to be detected, and the average signal-to-noise ratio of the second peak signal-to-noise ratio corresponding to each of the second reference images;

若所述第一峰值信噪比与所述信噪比均值之间的差值大于或等于预设差值阈值,则确定所述静帧画面受到噪声干扰;If the difference between the first peak signal-to-noise ratio and the average value of the signal-to-noise ratio is greater than or equal to a preset difference threshold, it is determined that the still-frame picture is disturbed by noise;

若所述第一峰值信噪比与所述信噪比均值之间的差值小于预设差值阈值,则确定所述静帧画面为完全静帧画面。If the difference between the first peak signal-to-noise ratio and the average value of the signal-to-noise ratio is smaller than a preset difference threshold, it is determined that the still-frame picture is a completely still-frame picture.

本申请实施例提供一种静帧检测方法,在本申请静帧检测方法的第一实施例中,参照图3,所述静帧检测方法包括以下步骤:The embodiment of the present application provides a still frame detection method. In the first embodiment of the still frame detection method of the present application, referring to FIG. 3 , the still frame detection method includes the following steps:

步骤S10,获取待检测图像以及位于所述待检测图像前一帧的第一参照图像;Step S10, acquiring an image to be detected and a first reference image located one frame before the image to be detected;

在本实施例中,需要说明的是,所述静帧检测方法应用于显示设备,所述显示设备可以包括但不限于电视机或与用户设备线性连接的显示器,例如OLED显示器、LCD、LED显示器等,所述显示器可以通过HDMI(High Definition Multimedia Interface、高清多媒体接口)、VGA(Video Graphics Array,视频图形阵列)接口或DP(DisplayPort,显示接口)等,与用户设备线性连接,进而接收并输出显示用户设备传输的视频信号,其中,所述用户设备包括笔记本电脑、计算机、平板电脑、手机等可移动式终端设备。In this embodiment, it should be noted that the still frame detection method is applied to a display device, and the display device may include but not limited to a television or a display linearly connected to a user device, such as an OLED display, an LCD, an LED display etc., the display can be linearly connected to the user equipment through HDMI (High Definition Multimedia Interface, high-definition multimedia interface), VGA (Video Graphics Array, video graphics array) interface or DP (DisplayPort, display interface), and then receive and output A video signal transmitted by user equipment is displayed, wherein the user equipment includes portable terminal equipment such as a notebook computer, a computer, a tablet computer, and a mobile phone.

静帧是指的当前帧的图像相对于前一帧图像,图像没有发生变化的情形,当显示设备播放的视频数据为静帧视频数据时,说明显示设备播放的视频数据存在播放异常,造成异常的原因可能是硬件异常,也可能是软件异常,还可能是视频数据的码流传输存在异常等,若连续出现静帧画面,可能会对显示屏造成损坏。Freeze frame refers to the situation that the image of the current frame does not change compared with the image of the previous frame. When the video data played by the display device is still frame video data, it means that the video data played by the display device is abnormally played, causing an abnormality. The reason may be hardware abnormality, software abnormality, or abnormality in video data stream transmission, etc. If there are continuous still frames, it may cause damage to the display screen.

具体地,从视频中获取一帧图像作为待检测图像,并获取所述待检测图像的前一帧图像作为第一参照图像,其中,所述获取待检测图像的方式包括从视频流中获取、截屏或拍照等。Specifically, a frame of image is acquired from the video as the image to be detected, and an image of the previous frame of the image to be detected is acquired as the first reference image, wherein the method of acquiring the image to be detected includes acquiring from the video stream, Take a screenshot or take a photo, etc.

在一种可实施的方式中,所述规格调整的方式为截取所述截屏图像中待检测区域对应的部分,其中,所述待检测区域可以根据实际需要进行确定,示例性地,可以根据信息提示弹窗在屏幕上出现时的位置进行确定,而此类信息提示弹窗通常出现在屏幕的四周边缘区域,故而,所述待检测区域可以为所述截屏图像中心的部分区域,也可以为所述截屏图像中从下往上第n行像素点以上的区域等。当用户设备无人操作时,也可能会出现消息提示的弹窗,此类消息提示通常与用户设备是否有人操作无关,若显示屏检测到静态画面进入屏幕保护画面之后,电子设备因消息提示判定画面为动态画面,而退出屏幕保护画面,此时,由于屏幕保护画面的解除并非是由于用户操作,可能在一段时间之后又会重新进入屏幕保护画面,也即,因消息提示而提出屏幕保护画面的过程实质上是无效操作,且还会消耗设备的算力和电量,通过截取待检测区域的方式,将可能引起误操作的区域预先去除,不仅可以减小后续进行运动目标检测的计算量,还可以有效避免上述无效退出屏幕保护画面的情况。In an implementable manner, the specification adjustment method is to intercept the part corresponding to the region to be detected in the screenshot image, wherein the region to be detected can be determined according to actual needs, for example, according to the information The position of the prompt pop-up window when it appears on the screen is determined, and this type of information prompt pop-up window usually appears in the peripheral area of the screen, so the area to be detected can be a part of the center of the screenshot image, or it can be The area above the nth row of pixels from bottom to top in the screenshot image, etc. When the user equipment is unmanned, a pop-up window may also appear with a message prompt. This type of message prompt is usually irrelevant to whether the user equipment is operated. The screen is a dynamic screen, and the screen saver screen is exited. At this time, because the release of the screen saver screen is not due to user operation, it may re-enter the screen saver screen after a period of time, that is, the screen saver screen is raised due to a message prompt The process is essentially an invalid operation, and it will also consume the computing power and power of the device. By intercepting the area to be detected, the area that may cause misoperation is removed in advance, which can not only reduce the amount of calculation for subsequent moving target detection, It can also effectively avoid the above-mentioned situation of invalidly exiting the screen saver.

在本实施例中,通过规格调整和灰度调整,可以有效减小后续运动目标检测的运算量,进而提高静帧检测的检测效率。In this embodiment, through specification adjustment and grayscale adjustment, the calculation amount of subsequent moving object detection can be effectively reduced, and the detection efficiency of still frame detection can be improved.

步骤S20,若根据帧间差分算法、所述待检测图像和所述第一参照图像,检测到第一运动目标,则根据所述第一运动目标的第一运动方向,判断所述第一运动目标是否处于打字状态;Step S20, if a first moving object is detected according to the inter-frame difference algorithm, the image to be detected and the first reference image, then judge the first moving object according to the first moving direction of the first moving object Whether the target is in typing state;

在本实施例中,根据帧间差分算法对所述待检测图像和所述第一参照图像的灰度值进行差分运算,求取两帧图像灰度差的绝对值,如果某一点的灰度差的绝对值为0或者小于或等于预设阈值,可以认为该点无运动物体经过,如果某一点的灰度差的绝对值不为0或大于预设阈值,则可以认为该点有运动物体经过,在一种可实施的方式中,第k帧和k+1帧图像fk(x,y),fk+1(x,y)之间的变化用一个二值差分图像D(x,y)表示,D(x,y)=1,if|fk+1(x,y)-fk(x,y)|>T,else,0。In this embodiment, a differential operation is performed on the gray values of the image to be detected and the first reference image according to the inter-frame difference algorithm to obtain the absolute value of the gray difference between the two frames of images. If the gray value of a certain point If the absolute value of the difference is 0 or less than or equal to the preset threshold, it can be considered that there is no moving object at this point. If the absolute value of the gray level difference of a certain point is not 0 or greater than the preset threshold, it can be considered that there is a moving object at this point After that, in an implementable manner, the change between the kth frame and the k+1 frame image f k (x, y), f k+1 (x, y) uses a binary difference image D(x ,y) indicates that D(x,y)=1, if|f k+1 (x,y)-f k (x,y)|>T,else,0.

若根据帧间差分算法、所述待检测图像和所述第一参照图像,未从所述待检测图像中检测到第一运动目标,则说明两帧图像几乎完全重叠,也即画面处于静止状态,则判定当前显示画面为静帧画面。If the first moving object is not detected from the image to be detected according to the inter-frame difference algorithm, the image to be detected and the first reference image, it means that the two frames of images are almost completely overlapped, that is, the picture is in a static state , then it is determined that the currently displayed image is a still frame image.

若根据帧间差分算法、所述待检测图像和所述第一参照图像,从所述待检测图像中检测到第一运动目标,则确定所述第一运动目标的第一轮廓,根据所述第一轮廓,通过图像识别技术或外接矩形的倾斜角度等方式,判断所述第一运动目标的第一运动方向,进而将所述第一运动方向与预设的打字运动方向进行匹配,若所述第一运动方向与预设的打字运动方向匹配,则确定所述第一运动目标处于打字状态,若所述第一运动方向与预设的打字运动方向不匹配,则确定所述第一运动目标不处于打字状态,其中,所述预设的打字运动方向可以为水平方向或垂直方向,其他的运动状态一般情况下不会出现有规律的水平运动或垂直运动,故而可以根据所述第一运动方向是否为水平或垂直,快速且简便地判断所述第一运动目标是否处于打字状态。If a first moving object is detected from the image to be detected according to the inter-frame difference algorithm, the image to be detected and the first reference image, then determine the first contour of the first moving object, according to the For the first contour, judge the first moving direction of the first moving object by means of image recognition technology or the inclination angle of the circumscribed rectangle, and then match the first moving direction with the preset typing moving direction, if the If the first movement direction matches the preset typing movement direction, then it is determined that the first movement object is in the typing state; if the first movement direction does not match the preset typing movement direction, then it is determined that the first movement The target is not in the typing state, wherein, the preset typing movement direction can be the horizontal direction or the vertical direction, and there is generally no regular horizontal movement or vertical movement in other movement states, so it can be based on the first Whether the moving direction is horizontal or vertical, quickly and easily judge whether the first moving object is in a typing state.

在一种可实施的方式中,所述确定所述第一运动目标的第一轮廓的步骤包括:获取帧间差分算法运算后得到的初始轮廓,使用形态学操作放大所述初始轮廓,得到所述第一运动目标的第一轮廓,其中,所述形态学操作包括膨胀操作、腐蚀后膨胀操作或膨胀后腐蚀操作等。通过帧间差分算法进行检测时,若物体在两帧图像中几乎完全重叠,则检测不到物体,也即画面处于静止状态,若能够检测到运动目标,则会得到运动目标的轮廓,但运动目标的内部会存在空洞,故而可以通过膨胀、腐蚀等方式得到更精准的边界轮廓,特别对于运动幅度较小的第一运动目标,帧间差分算法得到的初始轮廓可能较小,定义结构元素大小后使用膨胀操作放大初始轮廓,可以使得第一运动目标在图像中的显示更明显和精准。In an implementable manner, the step of determining the first contour of the first moving object includes: obtaining an initial contour obtained after an inter-frame difference algorithm operation, and using a morphological operation to enlarge the initial contour to obtain the The first contour of the first moving object, wherein the morphological operation includes a dilation operation, a dilation operation after erosion, or an erosion operation after dilation, and the like. When detecting by the inter-frame difference algorithm, if the object is almost completely overlapped in the two frames of images, the object cannot be detected, that is, the picture is in a static state. If a moving target can be detected, the outline of the moving target will be obtained, but the moving There will be holes inside the target, so more accurate boundary contours can be obtained by means of expansion, erosion, etc., especially for the first moving target with a small motion range, the initial contour obtained by the inter-frame difference algorithm may be small, and the size of the defined structural element Then use the expansion operation to enlarge the initial contour, which can make the display of the first moving target in the image more obvious and accurate.

在一种可实施的方式中,所述确定所述第一运动目标的第一轮廓的步骤包括:通过自适应二值化确定所述第一运动目标的二值图像,通过轮廓发现算法对所述二值图像中的轮廓进行提取,得到所述第一运动目标的第一轮廓。通过自适应二值化,根据图像像素邻域块的分布特征来自适应确定区域的二值化阈值,并自动使用所述二值化阈值分割前景和背景,所述前景为运动目标轮廓,所述自适应二值化包括高斯加权和算法,所述高斯加权和算法是将区域中点周围的像素根据高斯函数加权计算他们离中心点的距离,能有效的覆盖像素变化差异的场景。In an implementable manner, the step of determining the first contour of the first moving object includes: determining a binary image of the first moving object through adaptive binarization, and performing a contour finding algorithm on the first contour of the first moving object. Extracting the contour in the binary image to obtain the first contour of the first moving object. Through adaptive binarization, according to the distribution characteristics of image pixel neighborhood blocks, the binarization threshold of the determined area is adaptively determined, and the binarization threshold is automatically used to segment the foreground and the background, the foreground is the outline of the moving object, and the Adaptive binarization includes a Gaussian weighted sum algorithm. The Gaussian weighted sum algorithm weights the pixels around the center point of the region according to the Gaussian function to calculate their distance from the center point, which can effectively cover the scene of pixel variation difference.

可选地,所述根据所述第一运动目标的第一运动方向,判断所述第一运动目标是否处于打字状态的步骤包括:Optionally, the step of judging whether the first moving object is in a typing state according to the first moving direction of the first moving object includes:

步骤A10,根据轮廓发现算法,确定各所述第一运动目标各自对应的目标轮廓;Step A10, according to the contour finding algorithm, determine the target contour corresponding to each of the first moving objects;

在本实施例中,获取帧间差分算法运算后生成的二值差分图像,根据轮廓发现算法,从所述二值差分图像中提取各所述第一运动目标各自对应的目标轮廓。In this embodiment, the binary difference image generated after the operation of the inter-frame difference algorithm is acquired, and the target contour corresponding to each of the first moving objects is extracted from the binary difference image according to the contour finding algorithm.

步骤A20,从各所述目标轮廓中确定面积最大的最大目标轮廓;Step A20, determining the largest target contour with the largest area from each of the target contours;

在本实施例中,比较各所述目标轮廓的面积大小,将面积最大的目标轮廓确定为最大目标轮廓。In this embodiment, the area sizes of the target contours are compared, and the target contour with the largest area is determined as the largest target contour.

在一种可实施的方式中,所述从各所述目标轮廓中确定面积最大的最大目标轮廓的步骤包括:将任意一个目标轮廓确定为最大目标轮廓,遍历所有目标轮廓的面积,若后续有比该最大目标轮廓面积更大的第二目标轮廓,将所述第二目标轮廓确定为最大目标轮廓,直至所有目标轮廓遍历完成,由此确定了最大目标轮廓。In an implementable manner, the step of determining the largest target contour with the largest area from each of the target contours includes: determining any target contour as the largest target contour, traversing the areas of all target contours, if there is A second target contour with a larger area than the maximum target contour is determined as the maximum target contour until all target contours are traversed, thereby determining the maximum target contour.

步骤A30,确定所述最大目标轮廓的最小外接矩形;Step A30, determining the minimum circumscribed rectangle of the maximum target contour;

步骤A40,若根据所述最小外接矩形的倾斜角度确定所述最小外接矩形处于水平状态或垂直状态,则判定所述第一运动目标处于打字状态。Step A40, if it is determined according to the inclination angle of the minimum circumscribed rectangle that the minimum circumscribed rectangle is in a horizontal state or a vertical state, then it is determined that the first moving object is in a typing state.

在本实施例中,确定所述最大目标轮廓的最小外接矩形,将所述最小外接矩形的边与水平线或垂直线进行比较,确定所述最小外接矩形的倾斜角度,例如,参照图4,可以将所述最小外接矩形3的宽边与所述水平线4之间的夹角确定为倾斜角度6,也可以将所述最小外接矩形3的宽边与所述垂直线5之间的夹角确定为倾斜角度(未在图中释出)。根据所述倾斜角度是否处于预设角度范围,判断所述最小外接矩形是否处于水平状态或垂直状态,若所述倾斜角度处于预设角度范围,则判定所述最小外接矩形处于水平状态或垂直状态,则判定所述第一运动目标处于打字状态,若所述倾斜角度不处于预设角度范围,则判定所述最小外接矩形不处于水平状态或垂直状态,则判定所述第一运动目标不处于打字状态,其中,所述倾斜角度是所述最小外接矩形的较长边或较短边与水平线或垂直线之间的形成的夹角的大小,由于打字状态下检测到的最小外接矩形的较长边有可能为水平状态或者垂直状态,故而所述预设角度范围可以为0度或90度,也可以设定一定的误差范围,即所述预设角度范围可以为0~5度或85~90度,例如0度、3度、5度、85度、88度、90度等。In this embodiment, the minimum circumscribed rectangle of the maximum target contour is determined, and the side of the minimum circumscribed rectangle is compared with a horizontal line or a vertical line to determine the inclination angle of the minimum circumscribed rectangle. For example, referring to FIG. 4 , it can be The angle between the broadside of the minimum circumscribed rectangle 3 and the horizontal line 4 is determined as the angle of inclination 6, and the angle between the broadside of the minimum circumscribed rectangle 3 and the vertical line 5 can also be determined is the angle of inclination (not shown in the figure). According to whether the inclination angle is in a preset angle range, it is judged whether the minimum circumscribed rectangle is in a horizontal state or a vertical state, and if the inclination angle is in a preset angle range, then it is determined that the minimum circumscribed rectangle is in a horizontal state or a vertical state , it is determined that the first moving object is in the typing state, if the tilt angle is not in the preset angle range, it is determined that the minimum circumscribed rectangle is not in the horizontal state or vertical state, then it is determined that the first moving object is not in the Typing state, wherein, the inclination angle is the size of the angle formed between the longer side or the shorter side of the minimum circumscribed rectangle and the horizontal line or vertical line, because the minimum circumscribed rectangle detected under the typing state The long side may be horizontal or vertical, so the preset angle range can be 0 degrees or 90 degrees, and a certain error range can also be set, that is, the preset angle range can be 0 to 5 degrees or 85 degrees ~90 degrees, such as 0 degrees, 3 degrees, 5 degrees, 85 degrees, 88 degrees, 90 degrees, etc.

步骤S30,若确定所述第一运动目标不处于打字状态,则根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标;Step S30, if it is determined that the first moving object is not in the typing state, then detect the second moving object according to the optical flow algorithm, the image to be detected and the first reference image;

在本实施例中,需要说明的是,虽然帧间差分算法计算速度快,但对于运动幅度小或运动目标较小的情况,检测准确性较低,若根据帧间差分算法确定所述第一运动目标不处于打字状态,此时检测到的第一运动目标可能是动态画面产生,也可能是静帧画面中的噪声产生,故而需要进一步进行判断。In this embodiment, it should be noted that although the calculation speed of the inter-frame difference algorithm is fast, the detection accuracy is low for the case of a small motion range or a small moving target. If the first The moving object is not in the typing state, and the first moving object detected at this time may be generated by a dynamic picture, or may be generated by noise in a still frame picture, so further judgment is required.

具体地,若确定所述第一运动目标不处于打字状态,则根据光流算法对所述待检测图像和所述第一参照图像中的第二运动目标进行检测,其中,所述光流算法包括稠密光流算法和稀疏光流算法等。Specifically, if it is determined that the first moving object is not in the typing state, the second moving object in the image to be detected and the first reference image is detected according to an optical flow algorithm, wherein the optical flow algorithm Including dense optical flow algorithm and sparse optical flow algorithm.

若确定所述第一运动目标处于打字状态,则判定当前显示画面为动态画面。If it is determined that the first moving object is in a typing state, then it is determined that the currently displayed image is a dynamic image.

需要说明的是,从所述待检测图像中检测到第一运动目标的数量可能为0个、1个或多个,所述第一运动目标的数量越多,进行打字状态判断的耗时越长,且可能是噪声导致的误判,故而,若检测到所述第一运动目标的数量不止1个,则可以分别根据各所述第一运动目标各自对应的第一运动方向,判断各所述第一运动目标是否处于打字状态,若确定任意一个所述第一运动目标处于打字状态,则判定当前显示画面为动态画面,若确定各所述第一运动目标均不处于打字状态,则根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标;若检测到所述第一运动目标的数量不止1个,则也可以从各所述第一运动目标中选取预设数量(例如1个、2个等)的待检测第一运动目标,分别根据各所述待检测第一运动目标各自对应的第一运动方向,判断各所述待检测第一运动目标是否处于打字状态,若确定任意一个所述待检测第一运动目标处于打字状态,则判定当前显示画面为动态画面,若确定各所述待检测第一运动目标均不处于打字状态,则根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标,其中,所述从各所述第一运动目标中选取预设数量的待检测第一运动目标的方式可以为,根据各所述第一运动目标对应的轮廓面积、位置等,选取预设数量的待检测第一运动目标,例如,选取轮廓面积大于预设面积阈值的第一运动目标作为待检测第一运动目标,选取位置位于预设非边缘区域的第一运动目标作为待检测第一运动目标等,轮廓面积小于预设面积阈值的,或者位置位于图像边缘区域的第一运动目标有可能是噪声或检测误差产生,预先进行过滤,不仅可以减小计算量,还可以提高检测准确性。It should be noted that the number of first moving objects detected from the image to be detected may be zero, one or more, and the more the number of the first moving objects is, the more time-consuming it is to judge the typing state. long, and may be a misjudgment caused by noise. Therefore, if more than one first moving object is detected, each first moving object can be judged according to the first moving direction corresponding to each of the first moving objects. Whether the first moving object is in the typing state, if it is determined that any one of the first moving objects is in the typing state, then determine that the current display screen is a dynamic picture, if it is determined that each of the first moving objects is not in the typing state, then according to The optical flow algorithm, the image to be detected and the first reference image are used to detect a second moving object; if more than one first moving object is detected, it is also possible to select from each of the first moving objects Select a preset number (such as 1, 2, etc.) of the first moving objects to be detected, and determine each of the first moving objects to be detected according to the first moving directions corresponding to each of the first moving objects to be detected Whether it is in the typing state, if it is determined that any one of the first moving objects to be detected is in the typing state, then it is determined that the current display screen is a dynamic picture, if it is determined that each of the first moving objects to be detected is not in the typing state, then according to the light flow algorithm, the image to be detected and the first reference image to detect a second moving object, wherein the method of selecting a preset number of first moving objects to be detected from each of the first moving objects may be Selecting a preset number of first moving objects to be detected according to the contour area and position corresponding to each of the first moving objects, for example, selecting a first moving object whose contour area is greater than a preset area threshold as the first moving object to be detected Target, select the first moving object whose position is located in the preset non-edge area as the first moving object to be detected, etc., the first moving object whose contour area is smaller than the preset area threshold, or whose position is located in the edge area of the image may be noise or detection When errors occur, pre-filtering can not only reduce the calculation amount, but also improve the detection accuracy.

可选地,所述光流算法包括稠密光流算法,所述根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标的步骤包括:Optionally, the optical flow algorithm includes a dense optical flow algorithm, and the step of detecting the second moving target according to the optical flow algorithm, the image to be detected and the first reference image includes:

步骤B10,根据光流算法、所述待检测图像和所述第一参照图像,确定所述待检测图像中每个像素点对应的光流矢量;Step B10, according to the optical flow algorithm, the image to be detected and the first reference image, determine the optical flow vector corresponding to each pixel in the image to be detected;

在本实施例中,需要说明的是,光流指的是视频图像上像素点之间灰度值的变化,即运动物体的瞬时速度,光流法通过研究视频图像序列的光流场,利用图像中运动物体的光流信息和背景的光流信息的差异来确定运动物体的位置,进而检测出运动目标,稠密光流算法采用相邻两帧图像来估计物体的光流矢量,其实现方式是:首先使用多项式展开的方法,对每个像素点的邻域使用一个二次多项式来近似表达,然后通过分析前后两帧像素点的多项式展开系数,估计光流场的位移矢量,该方法计算图像中所有像素点的瞬时速度,准确率高,具有较高的鲁棒性和可靠性,满足视频静帧检测的实际需求。In this embodiment, it should be noted that the optical flow refers to the change of the gray value between pixels on the video image, that is, the instantaneous velocity of the moving object. The optical flow method studies the optical flow field of the video image sequence, using The difference between the optical flow information of the moving object in the image and the optical flow information of the background is used to determine the position of the moving object, and then detect the moving target. The dense optical flow algorithm uses two adjacent frames of images to estimate the optical flow vector of the object. Its implementation method It is: first use the method of polynomial expansion, use a quadratic polynomial to approximate the expression of the neighborhood of each pixel, and then estimate the displacement vector of the optical flow field by analyzing the polynomial expansion coefficients of the two frames of pixels before and after. The instantaneous speed of all pixels in the image has high accuracy, high robustness and reliability, and meets the actual needs of video still frame detection.

具体地,根据稠密光流算法,对所述待检测图像和所述第一参照图像中的像素点一一进行比对,确定所述待检测图像对应的光流场,并确定光流场中每个像素点对应的光流矢量,需要说明的是,发生变化的像素点对应的光流矢量具有光流模长和光流方向,而未发生变化的像素点对应的光流矢量的光流模长为0或极小值,此时的光流矢量为一个点。Specifically, according to the dense optical flow algorithm, compare the pixels in the image to be detected and the first reference image one by one, determine the optical flow field corresponding to the image to be detected, and determine the The optical flow vector corresponding to each pixel, it should be noted that the optical flow vector corresponding to the changed pixel has the optical flow mode length and the optical flow direction, and the optical flow mode of the optical flow vector corresponding to the unchanged pixel The length is 0 or a minimum value, and the optical flow vector at this time is a point.

在一种可实施的方式中,若所述待检测图像和/或所述第一参照图像为RGBA存储格式的图像,由于A通道的透明度在静帧检测过程中影响较小,且会带来额外计算量,故而可以将RGBA存储格式的所述待检测图像和/或所述第一参照图像转化为RGB存储格式。参照图5,所述将RGBA存储格式的所述待检测图像和/或所述第一参照图像转化为RGB存储格式的方式包括:从RGBA存储格式的图像数据中,每间隔四个位置分别取出R通道、G通道和B通道的单通道数据,将每个像素点对应的R通道、G通道和B通道的单通道数据合并,得到RGB存储格式的图像。In an implementable manner, if the image to be detected and/or the first reference image is an image in RGBA storage format, since the transparency of the A channel has little influence in the still frame detection process, and will bring Therefore, the image to be detected and/or the first reference image in RGBA storage format can be converted into RGB storage format. Referring to Fig. 5 , the method of converting the image to be detected and/or the first reference image in the RGBA storage format into the RGB storage format includes: from the image data in the RGBA storage format, take out four positions at intervals The single-channel data of R channel, G channel and B channel are merged with the single-channel data of R channel, G channel and B channel corresponding to each pixel to obtain an image in RGB storage format.

在一种可实施的方式中,所述根据光流算法、所述待检测图像和所述第一参照图像,确定所述待检测图像中每个像素点对应的光流矢量的步骤之前,还可以包括:对所述待检测图像和所述第一参照图像进行灰度化,以减小运算量。In an implementable manner, before the step of determining the optical flow vector corresponding to each pixel in the image to be detected according to the optical flow algorithm, the image to be detected and the first reference image, further It may include: performing grayscale conversion on the image to be detected and the first reference image, so as to reduce the amount of computation.

在一种可实施的方式中,所述根据光流算法、所述待检测图像和所述第一参照图像,确定所述待检测图像中每个像素点对应的光流矢量的步骤之前,还可以包括:对所述待检测图像和所述第一参照图像进行压缩处理,通过减小图像尺寸,或降低图像质量,减小运算量。In an implementable manner, before the step of determining the optical flow vector corresponding to each pixel in the image to be detected according to the optical flow algorithm, the image to be detected and the first reference image, further It may include: performing compression processing on the image to be detected and the first reference image, reducing the amount of computation by reducing the size of the image or reducing the quality of the image.

步骤B20,根据所述光流矢量的光流模长和光流方向,生成光流图像;Step B20, generating an optical flow image according to the optical flow mode length and the optical flow direction of the optical flow vector;

在本实施例中,具体地,确定每个像素点在x方向的光流分量和y方向的光流分量,基于x方向的光流分量和y方向的光流分量的大小和方向,即可将x方向的光流分量和y方向的光流分量的坐标从笛卡尔坐标转换为极坐标,进而确定所述待检测图像中各个像素点对应的光流矢量的光流模长和光流方向,将所述光流方向以弧度进行表示,将光流方向作为色调信息,光流模长作为饱和度信息,将亮度信息确定为一个预设值,或对光流模长进行归一化处理后,作为亮度信息,使所述光流图像的亮度在一定范围内浮动,即可确定各所述光流矢量对应的HSV颜色空间的颜色,得到光流图像,在所述光流图像中,没有运动的部分几乎相同,呈现出的颜色也就几乎相同,可以作为所述光流图像的底色,而运动的部分,由于其运动速度的不同,呈现出不同的颜色,即可在底色上形成对应的运动图像。In this embodiment, specifically, the optical flow component in the x direction and the optical flow component in the y direction of each pixel are determined, based on the size and direction of the optical flow component in the x direction and the optical flow component in the y direction, that is converting the coordinates of the optical flow component in the x direction and the optical flow component in the y direction from Cartesian coordinates to polar coordinates, and then determining the optical flow mode length and the optical flow direction of the optical flow vector corresponding to each pixel in the image to be detected, The optical flow direction is expressed in radians, the optical flow direction is used as hue information, the optical flow modulus length is used as saturation information, and the brightness information is determined as a preset value, or after normalizing the optical flow modulus length , as the luminance information, the luminance of the optical flow image is made to float within a certain range, the color of the HSV color space corresponding to each of the optical flow vectors can be determined, and the optical flow image is obtained. In the optical flow image, there is no The moving parts are almost the same, and the colors presented are almost the same, which can be used as the background color of the optical flow image, while the moving parts, due to their different speeds of movement, show different colors, which can be displayed on the background color. A corresponding moving image is formed.

步骤B30,若在所述光流图像中检测到运动图像,则判定所述待检测图像中存在的第二运动目标。Step B30, if a moving image is detected in the optical flow image, then determine a second moving object existing in the image to be detected.

在本实施例中,具体地,通过图像识别技术、轮廓识别算法等,对所述光流图像中的运动图像进行识别,若在所述光流图像中检测到运动图像,则判定所述待检测图像中存在的第二运动目标,若在所述光流图像中未检测到运动图像,则判定所述待检测图像中不存在的第二运动目标。In this embodiment, specifically, the moving image in the optical flow image is identified through image recognition technology, contour recognition algorithm, etc., and if a moving image is detected in the optical flow image, it is determined that the pending Detecting the second moving object existing in the image, and determining the second moving object not existing in the image to be detected if no moving image is detected in the optical flow image.

可选地,所述若在所述光流图像中检测到运动图像,则判定所述待检测图像中存在的第二运动目标的步骤包括:Optionally, if a moving image is detected in the optical flow image, the step of determining the second moving object existing in the image to be detected includes:

步骤B41,将所述光流图像灰度化,得到光流灰度图;Step B41, grayscale the optical flow image to obtain an optical flow grayscale image;

步骤B42,对所述光流灰度图进行自适应二值化,得到待检测图像;Step B42, performing adaptive binarization on the optical flow grayscale image to obtain an image to be detected;

步骤B43,根据轮廓发现算法确定所述待检测图像中的运动图像的第二轮廓;Step B43, determining a second contour of the moving image in the image to be detected according to a contour finding algorithm;

步骤B44,若在所述待检测图像的预设非边缘区域中检测到第二轮廓,则判定所述待检测图像中存在的第二运动目标。Step B44, if the second contour is detected in the preset non-edge area of the image to be detected, then determine the second moving object existing in the image to be detected.

在本实施例中,具体地,将所述光流图像进行灰度化,得到光流灰度图,将所述光流灰度图进行自适应二值化,得到待检测图像,根据轮廓发现算法对所述待检测图像进行轮廓提取,若无法提取到任何第二轮廓,则判定所述待检测图像中不存在的第二运动目标,若能够提取到至少一个运动图像的第二轮廓,则依次遍历各所述第二轮廓,检测各所述第二轮廓的位置是否处于所述待检测图像的预设非边缘区域中,若在所述待检测图像的预设非边缘区域中检测到第二轮廓,则判定所述待检测图像中存在的第二运动目标,若在所述待检测图像的预设非边缘区域中未检测到第二轮廓,则判定所述待检测图像中不存在的第二运动目标,其中,所述二值化灰度图中只包含运动像素点的图像块,除运动像素点之外的其他区域都是黑色的背景,所述预设非边缘区域可以是所述图像中距离图像边缘大于或等于预设个像素点(例如20个像素点、30个像素点等)的区域。In this embodiment, specifically, the optical flow image is grayscaled to obtain an optical flow grayscale image, and the optical flow grayscale image is adaptively binarized to obtain an image to be detected. The algorithm performs contour extraction on the image to be detected. If no second contour can be extracted, it is determined that there is no second moving object in the image to be detected. If at least one second contour of the moving image can be extracted, then Traversing each of the second contours in turn, detecting whether the position of each of the second contours is in the preset non-edge area of the image to be detected, if the second contour is detected in the preset non-edge area of the image to be detected If the second contour is not detected in the preset non-edge area of the image to be detected, it is determined that there is no second moving object in the image to be detected. The second moving object, wherein, the binary grayscale image only contains image blocks of moving pixels, and other regions except the moving pixels are black backgrounds, and the preset non-edge region may be the An area in the image that is greater than or equal to preset pixels (for example, 20 pixels, 30 pixels, etc.) from the edge of the image.

在一种可实施的方式中,所述检测各所述第二轮廓是否处于所述二值化图像的预设非边缘区域中的步骤包括:遍历所有的第二轮廓,分别绘制各所述第二轮廓的最小外接矩形,确定各所述最小外接矩的中心点坐标,判断各所述中心点坐标是否处于所述二值化图像的预设非边缘区域中。In an implementable manner, the step of detecting whether each of the second contours is in a preset non-edge area of the binarized image includes: traversing all the second contours, drawing each of the second contours respectively The minimum circumscribed rectangle of the contour, determine the center point coordinates of each of the minimum circumscribed moments, and judge whether each of the center point coordinates is in the preset non-edge area of the binarized image.

在实际开发中发现,图像边缘处会存在噪声干扰,不利于对静帧画面的判断,过滤掉图像边缘的运动目标可以有效减少噪声干扰。In the actual development, it is found that there will be noise interference at the edge of the image, which is not conducive to the judgment of the still frame picture. Filtering out the moving target at the edge of the image can effectively reduce the noise interference.

步骤S40,若在所述待检测图像中未检测到第二运动目标,则判定当前显示画面为静帧画面。Step S40, if the second moving object is not detected in the image to be detected, it is determined that the currently displayed image is a still frame image.

在本实施例中,若在所述待检测图像中未检测到第二运动目标,则判定当前显示画面为静帧画面;若在所述待检测图像中检测到第二运动目标,则判定当前显示画面为动态画面。In this embodiment, if the second moving object is not detected in the image to be detected, it is determined that the currently displayed image is a still frame image; if the second moving object is detected in the image to be detected, it is determined that the current The display screen is a dynamic screen.

可选地,所述若在所述待检测图像中未检测到第二运动目标,则判定所述待检测图像为静帧画面的步骤包括:Optionally, if the second moving target is not detected in the image to be detected, the step of determining that the image to be detected is a still picture includes:

步骤S41,若在所述待检测图像中未检测到第二运动目标,则判定所述当前显示画面为疑似静帧画面;Step S41, if no second moving object is detected in the image to be detected, then determine that the currently displayed image is a suspected still-frame image;

步骤S42,获取所述待检测图像之前预设第一数量帧的历史待检测图像对应的疑似静帧画面历史检测结果;Step S42, acquiring historical detection results of suspected still frames corresponding to historical images to be detected that are preset for a first number of frames before the image to be detected;

步骤S43,若各所述疑似静帧画面历史检测结果中,判定为疑似静帧画面的次数大于或等于预设次数阈值,则判定当前显示画面为静帧画面。Step S43 , if the number of suspected freeze-frame images in the history detection results of each of the suspected freeze-frame images is greater than or equal to a preset number threshold, then it is determined that the currently displayed image is a freeze-frame image.

在本实施例中,具体地,若在所述待检测图像中未检测到第二运动目标,则判定所述当前显示画面为疑似静帧画面,获取所述待检测图像之前预设第一数量帧的历史待检测图像对应的疑似静帧画面历史检测结果,确定各所述疑似静帧画面历史检测结果中,判定为疑似静帧画面的次数,若所述判定为疑似静帧画面的次数大于或等于预设次数阈值,则判定当前显示画面为静帧画面,若所述判定为疑似静帧画面的次数小于预设次数阈值,则判定当前显示画面为动态画面,通过增加判定次数可以有效减少误判定,提高检测结果的准确性。In this embodiment, specifically, if no second moving object is detected in the image to be detected, it is determined that the currently displayed image is a suspected still frame image, and a first number of objects is preset before acquiring the image to be detected. The historical detection results of suspected still frame pictures corresponding to the historical image to be detected of the frame, determine the number of times of suspected still frame pictures in each of the suspected still frame picture history detection results, if the number of times of the suspected still frame pictures is determined to be greater than or equal to the preset number of times threshold, then it is determined that the currently displayed picture is a still frame picture, and if the number of times it is determined to be a suspected still frame picture is less than the preset number of times threshold, then it is determined that the current displayed picture is a dynamic picture, which can be effectively reduced by increasing the number of determination times Misjudgment, improve the accuracy of the test results.

在一种可实施的方式中,所述预设次数阈值为所述预设第一数量的一半,即,若所述判定为疑似静帧画面的次数大于或等于所述预设第一数量的一半,则判定当前显示画面为静帧画面。例如,所述预设第一数量为4,则一共可以获取到4个疑似静帧画面历史检测结果,若其中判定为疑似静帧画面的次数大于或等于2,由于本次待检测图像的判定结果为疑似静帧画面,故而在5个判定结果中,至少检测到3次疑似静帧画面,超过半数,即在历史检测结果和本次检测结果中,共有超过半数的判定结果为疑似静帧画面,故而可以判定当前显示画面为静帧画面。In an implementable manner, the preset number of thresholds is half of the preset first number, that is, if the number of times of the suspected freeze-frame picture is greater than or equal to the preset first number half, then it is determined that the currently displayed picture is a still frame picture. For example, if the preset first number is 4, a total of 4 historical detection results of suspected still frame pictures can be obtained. The result is a suspected still frame picture, so among the 5 judgment results, at least 3 suspected still frame pictures were detected, more than half of them, that is, more than half of the judgment results were suspected still frame in the historical detection results and this detection result Therefore, it can be judged that the currently displayed picture is a still frame picture.

可选地,所述判定当前显示画面为静帧画面的步骤之后,还包括:Optionally, after the step of determining that the currently displayed picture is a still frame picture, it also includes:

步骤S50,获取位于所述待检测图像之前预设第二数量帧的第二参照图像;Step S50, acquiring a second reference image that is preset a second number of frames before the image to be detected;

步骤S60,确定所述待检测图像对应的第一峰值信噪比,以及各所述第二参照图像对应的第二峰值信噪比的信噪比均值;Step S60, determining the first peak signal-to-noise ratio corresponding to the image to be detected, and the average signal-to-noise ratio of the second peak signal-to-noise ratio corresponding to each of the second reference images;

步骤S70,若所述第一峰值信噪比与所述信噪比均值之间的差值大于或等于预设差值阈值,则确定所述静帧画面受到噪声干扰;Step S70, if the difference between the first peak signal-to-noise ratio and the average value of the signal-to-noise ratio is greater than or equal to a preset difference threshold, it is determined that the still-frame picture is disturbed by noise;

步骤S80,若所述第一峰值信噪比与所述信噪比均值之间的差值小于预设差值阈值,则确定所述静帧画面为完全静帧画面。Step S80, if the difference between the first peak signal-to-noise ratio and the average value of the signal-to-noise ratio is smaller than a preset difference threshold, determine that the still-frame picture is a completely still-frame picture.

在本实施例中,具体地,获取位于所述待检测图像之前预设第二数量帧的第二参照图像,确定所述待检测图像对应的第一峰值信噪比,以及各所述第二参照图像对应的第二峰值信噪比的信噪比均值,计算所述第一峰值信噪比与所述信噪比均值之间的差值,若所述差值大于或等于预设差值阈值,则确定所述静帧画面受到噪声干扰,在一种可实施的方式中,还可以进一步生成噪声提示信息,以提醒用户当前检测结果可能受到噪声干扰;若所述差值小于预设差值阈值,则确定所述静帧画面为完全静帧画面,其中,所述预设第二数量可以与所述预设第一数量相同或不同,所述峰值信噪比表示信号最大可能功率和影响它的表示精度的破坏性噪声功率的比值,可以用于判断两幅图像的相似性,图像之间峰值信噪比值越大,则越相似,本实施例中的待检测图像对应的峰值信噪比是指待检测图像与其前一帧图像之间的峰值信噪比。In this embodiment, specifically, the second reference image that is preset a second number of frames before the image to be detected is obtained, the first peak signal-to-noise ratio corresponding to the image to be detected is determined, and each of the second calculating the difference between the first peak signal-to-noise ratio and the mean signal-to-noise ratio with reference to the second peak signal-to-noise ratio corresponding to the image, if the difference is greater than or equal to a preset difference threshold, it is determined that the still frame picture is disturbed by noise. In an implementable manner, noise prompt information can be further generated to remind the user that the current detection result may be disturbed by noise; if the difference is less than the preset difference value threshold, then it is determined that the still picture is a completely still picture, wherein the preset second number may be the same as or different from the preset first number, and the peak signal-to-noise ratio represents the maximum possible signal power and The ratio of the destructive noise power that affects its representation accuracy can be used to judge the similarity of two images. The larger the peak signal-to-noise ratio between the images, the more similar they are. The corresponding peak value of the image to be detected in this embodiment The signal-to-noise ratio refers to the peak signal-to-noise ratio between the image to be detected and its previous frame image.

在一种可实施的方式中,当确定所述静帧画面受到噪声干扰之后,还可以暂时不对当前显示画面是否为静帧画面进行判定,返回执行步骤:获取待检测图像以及位于所述待检测图像前一帧的第一参照图像,以获取下一帧图像作为待检测图像,增大样本数量,以减小噪声或误判定对最终检测结果的影响。In an implementable manner, after it is determined that the still-frame picture is disturbed by noise, it is also possible not to judge whether the current display picture is a still-frame picture temporarily, and return to the execution step: acquire the image to be detected and locate the image to be detected The first reference image of the previous frame of the image is used to obtain the next frame of image as the image to be detected, and the number of samples is increased to reduce the impact of noise or misjudgment on the final detection result.

在一种可实施的方式中,所述判定当前显示画面为动态画面的步骤之后,还包括:In an implementable manner, after the step of determining that the currently displayed image is a dynamic image, it further includes:

获取位于所述待检测图像之前预设第三数量帧的第三参照图像;Acquiring a third reference image that is preset a third number of frames before the image to be detected;

确定所述待检测图像对应的第一峰值信噪比,以及各所述第二参照图像对应的第二峰值信噪比的信噪比均值;determining the first peak signal-to-noise ratio corresponding to the image to be detected, and the average signal-to-noise ratio of the second peak signal-to-noise ratio corresponding to each of the second reference images;

若所述第一峰值信噪比与所述信噪比均值之间的差值大于或等于预设差值阈值,则确定所述动态画面为大幅度变化动态画面;If the difference between the first peak signal-to-noise ratio and the average value of the signal-to-noise ratio is greater than or equal to a preset difference threshold, it is determined that the dynamic picture is a dynamic picture with a large change;

若所述第一峰值信噪比与所述信噪比均值之间的差值小于预设差值阈值,则确定所述动态画面为小幅度变化动态画面。If the difference between the first peak signal-to-noise ratio and the average value of the signal-to-noise ratio is smaller than a preset difference threshold, it is determined that the dynamic picture is a dynamic picture with small amplitude changes.

在本实施例中,具体地,获取位于所述待检测图像之前预设第三数量帧的第三参照图像,确定所述待检测图像对应的第一峰值信噪比,以及各所述第三参照图像对应的第三峰值信噪比的信噪比均值,计算所述第一峰值信噪比与所述第三峰值信噪比的信噪比均值之间的差值,若所述第一峰值信噪比与所述第三峰值信噪比的信噪比均值之间的差值大于或等于预设差值阈值,则确定所述动态画面为大幅度变化动态画面;若所述第一峰值信噪比与所述第三峰值信噪比的信噪比均值之间的差值小于预设差值阈值,则确定所述动态画面为小幅度变化动态画面,其中,所述预设第三数量可以与所述预设第一数量或所述预设第二数量相同或不同。In this embodiment, specifically, a third reference image that is preset a third number of frames before the image to be detected is obtained, the first peak signal-to-noise ratio corresponding to the image to be detected is determined, and each of the third Referring to the SNR average of the third PSNR corresponding to the image, calculating the difference between the first PSNR and the SNR average of the third PSNR, if the first The difference between the peak signal-to-noise ratio and the signal-to-noise ratio average value of the third peak signal-to-noise ratio is greater than or equal to a preset difference threshold, then it is determined that the dynamic picture is a dynamic picture with a large change; if the first If the difference between the peak signal-to-noise ratio and the average value of the signal-to-noise ratio of the third peak signal-to-noise ratio is less than a preset difference threshold, it is determined that the dynamic picture is a dynamic picture with a small change, wherein the preset first The third quantity may be the same as or different from the preset first quantity or the preset second quantity.

在本实施例中,通过获取待检测图像以及位于所述待检测图像前一帧的第一参照图像,若根据帧间差分算法、所述待检测图像和所述第一参照图像,检测到第一运动目标,则根据所述第一运动目标的第一运动方向,判断所述第一运动目标是否处于打字状态,实现了通过帧间差分算法对前后两帧图像中的第一运动目标是否处于打字状态的检测,进而通过若确定所述第一运动目标不处于打字状态,则根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标,实现了通过光流算法对不处于打字状态的第二运动目标的检测,进而通过若在所述待检测图像中未检测到第二运动目标,则判定当前显示画面为静帧画面,实现了静帧检测。由于打字状态下,整体画面中的像素点的变化非常小,静帧分区检测或光流法均难以检测到,或者容易判定为噪声或误差,导致对静帧画面的误判,本申请通过帧间差分算法可以快速检测出打字状态,而对于不处于打字状态的第二运动目标,可以进一步通过光流法进行准确的检测,相比于静帧分区检测,对于类似光标移动这种细微像素点的移动变化的检测准确性更高,故而可以有效提高静帧检测的准确性,克服了解决现有技术静帧检测的准确性较低的技术问题。In this embodiment, by acquiring the image to be detected and the first reference image located one frame before the image to be detected, if the first reference image is detected according to the inter-frame difference algorithm, the image to be detected and the first reference image A moving object, then according to the first moving direction of the first moving object, it is judged whether the first moving object is in the typing state, and it is realized whether the first moving object in the two frames of images before and after is in the typing state through the frame difference algorithm. The detection of the typing state, and then if it is determined that the first moving object is not in the typing state, then according to the optical flow algorithm, the image to be detected and the first reference image, detect the second moving object, and realize the detection of the second moving object through optical flow. The algorithm detects the second moving object that is not in the typing state, and then if the second moving object is not detected in the image to be detected, it is determined that the current display image is a still frame image, and the still frame detection is realized. Since the change of pixels in the overall picture is very small in the typing state, it is difficult to detect the still frame partition detection or the optical flow method, or it is easy to judge it as noise or error, resulting in misjudgment of the still frame picture. The difference algorithm can quickly detect the typing state, and for the second moving target that is not in the typing state, it can be further accurately detected by the optical flow method. The detection accuracy of motion changes is higher, so the accuracy of still frame detection can be effectively improved, and the technical problem of low accuracy of still frame detection in the prior art is overcome.

进一步地,在本申请静帧检测方法的另一实施例中,参照图5,所述光流算法包括稀疏光流算法,所述根据光流算法、所述待检测图像和所述第一参照图像,检测第二运动目标的步骤包括:Further, in another embodiment of the still frame detection method of the present application, referring to FIG. 5 , the optical flow algorithm includes a sparse optical flow algorithm, and the optical flow algorithm, the image to be detected and the first reference image, the step of detecting the second moving target includes:

步骤C10,检测所述第一参照图像中的第一角点;Step C10, detecting a first corner point in the first reference image;

在本实施例中,通过角点检测器检测所述第一参照图像中的第一角点,其中,所述角点检测器包括Shi-Tomasi角点检测器等,具体地,可以使用一个固定窗口在所述第一参照图像上进行任意方向上的滑动,比较滑动前与滑动后所述固定窗口中的像素灰度变化程度,若所述固定窗口在任意方向上的滑动时,窗口中的灰度值的变化量都超出预设灰度阈值,则可以认为该窗口中存在角点,由此可以得到所述第一参照图像中角点的位置,生成角点初始位置列表。In this embodiment, the first corner in the first reference image is detected by a corner detector, wherein the corner detector includes a Shi-Tomasi corner detector, etc., specifically, a fixed The window slides in any direction on the first reference image, and compares the degree of grayscale change of pixels in the fixed window before and after sliding. If the fixed window slides in any direction, the If the variation of the grayscale value exceeds the preset grayscale threshold, it can be considered that there are corner points in the window, and thus the positions of the corner points in the first reference image can be obtained, and a list of initial corner point positions can be generated.

在一种可实施的方式中,所述检测所述第一参照图像中的第一角点的步骤之前,还可以包括:对所述待检测图像和所述第一参照图像进行灰度化。In an implementable manner, before the step of detecting the first corner point in the first reference image, it may further include: performing grayscale conversion on the image to be detected and the first reference image.

步骤C20,根据稀疏光流算法,从所述待检测图像中确定与所述第一角点相匹配的第二角点,相互匹配的第一角点和第二角点组成角点对;Step C20, according to the sparse optical flow algorithm, determine a second corner point that matches the first corner point from the image to be detected, and the matched first corner point and second corner point form a corner point pair;

在本实施例中,具体地,根据稀疏光流算法对各所述第一角点进行跟踪确定各所述第一角点在所述待检测图像中的新角点位置,根据所述新角点位置从所述待检测图像中确定与所述第一角点相匹配的第二角点,相互匹配的第一角点和第二角点组成角点对,需要说明的是,根据稀疏光流算法确定的各所述第一角点对应的新角点位置可能超出所述待检测图像的图像范围,对于超出图像范围的新角点位置,即从所述待检测图像中消失,故而从所述待检测图像中无法确定相匹配的第二角点。In this embodiment, specifically, each of the first corner points is tracked according to the sparse optical flow algorithm to determine the new corner position of each of the first corner points in the image to be detected, and according to the new corner The point position determines the second corner point matching the first corner point from the image to be detected, and the matched first corner point and second corner point form a corner point pair. It should be noted that, according to the sparse light The new corner position corresponding to each of the first corner points determined by the flow algorithm may exceed the image range of the image to be detected, and the new corner position beyond the image range will disappear from the image to be detected, so from No matching second corner point can be determined in the image to be detected.

步骤C30,根据角点对的相对位置关系,判断所述待检测图像中是否存在第二运动目标。Step C30, judging whether there is a second moving object in the image to be detected according to the relative positional relationship between the corner point pairs.

在本实施例中,具体地,根据角点对中的第二角点的位置相对于同一个角点对中的第一角点的位置是否发生变化,可以判断所述待检测图像中是否存在第二运动目标,若角点对中的第二角点的位置相对于同一个角点对中的第一角点的位置发生了变化,则判定所述待检测图像中存在第二运动目标,若角点对中的第二角点的位置相对于同一个角点对中的第一角点的位置未发生了变化,则判定所述待检测图像中不存在第二运动目标。In this embodiment, specifically, according to whether the position of the second corner point in the corner point pair changes relative to the position of the first corner point in the same corner point pair, it can be judged whether there is For the second moving object, if the position of the second corner point in the corner point pair changes relative to the position of the first corner point in the same corner point pair, it is determined that there is a second moving object in the image to be detected, If the position of the second corner point in the corner point pair does not change relative to the position of the first corner point in the same corner point pair, it is determined that there is no second moving object in the image to be detected.

可选地,所述根据角点对的相对位置关系,判断所述待检测图像中是否存在第二运动目标的步骤包括:Optionally, the step of judging whether there is a second moving object in the image to be detected according to the relative positional relationship between the corner point pairs includes:

步骤C31,在预设画布上,确定各所述角点对中的第一角点和第二角点的位置;Step C31, on the preset canvas, determine the positions of the first corner point and the second corner point in each pair of corner points;

步骤C32,连接各所述角点对中的第一角点和第二角点,得到角点对连线;Step C32, connecting the first corner point and the second corner point in each of the corner point pairs to obtain a connecting line of the corner point pairs;

步骤C33,若在所述画布的预设非边缘区域检测到所述角点对连线,则判定所述待检测图像中存在第二运动目标。Step C33, if the pair of corners is detected in the preset non-edge area of the canvas, then it is determined that there is a second moving object in the image to be detected.

在本实施例中,具体地,新建画布,将各所述角点对中的第一角点和第二角点根据其各自对应的位置绘制在所述画布上,连接各所述角点对中的第一角点和第二角点,得到角点对连线,判断各所述角点对连线是否处于所述画布的预设非边缘区域,若在所述画布的预设非边缘区域检测到所述角点对连线,则判定所述待检测图像中存在第二运动目标;若在所述画布的预设非边缘区域未检测到所述角点对连线,则判定所述待检测图像中不存在第二运动目标。In this embodiment, specifically, a new canvas is created, and the first corner point and the second corner point in each pair of corner points are drawn on the canvas according to their respective corresponding positions, and each pair of corner points is connected The first corner point and the second corner point in the corner point are obtained to connect the corner points, and it is judged whether each of the corner point pairs is in the preset non-edge area of the canvas, if it is in the preset non-edge area of the canvas If the pair of corner points is detected in the area, it is determined that there is a second moving object in the image to be detected; if the pair of corner points is not detected in the preset non-edge area of the canvas, it is determined that the pair of corner points is connected There is no second moving object in the image to be detected.

在一种可实施的方式中,所述画布可以为黑色画布,所述角点对连线可以绘制成白色连线,故而,若根据颜色追踪算法在画布上检测到白色的运动轨迹曲线,则可以判断所述待检测图像中存在第二运动目标。In an implementable manner, the canvas can be a black canvas, and the pair of corner points can be drawn as a white line. Therefore, if a white motion track curve is detected on the canvas according to the color tracking algorithm, then It may be determined that there is a second moving object in the image to be detected.

在本实施例中,稀疏光流并不需要对图像的每个像素点进行逐点计算,只需要指定一组特征点进行跟踪即可,本实施例中使用图像中的角点来表征图像特征,局部表示特征的方式大大节省了计算开销,有效提高了静帧检测的运行速度。In this embodiment, the sparse optical flow does not need to calculate each pixel of the image point by point, but only needs to specify a set of feature points for tracking. In this embodiment, the corner points in the image are used to represent the image features , the way of local representation of features greatly saves computational overhead and effectively improves the running speed of still frame detection.

进一步地,本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的静帧检测方法的步骤。Further, the present application also provides a computer program product, including a computer program, when the computer program is executed by a processor, the steps of the above still frame detection method are realized.

本申请提供的计算机程序产品解决了解决现有技术静帧检测的准确性较低的技术问题。与现有技术相比,本发明实施例提供的计算机程序产品的有益效果与上述实施例提供的静帧检测方法的有益效果相同,在此不做赘述。The computer program product provided by the present application solves the technical problem of low accuracy of static frame detection in the prior art. Compared with the prior art, the beneficial effect of the computer program product provided by the embodiment of the present invention is the same as the beneficial effect of the still frame detection method provided by the above embodiment, and will not be repeated here.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent processing scope of the present application in the same way.

Claims (10)

1. A static frame detection method is characterized by comprising the following steps:
acquiring an image to be detected and a first reference image positioned in a frame before the image to be detected;
if a first moving target is detected according to an interframe difference algorithm, the image to be detected and the first reference image, judging whether the first moving target is in a typing state or not according to a first moving direction of the first moving target;
if the first moving object is determined not to be in a typing state, detecting a second moving object according to an optical flow algorithm, the image to be detected and the first reference image;
and if the second moving target is not detected in the image to be detected, judging that the current display picture is a static frame picture.
2. The method as claimed in claim 1, wherein said step of determining that said image to be detected is a still frame picture if said second moving object is not detected in said image to be detected comprises:
if a second moving target is not detected in the image to be detected, judging that the current display picture is a suspected static frame picture;
acquiring a suspected static frame picture historical detection result corresponding to a historical to-be-detected image of a first number of frames preset in front of the to-be-detected image;
and if the frequency of the suspected static frame pictures is judged to be greater than or equal to a preset frequency threshold value in each historical detection result of the suspected static frame pictures, judging that the current display picture is a static frame picture.
3. The method of claim 1, wherein the optical flow algorithm comprises a sparse optical flow algorithm, and the step of detecting a second moving object based on the optical flow algorithm, the image to be detected and the first reference image comprises:
detecting a first corner in the first reference image;
according to a sparse optical flow algorithm, determining a second angular point matched with the first angular point from the image to be detected, and mutually matched first angular point and second angular point group angular point pairs;
and judging whether a second moving target exists in the image to be detected or not according to the relative position relation of the angle point pair.
4. The method as claimed in claim 3, wherein the step of determining whether the second moving object exists in the image to be detected according to the relative position relationship of the pair of angle points comprises:
determining the positions of a first corner point and a second corner point in each corner point pair on a preset canvas;
connecting a first corner point and a second corner point in each corner point pair to obtain a corner point pair connecting line;
and if the corner point pair connection line is detected in the preset non-edge area of the canvas, judging that a second moving target exists in the image to be detected.
5. The method of claim 1, wherein the optical flow algorithm comprises a dense optical flow algorithm, and the step of detecting a second moving object based on the optical flow algorithm, the image to be detected, and the first reference image comprises:
determining an optical flow vector corresponding to each pixel point in the image to be detected according to an optical flow algorithm, the image to be detected and the first reference image;
generating an optical flow image according to the optical flow modular length and the optical flow direction of the optical flow vector;
and if the moving image is detected in the optical flow image, judging a second moving object existing in the image to be detected.
6. The still frame detection method according to claim 5, wherein the step of determining, if a moving image is detected in the optical flow image, a second moving object present in the image to be detected comprises:
graying the optical flow image to obtain an optical flow grayscale image;
carrying out self-adaptive binarization on the light stream gray-scale image to obtain an image to be detected;
determining a second contour of the moving image in the image to be detected according to a contour finding algorithm;
and if a second contour is detected in the preset non-edge area of the image to be detected, judging a second moving target existing in the image to be detected.
7. The method of claim 1, wherein the step of determining whether the first moving object is typing according to the first moving direction of the first moving object comprises:
determining a target contour corresponding to each first moving target according to a contour finding algorithm;
determining a maximum target contour with a maximum area from each target contour;
determining a minimum bounding rectangle of the maximum target contour;
and if the minimum circumscribed rectangle is determined to be in a horizontal state or a vertical state according to the inclination angle of the minimum circumscribed rectangle, determining that the first moving target is in a typing state.
8. The method of claim 1, wherein the step of determining that the currently displayed picture is a still frame picture is followed by the step of:
acquiring a second reference image which is positioned in front of the image to be detected and is preset with a second number of frames;
determining a first peak signal-to-noise ratio corresponding to the image to be detected and a signal-to-noise ratio mean value of second peak signal-to-noise ratios corresponding to the second reference images;
if the difference value between the first peak signal-to-noise ratio and the signal-to-noise ratio mean value is larger than or equal to a preset difference value threshold value, determining that the static frame picture is interfered by noise;
and if the difference value between the first peak signal-to-noise ratio and the mean value of the signal-to-noise ratios is smaller than a preset difference value threshold value, determining that the static frame picture is a complete static frame picture.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of detecting static frames according to any of claims 1 to 8.
10. A storage medium, characterized in that the storage medium is a computer-readable storage medium having stored thereon a program for implementing a static frame detection method, the program being executed by a processor to implement the steps of the static frame detection method according to any one of claims 1 to 8.
CN202211153932.0A 2022-09-21 2022-09-21 Still frame detection method, electronic device and storage medium Pending CN115423795A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211153932.0A CN115423795A (en) 2022-09-21 2022-09-21 Still frame detection method, electronic device and storage medium
PCT/CN2022/142038 WO2024060448A1 (en) 2022-09-21 2022-12-26 Static frame detection method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211153932.0A CN115423795A (en) 2022-09-21 2022-09-21 Still frame detection method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN115423795A true CN115423795A (en) 2022-12-02

Family

ID=84203352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211153932.0A Pending CN115423795A (en) 2022-09-21 2022-09-21 Still frame detection method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN115423795A (en)
WO (1) WO2024060448A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024060448A1 (en) * 2022-09-21 2024-03-28 深圳创维-Rgb电子有限公司 Static frame detection method, electronic device and storage medium
CN118101925A (en) * 2024-02-28 2024-05-28 镁佳(武汉)科技有限公司 Freeze frame detection method, device, equipment, medium and product for vehicle camera

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118657807B (en) * 2024-08-20 2024-12-03 湖南科天健光电技术有限公司 Method, apparatus, terminal, storage medium and program product for detecting moving object
CN118736339B (en) * 2024-09-03 2025-01-17 李勇 Target searching method, system and equipment based on infrared image
CN119180821B (en) * 2024-11-26 2025-03-21 湖南快乐阳光互动娱乐传媒有限公司 A frame clamp detection method, system and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846359B (en) * 2017-01-17 2019-09-20 湖南优象科技有限公司 Moving target rapid detection method based on video sequence
US10789729B2 (en) * 2017-12-07 2020-09-29 Ti Training Corp. System and method(s) for determining projectile impact location
CN110312163B (en) * 2019-07-10 2021-04-13 湖南快乐阳光互动娱乐传媒有限公司 Video static frame detection method and system
CN115423795A (en) * 2022-09-21 2022-12-02 深圳创维-Rgb电子有限公司 Still frame detection method, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024060448A1 (en) * 2022-09-21 2024-03-28 深圳创维-Rgb电子有限公司 Static frame detection method, electronic device and storage medium
CN118101925A (en) * 2024-02-28 2024-05-28 镁佳(武汉)科技有限公司 Freeze frame detection method, device, equipment, medium and product for vehicle camera

Also Published As

Publication number Publication date
WO2024060448A1 (en) 2024-03-28

Similar Documents

Publication Publication Date Title
CN115423795A (en) Still frame detection method, electronic device and storage medium
CN112669344B (en) Method and device for positioning moving object, electronic equipment and storage medium
US11334981B2 (en) Method and apparatus for detecting a screen, and electronic device
US20240078646A1 (en) Image processing method, image processing apparatus, and non-transitory storage medium
US11643076B2 (en) Forward collision control method and apparatus, electronic device, program, and medium
US9697416B2 (en) Object detection using cascaded convolutional neural networks
JP6445775B2 (en) Image processing apparatus and image processing method
US9311533B2 (en) Device and method for detecting the presence of a logo in a picture
US20210124928A1 (en) Object tracking methods and apparatuses, electronic devices and storage media
US10360687B2 (en) Detection and location of active display regions in videos with static borders
US11710315B2 (en) Method, electronic apparatus and storage medium for detecting a static logo of a video
CN113516609B (en) Split-screen video detection method and device, computer equipment and storage medium
US8693740B1 (en) System and method for face detection in digital images
CN111881915B (en) Satellite video target intelligent detection method based on multiple prior information constraints
US20150178552A1 (en) Object Detection Techniques
CN110728700B (en) Moving target tracking method and device, computer equipment and storage medium
US20240037976A1 (en) Information processing device, information processing method, and computer-readable recording medium
US8358851B2 (en) Digital image analyzing method and related computer program product
CN118488329A (en) Pixel dead pixel correction method and device, electronic equipment and storage medium
US10916016B2 (en) Image processing apparatus and method and monitoring system
WO2024060447A1 (en) Dynamic picture detection method and apparatus, display, and storage medium
CN116994207A (en) Violent sorting detection method and device, electronic equipment and storage medium
US11354808B2 (en) Image processing apparatus and method and monitoring system for classifying visual elements as foreground or background
US20130120588A1 (en) Video window detection
CN114612492B (en) Image frame detection method and device and electronic equipment

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