[go: up one dir, main page]

CN102333174A - Video image processing method and device for the same - Google Patents

Video image processing method and device for the same Download PDF

Info

Publication number
CN102333174A
CN102333174A CN201110258314A CN201110258314A CN102333174A CN 102333174 A CN102333174 A CN 102333174A CN 201110258314 A CN201110258314 A CN 201110258314A CN 201110258314 A CN201110258314 A CN 201110258314A CN 102333174 A CN102333174 A CN 102333174A
Authority
CN
China
Prior art keywords
frame
breviary
chromatic component
video
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201110258314A
Other languages
Chinese (zh)
Inventor
王小艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wondershare Software Co Ltd
Original Assignee
Shenzhen Wondershare Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Wondershare Software Co Ltd filed Critical Shenzhen Wondershare Software Co Ltd
Priority to CN201110258314A priority Critical patent/CN102333174A/en
Publication of CN102333174A publication Critical patent/CN102333174A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a video image processing method and a device for the same. The method comprises the following steps of: obtaining contracted frames of neighboring video frames, wherein the neighboring video frames refer to the previous frame and the current frame in the video; obtaining chrominance components of the contracted frames of the current frame and the previous frame; obtaining a chrominance component histogram of the contracted frame of the current frame and a chrominance component histogram of the contracted frame of the previous frame; and obtaining a correlation value of the two histograms, and judging whether the scene of the current frame varies, according to the correlation value. With the method and the device provided by the invention, accuracy and efficiency of scene detection can be improved.

Description

A kind of method of video image processing and device
Technical field
The present invention relates to image processing field, relate in particular to a kind of method of video image processing and device.
Background technology
In video image, require to realize each scene in the video is detected and cuts apart according to beholder's needs.But existing video scene detects and is mostly to adopt color detection, and its brightness to video is responsive, that is, change tangible same video scene for brightness and be identified as a plurality of video scenes easily.
Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of method of video image processing and device are provided.Can improve the accuracy that video scene detects.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of method of video image processing to comprise:
Obtain the breviary frame of adjacent video frames, wherein, said adjacent video frames is meant the former frame and the present frame of the present frame in the video;
Obtain the chromatic component of the breviary frame of said present frame and said former frame;
Obtain the chromatic component histogram of breviary frame of chromatic component histogram and said former frame of the breviary frame of said present frame;
Obtain two said histogrammic correlations, judge according to said correlation whether the scene of present frame changes.
Correspondingly, the embodiment of the invention also provides a kind of video image processing device, comprising:
The frame acquisition module is used to obtain the breviary frame of adjacent video frames, and wherein, said adjacent video frames is meant the former frame and the present frame of the present frame in the video;
The colourity acquisition module is used to obtain the chromatic component of the breviary frame of said present frame and said former frame;
The histogram acquisition module is used to obtain the chromatic component histogram of breviary frame of chromatic component histogram and said former frame of the breviary frame of said present frame;
The correlation acquisition module is used to obtain two said histogrammic correlations;
Judge module is used for judging according to said correlation whether the scene of present frame changes.
In embodiments of the present invention, only generate histogram according to the chrominance information in the frame of video, whether the scene that detects video variation has taken place, and can remove brightness and change the interference that brings, and improves the accuracy of Video Detection.Simultaneously, the object of detection is the breviary frame of adjacent video frames, and the data input when having reduced scene detection can improve the efficient of detection; And; Since detect to as if adjacent video frames can remove camera lens and move the interference that brings; That is, because normally first frame and the present frame that compare in the prior art make the result who judges become the scene difference of first frame and the present frame of video segment; If when existing camera lens to move in this fragment, can make testing result not accurate enough and real-time.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is an idiographic flow sketch map of the method for video image processing in the embodiment of the invention;
Fig. 2 is another idiographic flow sketch map of the method for video image processing in the embodiment of the invention;
Fig. 3 is the histogrammic sketch map of the former frame of the present frame in the embodiment of the invention;
Fig. 4 is the histogrammic sketch map of the present frame in the embodiment of the invention;
Fig. 5 is a concrete sketch map of forming of the video image processing device in the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Mainly improve the accuracy and the efficient of scene detection in embodiments of the present invention through three aspects, the one, analytic target is an adjacent video frames; The 2nd, original video frame is compressed; The 3rd, only chromatic component is analyzed.Below describe through each specific embodiment.
As shown in Figure 1, be an idiographic flow sketch map of the method for video image processing in the embodiment of the invention.This method comprises the steps.
101, obtain the breviary frame of adjacent video frames, wherein, said adjacent video frames is meant the former frame and the present frame of the present frame in the video.
This breviary frame is meant frame of video carried out the frame that obtains after the data compression, becomes the video of 80*60 like the video compression with 640*480, and follow-up the frame of video of analyzing 80*60 gets final product.
102, obtain the chromatic component of the breviary frame of said present frame and said former frame.Wherein, this breviary frame is a yuv data, and said chromatic component comprises U, V data component.
103, the chromatic component histogram of the breviary frame of the chromatic component histogram of the breviary frame of the said present frame of acquisition and said former frame.
Wherein, the abscissa in the chromatic component histogram is represented the chromatic component of breviary frame, and ordinate is represented the number of the pixel of the screen that the video playback zone is corresponding.
104, obtain two said histogrammic correlations, judge according to said correlation whether the scene of present frame changes.
As, the number of the pixel of each colourity in two said histograms is subtracted each other, obtain the difference of the pixel of each colourity; With the absolute value addition of said difference, obtain two said histogrammic differences again; When said difference during, judge that then variation has taken place the scene of present frame greater than predetermined threshold value.
As shown in Figure 2, be an idiographic flow sketch map of the method for video image processing in the embodiment of the invention.The more detailed concrete description of this flow process said method.
201, obtain the breviary frame data (like yuv format) of frame of video.
Video as needs being detected video scene compresses, and becomes the video of 80*60 such as the video compression with 640*480, and follow-up the frame of video of analyzing 80*60 gets final product.Like this, as long as the ratio of appropriateness control compression, improve treatment effeciency under just can the be constant situation at the histogram of the follow-up generation of basic maintenance.
202, remove brightness and disturb, the colourity correlated components of calculating breviary frame data (as, comprehensive U, V data), and compute histograms.
That is, the Y in yuv data promptly representes brightness, removes Y, an analysis-by-synthesis U, V data.
Like the histogram of Fig. 3 and Fig. 4, abscissa can but be not limited to comprehensive U, the chromatic value of V data, ordinate are the number of the pixel of the corresponding screen in video playback zone, figure acceptance of the bid where there is light is in the number of the pixel of certain colourity.
Need to prove that like Fig. 3, shown in 4, transverse axis is the x axle among the figure, it can also represent U, the gray scale of V data; The longitudinal axis is the y axle, and it representes the accumulative total number of corresponding gray scale.So-called gray scale is exactly branch ranks such as gray value, and such as in this example, the gray value scope is 0-255; Divide 16 gray scales, i.e. the scope of x axle from 0 to 15 (grade), the maximum of x axle is 15; So 256/16=16; Be that per 16 gray values are a tonal gradation: 0 ~ 15 gray value is first gray scale, and 16 ~ 31 gray values are second gray scale, by that analogy.In general, the scope of chromatic value (being gray value in this example) can be made as 0-255.
203, more adjacent thumbnail frame histogram (can remove camera lens and move interference) detects the place that occurrence scene changes in all videos.
Like Fig. 3 is the corresponding histogram of a last frame of video, and Fig. 4 is the corresponding histogram of current video frame, and these two histograms are compared analysis, obtains this two histogrammic differences.Such as elder generation the number of the pixel of each the colourity segmentation (fragment size influences the width of each vertical bar in the histogram) in two histograms is subtracted each other; Obtain the difference of the pixel of each colourity segmentation, obtain the absolute value of difference, the absolute value with each difference carries out addition then; Obtain this two histogrammic differences; Whether judge this difference then greater than preset threshold value, if greater than, show that present frame is different with the scene of previous frame representative; The scene variation has promptly taken place; Mark according to present frame time corresponding point that the scene variation has taken place this time point in the whole video reproduction time, thereby be partitioned into each video scene, such as being partitioned into scene 1, scene 2 or the like.
Also be not limited to the video of yuv format in the embodiment of the invention.Can also be extended formatting, as be rgb format that then chrominance information S can adopt following formula to obtain during rgb format: S=(MAX (R, G, B)-MIN (R, G, B))/MAX (R, G, B).R, G, B represent the tristimulus values of pixel in the rgb format respectively in the formula.
Describe and can know through the foregoing description, only generate histogram according to the chrominance information in the frame of video, whether the scene that detects video variation has taken place, and can remove brightness and change the interference that brings, and improves the accuracy of Video Detection.
Simultaneously, the object of detection is the breviary frame of adjacent video frames, and the data input when having reduced scene detection can improve the efficient of detection; And, since detect to as if adjacent video frames can remove camera lens and move the interference that brings.Scene detection in the past all is comparison scene fragment first frame and present frame, and fragment first frame and present frame difference are bigger when camera lens moves like this, causes judging by accident because of moving; And in embodiments of the present invention, the former frame and the present frame of present frame compared, because they are adjacent, this two frame data difference is little, also is more or less the same even exist to move.
Such as taking office scenarios; Possibly be here slowly to clap toward the inside from door; Camera lens slowly moves to the inside from door like this, and this scene fragment first frame is the image of door so, and the picture of taking the inside to the back is diverse with first frame basically; If employing first method; This two two field picture has no common ground so, but current scene follows the scene of last frame of video continuous in time also to be in the Same Scene, and this way of prior art can be different scenes with the current scene erroneous judgement.
As shown in Figure 5, be a concrete sketch map of forming of the video image processing device in the embodiment of the invention.This device 5 comprises: frame acquisition module 50, be used to obtain the breviary frame of adjacent video frames, and wherein, said adjacent video frames is meant the former frame and the present frame of the present frame in the video; Colourity acquisition module 52 is used to obtain the chromatic component of the breviary frame of said present frame and said former frame; Histogram acquisition module 54 is used to obtain the chromatic component histogram of breviary frame of chromatic component histogram and said former frame of the breviary frame of said present frame; Correlation acquisition module 56 is used to obtain two said histogrammic correlations; Judge module 58 is used for judging according to said correlation whether the scene of present frame changes.
Wherein, said breviary frame is a yuv data, and said chromatic component comprises U, V data component.Abscissa in the said chromatic component histogram is represented the chromatic component of breviary frame, and ordinate is represented the number of the pixel of the screen that the video playback zone is corresponding.
Said correlation acquisition module 56 also is used for; The number of the pixel of each colourity in two said histograms is subtracted each other; Obtain the difference of the pixel of each colourity, with the absolute value addition of said difference, obtain two said histogrammic differences again.Said judge module 58 also is used for, and when said difference during greater than predetermined threshold value, judges that variation has taken place the scene of present frame.
Consistent among each function among this device embodiment and term and the said method embodiment, the histogram of describing among Fig. 3 and Fig. 4 also is applicable to this device embodiment, does not do here and gives unnecessary details.
Describe and can know through the foregoing description, only generate histogram according to the chrominance information in the frame of video, whether the scene that detects video variation has taken place, and can remove brightness and change the interference that brings, and improves the accuracy of Video Detection.
Simultaneously, the object of detection is the breviary frame of adjacent video frames, and the data input when having reduced scene detection can improve the efficient of detection; And, since detect to as if adjacent video frames can remove camera lens and move the interference that brings.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely a kind of preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (10)

1. a method of video image processing is characterized in that, said method comprises:
Obtain the breviary frame of adjacent video frames, wherein, said adjacent video frames is meant the former frame and the present frame of the present frame in the video;
Obtain the chromatic component of the breviary frame of said present frame and said former frame;
Obtain the chromatic component histogram of breviary frame of chromatic component histogram and said former frame of the breviary frame of said present frame;
Obtain two said histogrammic correlations, judge according to said correlation whether the scene of present frame changes.
2. the method for claim 1 is characterized in that, said breviary frame is a yuv data, and said chromatic component comprises U, V data component.
3. according to claim 1 or claim 2 method is characterized in that the abscissa in the said chromatic component histogram is represented the chromatic component of breviary frame, and ordinate is represented the number of the pixel of the screen that the video playback zone is corresponding.
4. the method for claim 1 is characterized in that, two said histogrammic correlations of said acquisition comprise:
The number of the pixel of each colourity in two said histograms is subtracted each other, obtain the difference of the pixel of each colourity;
With the absolute value addition of said difference, obtain two said histogrammic differences.
5. method as claimed in claim 4 is characterized in that, saidly judges according to said correlation whether the scene of present frame changes and comprises:
When said difference during, judge that variation has taken place the scene of present frame greater than predetermined threshold value.
6. a video image processing device is characterized in that, said device comprises:
The frame acquisition module is used to obtain the breviary frame of adjacent video frames, and wherein, said adjacent video frames is meant the former frame and the present frame of the present frame in the video;
The colourity acquisition module is used to obtain the chromatic component of the breviary frame of said present frame and said former frame;
The histogram acquisition module is used to obtain the chromatic component histogram of breviary frame of chromatic component histogram and said former frame of the breviary frame of said present frame;
The correlation acquisition module is used to obtain two said histogrammic correlations;
Judge module is used for judging according to said correlation whether the scene of present frame changes.
7. device as claimed in claim 6 is characterized in that, said breviary frame is a yuv data, and said chromatic component comprises U, V data component.
8. like claim 6 or 7 described devices, it is characterized in that the abscissa in the said chromatic component histogram is represented the chromatic component of breviary frame, ordinate is represented the number of the pixel of the screen that the video playback zone is corresponding.
9. device as claimed in claim 6; It is characterized in that; Said correlation acquisition module also is used for, and the number of the pixel of each colourity in two said histograms is subtracted each other, and obtains the difference of the pixel of each colourity; With the absolute value addition of said difference, obtain two said histogrammic differences again.
10. device as claimed in claim 9 is characterized in that said judge module also is used for, and when said difference during greater than predetermined threshold value, judges that variation has taken place the scene of present frame.
CN201110258314A 2011-09-02 2011-09-02 Video image processing method and device for the same Pending CN102333174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110258314A CN102333174A (en) 2011-09-02 2011-09-02 Video image processing method and device for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110258314A CN102333174A (en) 2011-09-02 2011-09-02 Video image processing method and device for the same

Publications (1)

Publication Number Publication Date
CN102333174A true CN102333174A (en) 2012-01-25

Family

ID=45484768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110258314A Pending CN102333174A (en) 2011-09-02 2011-09-02 Video image processing method and device for the same

Country Status (1)

Country Link
CN (1) CN102333174A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184925A (en) * 2014-09-11 2014-12-03 刘鹏 Video scene change detection method
CN104571489A (en) * 2013-10-14 2015-04-29 原相科技股份有限公司 Wake-up method of optical input device and optical input device using same
CN104854600A (en) * 2012-10-01 2015-08-19 微软技术许可有限责任公司 Video scene detection
CN104980677A (en) * 2014-04-02 2015-10-14 联想(北京)有限公司 Method and device for adding label into video
CN106358029A (en) * 2016-10-18 2017-01-25 北京字节跳动科技有限公司 Video image processing method and device
CN106937114A (en) * 2015-12-30 2017-07-07 株式会社日立制作所 Method and apparatus for being detected to video scene switching
CN109327655A (en) * 2017-07-31 2019-02-12 展讯通信(上海)有限公司 Continuous Atomatic focusing method and system
CN117061789A (en) * 2023-10-09 2023-11-14 苏州元脑智能科技有限公司 Video transmission frame, method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984237A (en) * 2002-07-09 2007-06-20 三星电子株式会社 Scene change detector and method thereof
CN101290634A (en) * 2008-06-03 2008-10-22 北京搜狗科技发展有限公司 Method for recognizing repeated miniature, device and its uses in search engine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984237A (en) * 2002-07-09 2007-06-20 三星电子株式会社 Scene change detector and method thereof
CN101290634A (en) * 2008-06-03 2008-10-22 北京搜狗科技发展有限公司 Method for recognizing repeated miniature, device and its uses in search engine

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104854600A (en) * 2012-10-01 2015-08-19 微软技术许可有限责任公司 Video scene detection
CN104571489B (en) * 2013-10-14 2017-08-08 原相科技股份有限公司 Awakening method of optical input device and optical input device using awakening method
CN104571489A (en) * 2013-10-14 2015-04-29 原相科技股份有限公司 Wake-up method of optical input device and optical input device using same
CN104980677A (en) * 2014-04-02 2015-10-14 联想(北京)有限公司 Method and device for adding label into video
CN104980677B (en) * 2014-04-02 2018-12-14 联想(北京)有限公司 One kind adding tagged method and device in video
WO2016037422A1 (en) * 2014-09-11 2016-03-17 刘鹏 Method for detecting change of video scene
CN104184925A (en) * 2014-09-11 2014-12-03 刘鹏 Video scene change detection method
CN106937114A (en) * 2015-12-30 2017-07-07 株式会社日立制作所 Method and apparatus for being detected to video scene switching
CN106937114B (en) * 2015-12-30 2020-09-25 株式会社日立制作所 Method and device for detecting video scene switching
CN106358029A (en) * 2016-10-18 2017-01-25 北京字节跳动科技有限公司 Video image processing method and device
CN109327655A (en) * 2017-07-31 2019-02-12 展讯通信(上海)有限公司 Continuous Atomatic focusing method and system
CN109327655B (en) * 2017-07-31 2020-12-22 展讯通信(上海)有限公司 Continuous automatic focusing method and system
CN117061789A (en) * 2023-10-09 2023-11-14 苏州元脑智能科技有限公司 Video transmission frame, method, device and storage medium
CN117061789B (en) * 2023-10-09 2024-02-09 苏州元脑智能科技有限公司 Video transmission frame, method, device and storage medium

Similar Documents

Publication Publication Date Title
CN102333174A (en) Video image processing method and device for the same
JP4720705B2 (en) Program, detection method, and detection apparatus
US10979622B2 (en) Method and system for performing object detection using a convolutional neural network
CN101090458B (en) Image processing apparatus, image capture apparatus, image output apparatus, and method and program for these apparatus
US9524558B2 (en) Method, system and software module for foreground extraction
EP3300061A1 (en) Image processing apparatus
CN102025959B (en) The System and method for of high definition video is produced from low definition video
KR20170019359A (en) Local adaptive histogram equalization
US8811750B2 (en) Apparatus and method for extracting edge in image
US20100158362A1 (en) Image processing
US20130170756A1 (en) Edge detection apparatus, program and method for edge detection
US20130088645A1 (en) Method of Processing Moving Picture and Apparatus Thereof
US20110158518A1 (en) Method of detecting an object using a camera
JP2021176243A (en) Image processing apparatus, control method for the same, and imaging apparatus
US8482630B2 (en) Apparatus and method for adjusting automatic white balance by detecting effective area
CN109785357B (en) Robot intelligent panoramic photoelectric reconnaissance method suitable for battlefield environment
CN104065863A (en) Image processing method and processing device
US20110085026A1 (en) Detection method and detection system of moving object
Lefèvre et al. Efficient and robust shot change detection
CN106683047B (en) Illumination compensation method and system for panoramic image
CN105184809A (en) Moving object detection method and moving object detection device
US9798932B2 (en) Video extraction method and device
CN101461228A (en) Image processing circuit, semiconductor device, and image processing device
CN112995666B (en) Video horizontal and vertical screen conversion method and device combined with scene switching detection
CN111160340A (en) Moving target detection method and device, storage medium and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road, room 9 building on the north side of block A901 No. 006 TCL Industry Research Institute building A A Building 8 floor

Applicant after: Shenzhen Wondershare Information Technology Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A block 8 Building TCL

Applicant before: Shenzhen Wondershare Software Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN WONDERSHARE SOFTWARE CO., LTD. TO: SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY CO., LTD.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120125