[go: up one dir, main page]

CN110415264B - Motion detection circuit and method - Google Patents

Motion detection circuit and method Download PDF

Info

Publication number
CN110415264B
CN110415264B CN201810378204.7A CN201810378204A CN110415264B CN 110415264 B CN110415264 B CN 110415264B CN 201810378204 A CN201810378204 A CN 201810378204A CN 110415264 B CN110415264 B CN 110415264B
Authority
CN
China
Prior art keywords
signature value
signature
current picture
picture
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810378204.7A
Other languages
Chinese (zh)
Other versions
CN110415264A (en
Inventor
甘家铭
杨得炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Himax Technologies Ltd
Original Assignee
Himax Technologies 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 Himax Technologies Ltd filed Critical Himax Technologies Ltd
Priority to CN201810378204.7A priority Critical patent/CN110415264B/en
Publication of CN110415264A publication Critical patent/CN110415264A/en
Application granted granted Critical
Publication of CN110415264B publication Critical patent/CN110415264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/10Image enhancement or restoration using non-spatial domain filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a motion detection circuit and a motion detection method. The motion detection circuit comprises a detection unit for obtaining a current picture and judging whether a specific pixel exists in the current picture. The motion detection circuit further comprises a signature generator and a comparator. The signature generator is used for executing an updating program for each specific pixel. The update procedure includes: adding the coordinate information of the specific pixel to the corresponding signature value, and updating at least one bit in the corresponding signature value. The comparator is used for comparing the signature value of the current picture with the signature value of the previous picture to judge whether the current picture is an action picture or not.

Description

动作检测电路与方法Motion detection circuit and method

技术领域Technical field

本发明涉及一种计算签章数值以判断动作画面的动作检测方法与电路。The invention relates to an action detection method and circuit for calculating a signature value to determine an action picture.

背景技术Background technique

在图像处理的领域中,在一些情境下需要判断一段视频中是否有动作画面。为了要检测动作画面,可以计算前后影像之间的差,计算直方图(histogram)等等,然而这些做法的复杂度可能较高。因此,如何提出一个低复杂度的算法,来判断动作画面,为此领域技术人员所关心的议题。In the field of image processing, in some situations it is necessary to determine whether there are action scenes in a video. In order to detect action scenes, you can calculate the difference between the front and rear images, calculate a histogram, etc. However, the complexity of these methods may be high. Therefore, how to propose a low-complexity algorithm to determine action scenes is an issue of concern to those skilled in the field.

发明内容Contents of the invention

本发明的实施例提出一种动作检测电路,包括检测单元以取得目前画面并判断目前画面中是否有特定像素,其中,特定像素是指处于边缘的像素或者具有特定色相、饱和度、亮度、纹理的像素。动作检测电路还包括签章产生器与比较器。签章产生器用以对于每一个特定像素执行更新程序。此更新程序包括:将特定像素的坐标信息加至对应的签章数值当中,以及更新对应的签章数值中的至少一个位。比较器用以比较目前画面的签章数值与前画面的签章数值以判断目前画面是否为动作画面;如果目前画面和前画面的签章数值不相同,则表示目前画面为动作画面。An embodiment of the present invention proposes a motion detection circuit, including a detection unit to obtain the current picture and determine whether there are specific pixels in the current picture, where the specific pixels refer to pixels at the edge or have specific hue, saturation, brightness, texture of pixels. The motion detection circuit also includes a signature generator and a comparator. The signature generator is used to perform the update process for each specific pixel. This update procedure includes: adding the coordinate information of the specific pixel to the corresponding signature value, and updating at least one bit in the corresponding signature value. The comparator is used to compare the signature value of the current screen with the signature value of the previous screen to determine whether the current screen is an action screen; if the signature values of the current screen and the previous screen are different, it means that the current screen is an action screen.

在一些实施例中,目前画面包括多个区块,每一个区块具有对应的签章数值。在初始化目前画面的签章数值以及前画面的签章数值时,对于位置相同的区块所对应的签章数值是采用相同的默认值。In some embodiments, the current picture includes multiple blocks, and each block has a corresponding signature value. When initializing the signature value of the current screen and the signature value of the previous screen, the same default value is used for the signature values corresponding to blocks with the same position.

在一些实施例中,在更新程序中,签章产生器用以将对应的签章数值向左或向右位移多个位,并将特定像素相对于所属区块的X坐标与Y坐标加入至对应的签章数值当中。In some embodiments, in the update process, the signature generator is used to shift the corresponding signature value to the left or right by multiple bits, and add the X coordinate and Y coordinate of the specific pixel relative to the corresponding block to the corresponding signature value. among the signature values.

在一些实施例中,在更新程序中,签章产生器更新对应的签章数值中位的步骤包括:从签章数值中取得S个位,其中S为大于1的正整数;对S个位执行逻辑运算;以及将签章数值中的至少一个位更新为逻辑运算的结果。In some embodiments, in the update procedure, the steps for the signature generator to update the median of the corresponding signature value include: obtaining S digits from the signature value, where S is a positive integer greater than 1; Perform a logical operation; and update at least one bit in the signature value to the result of the logical operation.

在一些实施例中,在更新程序中签章数值被更新位的个数大于1,签章产生器在更新签章数值中的不同位时,是取得不同的S个位。In some embodiments, the number of updated bits of the signature value in the update procedure is greater than 1, and the signature generator obtains different S bits when updating different bits in the signature value.

以另一个角度来说,本发明的实施例提出一种动作检测方法,适用于动作检测电路,此动作检测方法包括:取得目前画面并判断目前画面中是否有特定像素,其中,特定像素是指处于边缘的像素或者具有特定色相、饱和度、亮度、纹理的像素:对于每一个特定像素执行更新程序。此更新程序包括:将特定像素的坐标信息加至对应的签章数值当中;以及更新对应的签章数值中的至少一个位。上述的动作检测方法还包括;比较目前画面的签章数值与前画面的签章数值以判断目前画面是否为动作画面;如果目前画面和前画面的签章数值不相同,则表示目前画面为动作画面。From another perspective, embodiments of the present invention propose a motion detection method, which is suitable for motion detection circuits. The motion detection method includes: obtaining the current picture and determining whether there are specific pixels in the current picture, where the specific pixel refers to Pixels at edges or pixels with specific hue, saturation, brightness, or texture: perform an update procedure for each specific pixel. This update procedure includes: adding coordinate information of a specific pixel to the corresponding signature value; and updating at least one bit in the corresponding signature value. The above-mentioned action detection method also includes: comparing the signature value of the current screen with the signature value of the previous screen to determine whether the current screen is an action screen; if the signature values of the current screen and the previous screen are different, it means that the current screen is an action screen picture.

在一些实施例中,目前画面包括多个区块,每一个区块具有对应的签章数值。动作检测方法还包括:在初始化目前画面的签章数值以及前画面的签章数值时,对于位置相同的区块所对应的签章数值是采用相同的默认值。In some embodiments, the current picture includes multiple blocks, and each block has a corresponding signature value. The action detection method also includes: when initializing the signature value of the current screen and the signature value of the previous screen, the same default value is used for the signature values corresponding to blocks with the same position.

在一些实施例中,动作检测方法还包括:在更新程序中,将对应的签章数值向左或向右位移多个位,并将特定像素相对于所属区块的X坐标与Y坐标加入至对应的签章数值当中。In some embodiments, the action detection method further includes: in the update procedure, shifting the corresponding signature value to the left or right by multiple bits, and adding the X coordinate and Y coordinate of the specific pixel relative to the block to which it belongs. among the corresponding signature values.

在一些实施例中,在更新程序中更新签章数值中位的步骤包括:从签章数值中取得S个位,其中S为大于1的正整数;对S个位执行逻辑运算;以及将签章数值中的位更新为逻辑运算的结果。In some embodiments, the step of updating the median of the signature value in the update procedure includes: obtaining S bits from the signature value, where S is a positive integer greater than 1; performing logical operations on the S bits; and converting the signature value to The bits in the chapter value are updated with the result of the logical operation.

在一些实施例中,在更新程序中,被更新位的个数大于1。动作检测方法还包括:在更新签章数值中的不同位时,是取得不同的S个位。In some embodiments, the number of updated bits is greater than 1 during the update procedure. The action detection method also includes: when updating different bits in the signature value, different S bits are obtained.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并结合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and understandable, embodiments are given below and described in detail with reference to the accompanying drawings.

附图说明Description of the drawings

图1A是根据一实施例绘示显示设备的示意图;FIG. 1A is a schematic diagram of a display device according to an embodiment;

图1B是根据一实施例绘示动作检测电路的方块示意图;1B is a block diagram illustrating a motion detection circuit according to an embodiment;

图2是根据一实施例绘示计算签章数值的示意图;Figure 2 is a schematic diagram illustrating calculation of a signature value according to an embodiment;

图3是根据一实施例绘示了将坐标信息加至签章数值的示意图;Figure 3 is a schematic diagram illustrating adding coordinate information to a signature value according to an embodiment;

图4是根据一实施例绘示更新签章数值中位的示意图;Figure 4 is a schematic diagram illustrating updating the median signature value according to an embodiment;

图5是根据一实施例绘示比较两张画面中签章数值的示意图;以及Figure 5 is a schematic diagram illustrating comparison of signature values in two images according to an embodiment; and

图6是根据一实施例绘示动作检测方法的流程图。FIG. 6 is a flowchart illustrating a motion detection method according to an embodiment.

具体实施方式Detailed ways

图1A是根据一实施例绘示显示设备的示意图。在图1A的实施例中,显示设备100包括了时序控制器110、源极驱动器120、栅极驱动器130与显示面板140。时序控制器110包括了动作检测电路111,用以执行以下描述的动作检测方法。然而,此动作检测电路111与方法也可以应用在其他的电子装置,例如智能型手机、平板计算机、个人计算机、笔记本电脑、工业计算机、显示屏幕、触控屏幕等等。FIG. 1A is a schematic diagram illustrating a display device according to an embodiment. In the embodiment of FIG. 1A , the display device 100 includes a timing controller 110 , a source driver 120 , a gate driver 130 and a display panel 140 . The timing controller 110 includes a motion detection circuit 111 to perform the motion detection method described below. However, the motion detection circuit 111 and method can also be applied to other electronic devices, such as smart phones, tablet computers, personal computers, notebook computers, industrial computers, display screens, touch screens, etc.

图1B是根据一实施例绘示动作检测电路的方块示意图。请参照图1B,动作检测电路111包括检测单元150、签章产生器160、比较器170与缓存器180。签章产生器160中包括了缓存器161与运算单元162。以下将搭配图1B与图2一并说明动作检测电路111的运作。FIG. 1B is a block diagram illustrating a motion detection circuit according to an embodiment. Referring to FIG. 1B , the action detection circuit 111 includes a detection unit 150 , a signature generator 160 , a comparator 170 and a register 180 . The signature generator 160 includes a register 161 and a computing unit 162. The operation of the motion detection circuit 111 will be described below with reference to FIG. 1B and FIG. 2 .

图2是根据一实施例绘示计算签章数值的示意图。请参照图2,检测单元150会取得目前画面200并判断目前画面中是否有特定像素。在此实施例中,检测单元150可采用任意的边缘检测算法,而上述的特定像素指的是处于边缘的像素。此边缘检测算法例如是采用一个滤波器,并根据此滤波器对目前画面200做卷积(convolution)的运算,滤波的结果可以与一个临界值做比较,若大于临界值则判断是特定像素。上述的滤波器可以是任意合适的高通滤波器,例如为索贝尔(sobel)滤波器等,本发明并不此限。本领域具有通常知识者当可采用任意的边缘检测算法,例如为坎尼边缘检测器(canny edge detector)等,本发明并不限制边缘检测算法的内容。在其他实施例中,检测单元150也可以判断目前画面200中每个像素是否有特定的亮度、色相(hue)、饱和度、或者判断目前画面200中是否有特定的纹理(例如线条、平面、任意几何形状等)以取得特定像素。换言之,上述的特定像素也可以是具有特定色相、饱和度、亮度、纹理的像素,本发明并不在此限。在图2仅绘示了特定像素P1与P2作为例子来说明后续的算法。FIG. 2 is a schematic diagram illustrating calculation of a signature value according to an embodiment. Referring to FIG. 2 , the detection unit 150 obtains the current frame 200 and determines whether there are specific pixels in the current frame. In this embodiment, the detection unit 150 can use any edge detection algorithm, and the above-mentioned specific pixels refer to pixels at the edge. This edge detection algorithm uses a filter, for example, and performs a convolution operation on the current picture 200 based on the filter. The filter result can be compared with a critical value. If it is greater than the critical value, it is determined to be a specific pixel. The above-mentioned filter can be any suitable high-pass filter, such as a Sobel filter, etc., and the present invention is not limited thereto. Those with ordinary knowledge in the art can adopt any edge detection algorithm, such as a canny edge detector, etc. The present invention does not limit the content of the edge detection algorithm. In other embodiments, the detection unit 150 may also determine whether each pixel in the current picture 200 has a specific brightness, hue, or saturation, or determine whether the current picture 200 has a specific texture (such as lines, planes, arbitrary geometric shape, etc.) to obtain specific pixels. In other words, the above-mentioned specific pixels may also be pixels with specific hue, saturation, brightness, and texture, and the present invention is not limited thereto. In FIG. 2 , only specific pixels P1 and P2 are shown as examples to illustrate the subsequent algorithm.

在一些实施例中,目前画面200可被分为M x N个区块,其中M与N为正整数。在一些实施例中,正整数M与N为16,但在其他实施例中也可以为8、32、64或其他数值,本发明并不在此限。在一些实施例中,目前画面200的宽度可能无法被正整数M所整除,因此可以设定前M-1个区块的宽度相同,第M个区块的宽度则较大或较小。在一些实施例中,每一个区块的宽度与高度都可任意设计,也可彼此不相同,区块的形状也可以是其他多边形或圆形,并不限于矩形。In some embodiments, the current picture 200 may be divided into M x N blocks, where M and N are positive integers. In some embodiments, the positive integers M and N are 16, but in other embodiments they can also be 8, 32, 64 or other numerical values, and the invention is not limited thereto. In some embodiments, the width of the current screen 200 may not be divisible by a positive integer M, so the width of the first M-1 blocks can be set to be the same, and the width of the M-th block may be larger or smaller. In some embodiments, the width and height of each block can be arbitrarily designed or different from each other. The shape of the blocks can also be other polygons or circles, and is not limited to rectangles.

对于每一个区块都可以设定一个签章数值(signature),这些签章数值是储存在缓存器161当中,上述的特定像素是用来更新签章数值,若同一个区块中的签章数值改变了,则表示画面中的亮度、颜色、边缘、或纹理改变了,即表示有动作发生,以下将说明如何计算签章数值。首先,运算单元162会初始化签章数值,在一些实施例中目前画面200中每一个区块的签章数值可初始化成不同的数值,且可以随机产生。其他实施例中,目前画面200中数个区块的签章数值也可初始化成相同的数值,本发明并不在此限。A signature value (signature) can be set for each block. These signature values are stored in the register 161. The above-mentioned specific pixels are used to update the signature value. If the signature in the same block If the value changes, it means that the brightness, color, edge, or texture in the picture has changed, which means that an action has occurred. The following will explain how to calculate the signature value. First, the computing unit 162 will initialize the signature value. In some embodiments, the signature value of each block in the current screen 200 can be initialized to different values, and can be randomly generated. In other embodiments, the signature values of several blocks in the current screen 200 can also be initialized to the same value, and the present invention is not limited thereto.

对于每个特定像素,签章产生器160都会执行一个更新程序。在此以特定像素P1与P2为例,特定像素P1与P2是属于区块210。在对特定像素P1与P2执行更新程序时,签章产生器160都会更新所属区块210所对应的签章数值。换言之,对于区块210所对应的签章数值来说,上述的更新程序会重复执行两次。具体来说,更新程序至少包括两个步骤:第一,将特定像素相对于所属区块的坐标信息加至所属区块所对应的签章数值当中;第二,更新签章数值中的至少一个位。For each specific pixel, the signature generator 160 performs an update procedure. Here, specific pixels P1 and P2 are taken as an example. The specific pixels P1 and P2 belong to the block 210 . When executing the update procedure on specific pixels P1 and P2, the signature generator 160 will update the signature value corresponding to the corresponding block 210. In other words, for the signature value corresponding to block 210, the above update procedure will be executed twice. Specifically, the update procedure includes at least two steps: first, adding the coordinate information of the specific pixel relative to the block it belongs to to the signature value corresponding to the block it belongs to; second, updating at least one of the signature values. Bit.

在上述第一步骤中,特定像素相对于区块的坐标信息例如包括X坐标与Y坐标,这两个坐标是以区块中的左上角作为原点。举例来说,以坐标O作为原点,则特定像素P1的坐标信息例如表示为(3,4),而特定像素P2的坐标信息例如表示为(6,8)。在一些实施例中,X坐标与Y坐标的数值并不会超过255,因此可以各以8个位来表示X坐标与Y坐标,为了一般化的表示,以下将这两个坐标表示为xlocal与ylocal。图3绘示了将坐标信息加至签章数值的示意图,请参照图3,上述“将坐标信息加至签章数值”的一个实施例是先将签章数值向左或向右位移多个位,在图3的例子中是向右位移16个位,接下来将坐标xlocal与坐标ylocal加入至签章数值当中,此运算可以表示为以下方程序(1)。In the above first step, the coordinate information of the specific pixel relative to the block includes, for example, X coordinate and Y coordinate. These two coordinates take the upper left corner of the block as the origin. For example, taking coordinate O as the origin, the coordinate information of the specific pixel P1 is expressed as (3,4), and the coordinate information of the specific pixel P2 is expressed as (6,8), for example. In some embodiments, the values of the X coordinate and the Y coordinate do not exceed 255, so the X coordinate and the Y coordinate can be represented by 8 bits each. For general expression, these two coordinates are represented as x local below. with y local . Figure 3 is a schematic diagram of adding coordinate information to the signature value. Please refer to Figure 3. One embodiment of the above "adding coordinate information to the signature value" is to first shift the signature value to the left or right by a plurality of times. bit, in the example of Figure 3, it is shifted to the right by 16 bits. Next, the coordinate x local and the coordinate y local are added to the signature value. This operation can be expressed as the following program (1).

LFSRi=(ylocal<<8+xlocal)<<16+LFSRi>>16…(1)LFSR i =(y local <<8+x local )<<16+LFSR i >>16…(1)

其中LFSRi表示第i个区块所对应的签章数值,<<表示向左位移,>>表示向右位移,+表示OR逻辑运算。在上述实施例中是将坐标加入至最高有效位(most significant bit,MSB),但在一些实施例中,也可以先将签章数值向左位移多个位以后,将坐标xlocal与ylocal加入至最低有效位(least significant bit,LSB)中。或者,当区块的宽度与高度更大或更小时,坐标xlocal、ylocal所需的位数可能更多或更少,对应地签章数值可以位移更少或更多个位。在一些实施例中,也可以不位移签章数值,直接将签章数值中部分的位替换为坐标xlocal、ylocal。本发明也不限制要坐标xlocal、ylocal在新的签章数值中的位置,例如坐标xlocal、ylocal的位也可以分散地存在新的签章数值当中。在一些实施例中,上述“将坐标信息加至签章数值”的步骤也可以是将签章数值与坐标xlocal、ylocal做任意的逻辑运算,例如加减乘除、逻辑AND、逻辑OR等运算,只要根据坐标xlocal、ylocal来变更签章数值中的位即可,本发明并不在此限。Among them, LFSR i represents the signature value corresponding to the i-th block, << represents a left shift, >> represents a right shift, and + represents an OR logical operation. In the above embodiment, the coordinates are added to the most significant bit (MSB), but in some embodiments, the signature value can also be shifted to the left by multiple bits, and then the coordinates x local and y local can be Added to the least significant bit (LSB). Or, when the width and height of the block are larger or smaller, the number of bits required for the coordinates x local and y local may be more or less, and correspondingly the signature value may be shifted by fewer or more bits. In some embodiments, it is also possible to directly replace part of the signature value with coordinates x local and y local without shifting the signature value. The present invention does not limit the positions of coordinates x local and y local in the new signature value. For example, the coordinates x local and y local can also be dispersedly stored in the new signature value. In some embodiments, the above-mentioned step of "adding coordinate information to the signature value" can also be to perform arbitrary logical operations on the signature value and the coordinates x local and y local , such as addition, subtraction, multiplication, division, logical AND, logical OR, etc. For calculation, it is enough to change the bits in the signature value according to the coordinates x local and y local , and the present invention is not limited to this.

接下来说明上述更新程序的第二个步骤:更新签章数值中的至少一个位。请参照图4,在一些实施例中,可从签章数值中取得S个位,其中S为正整数,例如为12、13、14或其他数值。接下来,对这S个位执行逻辑运算,并将签章数值中的一个位更新为逻辑运算的结果,此步骤可执行U次,用以更新签章数值中的U个位,其中U为正整数,例如为8、9、10或其他数值。在以下的实施例中,上述的逻辑运算为互斥或运算(XOR operation),但在其他实施例中也可以改为AND或是OR运算,本发明并不在此限。在一些实施例中,当U大于1时,每次更新位时是取得不同的S个位来更新不同的位。举例来说,图4绘示了两次的更新,图4的上半部是取得位b30、b28…b1等13个位来做互斥或运算,并将位b31更新为互斥或运算的结果。图4的下半部是取得位b31、b29…b0等13个位来做互斥或运算,并将位b16更新为互斥或运算的结果。换个角度来说,此步骤可表示为以下方程序(2)。Next, the second step of the above update procedure is described: updating at least one bit in the signature value. Please refer to Figure 4. In some embodiments, S digits can be obtained from the signature value, where S is a positive integer, such as 12, 13, 14 or other values. Next, logical operations are performed on these S bits, and one bit in the signature value is updated as the result of the logical operation. This step can be performed U times to update U bits in the signature value, where U is Positive integer, such as 8, 9, 10 or other numerical values. In the following embodiments, the above-mentioned logical operation is an exclusive OR operation (XOR operation), but in other embodiments, it can also be changed to an AND or OR operation, and the present invention is not limited thereto. In some embodiments, when U is greater than 1, different S bits are obtained to update different bits each time a bit is updated. For example, Figure 4 shows two updates. The upper part of Figure 4 obtains 13 bits such as bits b 30 , b 28 ...b 1 to perform a mutually exclusive OR operation, and updates bit b 31 to a mutually exclusive OR operation. The result of exclusive OR operation. The lower part of Figure 4 obtains 13 bits such as bits b 31 , b 29 ...b 0 and performs a mutually exclusive OR operation, and updates bit b 16 to the result of the mutually exclusive OR operation. From another perspective, this step can be expressed as the following procedure (2).

在此,是互斥或运算,bs,1...bs,S代表所选择的位,例如在图4的上半部中bs, 1...bs,S等于b30、b28…b1,图4的下半部中bs,1...bs,S等于b31、b29…b0。bu表示所要更新的位,方程式(2)可执行U次,每次执行时所选择的位bs可不相同,例如在图4的上半部中bu等于b31,在图4的下半部中bu等于b16。请参照图3与图4,在一些实施例中,由于签章数值LFSRi会往右位移16个位,因此在上述的方程式(2)中,位bu只会是位b31~b16的其中之一。在一些实施例中,图4中的各个更新是平行运算,即所选择的位是旧的签章数值中的位,而不是新的签章数值中的位。举例来说,图4下半部所选择的位b31是在图4上半部更新尚未被执行之前的位。然而,在一些实施例中,图4中各个更新也可以是依序执行,即图4下半部所选择的位b31是在图4上半部更新执行完以后的位,本发明并不在此限。here, is a mutually exclusive OR operation, b s,1 ...b s,S represents the selected bit, for example, in the upper half of Figure 4, b s, 1 ...b s,S is equal to b 30 , b 28 ... b 1 , b s,1 ...b s,S in the lower half of Figure 4 are equal to b 31 , b 29 ...b 0 . b u represents the bit to be updated. Equation (2) can be executed U times, and the selected bit b s can be different in each execution. For example, in the upper part of Figure 4, b u is equal to b 31 , and in the lower part of Figure 4 In the half, b u is equal to b 16 . Please refer to Figure 3 and Figure 4. In some embodiments, since the signature value LFSR i will be shifted to the right by 16 bits, in the above equation (2), the bit b u will only be the bit b 31 ~ b 16 one of them. In some embodiments, each update in Figure 4 is a parallel operation, that is, the selected bits are bits in the old signature value, not the new signature value. For example, the selected bit b 31 in the lower half of FIG. 4 is the bit before the update in the upper half of FIG. 4 is performed. However, in some embodiments, each update in Figure 4 can also be executed sequentially, that is, the bit b 31 selected in the lower half of Figure 4 is the bit after the update in the upper half of Figure 4 is completed. The present invention does not This limit.

请参照图1B,对于目前画面200中每个特定像素都执行上述的更新程序以后,目前画面200的多个签章数值181会传送至缓存器180与比较器170。此外,缓存器180中则储存有前画面的签章数值,而前画面的签章数值182也会传送至比较器170。比较器170会判断目前画面的签章数值181是否相同于前画面的签章数值182,若两者不相同,则表示目前画面为动作画面。值得注意的是,由于每个区块都有对应的签章数值,因此比较器170可比较相同区块所对应的两个签章数值,以判断此区块是否有动作发生。举例来说,请参照图5,在时间轴上,前画面500位于目前画面200之前,前画面具有区块510,其中区块510在画面500中的相对位置是相同于区块210在画面200中的相对位置。值得一提的是,在初始化目前画面200中的签章数值以及前画面500的该签章数值时,对于位置相同的区块所对应的两个签章数值是采用相同的默认值。此外,在对区块210与区块510执行上述的方程式(1)、(2)时,所有的变量都完全相同,例如位移相同的位数、采用相同的正整数U、S,采用相同的位bu、bs, 1...bs,S等,如此一来区块210与区块510所对应的两个签章数值才可以相互比较。Please refer to FIG. 1B . After the above-mentioned update process is executed for each specific pixel in the current frame 200 , a plurality of signature values 181 of the current frame 200 will be transmitted to the register 180 and the comparator 170 . In addition, the register 180 stores the signature value of the previous picture, and the signature value 182 of the previous picture is also sent to the comparator 170 . The comparator 170 will determine whether the signature value 181 of the current screen is the same as the signature value 182 of the previous screen. If the two are not the same, it means that the current screen is an action screen. It is worth noting that since each block has a corresponding signature value, the comparator 170 can compare two signature values corresponding to the same block to determine whether an action has occurred in this block. For example, please refer to Figure 5. On the timeline, the previous picture 500 is located before the current picture 200. The previous picture has a block 510, where the relative position of the block 510 in the picture 500 is the same as that of the block 210 in the picture 200. relative position in. It is worth mentioning that when initializing the signature value in the current screen 200 and the signature value in the previous screen 500, the same default value is used for the two signature values corresponding to the blocks in the same position. In addition, when executing the above equations (1) and (2) on block 210 and block 510, all variables are exactly the same, such as shifting by the same number of bits, using the same positive integers U and S, and using the same Bits b u , b s, 1 ...b s, S, etc., so that the two signature values corresponding to block 210 and block 510 can be compared with each other.

如果区块210所对应的签章数值不相同于区块510所对应的签章数值,表示在区块210、510内有动作发生,得到此判断结果以后,便可以再执行额外的程序,例如时序控制器110可以执行过驱动(over drive)的处理。然而,本发明并不限制后续要执行那些运算或程序。If the signature value corresponding to block 210 is not the same as the signature value corresponding to block 510, it means that an action occurred in blocks 210 and 510. After obtaining this judgment result, additional procedures can be executed, such as The timing controller 110 may perform over drive processing. However, the present invention does not limit which operations or procedures are subsequently performed.

图6是根据一实施例绘示动作检测方法的流程图,请参照图6,在步骤601,取得目前画面并判断目前画面中是否有特定像素。在步骤602,判断目前画面中是否还有特定像素。若步骤602的结果为是,在步骤603中,将特定像素的坐标信息加至对应的签章数值当中。在步骤604中,更新对应的签章数值中的至少一个位。步骤603与步骤604又被称为更新程序。步骤602~步骤604会重复执行,直到所有特定像素都处理完,如果步骤602的结果为否,则比较目前画面的签章数值与一前画面的签章数值以判断目前画面是否为动作画面(步骤605)。然而,图6中各步骤已详细说明如上,在此便不再赘述。值得注意的是,图6中各步骤可以实施为多个程序代码或是电路,本发明并不在此限。此外,图6的方法可以搭配以上实施例使用,也可以单独使用。换言之,图6的各步骤之间也可以加入其他的步骤。Figure 6 is a flowchart illustrating a motion detection method according to an embodiment. Please refer to Figure 6. In step 601, the current frame is obtained and whether there is a specific pixel in the current frame is determined. In step 602, it is determined whether there are still specific pixels in the current picture. If the result of step 602 is yes, in step 603, the coordinate information of the specific pixel is added to the corresponding signature value. In step 604, at least one bit in the corresponding signature value is updated. Steps 603 and 604 are also called update procedures. Steps 602 to 604 will be executed repeatedly until all specific pixels have been processed. If the result of step 602 is no, the signature value of the current picture will be compared with the signature value of the previous picture to determine whether the current picture is an action picture ( Step 605). However, each step in Figure 6 has been described in detail above and will not be described again here. It is worth noting that each step in Figure 6 can be implemented as multiple program codes or circuits, and the present invention is not limited thereto. In addition, the method in Figure 6 can be used in conjunction with the above embodiments or alone. In other words, other steps can also be added between the steps in Figure 6 .

虽然本发明已以实施例揭露如上,然其并非用以限定本发明,任何本领域技术人员,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,故本发明的保护范围当视后附的权利要求所界定者为准。Although the present invention has been disclosed above through embodiments, they are not intended to limit the present invention. Any person skilled in the art can make some modifications and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention is The scope of protection shall be determined by the appended claims.

符号说明Symbol Description

100:显示设备100: Display device

110:时序控制器110: Timing controller

111:动作检测电路111: Action detection circuit

120:源极驱动器120: Source driver

130:栅极驱动器130: Gate driver

140:显示面板140: Display panel

150:检测单元150: Detection unit

160:签章产生器160: Signature generator

161、180:缓存器161, 180: buffer

162:运算单元162: Operation unit

170:比较器170: Comparator

181、182:签章数值181, 182: Signature value

200:目前画面200: Current screen

210:区块210: Block

M、N:正整数M, N: positive integers

P1、P2:像素P1, P2: pixels

O:坐标O: coordinates

b0~b31:位b 0 ~ b 31 : bit

xlocal、ylocal:坐标x local , y local : coordinates

500:前画面500: Front screen

510:区块510: Block

601~605:步骤601~605: Steps

Claims (10)

1.一种动作检测电路,其特征在于,包括检测单元,用以取得目前画面并判断所述目前画面中是否有特定像素,其中,所述特定像素是指处于边缘的像素或者具有特定色相、饱和度、亮度、纹理的像素,所述动作检测电路包括:1. An action detection circuit, characterized in that it includes a detection unit to obtain the current picture and determine whether there are specific pixels in the current picture, wherein the specific pixels refer to pixels at the edge or have a specific hue, Saturation, brightness, texture of pixels, the motion detection circuit includes: 签章产生器,用以对每一个所述特定像素执行更新程序,所述更新程序包括:A signature generator is used to perform an update procedure for each specific pixel, and the update procedure includes: 将所述特定像素的坐标信息加至对应的签章数值当中;以及Add the coordinate information of the specific pixel to the corresponding signature value; and 更新对应的所述签章数值中的至少一位;以及Update at least one of the corresponding signature values; and 比较器,用以比较所述目前画面的所述签章数值与前画面的签章数值以判断所述目前画面是否为动作画面;如果所述目前画面和所述前画面的签章数值不相同,则表示所述目前画面为动作画面。A comparator used to compare the signature value of the current picture with the signature value of the previous picture to determine whether the current picture is an action picture; if the signature values of the current picture and the previous picture are not the same , it means that the current picture is an action picture. 2.如权利要求1所述的动作检测电路,其特征在于,其中所述目前画面包括多个区块,所述多个区块中的每一个区块具有对应的所述签章数值,在初始化所述目前画面的所述签章数值以及所述前画面的所述签章数值时,对于位置相同的所述区块所对应的所述签章数值是采用相同的默认值。2. The motion detection circuit of claim 1, wherein the current picture includes a plurality of blocks, and each block in the plurality of blocks has a corresponding signature value. When initializing the signature value of the current picture and the signature value of the previous picture, the same default value is used for the signature value corresponding to the block with the same position. 3.如权利要求2所述的动作检测电路,其特征在于,其中在所述更新程序中,所述签章产生器用以将对应的所述签章数值向左或向右位移多个位,并将所述特定像素相对于所属区块的X坐标与Y坐标加入至对应的所述签章数值当中。3. The action detection circuit of claim 2, wherein in the update procedure, the signature generator is used to shift the corresponding signature value to the left or right by a plurality of bits, And the X coordinate and Y coordinate of the specific pixel relative to the block it belongs to are added to the corresponding signature value. 4.如权利要求3所述的动作检测电路,其特征在于,其中在所述更新程序中,所述签章产生器更新对应的所述签章数值中的所述至少一位的步骤包括:4. The action detection circuit according to claim 3, wherein in the update procedure, the step of the signature generator updating the at least one digit in the corresponding signature value includes: 从所述签章数值中取得S个位,其中S为大于1的正整数;Obtain S digits from the signature value, where S is a positive integer greater than 1; 对所述S个位执行逻辑运算;以及Perform logical operations on the S bits; and 将所述签章数值中的所述至少一位更新为所述逻辑运算的结果。The at least one bit in the signature value is updated to the result of the logical operation. 5.如权利要求4所述的动作检测电路,其特征在于,其中在所述更新程序中,所述签章数值中被更新的所述至少一位的个数大于1,所述签章产生器在更新所述签章数值中的不同位时,是取得不同的S个位。5. The action detection circuit of claim 4, wherein in the update procedure, the number of updated at least one bit in the signature value is greater than 1, and the signature is generated When updating different bits in the signature value, the device obtains different S bits. 6.一种动作检测方法,其特征在于,适用于动作检测电路,所述动作检测方法包括:6. An action detection method, characterized in that it is suitable for action detection circuits, and the action detection method includes: 取得目前画面并判断所述目前画面中是否有特定像素,其中,所述特定像素是指处于边缘的像素或者具有特定色相、饱和度、亮度、纹理的像素;Obtain the current picture and determine whether there are specific pixels in the current picture, where the specific pixels refer to pixels at the edge or pixels with specific hue, saturation, brightness, or texture; 对每一个所述特定像素执行更新程序,所述更新程序包括:An update procedure is performed on each specific pixel, and the update procedure includes: 将所述特定像素的坐标信息加至对应的签章数值当中;以及Add the coordinate information of the specific pixel to the corresponding signature value; and 更新对应的所述签章数值中的至少一位;以及Update at least one of the corresponding signature values; and 比较所述目前画面的所述签章数值与前画面的签章数值以判断所述目前画面是否为动作画面;如果所述目前画面和所述前画面的签章数值不相同,则表示所述目前画面为动作画面。Comparing the signature value of the current picture with the signature value of the previous picture to determine whether the current picture is an action picture; if the signature values of the current picture and the previous picture are different, it means that the signature value of the current picture is different from that of the previous picture. The current screen is an action screen. 7.如权利要求6所述的动作检测方法,其特征在于,其中所述目前画面包括多个区块,所述多个区块中的每一个区块具有对应的所述签章数值,所述动作检测方法还包括:7. The action detection method of claim 6, wherein the current picture includes a plurality of blocks, and each block in the plurality of blocks has a corresponding signature value, so The above action detection methods also include: 在初始化所述目前画面的所述签章数值以及所述前画面的所述签章数值时,对于位置相同的所述区块所对应的所述签章数值是采用相同的默认值。When initializing the signature value of the current picture and the signature value of the previous picture, the same default value is used for the signature value corresponding to the block with the same position. 8.如权利要求7所述的动作检测方法,其特征在于,还包括:8. The action detection method according to claim 7, further comprising: 在所述更新程序中,将对应的所述签章数值向左或向右位移多个位,并将所述特定像素相对于所属区块的X坐标与Y坐标加入至对应的所述签章数值当中。In the update procedure, the corresponding signature value is shifted by a plurality of bits to the left or right, and the X coordinate and Y coordinate of the specific pixel relative to the block to which it belongs is added to the corresponding signature. among the values. 9.如权利要求8所述的动作检测方法,其特征在于,其中在所述更新程序中更新对应的所述签章数值中的所述至少一位的步骤包括:9. The action detection method according to claim 8, wherein the step of updating the at least one bit in the corresponding signature value in the update procedure includes: 从所述签章数值中取得S个位,其中S为大于1的正整数;Obtain S digits from the signature value, where S is a positive integer greater than 1; 对所述S个位执行逻辑运算;以及Perform logical operations on the S bits; and 将所述签章数值中的所述至少一位更新为所述逻辑运算的结果。The at least one bit in the signature value is updated to the result of the logical operation. 10.如权利要求9所述的动作检测方法,其特征在于,其中在所述更新程序中,被更新的所述至少一位的个数大于1,所述动作检测方法还包括:10. The action detection method according to claim 9, wherein in the update procedure, the number of the at least one bit that is updated is greater than 1, and the action detection method further includes: 在更新所述签章数值中的不同位时,是取得不同的S个位。When updating different bits in the signature value, different S bits are obtained.
CN201810378204.7A 2018-04-25 2018-04-25 Motion detection circuit and method Active CN110415264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810378204.7A CN110415264B (en) 2018-04-25 2018-04-25 Motion detection circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810378204.7A CN110415264B (en) 2018-04-25 2018-04-25 Motion detection circuit and method

Publications (2)

Publication Number Publication Date
CN110415264A CN110415264A (en) 2019-11-05
CN110415264B true CN110415264B (en) 2023-10-24

Family

ID=68345610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810378204.7A Active CN110415264B (en) 2018-04-25 2018-04-25 Motion detection circuit and method

Country Status (1)

Country Link
CN (1) CN110415264B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6104755A (en) * 1996-09-13 2000-08-15 Texas Instruments Incorporated Motion detection using field-difference measurements
CN1984305A (en) * 2005-12-12 2007-06-20 深圳艾科创新微电子有限公司 Three-dimensional self-adaptive motion inspection for eliminating space
CN101038721A (en) * 2006-03-16 2007-09-19 乐金电子(南京)等离子有限公司 Image processing device and method for plasma display screen
CN101271672A (en) * 2007-03-23 2008-09-24 奇美电子股份有限公司 Dynamic image detector for LCD device and its detection method
TW200935356A (en) * 2008-02-04 2009-08-16 Mstar Semiconductor Inc A video processing apparatus and related method to determine motion vector
TW201015446A (en) * 2008-10-02 2010-04-16 Silverbrook Res Pty Ltd Coding pattern comprising columns and rows of coordinate data
CN102651129A (en) * 2011-02-24 2012-08-29 任天堂株式会社 Image processing apparatus, image processing system, and image processing method
JP2013190947A (en) * 2012-03-13 2013-09-26 Morpho Inc Image processing apparatus, image processing method and image processing program
CN104079799A (en) * 2013-03-28 2014-10-01 晨星半导体股份有限公司 Image motion detection method, image processing method, and device using these methods
TW201528205A (en) * 2013-10-11 2015-07-16 Samsung Electronics Co Ltd Image driving device, electronic device including image driving device, and image driving method
TW201535276A (en) * 2008-03-03 2015-09-16 Videoiq Inc Object matching for tracking, indexing, and searching
CN107101584A (en) * 2017-04-27 2017-08-29 中国科学院长春光学精密机械与物理研究所 Ohject displacement measuring method based on image recognition, apparatus and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6104755A (en) * 1996-09-13 2000-08-15 Texas Instruments Incorporated Motion detection using field-difference measurements
CN1984305A (en) * 2005-12-12 2007-06-20 深圳艾科创新微电子有限公司 Three-dimensional self-adaptive motion inspection for eliminating space
CN101038721A (en) * 2006-03-16 2007-09-19 乐金电子(南京)等离子有限公司 Image processing device and method for plasma display screen
CN101271672A (en) * 2007-03-23 2008-09-24 奇美电子股份有限公司 Dynamic image detector for LCD device and its detection method
TW200935356A (en) * 2008-02-04 2009-08-16 Mstar Semiconductor Inc A video processing apparatus and related method to determine motion vector
TW201535276A (en) * 2008-03-03 2015-09-16 Videoiq Inc Object matching for tracking, indexing, and searching
TW201015446A (en) * 2008-10-02 2010-04-16 Silverbrook Res Pty Ltd Coding pattern comprising columns and rows of coordinate data
CN102651129A (en) * 2011-02-24 2012-08-29 任天堂株式会社 Image processing apparatus, image processing system, and image processing method
JP2013190947A (en) * 2012-03-13 2013-09-26 Morpho Inc Image processing apparatus, image processing method and image processing program
CN104079799A (en) * 2013-03-28 2014-10-01 晨星半导体股份有限公司 Image motion detection method, image processing method, and device using these methods
TW201528205A (en) * 2013-10-11 2015-07-16 Samsung Electronics Co Ltd Image driving device, electronic device including image driving device, and image driving method
CN107101584A (en) * 2017-04-27 2017-08-29 中国科学院长春光学精密机械与物理研究所 Ohject displacement measuring method based on image recognition, apparatus and system

Also Published As

Publication number Publication date
CN110415264A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN107221290B (en) mura compensation display method and device and computer readable storage medium
CN106161967B (en) Backlight scene panoramic shooting method and mobile terminal
TWI431516B (en) Method and electronic device for tactile feedback
US11748986B2 (en) Method and apparatus for recognizing key identifier in video, device and storage medium
CN112907433B (en) Digital watermark embedding method, digital watermark extracting method, digital watermark embedding device, digital watermark extracting device, digital watermark embedding equipment and digital watermark extracting medium
WO2019041842A1 (en) Image processing method and device, storage medium and computer device
US11823352B2 (en) Processing video frames via convolutional neural network using previous frame statistics
CN107038441B (en) Clipboard detection and correction
CN107392930A (en) A kind of quantum Canny edge detection methods
CN111192190A (en) Method and device for eliminating image watermark and electronic equipment
CN106097398A (en) The detection method of a kind of Moving Objects and mobile terminal
US9286653B2 (en) System and method for increasing the bit depth of images
Chang et al. SSIM-based quality-on-demand energy-saving schemes for OLED displays
CN107610059A (en) A kind of image processing method and mobile terminal
CN107247508A (en) A kind of data source processing method and terminal device
CN107357422B (en) Camera-projection interactive touch control method, device and computer readable storage medium
CN105654431B (en) It is a kind of to there are the image deblurring methods of circumstance of occlusion
KR102234795B1 (en) Method of processing image data and display system for display power reduction
CN111160358A (en) An image binarization method, device, equipment and medium
CN110415264B (en) Motion detection circuit and method
Kim et al. Sobel edge-based image template matching in FPGA
JPWO2014033885A1 (en) Image processing apparatus, image processing method, and image processing program
CN113628259A (en) Image registration processing method and device
CN111754411B (en) Image noise reduction method, image noise reduction device and terminal equipment
TWI661721B (en) Method and circuit for detection motion

Legal Events

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