New! View global litigation for patent families

CN102096924A - Method for adjusting detection frame rate - Google Patents

Method for adjusting detection frame rate Download PDF

Info

Publication number
CN102096924A
CN102096924A CN 201010550696 CN201010550696A CN102096924A CN 102096924 A CN102096924 A CN 102096924A CN 201010550696 CN201010550696 CN 201010550696 CN 201010550696 A CN201010550696 A CN 201010550696A CN 102096924 A CN102096924 A CN 102096924A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
detection
rate
frame
current
adjusting
Prior art date
Application number
CN 201010550696
Other languages
Chinese (zh)
Other versions
CN102096924B (en )
Inventor
高飞
Original Assignee
无锡中星微电子有限公司
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

Links

Abstract

The invention provides a method for adjusting a detection frame rate, which comprises the following steps of: acquiring the number of moving objects in the current detected picture frames at the current detection frame rate; judging whether the current detection frame rate needs to be adjusted according to the number of the moving objects; and if the current detection frame rate needs to be adjusted, adjusting the current detection frame rate to an object detection frame rate. Therefore, the method realizes the adjustment of the detection frame rate in real time according to the number of the moving objects in the current picture frames and the current detection frame rate, and improves the detection speed of movements through adjustment.

Description

一种调整检测帧率的方法 A method for detecting a frame rate adjustment

[0001]【技术领域】 [0001] TECHNICAL FIELD

本发明涉及运动检测领域,特别是涉及一种调整检测帧率的方法。 The present invention relates to motion detection, and more particularly to a method of detecting the frame rate adjustment.

[0002]【背景技术】 [0002] BACKGROUND

在对视频进行运动目标的检测和跟踪时,若对每一图像帧均进行运动目标的检测则计算量会很大,从而导致检测速度较慢。 When the video detection and tracking of moving targets, when the average for each image frame motion detection target is calculated amount will be large, resulting in slow detection. 目前,运动检测通常采用降低检测帧率的办法来进行检测和跟踪,即只对其中一部分帧进行检测,这样则可以大大降低计算量。 Currently, motion detection commonly used approach to reduce the frame rate detection and track detection, i.e., only a part of the frame is detected, so that the calculation amount can be greatly reduced.

[0003] 但是检测帧率过低时,则很可能在跟踪检测过程中丢失对运动目标的跟踪。 [0003] However, when detected frame rate is too low, it is likely to lose track moving targets in tracking and detection process. 举例来讲,当视频的播放帧率为30帧/秒,而对视频的检测帧率为6帧/秒,也就是说,视频每播放5图像帧则选取一图像帧进行检测,如将视频播放的第一图像帧作为第一个被检测的图像帧,则第二个被检测的图像帧则为视频播放的第6图像帧,第三个被检测的图像帧则为视频播放的第11帧;此时,如果所述运动目标在视频播放的前10帧中存在,而后的图像帧中均不存在所述运动目标,则第三个被检测的帧以及以后被检测的帧均是从视频播放的第11图像帧开始选取的,所以往后选取的被检测的帧是不会检测到所述运动目标的。 For example speaking, when playing the video frame rate is 30 frames / sec, while the video frame rate of 6 detection / sec, that is to say, every video frame image 5 is selected playback image frame is detected, such as the video 11, a first image frame as the first frame image is detected, the second image frame is detected, compared sixth image playback frame of the video playback, and the third image frame was detected video playback frame; at this time, if the moving target is present in front of the video player 10, then the image frames are not present in the moving target, the third frame is detected and a later frame are detected from 11, video playback start frame of the image selected, the selected frame is detected next is not detecting the moving object.

[0004] 如果采用的检测帧率过高而运动目标数目过多时,计算量比较大,则难以实时获取结果。 [0004] If the frame rate is too high for detecting an excessive number of moving objects, the amount of computation is large, it is difficult to obtain the results in real time.

[0005] 因此有必要提出一种新的技术方案来解决上述问题。 [0005] It is therefore necessary to propose a new technical solution to solve these problems.

[0006]【发明内容】 [0006] [DISCLOSURE]

本部分的目的在于概述本发明的实施例的一些方面以及简要介绍一些较佳实施例。 SUMMARY This section is for the purpose of some aspects of embodiments of the present invention and to briefly introduce some preferred embodiments. 在本部分以及本申请的说明书摘要和发明名称中可能会做些简化或省略以避免使本部分、说明书摘要和发明名称的目的模糊,而这种简化或省略不能用于限制本发明的范围。 Abstract and title of the invention in this section and in the present application may do simplified or omitted to avoid obscuring the present section, the name of the object of the invention is abstract and blurred, can not be omitted or simplified and this limit the scope of the present invention.

[0007] 本发明的目的在于提供一种调整检测帧率的方法,其可以提高对运动目标的检测跟踪速度。 [0007] The object of the present invention is to provide a method for detecting a frame rate adjustment, which may increase the speed of detection and tracking of moving targets.

[0008] 根据本发明的目的,本发明提供一种调整检测帧率的方法,其包括:获取在当前检测帧率下被检测的当前图像帧中的运动目标数目;根据所述运动目标数目判断是否需要调整所述当前检测帧率;当判断需要调整当前检测帧率时,根据当前图像帧中的运动目标数目预估目标检测帧率;若需要调整检测帧率,则将当前检测帧率调整至目标检测帧率。 [0008] The object of the present invention, the present invention provides a method for adjusting a frame rate detection, comprising: obtaining the number of the current image frame moving target is detected in the current detection frame rates; moving target is determined according to the number of detecting whether said current frame rate needs to be adjusted; when it is judged the current detector to adjust the frame rate, the frame rate according to the estimated number of moving target detection target in the current image frame; detecting if the frame rate needs to be adjusted, then the current detection frame rate adjustment to target detection frame rate.

[0009] 进一步的,根据所述运动目标数目判断是否需要调整所述当前检测帧率的方法为:比较所述运动目标数目与当前检测帧率下所能处理的最大目标数目,当所述运动目标数目大于所述最大目标数目,则判定为需要降低检测帧率。 The current method of detecting the frame rate [0009] Further, according to the number of moving objects is determined whether to adjust the: maximum number of targets can be processed at a frame rate of the comparison target with the current number of motion detection, when the movement greater than the maximum number of the target number of the target, it is determined that detection is necessary to reduce the frame rate.

[0010] 更进一步的,调整预估目标检测帧率的方法包括有:设定多个检测帧率,所述多个检测帧率中的一个为当前检测帧率,其中各个检测帧率分别对应不同的最大目标数目,其中,每一检测帧率对应的最大目标数目为该检测帧率下所能处理的运动目标的最大数目; 当需要降低检测帧率时,从已设定的多个检测帧率选择一个作为预估的目标检测帧率,该目标检测帧率需满足如下条件:该目标检测帧率对应的最大目标数目大于该目标检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目,且将各检测帧率对应的最大目标数目和各检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目的差值进行比较时,该目标检测帧率所对应的差值的绝对值最小。 Still further, the object detection method of adjusting a frame rate estimates [0010] comprising: setting a plurality of detecting the frame rate, the frame rate of a plurality of detected frame rate for the current detection, wherein a frame rate corresponding to each detected respectively the maximum number of different targets, wherein a target number of a maximum frame rate of each detector that corresponds to the maximum number of the frame rate of the moving object detection can be handled; and when detecting the frame rate needs to be reduced, from a plurality of detection has been set detecting a current frame and the image frame having the same numerals of the maximum number of object detection target frame rate is greater than the target corresponding to the detected frame rate: frame rate is selected as a prediction target detection frame rate, the frame rate for an object detection satisfy the following conditions the number of moving object detection frame and the current frame image having the same numerals in the number of motion in the target, and the frame rate corresponding to the respective detection target and the maximum number of difference of each detection frame rates compared to the frame rate target detection minimum absolute value corresponding to the difference.

[0011] 进一步的,根据所述运动目标数目判断是否需要调整所述当前检测帧率的方法为:预先设定检测帧率所对应的最小目标数目,比较所述运动目标数目与当前检测帧率下所对应的最小目标数目,当所述运动目标数目小于所述最小目标数目时,则判定为需要提高检测帧率。 [0011] Further, according to the number of the moving target method of determining whether to adjust the frame rate as currently detected: detecting a preset minimum target number corresponding to a frame rate, and comparing the current number of motion detection target frame rate the minimum number corresponding to the target, the moving object when the number of said minimum number is less than the target, it is determined to be necessary to improve the detection frame rate.

[0012] 更进一步的,调整预估目标检测帧率的方法包括有:设定多个检测帧率,所述多个检测帧率中的一个为当前检测帧率,其中各个检测帧率分别对应不同的最小目标数目;当需要提高检测帧率时,从已设定的多个检测帧率选择一个作为预估的目标检测帧率,该目标检测帧率需满足如下条件:该目标检测帧率对应的最小目标数目小于该目标检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目,且将各检测帧率对应的最小目标数目和各检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目的差值进行比较时,其中该目标检测帧率所对应的差值的绝对值最小。 Still further, the object detection method of adjusting a frame rate estimates [0012] comprising: setting a plurality of detecting the frame rate, the frame rate of a plurality of detected frame rate for the current detection, wherein a frame rate corresponding to each detected respectively minimum number of different target; when it is necessary to improve the detection frame rate selected from a plurality of detecting the frame rate has been set as a target detection estimated frame rate, the frame rate for an object detection satisfies the following condition: the target frame rate detection minimum number smaller than the number corresponding to the moving object detection target frame and the current frame image with the same label in the detection target frame rates, and the minimum number of each of the detection target and each detection frame rate corresponding to the current image frame having a frame rate the number of moving objects in the same frame mark detecting difference is compared, wherein the minimum absolute value detection target frame rate corresponding to the difference.

[0013] 更进一步的,在判定需要提高检测帧率后进一步包括:预估跟踪所述当前图像帧中各运动目标在下一图像帧中的位置,判定所述预估跟踪的各运动目标是否均在下一图像帧中存在,若存在则不提高检测帧率,否则提高检测帧率。 [0013] Further still, further comprising determining the need to improve the detection frame rate: Tracking the estimated position of the current image frame of each moving object in a next image frame, the estimate is determined whether each of the motion tracking are in the next image frame exists, the frame rate if there is no detected increase, or increase the detection frame rate.

[0014] 进一步的,所述调整检测帧率的方法还包括:对当前检测帧率和预估的目标检测帧率下的各检测帧分别按照同一标记系统进行顺序标记;判定需要调整检测帧率后,计算当前检测帧率下当前图像帧中的运动目标数目及在预估的目标检测帧率下与所述当前图像的标记相同的被检测帧中的运动目标数目之间的变化数的绝对值,比较所述绝对值与当前检测帧率下对应的增量阈值的大小,若所述绝对值大于所述增量阈值,则将当前检测帧率调整至预估的目标检测帧率,否则,依然沿用原检测帧率作为当前检测帧率。 Method [0014] Further, the adjustment of the detection frame rate further comprising: detecting for each frame in the current frame rate and the estimated detection target detection frame rate are sequentially labeled according to the same labeling system; determining whether to adjust a frame rate detection absolute after calculating the number of moving objects detected in the current frame current image frame rate of the present mark and the same image detection in the estimated target frame rate is the number of changes between the target number of motion detection frame value, comparing the absolute value of the detected current corresponding to the magnitude of the increase threshold frame rate, if the absolute value is greater than the delta threshold, then the current frame rate is adjusted to the estimated detection target detection frame rate, or , still follow the original detection frame rate as the current detection frame rate.

[0015] 更进一步的,计算所述绝对值的方法包括:对不同的检测帧率下的检测帧分别从第一个检测帧进行标记;获取所述当前检测帧率下所述当前图像帧对应的检测帧的标记, 在预估的目标检测帧率下找到具有相同的所述标记的检测帧,计算所述检测帧对应的图像帧中运动目标数目,最后得出所述当前检测帧率下当前图像帧中的运动目标数目与所述调整后检测帧率下检测帧对应的图像帧中的运动目标数目的差的绝对值,其中所述检测帧为被检测的图像帧。 [0015] Still further, the method of calculating the absolute value comprises: labeling of the detection frame at different frame rates, respectively from the first detector detecting a frame; obtaining said current detecting the current image frame corresponds to the frame rate detecting a frame mark, found in the estimated target detection frames have the same frame rate of the detection mark, calculates the number of frames corresponding to the detected moving object in the image frame, the conclusion that the currently detected frame rate after the current target number of motion picture frames and the adjustment of the number of absolute difference detecting moving target frame corresponding to the frame rate of the detected image frame, wherein the frame is detected in the image frame is detected.

[0016] 根据本发明的另一方面,本发明提供一种调整检测帧率的方法,其包括:获取在当前检测帧率下被检测的当前图像帧中的运动目标数目;比较所述运动目标数目与当前检测帧率下所能处理的最大目标数目和/或最小目标数目,当所述运动目标数目大于所述最大目标数目或小于所述最小目标数目时,则判定为需要调整检测帧率;根据当前图像帧中的运动目标数目预估一个调整后的目标检测帧率,计算当前检测帧率下当前图像帧中的运动目标数与在预估的目标检测帧率下对应于所述当前图像帧的检测帧中运动目标数的变化的绝对值,比较所述绝对值与当前检测帧率下的运动目标增量阀值的大小,若所述绝对值大于所述增量阈值,则用所述预估的目标检测帧率替换当前的检测帧率,否则继续预估一个调整后的目标检测帧率,重复前述步骤,直至将当 [0016] According to another aspect of the present invention, the present invention provides a method for adjusting a frame rate detection, comprising: obtaining the number of the current image frame moving target is detected in the current detection of the frame rate; comparing the moving target when the maximum number of targets and / or minimize the number of targets and the number of the current frame rate detection can be processed, when the target number of motion greater than the maximum or less than the minimum target number target number, it is determined that the detection frame rate needs to be adjusted ; detecting a target frame rate of the number of moving objects in the current image frame estimate an adjustment, calculates a target number of the current image frame motion is detected in the current frame rates and detection of the target estimated at a frame rate corresponding to the current detecting the absolute value of the motion image frame in the change in the number of the target, comparing the absolute value of the current size of the motion detection threshold increment at the target frame rate, if the absolute value is greater than the delta threshold, then use replace the current frame rate of the estimated detection target detected frame rate, or continue to estimate a target detection frame rate after adjustment, repeating the foregoing steps until when 的检测帧率替换为预估的目标检测帧率。 The frame rate is replaced with the estimated detection target detection frame rate.

[0017] 进一步的,当所述运动目标数目大于所述最大目标数目时则需要降低检测帧率; 当所述运动目标数目小于所述最小目标数目时则需要提高检测帧率。 [0017] Further, when the number of the moving object is greater than the maximum number of target detection frame rate needs to be reduced; when the number of the moving object is less than the minimum number required to improve the detection target frame rate. [0018] 进一步的,每个检测帧率分别对应不同的最大目标数目和最小目标数目,当需要降低检测帧率时,则将降低后检测帧率的与当前图像帧具有相同标记的检测帧中的运动目标数目小于对应最大目标数目且与所述最大目标数目差值的绝对值最小时对应的检测帧率作为目标检测帧率;当需要提高检测帧率时,则将提高后检测帧率的与当前图像帧具有相同标记的检测帧中的运动目标数目大于对应最小目标数目且与所述最小目标数目差值的绝对值最小时对应的坚持帧率作为目标检测帧率,其中对各个检测帧率中要检测的帧图像分别按顺序进行标记。 [0018] Further, each detection frame rate corresponding to different maximum number and the minimum number of targets target, detecting when it is necessary to reduce the frame rate, the frame rate will be reduced and the detection current image frame having the same frame detecting labeled less than the maximum number of the moving object and a target number corresponding to the maximum absolute value of the target number corresponding to a minimum difference detector detecting the frame rate as the target frame rate; when it is necessary to improve the detection frame rate, then the frame rate to improve the detection the number of moving object detection frame and the current frame image with the same label is greater than the number corresponding to a target and adhere to the minimum absolute value of the difference between the minimum target number corresponding to a minimum target frame rate as the frame rate detection, wherein for each detection frame the image frame rate in order to be detected are labeled.

[0019] 进一步的,在判定需要提高检测帧率后进一步包括对提高检测帧率的必要性判定,其具体为:当需要提高检测帧率时则预估跟踪所述当前图像帧中各运动目标在下一图像帧中的位置,判定所述预估跟踪的各运动目标是否均在下一图像帧中存在,若存在则提高检测帧率,否则不提高检测帧率。 [0019] Further, the need to improve the detection further comprises determining frame rate, which is determined after a particular need to improve the detection frame rate: frame rate is detected when the need to improve the estimate of each track moving objects in the current image frame in the next position of the image frame, the estimate is determined whether each of the motion tracking are present in the next image frame, the detection frame rate is increased if present, or do not improve the detection frame rate.

[0020] 进一步的,所述计算当前检测帧率下当前图像帧中的运动目标数目与预估的目标检测帧率下与所述当前图像帧对应的新的被检测图像帧中运动目标数目的变化数的绝对值包括:对不同的检测帧率下的检测帧分别从第一个检测帧进行标记,获取所述当前检测帧率下所述当前图像帧对应的当前检测帧的标记,在目标检测帧率下找到具有相同所述标记的检测帧,计算所述检测帧对应的图像帧中运动目标数目,最后得所述当前检测帧率下当前图像帧中的运动目标数目与所述调整后检测帧率下检测帧对应的图像帧中的所述运动目标数目的差的绝对值,其中所述检查帧为被检测的图像帧。 [0020] Further, the calculation of the number of moving objects detected in the current frame current image frame rates and detection of a target frame rate estimated with the current image frame corresponds to a new image frame is detected moving object number absolute value of the change comprising: detection for detecting a frame at different frame rates, respectively, from a first frame detection flag, marking the current frame rate is acquired current image frame corresponding to the currently detected frame is detected, the target after finding the detected frames have the same frame rate of the marker is detected, calculates the number of frames corresponding to the detected moving object in the image frame, and finally to obtain the number of moving the adjustment target image frame in the current frame rate of the current detection the number of absolute difference detected moving object detection frame corresponding to the frame rate of image frame, wherein the inspection frame is an image frame is detected.

[0021] 与现有技术相比,本发明自定义一种调整检测帧率的方法,其首先判定是否需要调整检测帧率,如果需要调整检测帧率,则进一步判断检测帧率调整后运动目标数目的变化数的绝对值是否小于一预定的增量阈值,小于所述增量阈值不对所述检测帧率进行调整,否则调整检测帧率。 After [0021] Compared with the prior art, the present invention is a method for adjusting a custom frame rate detection, it first determines whether the detection frame rate needs to be adjusted, if necessary to adjust the detected frame rate, the frame rate adjustment is further determined whether the detected moving object absolute value of the variation is smaller than a predetermined number of increment threshold, not less than the threshold value of the incremental detecting the frame rate is adjusted, or adjustment of the detection frame rate. 从而实现了根据当前图像帧运动数目和当前检测帧率来实时调整检测帧率的调整,且通过调整提高了运动的检测速度。 Thereby achieving a real-time adjustment to the number of motion detection according to the frame rate of the current image frame and a current detection frame rate adjustment, and improved by adjusting the speed of motion detection.

[0022]【附图说明】 [0022] BRIEF DESCRIPTION

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present invention, as briefly described in the introduction to the accompanying drawings required for use in describing the embodiments. Apparently, the drawings described below are merely some of embodiments of the present invention, for ordinary skill in the art, without creative efforts may still derive other drawings according to these drawings. 其中: among them:

图1为本发明中调整检测帧率的方法在一个实施例中的流程图; 图2为检测帧率与最大目标数目在一个实施例中的对应表; The method of the present invention, FIG detected frame rate adjustment in the flowchart in the embodiment; FIG. 2 is a detected frame rate and the maximum number of objects in one embodiment the correspondence table embodiment;

图3为一个实施例中两个不同检测帧率下各帧与视频播放中各帧的对应关系示意图; FIG 3 is a schematic diagram of the correspondence relationship of each frame with each frame of video is detected at two different embodiments of a playback frame rate of embodiment;

禾口 Hekou

图4为本发明中提高检测帧率必要性判决的流程图。 Detecting the need for a frame rate decision flowchart present invention, FIG 4 is improved.

[0023]【具体实施方式】 [0023] DETAILED DESCRIPTION OF THE INVENTION

本发明的详细描述主要通过程序、步骤、逻辑块、过程或其他象征性的描述来直接或间接地模拟本发明技术方案的运作。 Detailed description of the present invention to simulate the operation of the main aspect of the present invention directly or indirectly, by a program step, logic block, process, or other symbolic description. 为透彻的理解本发明,在接下来的描述中陈述了很多特定细节。 Thorough understanding of the present invention, numerous specific details are Chen Shu in the following description. 而在没有这些特定细节时,本发明则可能仍可实现。 In the absence of these specific details, the invention may still be achieved. 所属领域内的技术人员使用此处的这些描述和陈述向所属领域内的其他技术人员有效的介绍他们的工作本质。 Those of ordinary skill in the use of these descriptions herein and Chen Shu to others skilled in the art and areas of effective introduction to the nature of their work. 换句话说,为避免混淆本发明的目的,由于熟知的方法和程序已经容易理解,因此它们并未被详细描述。 In other words, for the purpose of avoiding confusion of the present invention, since the well-known methods and procedures have been easily understood, therefore they are not described in detail.

[0024] 此处所称的“一个实施例”或“实施例”是指可包含于本发明至少一个实现方式中的特定特征、结构或特性。 [0024] referred to herein to "one embodiment" or "an embodiment" means that a particular feature may be included in the present invention, at least one implementation, structure, or characteristic. 在本说明书中不同地方出现的“在一个实施例中”并非均指同一个实施例,也不是单独的或选择性的与其他实施例互相排斥的实施例。 In various places in the present specification, "in one embodiment" we are not referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments of the embodiment. 此外,表示一个或多个实施例的方法、流程图或功能框图中的模块顺序并非固定的指代任何特定顺序,也不构成对本发明的限制。 Further, means one or more embodiments of the method, the order of blocks in process flowcharts or diagrams are not inherently indicate any particular order nor limit the present invention.

[0025] 本发明提供一种调整检测帧率的方法,其在当前检测帧率下利用当前图像帧中运动目标的数目判断是否需要调整检测帧率,当需要调整检测帧率时,则进一步比较运动目标的数目在调整后的预估的目标检测帧率下的变化数的绝对值与所述当前检测帧率下对应的增量阈值的大小,进而判定是否将检测帧率调整为所述预估的目标检测帧率。 [0025] The present invention provides a method of detecting the frame rate adjustment, the number of which is determined using the current image frame motion detection target frame rate requires an adjustment of the frame rate in the current detection, when detecting the frame rate needs to be adjusted, the further comparison absolute value of the change in the number of motion detection of a target object at a frame rate of the adjusted estimates of the magnitude corresponding to the currently detected frame rate increment threshold, further determines whether the detected frame rate is adjusted to the pre- the estimated target detection frame rate. 其具体过程可以参见图1所示。 Referring to the specific process may be as shown in FIG. 1.

[0026] 图1为本发明中调整检测帧率的方法在一个实施例中的流程图,其中所述调整检测帧率的方法100包括: [0026] FIG. 1 is a flowchart of the adjustment of the detection method of the invention In one embodiment the frame rate, wherein the adjustment of the detection method 100 comprises a frame rate:

步骤110,在当前检测帧率下检测当前图像帧中的运动目标的数目。 Step 110, detecting the number of the moving object in the current image frame is detected at the current frame rate.

[0027] 这里,所述当前图像帧为在当前检测帧率下当前检测帧对应的图像帧,其中所述检测帧率为每秒钟检测图像帧的个数,所述当前检测帧为正在进行的检测帧。 [0027] Here, the current image frame is an image frame corresponding to the current frame is detected in the current frame rate is detected, wherein the detector detects the frame rate is the number of image frames per second, where the current frame is detected as being detection of the frame. 一般的,在对视频图像进行检测时,会按照所述检测帧率抽取不同的图像帧进行检测,而将所抽取的不同的图像帧定义为检测帧,其可以按照抽取的顺序对不同的检测帧进行标记,如从第一个检测帧开始依次标记为1、2…。 In general, when the video image is detected, will collect different image frames according to the frame rate detector detecting, different definition image frames to detect the extracted frame, which can be drawn in order to detect different frame marker, such as starting from the first frame sequentially detecting labeled 1, 2 ....

[0028] 由于不同的检测帧率下检测的图像帧可能是不同的,所以运动目标的数目也会不同。 [0028] Since the detected image frame is detected at different frame rates may be different, so that the number of the moving object will be different. 举例来说,对同一个视频进行检测,如视频播放帧率为30帧/秒,分别选取不同的检测帧率fl和检测帧率f2,其中Π=15帧/秒,f2=5帧/秒;以视频播放的第一帧作为检测帧率的第一个检测帧进行检测,这样在检测帧率Π下对视频播放进行检测时,所检测的标记为3的检测帧(即第三个检测帧)对应的图像帧实际为视频播放的第5图像帧;而在检测帧率f2下对视频播放进行检测时,所检测的标记为3的检测帧,即第三个检测帧,实际为视频播放的第13图像帧,其中所述的第5图像帧中的运动目标的数目和第13图像帧中的运动目标的数目就可能不相同。 For example, for detecting the same video, such as video playback frame rate of 30 frames / sec, respectively, to select different frame rates detected frame rate and the detection fl f2, where Π = 15 frames / sec, f2 = 5 frames / sec. ; first frame of the video player detected as the first detection frame detection frame rate, so that when playback of the video frame rate detection [pi detected, the detected marker to detect a frame 3 (i.e., the third detection frame) corresponding to the actual image frame for the first frame of the video image playback 5; and when the video playback is detected in the detection frame rate f2, the detected marker to detect a frame 3, i.e., the third frame is detected, the actual video 13 playback image frame, wherein the number of the moving object according to the fifth image frame and the image frame 13 of the moving object may not be the same.

[0029] 步骤120,根据当前图像帧中运动目标的数目判断是否需要调整所述当前的检测帧率。 [0029] Step 120, the current image frame in accordance with the number of moving objects is determined whether to adjust the current detection frame rate. 通常,比较当前图像帧中的运动目标的数目与在当前检测帧率下所能处理的最大目标数目和/或最小目标数目,根据上述比较结果判断是否需要调整所述当前的检测帧率。 Generally, the comparison target number of moving image frames and the maximum number of the frame rate can be detected in the current process target and / or minimum number of the current object, according to the comparison result determines whether to adjust the current detection frame rate.

[0030] 根据检测算法复杂度可以预先设定每个检测帧率下所能处理的最大目标数目和最小目标数目。 [0030] The maximum number of targets, and the minimum number of targets that can be processed per detection frame rate detection algorithm may be set in advance according to the complexity. 由于图像处理系统或芯片运算能力的限制,每一检测帧率对应的可以检索追踪的运动目标数目是有限的。 The image processing system or due to limitations chip computing power, a frame rate corresponding to each detected moving object tracking number to retrieve is limited. 因此,某一检测帧率下所能处理的运动目标的最大数量即为该检测帧率对应的最大目标数目。 Thus, the maximum number of the moving object can be processed by a detection frame rate is the frame rate of the detected target corresponding to the maximum number. 同样地,当运动目标数目过小时,根据所采用的检测算法,在某一检测帧率下的运算量相应地可能较小,不能充分发挥图像处理系统或芯片运算能力。 Similarly, when the number is too small moving object, based on the detection algorithm employed, the amount of calculation at a certain frame rate detection may be small accordingly, can not give full play to the image processing system or chip computing power. 因此,在提高运动目标的检测速度时,还可以为每一检测帧率对应地设定一最小目标数目。 Thus, when increasing the speed of the moving object is detected, the frame rate may also be set corresponding to each detected a certain minimum number. 所述最小目标数目可以理解为:某一检测帧率在运算量处于期望范围内时所对应的运动目标的最小数目。 The minimum number of targets can be understood as: a detection frame rate is the minimum number of calculation amount is within a desired range corresponding to the moving target. 一般的,不同的检测帧率对应的最大目标数目和最小目标数目均不同。 Generally, the minimum number and the maximum number of targets detected frame rates corresponding to different targets are different. [0031] 其中比较当前图像帧中的运动目标数目与当前检测帧率所能处理的最大目标数目和/或最小目标数目的方法具体为:若在当前图像帧中检测到的运动目标的数目大于当前检测帧率所能处理的最大目标数目,则判定为需要将检测帧率调低,否则,比较在当前图像帧中检测到的运动目标的数目与当前检测帧率所能处理的所述最小目标数目的大小,当在当前图像帧中检测到的所述运动目标的数目小于当前检测帧率下所能处理的最小目标数目时则判定为需要将检测帧率调高;若在当前图像帧中检测到的运动目标数目大于所述最小目标数目且小于所述最大目标数目则不进行对检测帧率的调整。 [0031] wherein comparing the current maximum number of the target number of moving objects in the current image frame can be processed by the detection frame rate and the minimum number of target method or / is specifically: if the number of moving object detected in the current image frame is greater than the current maximum number of detection target frame rate can be processed, it is determined that the frame rate needs to be lowered detected, otherwise, the number of comparators in the current image frame detected moving object and the current detection can be processed by said minimum frame rate the number of target size, when the number of moving object detected in the current image frame is less than the current minimum target number of detected frame rate can be processed is determined to increase the frame rate needs to be detected; if the current image frame the number of moving object detected is greater than a certain minimum number and the maximum number is less than the target frame rate adjustment of the detection is not performed.

[0032] 可以理解地,当只需要为了防止运算量过大的情形,可以只将当前图像帧中运动目标的数目和当前检测帧率对应的最大目标数目作比较,当前图像帧中检测到的运动目标的数目大于当前检测帧率对应的最大目标数目,则判定为需要将检测帧率调低;当当前图像帧中检测到的运动目标的数目小于或等于当前检测帧率对应的最大目标数目可以不做检测帧率的调整。 [0032] It will be appreciated, when compared to the number required only to prevent excessive operation of the case can only be the target of the current moving image frame and detects the maximum number of current corresponding to the target frame rate, the current image frame detected the maximum number of targets greater than the current number of motion detection object corresponding to the frame rate, it is determined to lower the frame rate needs to be detected; current image frame when the number of detected moving object is less than or equal to the maximum number of the target frame rate corresponding to the currently detected adjust the frame rate can not detect.

[0033] 反之,当只需要为了充分发挥图像处理系统或芯片的处理能力,也可以只将当前图像帧中运动目标的数目和当前检测帧率对应的最小目标数目作比较,当前图像帧中检测到的运动目标的数目小于当前检测帧率对应的最小目标数目,则判定为需要将检测帧率调高;否则当当前图像帧中检测到的运动目标的数目大于或等于当前检测帧率对应的最小目标数目,则可以不做检测帧率的调整。 [0033] On the contrary, when the minimum number of the target number only for full processing capabilities of the image processing system or chip, or only the current target moving image frame and a frame rate corresponding to the currently detected by comparing the current image frame is detected the number of the moving object detected is less than the current minimum number corresponding to the target frame rate, it is determined that the frame rate needs to increase detection; otherwise, the current image frame when the number of detected moving objects currently detected frame rate equal to or greater than the corresponding the minimum number of goals, you can not adjust the frame rate detection.

[0034] 步骤130,当判断需要调整当前的检测帧率时,根据当前图像帧中的运动目标数目预估目标检测帧率。 [0034] Step 130, when it is determined to adjust a current detection frame rate, the frame rate according to the estimated number of moving target detection target in the current image frame. 具体地,当所述运动目标数目较大时,调低检测帧率即预估一个较低的目标检测帧率;当所述运动目标数目较小时,调高检测帧率即预估一个较高的目标检测帧 In particular, when a large number of the moving object, i.e. a frame rate lower detection target detection estimates a lower frame rate; when a small number of the moving target, i.e., the frame rate increase detection estimates a higher the target detection frame

率。 rate.

[0035] 一般的,在进行检测时,首先需设定多个检测帧率,所述检测帧率中的一个将作为当前检测帧率。 [0035] In general, when performing detection, a plurality of first detecting the frame rate needs to be set, the detection of a frame rate as currently detected frame rate. 对于一个既定的视频而言,各个检测帧率对应的各检测帧可能是不同的。 For a given video, the frame rate corresponding to each detection each detection frame may be different. 如果将各检测帧率下的检测帧都按照同一套标记系统(如以数字符号1、2、3或字母符号a、b、 c进行的顺序标记)予以标记,除了作为起始帧的第一检测帧外,各检测帧率下具有同一标记的各个检测帧是不同的,各检测帧率对应的检测能力也是不同的,即各检测帧率分别对应不同的最大目标数目和最小目标数目。 If the frame is detected at each detection frame shift (such as a digital symbol sequence labeled or 1,2,3-letter symbols a, b, c carried out) in accordance with a marking system to be labeled, in addition to the first frame as a starting detecting an outer frame, each frame having the same tag is detected in each detection frame rate is different, each detection frame rate corresponding to the detection capabilities are different, i.e., each detection frame rate corresponding to different maximum number of targets and the minimum number of targets. 当需要降低检测帧率时,从已设定的多个检测帧率选择一个作为预估的目标检测帧率,该目标检测帧率需满足如下条件:该目标检测帧率对应的最大目标数目大于该目标检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目,且将各检测帧率对应的最大目标数目和各检测帧率下的与当前图像帧具有相同标记的检测帧中的运动目标数目的差值进行比较时,其中该目标检测帧率所对应的差值的绝对值最小。 When detecting the frame rate needs to be reduced, as a selected target detection estimated frame rate, the frame rate required to meet the following target detection condition detected from the plurality of frame rate has been set: the maximum number of the object detection target frame rate is greater than the corresponding the number of moving object detection frame and the current frame image with the same label in the detection target frame rates, and the current image at a maximum frame rate of each detection target number corresponding to the detected frame rate and each frame having the same frame mark detecting the number of moving objects in the difference are compared, where the minimum absolute value detection target frame rate corresponding to the difference. 当需要提高检测帧率时,从已设定的多个检测帧率选择一个作为预估的目标检测帧率,该目标检测帧率需满足如下条件:该目标检测帧率对应的最小目标数目小于该目标检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目,且将各检测帧率对应的最小目标数目和各检测帧率下的与当前图像帧具有相同标记的检测帧中的运动目标数目的差值进行比较时,其中该目标检测帧率所对应的差值的绝对值最小。 When the need to improve the detection frame rate selected from a plurality of detecting the frame rate has been set as a target detection estimated frame rate, the frame rate for an object detection satisfies the following condition: the target frame rate corresponding to the detection target is less than the minimum number of the number of moving object detection frame and the current frame image with the same label in the detection target frame rates, and the current image with the minimum number of the detection target frame rate corresponding to each of the detection frame rate and a frame having the same frame mark detecting the number of moving objects in the difference are compared, where the minimum absolute value detection target frame rate corresponding to the difference.

[0036] 也就是说,当要调低检测帧率时,只要调低后的检测帧率下的与当前图像帧具有相同标记的检测帧中的运动目标数目在调低后的检测帧率所对应的最大目标数目和最小目标数目之间即可,这样满足上述要求的检测帧率会有多个,此时,为了达到最优解,则根据各检测帧率对应的最大目标数与当前图像帧具有相同标记的各检测帧率下的检测帧中的运动目标数目的绝对差值选择最优的检测帧率,所述绝对差值最小的情况下的检测帧率即为最优的检测帧率,即该最优的检测帧率所对应的最大目标数目大于所述运动目标数目且与所述运动目标数目最接近;同理,当要调高检测帧率时,只要调高后的检测帧率下具有相同标记的检测帧对应的帧图像中的运动目标的数目在调高后的检测帧率对应的最小目标数目和最大目标数目之间即可,这样满足要求的检测 [0036] That is, when the frame rate is detected to be lower, and the current frame image having a frame rate after detecting the number of frames of the same moving object detection in the numerals of the lower frame rate detected at the long lower can, so that the frame rate satisfying the above requirements will be detected between a plurality of targets and the maximum number corresponding to the minimum number of targets, this time, in order to achieve an optimal solution, corresponding to the respective detection target frame rate and the maximum number of the current image moving target detection frame number of the frame rate of the respective detection frames with the same numerals in selecting an optimal detection of the absolute difference frame rate, frame rate detected at said minimum absolute difference value is the case where the optimal detection frame ratio, i.e. the maximum number of optimal detection target frame rate greater than the number corresponding to the number of the moving object and the moving object is closest; Similarly, when the frame rate to increase the detection, so long as the detected increase the number of moving object detection frame corresponding to the frame image with the same label at frame rates between the minimum and maximum number of targets to increase the number of targets detected after a frame rate corresponding to such detection to meet the requirements of 帧率也会有多个,此时,为了达到最优解,则可进一步根据各检测帧率对应的最小目标数与当前图像帧具有相同标记的各检测帧率下的检测帧中的运动目标数目的绝对差值选择最优的检测帧率,所述绝对差值最小的情况下的检测帧率即为最优的检测帧率,即该最优的检测帧率所对应的最小目标数小于所述运动目标数目且与所述运动目标数目最接近。 A plurality of frame rate will be, at this time, in order to achieve the optimal solution can be further having a current image frame moving target detection frame of each detection frame rate at the same numerals in the minimum number of target frame rate corresponding to the respective detection selecting the optimal number of absolute difference detecting the frame rate, frame rate detected at said minimum absolute difference value is the case where the optimal detection frame rate, i.e., the minimum target number of optimal detection frame rate corresponding to less than the number of target motion and the number closest to the target motion.

[0037] 图2为检测帧率与最大目标数目在一个实施例中的对应表,其中fl>f2>f3>f4。 [0037] FIG. 2 is a correspondence table in the embodiment the detection frame rate and the maximum number of objects in one embodiment, where fl> f2> f3> f4. 当前检测帧率Π下检测到的运动目标数目为9,其大于检测帧率Π对应的最大目标数目8,则需要调低检测帧率Π。 The number of moving object detection current detected at the frame rate [pi 9, which is greater than the maximum number of detection target frame rate corresponding to [pi 8, it is necessary to lower the frame rate detection Π. 此时可将检测帧率调低为检测帧率f2、检测帧率f3或检测帧率f4。 At this time, the frame rate may be lowered to detect a detected frame rate f2, f3 detected frame rate or frame rate detection f4. 若此时检测帧率fl下检测帧标记为N,这时就需要计算f2、f3、f4这三种检测帧率下具有相同标记为N的检测帧对应的帧图像中的运动目标数目,当每个检测帧率下具有相同标记的检测帧对应的帧图像中的运动目标数目小于其对应的最大目标数目且最接近最大目标数目时则将其定位调低后检测帧率。 When the detected frame marker is detected as a frame rate N fl, then you need to calculate the number of moving objects having the same label as the N frame image is detected corresponding to the next frame f2, f3, f4 three detection frame rate, when when the maximum number of the target number of motion detection target frame corresponding to the frame image having the same numerals in each detected frame rate is less than the corresponding maximum number and closest to the target detector will be positioned after the frame rate down. 若检测帧率f2、f3和f4下标记为N的检测帧对应的帧图像中的运动目标数目分别为9、8和7,则此时计算各个检测帧率对应的最大目标数目和标记为N的检测帧对应的帧图像中所述运动目标数目的差值,即10-9=1,11-8=3, 15-7=8,可知检测帧率f2的运动目标数目小于最大目标数目且最接近最大目标数目,则此时将检测帧率f2定位调低后的检测帧率。 If the detected frame rate f2, labeled target number of motion detection frame corresponding to the frame image N, the next to f3 and f4 respectively 9,8 and 7, at this time, and calculate the maximum number of target markers each corresponding to the detected frame rate is N frame image corresponding to the detection frame number of the moving object in the difference, i.e., 3 = 10-9 = 1,11-8, 15-7 = 8, it is understood the number of motion detection target is less than the maximum number of the frame rate f2 and certain closest to the maximum number of targets, the frame rate after this time will be detected by the detector is positioned lower frame rate f2. 同理,可进行对检测帧率进行调高的判断,这里就不再详述。 Similarly, the detection may be performed to increase the frame rate determination, not described in detail here.

[0038] 需要指出的是,此步骤中在判定需要调整检测帧率是指在当前检测帧率下判定是否需要调整检测帧率而非将调整后的检测帧率完全替代了当前检测帧率,也就是说,在实际调整检测帧率前可以先预估所要达到的检测帧率即目标检测帧率。 [0038] It should be noted that, in this step it is determined to adjust a frame rate detection means determines whether or not the frame rate needs to be adjusted is detected after detecting a frame rate adjusted completely replace the current detection in the current detection frame rate frame rate, in other words, before the actual detection frame rate can be adjusted to achieve the first estimate of the detection target detection frame rate that is the frame rate.

[0039] 步骤140,将当前的检测帧率调整到所述目标检测帧率。 [0039] Step 140, the current frame rate is adjusted to detect the detection target frame rate. 这样便可以通过预估的目标检测帧率进行运动目标的检测和跟踪。 This makes it possible to detect and track moving targets by the estimated target detection frame rate.

[0040] 进一步地,为防止频繁的调整检测帧率,还可以通过比较运动目标数目在调整检测帧率后的变化数的绝对值与增量阈值的大小而判断是否将当前的检测帧率调整到所述目标检测帧率。 Changes in the number [0040] Further, in order to prevent frequent adjustments detecting the frame rate, the frame rate can also be detected by adjusting the number of comparing the absolute value of the moving object and the size of the increment is judged whether a threshold value for detecting the current frame rate adjustment to detect the target frame rate. 换句话说,首先计算当前检测帧率下当前图像帧中的运动目标数目与预估的目标检测帧率下的具有相同于当前图像帧标记的检测帧的运动目标数目之间的差值的绝对值,然后比较所述绝对值与当前检测帧率下对应的增量阈值的大小。 In other words, first calculates the absolute difference between the number of motion detection frames with the same target in the current image frame marker at the frame rate of the number of motion detection target object and the estimated current image frame of the current frame rate detection value, and then comparing the absolute value of the frame rate corresponding to the current increase threshold detection. 其中,所述的增量阈值可以根据检测算法复杂度预先设定。 Wherein the delta threshold may be set in advance according to the complexity of the detection algorithm. 这里需要指出的是,由于不同检测帧率下选取的要检测的具有相同标记的检测帧对应的视频播放的图像帧可能是不同的,也就是说,在当前检测帧率和预估的目标检测帧率下检测的标记同为N的检测帧对应的实际视频播放的图像帧可能是不同的。 It should be noted that, due to the different chosen frame rate of image frames of a video detector for detecting playback frame corresponding with the same label to be detected may be different, that is, the detection target is detected in the current frame rate and the estimated the frame rate is the same detection mark detection frame is N corresponding actual video playback image frame may be different.

[0041] 具体可以理解为:对不同的检测帧率下的检测帧分别从第一个检测帧进行标记, 获取所述当前检测帧率下所述当前图像帧对应的当前检测帧的标记N,在预估的目标检测帧率下找到标记为N的检测帧,计算所述检测帧对应的图像帧中的运动目标数目,最后得到所述调整后检测帧率下检测帧对应的图像帧中的所述运动目标数目。 [0041] DETAILED be understood as: detection for detecting a frame at different frame rates, respectively, from a first frame marker detector, said current detector acquires the current image frame corresponding to the frame rate of the currently detected frame marks N, found in the estimated target detection to detect a frame rate of labeled frame N, calculates the number of motion detection target frame corresponding to the image frame, detecting a frame rate is detected to obtain the adjustment after the last frame image corresponding to frame the number of moving targets.

[0042] 其中,所述增量阈值为当前检测帧率下和调整后检测帧率即预估的目标检测帧率下的具有相同标记的检测帧中的运动目标数目的差值的绝对值的阈值,不同的检测帧率对应不同的增量阈值。 [0042] wherein the delta threshold is a number of currently detected moving object detection frames with the same numerals and the frame rate is a frame rate after adjustment of the detection target detected frame rate that is estimated in the sum of absolute threshold value, the frame rate different detection thresholds corresponding to different increment.

[0043] 在一个实施例中,在当前检测帧率fl下第N个检测帧对应的帧图像(即标记为N 的检测帧)中的运动目标数目为nl,在预估的目标检测帧率f2下第N个检测帧对应的帧图像中的运动目标数目为π2,当前检测帧率fl对应的增量阈值为Delta (fl),则需比较 The number of moving targets [0043] In one embodiment, the detection frame rate fl Dir N frame image is detected in the current frame corresponding to (i.e., detection of labeled frame N) is in the range NL, the frame rate of the estimated target detection the number of moving target frame image N detectors f2 Dir frame corresponding to π2, corresponding to the currently detected frame rate increment threshold fl delta (fl), need to compare

nl-n2 % Delta (fl)的大小,当nl-n2|< Delta(H)时,则不需要调整检测帧率Π,否则将检测帧率Π调整为所述预估的目标检测帧率f2。 nl n2-size% Delta (fl) when nl-n2 | when <Delta (H), the frame rate adjustment is not required [pi detection, or a detection of the frame rate is adjusted to [pi estimated detection target frame rate f2 . 这样便可以保证不会频繁的调整检测帧率。 So that we can ensure that no frequent adjustments detection frame rate.

[0044] 在一个具体的实施例中,要进行检测的视频播放帧率为20帧/秒,分别选取不同的检测帧率Π和检测帧率f2,其中Π=10帧/秒,f2=4帧/秒。 [0044] In a particular embodiment, to detect the video playback frame rate of 20 frames / sec, respectively, to select different frame rates [pi detection and a detection frame rate f2, where Π = 10 frames / sec, f2 = 4 frames / sec. 所述检测帧率Π和检测帧率f2与视频播放的对应关系可参见图3所示。 The detection frame rate and the detection frame rate f2 Π video player can be found in the correspondence relation shown in FIG. 图3为一个实施例中两个不同检测帧率下的各个检测帧与视频播放帧的对应关系,其中,在检测帧率fl下,1秒内会有10个检测帧,在检测帧率f2下,1秒内会有4个检测帧。 3 is a corresponding relationship between the respective detection frames and frames in the video playback embodiment two different frame rates detected embodiment, wherein, when the detected frame rate fl, there will be 10 frames within one second detector, in detecting the frame rate f2 next, there will be four detection frames within one second. 在检测帧率Π下所检测到的第1个检测帧到第10个检测帧分别对应视频播放的第1图像帧、第3图像帧、第5图像帧、第7图像帧、 第9图像帧、第11图像帧、第13图像帧、第15图像帧、第17图像帧和第19图像帧;在检测帧率f2下所检测到的第1个检测帧到第4个检测帧分别对应视频播放的第1图像帧、第6 图像帧、第11图像帧和第16图像帧。 In the detection of the detected frame rate Π of a detected image frame to the frame 10 to detect the frame corresponding video playback, a third image frame, the fifth image frame, the seventh image frame, the image frame 9 , 11 image frames, the image frame 13, a first image frame 15, a first image frame 17 and frame 19 of the image; detecting at the frame rate f2 of the detected first detected one frame to four frames, respectively corresponding to video detector the first image frame playback, the sixth image frame, the image frame 11 and second image frame 16. 这里分别以视频播放的第1图像帧作为检测帧率fl 和检测帧率f2的第1个检测帧进行检测,这样在检测帧率Π下对视频播放进行检测时,所检测的第3个检测帧实际为视频播放的第5图像帧;而在检测帧率f2下对视频播放进行检测时,所检测的第3个检测帧实际为视频播放的第11图像帧。 Respectively, where the first frame of the video image as a detection frame rate of playback fl and a detector detects the frame rate f2 of the frame is detected, so that when the video playback is detected in the frame rate [pi detected, the detection of three detection the actual frame 5 frame of the video image is played; when the detected frame rate and the video play f2 is detected, the detected actual third detection frame 11 for the first frame of the video image playback. 在运动目标的运动速度比较快时,所述视频播放的第5图像帧和第11图像帧中的运动数目很有可能是不同的。 When the speed of moving objects moving relatively fast, the fifth image frame and the number of motion image frame 11 of the video player is likely to be different. 也就是,当以检测帧率fl作为当前检测帧率在第3个检测帧进行检测时,也就是检测视频播放的第5图像帧时,根据检测得到的所述第5图像帧中的运动目标数目,判定需要调整当前检测帧率Π,并预估得到检测帧率f2,则计算在检测帧率f2下的第3个检测帧中的运动目标数目,也就是视频播放的第11图像帧中的运动目标数目,将所述第5图像帧和第11图像帧中运动目标数目的差值的绝对值与所述检测帧率fl下对应的增量阈值进行比较。 That is, when detecting the frame rate as the current detection frame rate fl detected in the third detection frame, i.e. the first image frame 5 detected video playback, based on the detection obtained by the fifth image frame moving target number, it is determined to adjust a current frame rate [pi detected, and estimate the frame rate f2 be detected, the number of moving objects detected in the frame rate f2 of three detection frames is calculated, which is the first image frame 11 in the video playback the absolute value of the number of moving objects, the fifth image frame 11 and the moving image frame number of the target difference value is compared with the detection threshold corresponding delta at a frame rate fl.

[0045] 当所述绝对值大于所述增量阈值时,则用预估的目标检测帧率替换当前的检测帧率,这样便可以通过预估的目标检测帧率进行运动目标的检测和跟踪。 [0045] When the absolute value is greater than the delta threshold, the frame rate is replaced with the estimated current detection target detection frame rate, so that it can detect and track moving object detection target frame rate estimated by . 否则,则返回到步骤110。 Otherwise, it returns to step 110.

[0046] 通过上述过程可以实现自适应地调整检测帧率的目的,但对于运动目标数目过少,并且目标运动速度不快时,提高检测帧率并不能带来很好的效果。 [0046] The object can be adaptively adjusted to achieve a frame rate detected by the above procedure, but too small for the number of the moving object, and the target moving fast enough, the frame rate and increase the detection can not bring good results. 因此,通常还需要对提高检测帧率的必要性进行判定。 Therefore, usually also need to increase the detection necessity determination frame rate. 具体可以参见图4所示。 Referring specifically shown in FIG. 4.

[0047] 图4为本发明中提高检测帧率必要性判决的流程图。 [0047] Scheme 4 detects the frame rate of the present invention, the necessity judgment in FIG improved. 其对检测帧率提高的必要性判决的过程包括: It detects the frame rate of the necessity to improve the process of decision include:

步骤410, 判断是否需要提高检测帧率。 Step 410, determine whether to increase the detection frame rate. 该步骤为图1为所示的方法100中的步骤120, 即在判断需要调整检测帧率后,当判定的是提高检测帧率,则还可以进一步进行提高检测帧率的必要性判定。 The step 120, i.e. after the detection is determined to adjust a frame rate when the frame rate determination is to improve the detection, the detection may further increase the necessity for the frame rate determination step 100 in FIG. 1 for the method shown. [0048] 步骤420,在当前检测帧率下预估当前检测帧对应的图像帧中各个运动目标在下一图像帧中的位置。 [0048] Step 420, the estimated current position corresponding to a frame of image frames of the respective moving objects in the next image frame is detected at the current frame rate.

[0049] 步骤430,判断各个运动目标是否均在所述的下一图像帧中。 [0049] Step 430, it is determined whether the respective moving objects are in the next image frame in the.

[0050] 步骤440,如果所有的运动目标仍在所述的下一图像帧中,说明运动速度较慢,不需要提高检测帧率,否则提高检测帧率。 [0050] Step 440, if all the targets are still in motion the next image frame, slow motion described, the frame rate does not need to improve the detection, the detection or improving the frame rate.

[0051] 综上所述,本发明通过上述对检测帧率的调整以及对提高检测帧率的必要性判定实现了对检测帧率的实时调整,提高了运动检测的速度。 [0051] In summary, the present invention is the above-mentioned detection frame rate adjustment and the need to improve the detection frame rate is determined by implementing a real-time adjustment of the detected frame rate, improves the speed of motion detection.

[0052] 上述说明已经充分揭露了本发明的具体实施方式。 [0052] The above description has been fully disclosed specific embodiments of the present invention. 需要指出的是,熟悉该领域的技术人员对本发明的具体实施方式所做的任何改动均不脱离本发明的权利要求书的范围。 It should be noted that any changes to the art skilled in the art the specific embodiments of the invention made without departing from the scope of the invention as claimed in claims. 相应地,本发明的权利要求的范围也并不仅仅局限于前述具体实施方式。 Accordingly, the present invention requires the claimed scope is not limited to the foregoing detailed description.

Claims (13)

1. 一种调整检测帧率的方法,其特征在于,其包括:获取在当前检测帧率下被检测的当前图像帧中的运动目标数目;根据所述运动目标数目判断是否需要调整所述当前检测帧率;当判断需要调整当前检测帧率时,根据当前图像帧中的运动目标数目预估目标检测帧率;禾口若需要调整检测帧率,则将当前检测帧率调整至目标检测帧率。 1. A method for detecting the frame rate adjustment, characterized in that it comprises: obtaining the number of the current image frame moving target is detected in the current detection frame rates; the current number of the moving object is determined whether adjustments need detecting a frame rate; when it is determined to adjust a current detection frame rate, the frame rate according to the estimated number of moving target detection target in the current image frame; Wo detection port if necessary to adjust the frame rate, the frame rate is detected then the current frame is adjusted to the target detection rate.
2.根据权利要求1所述的调整检测帧率的方法,其特征在于:根据所述运动目标数目判断是否需要调整所述当前检测帧率的方法为:比较所述运动目标数目与当前检测帧率下所能处理的最大目标数目,当所述运动目标数目大于所述最大目标数目,则判定为需要降低检测帧率。 2. The method of detecting the frame rate adjustment according to claim 1, wherein: the number of motion according to whether the determination target needs to be adjusted to the current method of detecting the frame rate as follows: the number of moving objects and comparing the currently detected frame the maximum number of targets that can be processed at the rate of, when the number of the moving object is greater than the maximum number of the target, it is determined that detection is necessary to reduce the frame rate.
3.根据权利要求2所述的调整检测帧率的方法,其特征在于:调整预估目标检测帧率的方法包括有:设定多个检测帧率,所述多个检测帧率中的一个为当前检测帧率,其中各个检测帧率分别对应不同的最大目标数目,其中,每一检测帧率对应的最大目标数目为该检测帧率下所能处理的运动目标的最大数目;当需要降低检测帧率时,从已设定的多个检测帧率选择一个作为预估的目标检测帧率,该目标检测帧率需满足如下条件:该目标检测帧率对应的最大目标数目大于该目标检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目,且将各检测帧率对应的最大目标数目和各检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目的差值进行比较时,该目标检测帧率所对应的差值的绝对值最小。 3. The method of adjusting the frame rate of detecting according to claim 2, characterized in that: the estimated target detection method of adjusting a frame rate comprises: setting a plurality of detecting the frame rate, the frame rate of detecting a plurality of detecting the current frame rate, wherein detecting a frame rate corresponding to different respective maximum number of targets, wherein a target number of a maximum frame rate of each detector that corresponds to the maximum number of moving object detection can be processed at a frame rate; when it is desired to reduce when the frame rate is detected, selected from a plurality of detecting the frame rate has been set as a target detection estimated frame rate, the frame rate of the target detector needs to meet the following conditions: the maximum number of the object detection target frame rate is greater than the corresponding target detection the number of moving object detection frame and the current frame image with the same label at frame rates, and the maximum number of the detection target and each detection frame rate corresponding to the current image frame having a frame rate of moving object detection in the frames of the same numerals comparing the number of difference, an absolute value of the minimum detection target frame rate corresponding to the difference.
4.根据权利要求1所述的调整检测帧率的方法,其特征在于:根据所述运动目标数目判断是否需要调整所述当前检测帧率的方法为:预先设定检测帧率所对应的最小目标数目,比较所述运动目标数目与当前检测帧率下所对应的最小目标数目,当所述运动目标数目小于所述最小目标数目时,则判定为需要提高检测帧率。 Detecting a preset minimum frame rate corresponding to: The method of adjusting the frame rate of detecting according to claim 1, wherein: the number of motion according to whether the determination target needs to be adjusted to the current method of detection is the frame rate the number of targets, comparing the current number of motion detection and the minimum number of target goals corresponding to the frame rate, the moving object when the number is less than the minimum number of targets, it is determined to be necessary to improve the detection frame rate.
5.根据权利要求4所述的调整检测帧率的方法,其特征在于:调整预估目标检测帧率的方法包括有:设定多个检测帧率,所述多个检测帧率中的一个为当前检测帧率,其中各个检测帧率分别对应不同的最小目标数目;当需要提高检测帧率时,从已设定的多个检测帧率选择一个作为预估的目标检测帧率,该目标检测帧率需满足如下条件:该目标检测帧率对应的最小目标数目小于该目标检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目,且将各检测帧率对应的最小目标数目和各检测帧率下与当前图像帧具有相同标记的检测帧中的运动目标数目的差值进行比较时,其中该目标检测帧率所对应的差值的绝对值最小。 5. The method of detecting the frame rate adjustment as claimed in claim 4, wherein: the estimated target detection method of adjusting a frame rate comprises: setting a plurality of detecting the frame rate, the frame rate of detecting a plurality of detecting the current frame rate, the frame rate wherein each detector correspond to different minimum target number; when it is necessary to improve the detection frame rate, select a frame rate as the estimated target detection from the plurality of detecting the frame rate has been set, the target detecting the frame rate must meet the following conditions: the minimum number of object detection target frame rate smaller than the number corresponding to the moving target detection frame and the current frame image with the same label in the detection target frame rates and a frame rate corresponding to each detected minimum when the difference value is compared with the number of moving object detection frame of the current image frame with the same label number in the target and each detection frame rate, wherein the minimum absolute value of the detected target corresponding to the frame rate difference.
6.根据权利要求4所述的调整检测帧率的方法,其特征在于:在判定需要提高检测帧率后进一步包括:预估跟踪所述当前图像帧中各运动目标在下一图像帧中的位置,判定所述预估跟踪的各运动目标是否均在下一图像帧中存在,若存在则不提高检测帧率,否则提高检测帧率。 6. The method of detecting the frame rate adjustment as claimed in claim 4, characterized in that: further comprising, after detecting the frame rate determines the need to improve: the estimated position of the current track image frame of each moving object in a next image frame determining that the estimated target is tracked movements are present in the next image frame, if there is no detected increase the frame rate, the frame rate or increase the detection.
7.根据权利要求1所述的调整检测帧率的方法,其特征在于:所述调整检测帧率的方法还包括:对当前检测帧率和预估的目标检测帧率下的各检测帧分别按照同一标记系统进行顺序标记;判定需要调整检测帧率后,计算当前检测帧率下当前图像帧中的运动目标数目及在预估的目标检测帧率下与所述当前图像的标记相同的被检测帧中的运动目标数目之间的变化数的绝对值,比较所述绝对值与当前检测帧率下对应的增量阈值的大小,若所述绝对值大于所述增量阈值,则将当前检测帧率调整至预估的目标检测帧率,否则,依然沿用原检测帧率作为当前检测帧率。 The method for adjusting the frame rate of the detection of claim 1, wherein: said method further comprises adjusting a frame rate detection: detection of the current frame, respectively, each of the detection frame rate and frame rate estimated target detection sequential marking tag according to the same system; detected after determining to adjust the frame rate, the number of the current image frame at a frame rate of moving target detection and calculation of the current image and the present mark at the same frame rate estimated target detection is absolute value of the variation between the number of frames of moving object detection, comparing the absolute value of the magnitude of the current corresponding to the detected frame rate increment threshold value, if the absolute value is greater than the delta threshold, then the current detection frame rate adjustment to the estimated target detection frame rate, otherwise, still follow the original detection frame rate as the current detection frame rate.
8.根据权利要求7所述的调整检测帧率的方法,其特征在于:计算所述绝对值的方法包括:对不同的检测帧率下的检测帧分别从第一个检测帧进行标记;获取所述当前检测帧率下所述当前图像帧对应的检测帧的标记,在预估的目标检测帧率下找到具有相同的所述标记的检测帧,计算所述检测帧对应的图像帧中运动目标数目,最后得出所述当前检测帧率下当前图像帧中的运动目标数目与所述调整后检测帧率下检测帧对应的图像帧中的运动目标数目的差的绝对值,其中所述检测帧为被检测的图像帧。 8. A method of adjusting the frame rate of detecting according to claim 7, wherein: an absolute value calculating method comprising: labeling of the detection frame at different frame rates, respectively from the first detector detecting a frame; Get detecting said current detected frame mark detecting the current image frame corresponding to the frame at a frame rate, locate the marker in the same frame rate estimated target detection, calculating the detected frame corresponding to the motion image frame the number of targets, the conclusion that the absolute value of the difference between the number of detected frame rate corresponding to the detection frame number of the current image frame at a frame rate of the moving object in the image frame to adjust the current moving object detection, wherein said detection frame image frame is detected.
9. 一种调整检测帧率的方法,其特征在于,其包括:获取在当前检测帧率下被检测的当前图像帧中的运动目标数目;比较所述运动目标数目与当前检测帧率下所能处理的最大目标数目和/或最小目标数目,当所述运动目标数目大于所述最大目标数目或小于所述最小目标数目时,则判定为需要调整检测帧率;根据当前图像帧中的运动目标数目预估一个调整后的目标检测帧率,计算当前检测帧率下当前图像帧中的运动目标数与在预估的目标检测帧率下对应于所述当前图像帧的检测帧中运动目标数的变化的绝对值,比较所述绝对值与当前检测帧率下的运动目标增量阀值的大小,若所述绝对值大于所述增量阈值,则用所述预估的目标检测帧率替换当前的检测帧率,否则继续预估一个调整后的目标检测帧率,重复前述步骤,直至将当前的检测帧率替换为预估的 9. A method of detecting the frame rate adjustment, characterized in that it comprises: obtaining the number of the current image frame moving target is detected in the current detection frame rates; the number of comparing the current moving object detection framerate the maximum number of targets and / or minimum number of targets that can be processed, when the number of the moving object is greater than the maximum number of the target or targets is less than said minimum number, it is determined that the detection frame rate needs to be adjusted; moving the current image frame in accordance with after a number of adjustment object detection target frame rate estimates, calculates the number of moving objects detected in the current frame current image frame rates and corresponding to the current image frame at a frame rate estimated target detection frame moving target detection the change in the absolute number, comparing the absolute value of the current size of the motion detection threshold increment at the target frame rate, if the absolute value is greater than the delta threshold, the target of the detection frame is estimated with replace the current detection of the frame rate, or continue to estimate a target detection frame rate after adjustment, repeating the foregoing steps until replaces the current frame rate is estimated detection 目标检测帧率。 Target detection frame rate.
10.根据权利要求9所述调整检测帧率的方法,其特征在于:当所述运动目标数目大于所述最大目标数目时则需要降低检测帧率;当所述运动目标数目小于所述最小目标数目时则需要提高检测帧率。 10. A method of adjusting the frame rate of detecting according to claim 9, wherein: when the number of the moving object is greater than the maximum number of target detection frame rate needs to be reduced; when the number of the moving object is less than the minimum target detecting the need to increase the number of the frame rate.
11.根据权利要求9所述的调整检测帧率的方法,其特征在于:每个检测帧率分别对应不同的最大目标数目和最小目标数目,当需要降低检测帧率时,则将降低后检测帧率的与当前图像帧具有相同标记的检测帧中的运动目标数目小于对应最大目标数目且与所述最大目标数目差值的绝对值最小时对应的检测帧率作为目标检测帧率;当需要提高检测帧率时,则将提高后检测帧率的与当前图像帧具有相同标记的检测帧中的运动目标数目大于对应最小目标数目且与所述最小目标数目差值的绝对值最小时对应的坚持帧率作为目标检测帧率,其中对各个检测帧率中要检测的帧图像分别按顺序进行标记。 11. A method of adjusting the frame rate of detecting according to claim 9, wherein: after detecting the frame rate each correspond to different minimum and maximum number of the target number of targets detected when it is necessary to reduce the frame rate, the detection will be reduced the maximum frame rate corresponding to the target number to the number of moving object detection frame of the current image frame with the same label and less than the absolute value of the difference between the maximum number of targets detected frame rate corresponding to a minimum detection target frame rate; when it is necessary when the frame rate increase is detected, then the detected frame rate and increase the number of moving object detection current image frame having the same frame mark number corresponding to a target in the minimum and is greater than the absolute value of the difference between the minimum target number corresponding to the minimum adhere to the frame rate as the frame rate detection target, wherein the frame image in the frame rate of each detector in order to be detected are marked.
12.根据权利要求9所述的调整检测帧率的方法,其特征在于:在判定需要提高检测帧率后进一步包括对提高检测帧率的必要性判定,其具体为:当需要提高检测帧率时则预估跟踪所述当前图像帧中各运动目标在下一图像帧中的位置,判定所述预估跟踪的各运动目标是否均在下一图像帧中存在,若存在则提高检测帧率,否则不提高检测帧率。 12. A method of adjusting the frame rate of detecting according to claim 9, characterized in that: further including the need to improve the detection frame rate determination, which specifically determines the need to improve the detection frame rate: frame rate when it is desired to improve the detection when the estimated current image frame to track the position of each moving object in a next image frame, it is determined whether or not the estimated target tracking movements are present in the next image frame, the detection frame rate is increased if present, or not improve the detection frame rate.
13.根据权利要求9所述的调整检测帧率的方法,其特征在于:所述计算当前检测帧率下当前图像帧中的运动目标数目与预估的目标检测帧率下与所述当前图像帧对应的新的被检测图像帧中运动目标数目的变化数的绝对值包括:对不同的检测帧率下的检测帧分别从第一个检测帧进行标记,获取所述当前检测帧率下所述当前图像帧对应的当前检测帧的标记,在目标检测帧率下找到具有相同所述标记的检测帧,计算所述检测帧对应的图像帧中运动目标数目,最后得所述当前检测帧率下当前图像帧中的运动目标数目与所述调整后检测帧率下检测帧对应的图像帧中的所述运动目标数目的差的绝对值,其中所述检查帧为被检测的图像帧。 13. A method of adjusting the frame rate of detecting according to claim 9, wherein: the calculating the target number of motion detection frame rate and the estimated target current image frame in the current frame rate is detected in the current image absolute value of the change in the number of new image frame corresponding to the detected frame moving object comprising: detection for detecting a frame at different frame rates, respectively, from a first frame marker detector, said current detector acquires the framerate said current image frame corresponding to the current marker frames is detected, the detection frame rate found in the target frame having the same detecting the marker, calculating the number of frames corresponding to the detected moving object in the image frame, to obtain the final frame rate of the current detection the number of the moving object in the current image frame with the image frame detection absolute value of difference frame number of the motion image frame corresponding to a target frame rate after the adjustment is detected, wherein the inspection frame is detected.
CN 201010550696 2010-11-18 2010-11-18 Method for adjusting detection frame rate CN102096924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010550696 CN102096924B (en) 2010-11-18 2010-11-18 Method for adjusting detection frame rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010550696 CN102096924B (en) 2010-11-18 2010-11-18 Method for adjusting detection frame rate

Publications (2)

Publication Number Publication Date
CN102096924A true true CN102096924A (en) 2011-06-15
CN102096924B CN102096924B (en) 2012-07-25

Family

ID=44130001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010550696 CN102096924B (en) 2010-11-18 2010-11-18 Method for adjusting detection frame rate

Country Status (1)

Country Link
CN (1) CN102096924B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103426181A (en) * 2012-05-25 2013-12-04 信帧电子技术(北京)有限公司 Automatic frame rate changing wire-mixing detection method
CN104270619A (en) * 2014-10-22 2015-01-07 中国建设银行股份有限公司 Safety warning method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030107648A1 (en) * 2001-12-12 2003-06-12 Richard Stewart Surveillance system and method with adaptive frame rate
CN1632593A (en) * 2004-12-31 2005-06-29 北京中星微电子有限公司 Motion image detecting method and circuit
CN1668081A (en) * 2005-05-10 2005-09-14 北京中星微电子有限公司 A shooting method and device for monitoring
CN101106683A (en) * 2007-08-08 2008-01-16 北京中星微电子有限公司 A hardware resource self-adapted AVI file playing method
CN101350915A (en) * 2008-09-01 2009-01-21 北京中星微电子有限公司 Method for self-adapting regulation of running parameter and monitoring frontend equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030107648A1 (en) * 2001-12-12 2003-06-12 Richard Stewart Surveillance system and method with adaptive frame rate
CN1632593A (en) * 2004-12-31 2005-06-29 北京中星微电子有限公司 Motion image detecting method and circuit
CN1668081A (en) * 2005-05-10 2005-09-14 北京中星微电子有限公司 A shooting method and device for monitoring
CN101106683A (en) * 2007-08-08 2008-01-16 北京中星微电子有限公司 A hardware resource self-adapted AVI file playing method
CN101350915A (en) * 2008-09-01 2009-01-21 北京中星微电子有限公司 Method for self-adapting regulation of running parameter and monitoring frontend equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103426181A (en) * 2012-05-25 2013-12-04 信帧电子技术(北京)有限公司 Automatic frame rate changing wire-mixing detection method
CN104270619A (en) * 2014-10-22 2015-01-07 中国建设银行股份有限公司 Safety warning method and device

Also Published As

Publication number Publication date Type
CN102096924B (en) 2012-07-25 grant

Similar Documents

Publication Publication Date Title
US20100166257A1 (en) Method and apparatus for detecting semi-transparencies in video
US20090052783A1 (en) Similar shot detecting apparatus, computer program product, and similar shot detecting method
US20080310727A1 (en) Moving image analyzing apparatus, method and system
CN101420617A (en) Motion estimation searching method for cross hexagon
US20090316044A1 (en) Method and Associated Apparatus for Determining Motion Vectors
US20080170067A1 (en) Image processing method and apparatus
CN101404086A (en) Target tracking method and device based on video
CN102750674A (en) Video image defogging method based on self-adapting allowance
CN103248911A (en) Virtual viewpoint drawing method based on space-time combination in multi-view video
CN101894378A (en) Moving target visual tracking method and system based on double ROI (Region of Interest)
CN101489121A (en) Background model initializing and updating method based on video monitoring
US20120121174A1 (en) method for detecting and adapting video processing for far-view scenes in sports video
CN104392468A (en) Improved visual background extraction based movement target detection method
CN101127082A (en) Rapid annealing SAR image segmentation method based on MRF
CN103369342A (en) Method for inpainting and restoring processing of vacancy of DIBR (Depth Image Based Rendering) target image
CN102609950A (en) Two-dimensional video depth map generation process
US8289402B2 (en) Image processing apparatus, image pickup apparatus and image processing method including image stabilization
CN101457267A (en) Intelligent extraction method of blast burden temperature field isotherm
US20100302453A1 (en) Detection of gradual transitions in video sequences
CN1885946A (en) Motion error compensator, and method for detecting and compensating motion error
US20070196018A1 (en) Method of multi-path block matching computing
CN101304479A (en) Method and apparatus for detecting motion in video sequence
US20090202163A1 (en) Determination of optimal frame types in video encoding
CN1558683A (en) Variable shape searching (VSS) quick motion estimation method
US20100247073A1 (en) Method and apparatus for extracting spatio-temporal feature and detecting video copy based on the same in broadcasting communication system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model