CN1328696C - Motion image detecting method and circuit - Google Patents

Motion image detecting method and circuit Download PDF

Info

Publication number
CN1328696C
CN1328696C CNB2004101029747A CN200410102974A CN1328696C CN 1328696 C CN1328696 C CN 1328696C CN B2004101029747 A CNB2004101029747 A CN B2004101029747A CN 200410102974 A CN200410102974 A CN 200410102974A CN 1328696 C CN1328696 C CN 1328696C
Authority
CN
China
Prior art keywords
threshold value
image
frame per
circuit
line number
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.)
Expired - Fee Related
Application number
CNB2004101029747A
Other languages
Chinese (zh)
Other versions
CN1632593A (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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2004101029747A priority Critical patent/CN1328696C/en
Publication of CN1632593A publication Critical patent/CN1632593A/en
Application granted granted Critical
Publication of CN1328696C publication Critical patent/CN1328696C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The present invention discloses a method and a circuit for detecting motion images. The method comprises the following steps: the frame rate of initial examination and measurement is set; according to the frame rate, two frames of static images are intercepted from a group of continuous images; the two frames of images are compared to determine the changing line number of the images; the changing line number is compared with a first threshold value, a second threshold value and/or a third threshold value, wherein the first threshold value is larger than the second threshold value and is less than the third threshold value; according to the compared result, detecting frame rate is changed. On the basis of the prior art, the present invention makes full use of intermediate calculation results to automatically regulate the frame rate, and thus, the present invention extends the application range of the original detecting method; meanwhile, under the condition that an external CPU is not used, the present invention can directly use the intermediate calculation results to control frame intervals with high reaction speed and low cost.

Description

Motion image detecting method and circuit
Technical field
The present invention relates to method for testing motion, particularly a kind of Method and circuits that moving image is detected is by taking place recently having judged whether to move of front and back frame still image.
Background technology
The Chinese patent application 02153944.8 that disclosed name was called " motion image detecting method " on June 23rd, 2004 that the applicant submitted on Dec 9th, 2002 discloses a kind of motion image detecting method, this method comprises the steps: intercepting two frame still images from one group of consecutive image, and calculate the brightness value of each each pixel of two field picture, poor according to the brightness value of two two field pictures then, judge whether that image changes, promptly this group image is moving image or rest image.
Yet the method for this invention is just done detection to the image of fixed intervals, can not adjust assay intervals automatically according to the variation of actual application environment.
Summary of the invention
The object of the present invention is to provide the motion image detecting method that overcomes the problems referred to above.
According to a first aspect of the invention, provide a kind of new motion image detecting method.This motion image detecting method comprises the following steps: to set the initial detecting frame per second, and intercepts two frame still images with this frame per second from one group of consecutive image; This two two field picture is relatively determined the variation line number of image; With described variation line number and first threshold, second threshold value and the 3rd threshold ratio, wherein but first threshold is greater than second threshold value less than the 3rd threshold value; If comparative result is that described variation line number is less than first threshold (T3) but greater than second threshold value (T4), then reduce to detect frame per second; If change line number greater than the 3rd threshold value (T2), will detect frame per second (f) increases.
In according to a first aspect of the invention, preferably, all detecting described variation line number for continuous multiple frames less than first threshold but under the situation greater than second threshold value, frame per second is reduced.Frame per second can reduce half.
Preferably, when less than second threshold value time, detecting the step that frame per second returns initial value for the described variation line number of continuous N two field picture.
Preferably, if described variation line number greater than the 3rd threshold value, will detect frame per second and be set to the fastest.
Preferably, described method comprises step: judge that whether described variation line number is greater than predefined first threshold; If judged result is for being to judge that then this group image is a moving image; If judged result judges that for not this group image is a rest image.
Preferably, the step of the variation line number of described definite image comprises subtracts each other each pixel brightness value summation of the corresponding row of two width of cloth images, if the absolute value of gained difference assert then that greater than the 4th threshold value this corresponding row changes.
According to a second aspect of the invention, provide a kind of moving image testing circuit, comprising: row pixel summing circuit, extract two two field pictures to input picture with a certain detection frame per second, to each row pixel summation of this two field picture; Storer, the summed result of storage line pixel summing circuit; The Motion Recognition circuit receives the summed result from storer, and determines the variation line number of image according to summed result; And frame rate controller, in the future the variation line number of autokinesis identification circuit and first threshold, second threshold value and the 3rd threshold ratio are that described variation line number is less than first threshold (T3) but greater than second threshold value (T4), then reduce to detect frame per second as if comparative result; If change line number greater than the 3rd threshold value (T2), will detect frame per second (f) increases.
In second aspect, preferably described capable pixel summing circuit comprises that summing circuit, storer write control circuit and frame counter.
Preferably, described Motion Recognition circuit comprises that storer reads control circuit, and subtractor circuit changes linage-counter, the first threshold comparator circuit.
Preferably, described frame rate controller comprises that detecting frame per second produces the circuit and the second threshold value comparator circuit.
The present invention makes full use of results of intermediate calculations on the basis of existing technology, adjusts frame per second automatically, has improved the scope of application of former detection method.And the present invention can directly utilize the results of intermediate calculations control frame at interval under need not the situation of extraneous cpu, and reaction velocity is fast, and cost is low.
Description of drawings
The present invention will be described in more detail below with reference to accompanying drawings, wherein:
Fig. 1 is the process flow diagram according to motion image detecting method of the present invention;
Fig. 2 is the synoptic diagram of the detailed process of comparison;
Fig. 3 is the structured flowchart according to moving image testing circuit of the present invention;
Fig. 4 is a kind of structural drawing of capable pixel summing circuit shown in Figure 3;
Fig. 5 is a kind of structural drawing of Motion Recognition circuit shown in Figure 3; And
Fig. 6 is a kind of structural drawing of frame rate controller shown in Figure 3.
The embodiment of invention
Fig. 1 is the process flow diagram according to motion image detecting method of the present invention.As shown in Figure 1,, start camera, open video flowing at step S101.
At step S102, set initial detecting frame per second f0 (Hz).Intercepting two frame still images from one group of consecutive image.F is big more, and is more little at interval by truncated picture.
At step S103, intercept first two field picture.
At step S104, for the first frame still image, calculate the brightness value of each pixel, then the brightness value of each pixel in each row is added up, obtain corresponding array one, i.e. a u1Prj1.
At step S105, intercept second two field picture.At step S106,, obtain another corresponding array two, i.e. u1Prj2 then according to the mode identical with said process.
At step S107, compare array one (u1Prj1) and array two (u1Prj2).Fig. 2 is the synoptic diagram of the detailed process of comparison.As shown in Figure 2, detailed process relatively is: at step S201, capable pixel intensity accumulated value corresponding in array one and the array two is subtracted each other one by one, and take absolute value; At step S202, judge whether that this absolute value is greater than a predefined threshold value T1 then.If judged result is for being to illustrate that then this difference institute corresponding row changes to some extent, enters step S203; If not, return step S201, other row is calculated and judges.At step S203, add up one to changing line number nSum, return step S201 then, other row is calculated and judges.Here, the nSum quantity of pixel column of representing all to change.
If all row of array one and array two all relatively finish, then program enters step S108.
At step S108, judge that whether nSum is greater than pre-set threshold T3.If judged result can judge then that for being this two two field picture changes, promptly this group image is a moving image, then enters step S109, assert that this image is a moving image.If judged result is that promptly this quantity is not less than or equal to pre-set threshold T3, can judge that then this two two field picture does not change, promptly this group image is a rest image; Program enters step S121, and the judgement image is a rest image.
After step S109, program enters step S110.At step S110, judge that whether nSum is greater than T2.If, think that then the detection frame per second is slow excessively with respect to moving object, program enters S111, and detecting frame per second f should increase, and adopts approach method from fast to slow, will detect frame per second and be set to the fastest; Program is returned step S103 then.If not, then program is directly returned step S103.
Program enters step S122 after step S121.At step S122, judge whether N continuous frame (N can be the integer more than 4 or 4) all detect nSum greater than T4 the situation less than T3.If, think that then the detection frame per second is too fast with respect to moving object, detecting frame per second f should reduce, and program enters step S123, according to nyquist sampling theorem, will detect frame per second and reduce half, obtains new detection frame per second f1 thus.If not, then program enters step S124.
At step S124, program judges whether that the continuous N frame detects the situation of nSum less than T4.If then program enters step S125, detect frame per second and return initial value f0.If not, program is returned step S103.
Program is returned step S103 after S123 and S125.
Here, three set threshold value T2, T3, there is following relationship in T4, i.e. T2>T3>T4.
After returning step S103, from one group of consecutive image, intercept two frame still images with new detection frame per second (such as f1), repeat above process (comprising step S104-S125 and S201-S203).
Fig. 3 is the structured flowchart according to moving image testing circuit of the present invention.As shown in Figure 3, the moving image testing circuit comprises capable pixel summing circuit 310, storer 320, Motion Recognition circuit 330, frame rate controller 340 and control register 350.
The specific operation process of this moving image testing circuit is as follows.
310 pairs of input pictures of row pixel summing circuit extract the frame that detects with a certain detection frame per second, and each pixel summation that all are gone to this two field picture, when each row finishes,, simultaneously the one-row pixels sum is directly sent into Motion Recognition circuit 330 with one-row pixels sum write store 320.
Motion Recognition circuit 330 is used to judge whether the current detection frame is moving image.When each row of current detection frame finishes, detect the corresponding line pixel of frame and read last one, confirm whether this journey changes.As find the row that changes, change linage-counter and will add one.When the current detection frame end, line number and the threshold value T3 that changes compared the output testing result.The statistics of variation row and last and threshold value T3 can send into frame rate controller 340.
The result of calculation that frame rate controller 340 utilizes the Motion Recognition circuit to provide is regulated and is detected frame per second.
Control register 350 is provided with each threshold value, comprises threshold value T1, T2, T3 and T4, and initial frame per second or the like.
Fig. 4 is a kind of structural drawing of capable pixel summing circuit 310 shown in Figure 3.In Fig. 4, row pixel summing circuit comprises that summing circuit 410, storer write controller 420 and frame counter 430.
Fig. 5 is a kind of structural drawing of Motion Recognition circuit 330 shown in Figure 3.In Fig. 5, the Motion Recognition circuit comprises that storer reads control circuit 510, subtractor circuit 520, changes linage-counter 530 and first threshold comparator circuit 540.
Fig. 6 is a kind of structural drawing of frame rate controller 340 shown in Figure 3.In Fig. 6, the Motion Recognition circuit comprises that detecting frame per second produces the circuit 610 and the second threshold value comparator circuit 620.
The concrete course of work is as follows.
In the pixel of the being expert at summing circuit 310, utilize frame counter 430 to carry out frame count according to the detection frame per second of input.Then, utilize summing circuit 410 under the triggering of frame counter, input picture to be extracted the frame that detects, and each pixel summation that all are gone to this two field picture, when each row finishes, the one-row pixels sum by memorizer control circuit 420 write stories 320, is directly sent the one-row pixels sum into Motion Recognition circuit 330 simultaneously.
In Motion Recognition circuit 330, when each row of current detection frame finishes, memory readout circuit 510 will be gone up the corresponding line pixel of a detection frame and read, and confirm through subtractor circuit 520 whether this journeys change, as find the row that changes, change linage-counter 530 and will add one.When the current detection frame end, first threshold comparator circuit 540 can compare line number and the threshold value T3 that changes, the output testing result.The statistics of variation row and last and threshold value T3 can send into frame rate controller 340.
In frame rate controller 340, the second threshold value comparator circuit 620 receive from the variation line number statistics nSum of first threshold comparator circuit 540 and with the comparative result of threshold value T3, and compare with a plurality of threshold values.According to the comparative result of the second threshold value comparator circuit 620, detect frame per second and produce circuit 610 generation relevant detection frame per second.Specifically, whether at first compare nSum greater than threshold value T2.If then detecting frame per second f increases, and adopts approach method from fast to slow, will detect frame per second and be set to the fastest.Secondly, if the N continuous frame all detect nSum greater than T4 the situation less than T3, then detecting frame per second f should reduce.The numeric ratio of N is in this way more than or equal to 4 natural number.The 3rd, if the continuous N frame detects the situation of nSum less than T4, then detect frame per second and return initial value f0.The numeric ratio of M is in this way more than or equal to 4 natural number.
The frame per second that detection frame per second generation circuit 610 is produced is sent to capable pixel summing circuit 310.
Though above more at large described the present invention, these descriptions only are illustrative and not restrictive.Obviously, the present invention can change in many ways for those of ordinary skill.
Such as, be used to judge that reference factor that whether image line change except that the brightness of pixel, can also be colourity, color saturation, perhaps also can be G value of rgb signal or the like.
In addition, method of the present invention must not add up to contrast and calculate each provisional capital of a two field picture.Also can not reduce under the prerequisite of judging precision, the capable pixel that extracts some from image is carried out the contrast judgement of said method, to reduce calculated amount.
Same, according to the alignment properties of image pixel, carry out the calculating of as above method and more also be feasible by the row pixel, outside therefore not departing from the scope of the present invention.
In addition, Fig. 4, Fig. 5 and Fig. 6 only are a kind of concrete structure examples of each ingredient of Fig. 3 circuit.In addition, obviously can also adopt other concrete structure to realize the circuit of Fig. 3.
All such variations all belong within the scope of the present invention, and should not be considered to depart from scope of the present invention.The present invention is limited by the marrow of accompanying Claim book and scope only.

Claims (12)

1. a motion image detecting method comprises the following steps:
Set the initial detecting frame per second, and from one group of consecutive image, intercept two frame still images with this frame per second;
This two two field picture is relatively determined the variation line number of image;
Described variation line number and first threshold (T3), second threshold value (T4) and the 3rd threshold value (T2) are compared, and wherein but first threshold is greater than second threshold value less than the 3rd threshold value;
If comparative result is that described variation line number is less than first threshold (T3) but greater than second threshold value (T4), then reduce to detect frame per second; If change line number greater than the 3rd threshold value (T2), will detect frame per second (f) increases.
2. a kind of motion image detecting method as claimed in claim 1, the step that it is characterized in that reducing detecting frame per second is included in for continuous multiple frames and all detects described variation line number less than first threshold (T3) but under the situation greater than second threshold value (T4), frame per second is reduced.
3. a kind of motion image detecting method as claimed in claim 1 or 2, the step that it is characterized in that reducing detecting frame per second comprise frame per second are reduced half.
4. a kind of motion image detecting method as claimed in claim 1, the step that it is characterized in that described change frame per second comprise when less than second threshold value time, detecting the step that frame per second returns initial value (f0) for the described variation line number of continuous N two field picture.
5. a kind of motion image detecting method as claimed in claim 1 is characterized in that the described step that will detect frame per second and increase comprises to be set to the detection frame per second the fastest.
6. as claim 1 or 4 described a kind of motion image detecting methods, it is characterized in that comprising step: judge that whether described variation line number is greater than predefined first threshold; If judged result is for being to judge that then this group image is a moving image; If judged result judges that for not this group image is a rest image.
7. as claim 1 or 4 described a kind of motion image detecting methods, the step that it is characterized in that the variation line number of described definite image comprises subtracts each other each pixel brightness value summation of the corresponding row of two width of cloth images, if the absolute value of gained difference assert then that greater than the 4th threshold value (T1) this corresponding row changes.
8. a kind of motion image detecting method as claimed in claim 1 is characterized in that being used for determining that the image line of image change line number is the part of total image line.
9. a kind of motion image detecting method as claimed in claim 6 is characterized in that being used for determining that the number of pels per line whether image line changes is the part of every capable total pixel number.
10. moving image testing circuit comprises:
Row pixel summing circuit extracts two two field pictures to input picture with a certain detection frame per second, to each row pixel summation of this two field picture;
Storer, the summed result of storage line pixel summing circuit;
The Motion Recognition circuit receives the summed result from storer, and determines the variation line number of image according to summed result; With
Frame rate controller, the variation line number of the identification circuit of autokinesis in the future and first threshold (T3), second threshold value (T4) and/or the 3rd threshold value (T2) are relatively, if comparative result is that described variation line number is less than first threshold (T3) but greater than second threshold value (T4), then reduce to detect frame per second; If change line number greater than the 3rd threshold value (T2), then will detect frame per second (f) increases.
11. a kind of moving image testing circuit as claimed in claim 10 is characterized in that described capable pixel summing circuit comprises that summing circuit, storer write control circuit and frame counter; Described Motion Recognition circuit comprises that storer reads control circuit, and subtractor circuit changes linage-counter and first threshold comparator circuit; Described frame rate controller comprises that detecting frame per second produces the circuit and the second threshold value comparator circuit.
12. a kind of moving image testing circuit as claimed in claim 10 is characterized in that described moving image testing circuit comprises control register.
CNB2004101029747A 2004-12-31 2004-12-31 Motion image detecting method and circuit Expired - Fee Related CN1328696C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004101029747A CN1328696C (en) 2004-12-31 2004-12-31 Motion image detecting method and circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004101029747A CN1328696C (en) 2004-12-31 2004-12-31 Motion image detecting method and circuit

Publications (2)

Publication Number Publication Date
CN1632593A CN1632593A (en) 2005-06-29
CN1328696C true CN1328696C (en) 2007-07-25

Family

ID=34848147

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004101029747A Expired - Fee Related CN1328696C (en) 2004-12-31 2004-12-31 Motion image detecting method and circuit

Country Status (1)

Country Link
CN (1) CN1328696C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2375382A1 (en) * 2008-12-08 2011-10-12 Alcatel Lucent Image motion detection method and apparatus
US9041720B2 (en) 2009-12-18 2015-05-26 Advanced Micro Devices, Inc. Static image retiling and power management method and circuit
CN102096924B (en) * 2010-11-18 2012-07-25 无锡中星微电子有限公司 Method for adjusting detection frame rate
CN103699236B (en) * 2013-12-27 2017-01-18 无锡英斯特微电子有限公司 Frame rate control method for low-power photoelectric navigation system
CN105760132B (en) * 2016-02-03 2018-11-20 广东欧珀移动通信有限公司 Realize the method, apparatus and mobile device of frame per second dynamic refresh
CN107920197A (en) * 2016-10-11 2018-04-17 阿里巴巴集团控股有限公司 A kind of video capture method and apparatus
CN107874770B (en) * 2017-11-28 2021-06-22 上海联影医疗科技股份有限公司 Frame rate adjusting method and device of fluoroscopy equipment and X-ray fluoroscopy equipment
CN109729343B (en) * 2018-12-19 2020-07-31 精微视达医疗科技(武汉)有限公司 Frame rate detection method of imaging device
CN110312133B (en) * 2019-06-27 2021-11-23 西安万像电子科技有限公司 Image processing method and device
CN114341650A (en) * 2020-08-06 2022-04-12 深圳市大疆创新科技有限公司 Event detection method and device, movable platform and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1158052A (en) * 1995-12-30 1997-08-27 三星电子株式会社 Motion picture detecting method
CN1506686A (en) * 2002-12-09 2004-06-23 北京中星微电子有限公司 Moving image detecting method
JP2004200989A (en) * 2002-12-18 2004-07-15 Fuji Photo Film Co Ltd Imaging apparatus and supervisory system
CN1543742A (en) * 2002-04-17 2004-11-03 ���µ�����ҵ��ʽ���� Motion detector, image processing system, motion detecting method, program, and recordig medium
CN2788258Y (en) * 2004-12-31 2006-06-14 北京中星微电子有限公司 Motion image detecting circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1158052A (en) * 1995-12-30 1997-08-27 三星电子株式会社 Motion picture detecting method
CN1543742A (en) * 2002-04-17 2004-11-03 ���µ�����ҵ��ʽ���� Motion detector, image processing system, motion detecting method, program, and recordig medium
CN1506686A (en) * 2002-12-09 2004-06-23 北京中星微电子有限公司 Moving image detecting method
JP2004200989A (en) * 2002-12-18 2004-07-15 Fuji Photo Film Co Ltd Imaging apparatus and supervisory system
CN2788258Y (en) * 2004-12-31 2006-06-14 北京中星微电子有限公司 Motion image detecting circuit

Also Published As

Publication number Publication date
CN1632593A (en) 2005-06-29

Similar Documents

Publication Publication Date Title
KR102467771B1 (en) Data Rate Control for Event-Based Vision Sensors
US20060197664A1 (en) Method, system and apparatus for a time stamped visual motion sensor
CN1328696C (en) Motion image detecting method and circuit
CN100579179C (en) Auto-focus apparatus, image capture apparatus, and auto-focus method
KR20170090347A (en) Method and apparatus for event sampling of dynamic vision sensor on image formation
CN107111105B (en) Focusing control apparatus, focusing control method, recording medium, lens assembly, photographic device
US8098903B2 (en) Apparatus for adjusting focus and exposure based on a face image and method of controlling same
JP2004260574A (en) Flicker detecting method and detector
CN103093458B (en) The detection method of key frame and device
CN102158654A (en) Image capture apparatus and zooming method
US20180302543A1 (en) Hdr/wdr image time stamps for sensor fusion
TW200823802A (en) Methods and apparatuses for motion detection
WO1992009000A1 (en) Device for sensing in-focus position
CN106161981A (en) Image dark angle compensation method, device and terminal device
CN101959009A (en) Image processing equipment
CN103297670A (en) Subject determination apparatus and subject determination method
CN102566005A (en) Focus detecting apparatus and control method thereof
US11330219B2 (en) Dynamic vision sensor system
CN106485729A (en) A kind of moving target detecting method based on mixed Gauss model
CN111164670B (en) Low power and low data rate imager
EP1976264A1 (en) Photon transfer curve test time reduction
CN112369012B (en) Image sensor, recording apparatus, and reset method
CN105988599A (en) Navigation device with adjustable sample period
EP1484919A3 (en) Method and apparatus for processing image motion information
CN100361155C (en) Motion image detecting method and circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20090213

Address after: Beijing, Haidian District, Xueyuan Road No. 35, Nanjing building, 15 floor, zip code: 100083

Co-patentee after: Vimicro Electronics Co., Ltd.

Patentee after: Vimicro Corp in Beijing

Address before: Beijing, Haidian District, Xueyuan Road No. 35, Nanjing building, 15 floor, zip code: 100083

Patentee before: Beijing Vimicro Corporation

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070725

Termination date: 20111231