CN107040693A - Picture data processing method and processing device - Google Patents

Picture data processing method and processing device Download PDF

Info

Publication number
CN107040693A
CN107040693A CN201710211596.3A CN201710211596A CN107040693A CN 107040693 A CN107040693 A CN 107040693A CN 201710211596 A CN201710211596 A CN 201710211596A CN 107040693 A CN107040693 A CN 107040693A
Authority
CN
China
Prior art keywords
picture
video card
frame
judge
shake
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
CN201710211596.3A
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.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology 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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN201710211596.3A priority Critical patent/CN107040693A/en
Publication of CN107040693A publication Critical patent/CN107040693A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/144Movement detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/21Circuitry for suppressing or minimising disturbance, e.g. moiré or halo

Abstract

The invention discloses a kind of picture data processing method and processing device.Wherein, this method includes:Obtain the picture that video card is shown;Whether the picture shown according to video card, detection video card produces flating;In the case where testing result is no, the picture data of the picture shown using the corresponding algorithm of image non-jitter to video card is handled.By the present invention, the follow-up image compression encoding operation of different algorithm performs is respectively adopted.Treat with a certain discrimination, realize when not producing shake, using the corresponding algorithm of non-jitter with not producing shake to producing shake.Because the corresponding algorithm of non-jitter is for having shake, efficiency is much higher, therefore, is effectively improved picture treatment effeciency, and then when solving in correlation technique using consistent adjustment algorithm to handle the picture data that video card is exported, the low technical problem for the treatment of effeciency.

Description

Picture data processing method and processing device
Technical field
The present invention relates to data processing field, in particular to a kind of picture data processing method and processing device.
Background technology
In picture transmission scene in the case of (for example, computer picture (remote desktop) is shared, video conference etc.), it can use External equipment (transmitting terminal, receiving terminal) is realized.Wherein, capture card passes through HDMI (High Definition Multimedia Interface, referred to as HDMI) etc. collection main frame output picture (these data be video card output data).
Part video card can add dither algorithm to improve imaging effect when display picture.Capture card is gathering these Sending ending equipment, which is given, after the data that video card is handled is compressed coding transmission.And these video images are trembled due to adding Move, the extraction of constant background in subsequent compression cataloged procedure, the division of video area, the detection such as scene switching has been required for phase The algorithm adjustment answered.Therefore, when the data of the picture exported to video card are handled, unanimously all entered using corresponding adjustment algorithm Row processing.
But during using consistent adjustment algorithm to handle the picture data that video card is exported, treatment effeciency is low. For it is above-mentioned the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of picture data processing method and processing device, at least to solve to adopt in correlation technique During with consistent adjustment algorithm to handle the picture data that video card is exported, the low technical problem for the treatment of effeciency.
One side according to embodiments of the present invention there is provided a kind of picture data processing method, including:Video card is obtained to show The picture shown;The picture shown according to the video card, detects whether the video card produces flating;It is in testing result In the case of no, the picture data of the picture shown using the corresponding algorithm of image non-jitter to the video card is handled.
Alternatively, in the picture shown according to the video card, whether the detection video card is produced before flating, Also include:Judge whether occurrence scene switches for picture that the video card shows, in judged result in the case of no, according to described The picture that video card is shown, detects whether the video card produces flating.
Alternatively, judge whether occurrence scene switching includes for picture that the video card shows:Count what the video card was shown The pixel for meeting intended pixel parameter value of present frame picture presumptive area corresponding with the reference frame picture that the video card is shown The first number, wherein, the reference frame picture be the present frame picture former frame picture;According to described the first of statistics Number, and scene switching threshold, judge whether occurrence scene switches for picture that the video card shows.
Alternatively, according to first number of statistics, and the scene switching threshold, judge what the video card was shown Whether occurrence scene switching includes picture:It is determined that first number of statistics and the total number of pixel in the presumptive area Between the first ratio;Judge whether first ratio determined is more than the scene switching threshold;It is no in judged result In the case of, determine that the picture that the video card is shown does not have occurrence scene switching.
Alternatively, the picture shown according to the video card, detects whether the video card produces flating and include:Point Two continuous frames in the other continuous predetermined quantity N frame pictures shown to the video card, judge whether the video card produces two frames Flating, and obtain the quantity that the video card produces two field pictures shake;Judge that the video card produces two field pictures shake Whether quantity is more than scene dithering threshold;In the case where judged result is no, determine the video card in N frames picture correspondence Current scene do not produce flating.
Alternatively, the two continuous frames in the continuous predetermined quantity N frame pictures shown respectively to the video card, judge described Whether video card, which produces two field pictures shake, includes:Count the present frame picture and reference frame in the two continuous frames that the video card is shown Second number of the pixel for meeting intended pixel parameter value of picture correspondence presumptive area, wherein, the reference frame picture is The former frame picture of the present frame picture;It is determined that total of pixel in second number and the presumptive area of statistics The second ratio between number;Judge whether second ratio determined is more than two dither frame threshold values;It is no in judged result In the case of, determine that the video card does not produce two field pictures shake.
Alternatively, the presumptive area is the peripheral region for the picture that the video card is shown, wherein, the peripheral region is The corresponding region of distance areas edge preset width, the preset width is less than distance between the edges of regions and picture center Half.
According to another aspect of the present invention there is provided a kind of picture data processing unit, including:Acquisition module, for obtaining Take the picture that video card is shown;Detection module, for the picture shown according to the video card, detects whether the video card produces Flating;Processing module, in the case of being no in testing result, using the corresponding algorithm of image non-jitter to described aobvious The picture data for blocking the picture of display is handled.
Alternatively, the device also includes:Judge module, for judging whether occurrence scene is cut for picture that the video card shows Change, in the case where judged result is no, the picture shown according to the video card detects whether the video card produces image Shake.
Alternatively, the judge module includes:Statistic unit, for counting present frame picture and the institute that the video card is shown The first number of the pixel for meeting intended pixel parameter value for the reference frame picture correspondence presumptive area that video card is shown is stated, its In, the reference frame picture is the former frame picture of the present frame picture;First judging unit, for according to statistics First number, and scene switching threshold, judge whether occurrence scene switches for picture that the video card shows.
Alternatively, the first judging unit includes:First determination subelement, first number and institute for determining statistics State the first ratio between the total number of pixel in presumptive area;First judgment sub-unit, for judging determine described the Whether one ratio is more than the scene switching threshold;Second determination subelement, for the judgement in first judgment sub-unit As a result in the case of being no, determine that the picture that the video card is shown does not have occurrence scene switching.
Alternatively, the detection module includes:Second judging unit, it is continuous pre- for what is shown respectively to the video card Two continuous frames in fixed number amount N frame pictures, judge whether the video card produces two field pictures shake, and obtain the video card generation The quantity of two field pictures shake;3rd judging unit, for judging whether the quantity of the video card generation two field pictures shake is big In scene dithering threshold;First determining unit, in the case of being no in the judged result of second judging unit, it is determined that The video card does not produce flating in the corresponding current scene of the N frames picture.
Alternatively, second judging unit includes:Subelement is counted, for counting the two continuous frames that the video card is shown In present frame picture presumptive area corresponding with reference frame picture the pixel for meeting intended pixel parameter value the second number, Wherein, the reference frame picture is the former frame picture of the present frame picture;3rd determination subelement, for determining statistics The second ratio in second number and the presumptive area between the total number of pixel;Second judgment sub-unit, is used for Judge whether second ratio determined is more than two dither frame threshold values;4th determination subelement, for judging described second In the case that the judged result of subelement is no, determine that the video card does not produce two field pictures shake.
Alternatively, the presumptive area is the peripheral region for the picture that the video card is shown, wherein, the peripheral region is The corresponding region of distance areas edge preset width, the preset width is less than distance between the edges of regions and picture center Half.
According to the further aspect of the present invention there is provided a kind of storage medium, the storage medium includes the program of storage, its In, the method described in any of the above-described one is performed when described program is run.
According to the further aspect of the present invention there is provided a kind of processor, the processor is used for operation program, wherein, institute The method described in any of the above-described is performed when stating program operation.
In embodiments of the present invention, the follow-up image compression encoding operation of different algorithm performs is respectively adopted.I.e. to production Raw shake is treated with a certain discrimination with not producing shake, is realized when not producing shake, using the corresponding algorithm of non-jitter.Because nothing is trembled Corresponding algorithm is moved for having shake, efficiency is much higher, therefore, be effectively improved picture treatment effeciency, and then solve In correlation technique of having determined using consistent adjustment algorithm to handle the picture data that video card is exported when, treatment effeciency is low Under technical problem.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of picture data processing method according to embodiments of the present invention;
Fig. 2 is the flow chart of the picture data processing of preferred embodiment provided in an embodiment of the present invention;
Fig. 3 is the structured flowchart of picture data processing unit provided in an embodiment of the present invention;
Fig. 4 is the preferred structure block diagram of picture data processing unit provided in an embodiment of the present invention;
Fig. 5 is the preferred structure block diagram of judge module 42 in picture data processing unit provided in an embodiment of the present invention;
Fig. 6 is the first judging unit 54 in judge module 42 in picture data processing unit provided in an embodiment of the present invention Preferred structure block diagram;
Fig. 7 is the preferred structure block diagram of detection module 44 in picture data processing unit provided in an embodiment of the present invention;
Fig. 8 is the second judging unit 72 in detection module 44 in picture data processing unit provided in an embodiment of the present invention Preferred structure block diagram.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
According to embodiments of the present invention there is provided a kind of embodiment of the method for picture data processing, it is necessary to illustrate, attached The step of flow of figure is illustrated can perform in the computer system of such as one group computer executable instructions, though also, So logical order is shown in flow charts, but in some cases, can be shown to be performed different from order herein Or the step of description.
Fig. 1 is the flow chart of picture data processing method according to embodiments of the present invention, as shown in figure 1, this method includes Following steps:
Step S102, obtains the picture that video card is shown;
Whether step S104, the picture shown according to video card, detection video card produces flating;
Step S106, in the case where testing result is no, is shown using the corresponding algorithm of image non-jitter to video card The picture data of picture is handled.
By above-mentioned steps, the follow-up image compression encoding operation of different algorithm performs is respectively adopted.Generation is trembled It is dynamic to be treated with a certain discrimination with not producing shake, realize when not producing shake, using the corresponding algorithm of non-jitter.Due to non-jitter pair The algorithm answered is for having shake, and efficiency is much higher, therefore, is effectively improved picture treatment effeciency, and then solve In correlation technique using consistent adjustment algorithm to handle the picture data that video card is exported when, treatment effeciency is low Technical problem.
In the picture shown according to video card, when whether detection video card produces flating, pictured scene may be related to Switching, when pictured scene switches, the switching of scene be can on whether producing the judgement of flating and producing influence, Therefore, judged again, it is necessary to whether produce flating to video card when occurrence scene switches.Therefore, it is the standard of judgement True property, can be in the picture shown according to video card, and whether detection video card is produced before flating, in addition to:Judge that video card shows Whether occurrence scene switches the picture shown, in the case where judged result is no, the picture shown according to video card, and detection video card is No generation flating.In the case where scene does not produce switching, just detect whether video card produces flating, strengthen inspection The accuracy of survey.
When judging picture that video card is shown whether occurrence scene switching, various ways can be used, for example, according to reference Frame parameter it is different, mode also can be various.For example:Present frame picture and video card that video card shows can be first counted to show Reference frame picture correspondence presumptive area the pixel for meeting intended pixel parameter value the first number, wherein, reference frame draw Face is the former frame picture of present frame picture;According to the first number of statistics, and scene switching threshold, judge what video card was shown Whether occurrence scene switches picture.For example, the form for meeting intended pixel parameter value herein can be able to be pixel with a variety of Gray value difference be more than 1;Can be that Y/U/V differences are more than 1;It can also be that RGB differences are more than 1;It should be noted that acquiescence If display is jittered dynamic, scope is+- 1, if technical staff's adjusting parameter can change.General display screen will not adjust this Parameter.
Alternatively, in the first number according to statistics, and scene switching threshold, judge whether the picture that video card is shown is sent out During raw scene switching, the numerical values recited relation between the first number and scene switching threshold can be directly judged, for example, judging to be somebody's turn to do Whether the first number is more than above-mentioned scene switching threshold, in the case where being judged as NO, directly thinks that the picture that video card is shown does not have There is occurrence scene switching;Certainly, in order to realize the refinement of judgement, the first number and picture in presumptive area of statistics can first be determined The first ratio between the total number of vegetarian refreshments;Afterwards, judge whether the first ratio determined is more than scene switching threshold (scene Switching threshold can be set as needed, for example, being set as 10%) according to statistical result;In the case where judged result is no, Determine that the picture that video card is shown does not have occurrence scene switching.Judged by such, video card can be more accurately determined and shown Picture there is no occurrence scene switching.
Due to it cannot be guaranteed that the picture display content of the two continuous frames of collection can not be completely the same, therefore, to realize judgement Accuracy, the N frame pictures of continuous predetermined quantity can be judged, so that it is determined that video card is corresponding current in N frame pictures Scene does not produce flating.For example, the picture shown according to video card, whether detection video card, which produces flating, to wrap Include:Two continuous frames in the continuous predetermined quantity N frame pictures shown respectively to video card, judge whether video card produces two field pictures Shake, and obtain the quantity that video card produces two field pictures shake;Judge whether the quantity of video card generation two field pictures shake is more than Scene dithering threshold;In judged result in the case of no, to determine video card in the not no generation figure of the corresponding current scene of N frame pictures As shake.
Wherein, the two continuous frames in the continuous predetermined quantity N frame pictures shown respectively to video card, judge whether video card produces During raw two field pictures shake, following processing can be used:Present frame picture and reference in the two continuous frames that statistics video card is shown Second number of the pixel for meeting intended pixel parameter value of frame picture correspondence presumptive area, wherein, reference frame picture is to work as The former frame picture of previous frame picture;It is determined that the second ratio in the second number and presumptive area of statistics between the total number of pixel Example;Judge whether the second ratio determined is more than two dither frame threshold values;In the case where judged result is no, determine that video card does not have Produce two field pictures shake.
It is right when whether the picture that can be shown to video card produces flating to be reduced as far as the possibility of erroneous judgement Detection zone is selected.Due to picture produce change when, the possibility that central area changes is larger, therefore, it can by The peripheral region for the picture that detection zone (i.e. above-mentioned presumptive area) selection shows for video card, wherein, peripheral region is distance regions The corresponding region of domain edge preset width, preset width is less than the half of distance between edges of regions and picture center.
Therefore, in correlation technique, when being compressed processing for the data without the picture for adding dither algorithm, The consistent algorithm (i.e. corresponding to the adjustment algorithm for adding dither algorithm) using adjustment is low come the treatment effeciency caused by handling The problem of.Because for video sequence, being typically compressed using H264, H265 standard:H264, H265 standard in itself have compared with Good noise immunity, because the collection picture of natural video frequency is inherently noisy.Therefore gathered with this kind of standard compression When sequence, it is whether the sequence for not needing special detection collection has flating;If necessary to coding transmission right and wrong from So collection video (such as computer picture), bad with H264, H265 standard compression performance.For example:When computer picture is kept not During change, more code stream can be still produced with H264, H265 standard compression.Because H264, H265 standard are more to be directed to certainly The compression (two frame identical pictures are not present in natural video frequency) of right video.
And for computer picture, more content is completely indeclinable.If now video card can be detected whether in time It can bring flating that greatly lifting can be brought to improve for subsequent compression algorithm.Therefore, the quick height that above-described embodiment is provided The algorithm of effect detects whether video card can produce flating, is respectively adopted the follow-up image compression encoding of different algorithm performs Operation.Treat with a certain discrimination, realize when not producing shake with not producing shake to producing shake, calculated using non-jitter is corresponding Method.Because the corresponding algorithm of non-jitter is for having shake, efficiency is much higher, is effectively improved picture treatment effeciency. In addition, having carried out relatively reasonable judgement for pictured scene (for example, computer picture broadcasts the scenes such as film);According to video card for The principle of flating algorithm carries out statistical decision, more accurately determines whether shake;Because flating is based on color, detection is trembled Dynamic algorithm is carried out based on scene so that judgement can carry out error correction.
Below to being illustrated exemplified by computer picture.
Because computer picture transmission has more scene, accordingly, it would be desirable to which for different scenes, whether detection video card brings image Shake needs to consider different influence factors, is exemplified below:
(1) synergetic office work, PPT reports etc.:Compared with multizone it is indeclinable in the video sequence of collection, and these regions exist The subregion field color corresponding with reference frame that invariant region, i.e. present frame can be judged as in the case of non-jitter has been worth It is complete equal.When system is determined with more invariant region, it is believed that video card non-jitter under this scene.
(2) field be video (for example:Seen a film in webpage):If now collection when invariant region is judged It is video pictures, then can produces erroneous judgement, this is due to that video sequence has noise in itself, and we are difficult to determine that noise is to gather What is produced in journey is also due to that video card shake is produced.Therefore need to select position when invariant region is judged.
(3) computer shows the image of a pure color:In order to strengthen picture sense during video card shake, the color of display can influence Dither algorithm.For example:When video card has shake, when computer picture gets an ater picture, present frame and reference frame color It is identical.Shake judgement is now carried out, is inaccurate.
(4) computer is full frame shows a film:Mute has noise in itself, now determines whether there is inaccurate during video card shake 's;
(5) capture card can not ensure the same image of two content frames:The mistake judged when the frame of capture card continuous acquisition two Cheng Zhong, does not ensure that two field pictures content is just the same.
Based on above scene analysis, there is following requirement when judging whether video card has dither algorithm:Sentenced based on scene It is fixed to judge again when scene switches;Judge that the selection region of shake is reasonable;Decision algorithm is efficiently timely.
Based on above-mentioned requirements, in the present embodiment there is provided a kind of preferred embodiment of picture data processing.
Fig. 2 is the flow chart of the picture data processing of preferred embodiment provided in an embodiment of the present invention, as shown in Fig. 2 The flow comprises the following steps:
Step S200, starts;
Step S202, scene is switched and determined;
Step S204, judges that whether occurrence scene switches for picture that video card shows, in the case where the judgment result is yes, enters Enter step S206, in the case where judged result is no, into step S208;
Step S206, it would be desirable to which determination flag is set to very, and will have determined that frame number is set to 0;
Step S208, judgement needs whether determination flag is set to very, in the case of judged result is genuine, into step S210, in the case where judged result is no, into step S222;
Step S210, present frame and the reference frame of the picture that video card is shown are compared;
Step S212, statistical comparison result, and will have determined that frame number Jia 1 certainly;
Step S214, according to statistical result, judgement has determined that whether frame number is predetermined quantity N;In judged result for yes In the case of, into step S216, otherwise, into step S222;
Step S216, judges whether that result of determination can be provided, in the case where the judgment result is yes, into step S220, otherwise into step S218;
Step S218, will have determined that frame number is set to 0, restart statistics, into step S222;
Step S220, provides result of determination, and determination flag will be needed to be set to vacation;
Step S222, terminates.
It should be noted that, it is necessary to which determination flag is true when scene switching is carried out, i.e. preparation starts to judge.Need It is true (most needing to judge at first, scene switching is required to judge every time later) to want determination flag initialization value.
Handled with reference to the picture data of above-mentioned preferred embodiment, sub-process is judged to continuous N frames picture below, scene is cut Judgement sub-process is changed, and two frame floats judge that sub-process is illustrated respectively.
Continuous N frames picture judges
Due to it cannot be guaranteed that the two continuous frames picture display content of capture card collection the same (most of situation is equal or phase Like), therefore detection program needs to judge continuous N frames picture, and utilize statistical law given threshold threshold_n, ginseng Examine value 80%;
It is the result of determination of the i-th frame and i+1 frame to make f (i), is had:F (i) is 0 in continuous N frames Number is count_0, and the number for being 1 is count_1.
If count_0>(n-1) * threshold_n, then judge current scene as non-jitter, until scene switches again Start and judge;
If count_1>(n-1) * threshold_n, then judge current scene to have shake, until scene switches again Start and judge;
Other situations:Judge next group of continuous N frame.
Scene is switched and determined
Because the possibility of middle visual angle main detection regional change is larger, therefore the point of sampling screen surrounding, if collection is wide Spend for width.Then compare width rows before two frame pictures, last width rows, preceding width row, last width row pixel.Than The absolute value histogram of the grey scale pixel value difference of the i-th frame and i+1 frame corresponding region is counted compared with during.Need explanation Be, depending on the value of width values can be according to concrete condition, for example, for overall picture it is larger can take it is slightly larger Value (6-10 rows), it is and less for overall picture, slightly smaller value (3-5 rows) can be taken.
If the number that two frame respective regions corresponding grey scale value absolute differences are more than 1 point is m, corresponding region pixel is always individual Number is total.
If:Then think that occurrence scene switches.Re-start the judgement of continuous N frames picture.
Wherein, threshold_cut, is scene switching threshold, reference value 10% is provided according to statistical result.
Two frame floats judge, that is, calculate f (i)
If the number that two frame respective regions corresponding grey scale value absolute differences are equal to 1 is k, corresponding region pixel total number is total。
If:Then think there is video card shake;
If:Then think no video card shake.
Wherein, threshold_dither, for detection colour dither threshold value, is provided, reference value 1% according to statistical result.
Detection to scene changes, if detecting scene changes, above-mentioned identification process restarts.Pass through front and rear frame Contrast (contrast district being optimized, comparing result is truer), statistical disposition is carried out to comparison structure;Pass through final knot Fruit judges whether shake.
A kind of picture data processing unit is additionally provided in the present embodiment, and the device is used to realize above-described embodiment and excellent Embodiment is selected, repeating no more for explanation had been carried out.As used below, term " module " can realize predetermined function Software and/or hardware combination.Although the device described by following examples is preferably realized with software, hardware, Or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 3 is the structured flowchart of picture data processing unit provided in an embodiment of the present invention, as shown in figure 3, the device bag Include:Acquisition module 32, detection module 34 and processing module 36, are illustrated to the device below.
Acquisition module 32, for obtaining the picture that video card is shown;Detection module 34, is connected to above-mentioned acquisition module 32, uses In the picture shown according to video card, whether detection video card produces flating;Processing module 36, it is connected to above-mentioned detection module 34, in the case of being no in testing result, the picture of the picture shown using the corresponding algorithm of image non-jitter to video card Data are handled.
Fig. 4 is the preferred structure block diagram of picture data processing unit provided in an embodiment of the present invention, as shown in figure 4, the dress Put in addition to including all structures shown in Fig. 3, in addition to:Judge module 42, is illustrated to the judge module 42 below.
Judge module 42, is connected to above-mentioned acquisition module 32 and detection module 34, for judging that the picture that video card is shown is No occurrence scene switching, in the case where judged result is no, whether the picture shown according to video card, detection video card produces image Shake.
Fig. 5 is the preferred structure block diagram of judge module 42 in picture data processing unit provided in an embodiment of the present invention, such as Shown in Fig. 5, the judge module 42 includes:The judging unit 54 of statistic unit 52 and first, says to the judge module 42 below It is bright.
Statistic unit 52, it is corresponding with the reference frame picture that video card is shown predetermined for counting the present frame picture that video card shows First number of the pixel for meeting intended pixel parameter value in region, wherein, reference frame picture is previous for present frame picture Frame picture;First judging unit 54, is connected to above-mentioned statistic unit 52, is cut for the first number according to statistics, and scene Threshold value is changed, judges whether occurrence scene switches for picture that video card shows.
Fig. 6 is the first judging unit 54 in judge module 42 in picture data processing unit provided in an embodiment of the present invention Preferred structure block diagram, as shown in fig. 6, first judging unit 54 includes:First determination subelement 62, the first judgment sub-unit 64 With the second determination subelement 66, first judging unit 54 is illustrated below.
In first determination subelement 62, the first number and presumptive area for determining statistics between the total number of pixel The first ratio;First judgment sub-unit 64, is connected to above-mentioned first determination subelement 62, for the first ratio for judging to determine Whether scene switching threshold is more than;Second determination subelement 66, is connected to above-mentioned first judgment sub-unit 64, for sentencing first In the case that the judged result of disconnected subelement is no, determine that the picture that video card is shown does not have occurrence scene switching.
Fig. 7 is the preferred structure block diagram of detection module 44 in picture data processing unit provided in an embodiment of the present invention, such as Shown in Fig. 7, the detection module 44 includes:Second judging unit 72, the 3rd judging unit 74 and the first determining unit 76, below it is right The detection module 44 is illustrated.
Second judging unit 72, for the two continuous frames in the continuous predetermined quantity N frame pictures that are shown respectively to video card, Judge whether video card produces two field pictures shake, and obtain the quantity that video card produces two field pictures shake;3rd judging unit 74, Above-mentioned second judging unit 72 is connected to, for judging that whether video card produces the quantity of two field pictures shake more than scene shake threshold Value;First determining unit 76, is connected to above-mentioned 3rd judging unit 74, for be no in the judged result of the second judging unit In the case of, determine that video card does not produce flating in the corresponding current scene of N frame pictures.
Fig. 8 is the second judging unit 72 in detection module 44 in picture data processing unit provided in an embodiment of the present invention Preferred structure block diagram, as shown in figure 8, second judging unit 72 includes:Count subelement 82, the 3rd determination subelement 84 and the Four determination subelements 86, are illustrated to second judging unit 72 below.
Subelement 82 is counted, it is corresponding with reference frame picture for counting the present frame picture in the two continuous frames that video card is shown Second number of the pixel for meeting intended pixel parameter value of presumptive area, wherein, reference frame picture is present frame picture Former frame picture;3rd determination subelement 84, is connected to above-mentioned statistics subelement 82, for determine the second number of statistics with it is pre- Determine the second ratio between the total number of pixel in region;Second judgment sub-unit, for judge determine the second ratio be It is no to be more than two dither frame threshold values;4th determination subelement 86, is connected to above-mentioned 3rd determination subelement 84, for judging second In the case that the judged result of subelement is no, determine that video card does not produce two field pictures shake.
Alternatively, above-mentioned presumptive area is the peripheral region for the picture that video card is shown, wherein, peripheral region is distance areas The corresponding region of edge preset width, preset width is less than the half of distance between edges of regions and picture center.
According to the further aspect of the present invention there is provided a kind of storage medium, storage medium includes the program of storage, wherein, The program code of following steps is performed when program is run:Obtain the picture that video card is shown;The picture shown according to video card, detection is aobvious Whether card produces flating;In the case where testing result is no, video card is shown using image non-jitter corresponding algorithm The picture data of picture handled.
Alternatively, the program is additionally operable to perform the program code of following steps:In the picture shown according to video card, detection is aobvious Whether card is produced before flating, in addition to:Judge that whether occurrence scene switches for picture that video card shows, is in judged result In the case of no, whether the picture shown according to video card, detection video card produces flating.
Alternatively, the program is additionally operable to perform the program code of following steps:Judge whether the picture that video card is shown occurs Scene switching includes:The satisfaction for the present frame picture presumptive area corresponding with the reference frame picture that video card is shown that statistics video card is shown First number of the pixel of intended pixel parameter value, wherein, reference frame picture is the former frame picture of present frame picture;According to First number of statistics, and scene switching threshold, judge picture that video card shows whether occurrence scene switching.
Alternatively, the program is additionally operable to perform the program code of following steps:According to the first number of statistics, and scene Switching threshold, judges whether occurrence scene switching includes for picture that video card shows:It is determined that the first number and presumptive area of statistics The first ratio between the total number of interior pixel;Judge whether the first ratio determined is more than scene switching threshold;Judging As a result in the case of being no, determine that the picture that video card is shown does not have occurrence scene switching.
Alternatively, the program is additionally operable to perform the program code of following steps:The picture shown according to video card, detects video card Whether producing flating includes:Two continuous frames in the continuous predetermined quantity N frame pictures shown respectively to video card, judge aobvious Whether card produces two field pictures shake, and obtains the quantity that video card produces two field pictures shake;Judge that video card produces two field pictures Whether the quantity of shake is more than scene dithering threshold;In the case where judged result is no, determine that video card is corresponding in N frame pictures Current scene does not produce flating.
Alternatively, the program is additionally operable to perform the program code of following steps:Video card is shown respectively is continuous predetermined Two continuous frames in quantity N frame pictures, judge whether video card produces two field pictures shake and include:Count video card is shown continuous two Second of the pixel for meeting intended pixel parameter value of present frame picture presumptive area corresponding with reference frame picture in frame Number, wherein, reference frame picture is the former frame picture of present frame picture;It is determined that the second number of statistics and pixel in presumptive area The second ratio between the total number of point;Judge whether the second ratio determined is more than two dither frame threshold values;It is in judged result In the case of no, determine that video card does not produce two field pictures shake.
Alternatively, the program is additionally operable to perform the program code of following steps:Presumptive area is the picture that video card is shown Peripheral region, wherein, peripheral region be the corresponding region of distance areas edge preset width, preset width be less than edges of regions with The half of distance between picture center.
According to the further aspect of the present invention there is provided a kind of processor, processor is used for operation program, wherein, program fortune The program code of following steps is performed during row:Obtain the picture that video card is shown;The picture shown according to video card, whether detection video card Produce flating;In the case where testing result is no, the picture shown using the corresponding algorithm of image non-jitter to video card Picture data handled.
Alternatively, the program is additionally operable to perform the program code of following steps:In the picture shown according to video card, detection is aobvious Whether card is produced before flating, in addition to:Judge that whether occurrence scene switches for picture that video card shows, is in judged result In the case of no, whether the picture shown according to video card, detection video card produces flating.
Alternatively, the program is additionally operable to perform the program code of following steps:Judge whether the picture that video card is shown occurs Scene switching includes:The satisfaction for the present frame picture presumptive area corresponding with the reference frame picture that video card is shown that statistics video card is shown First number of the pixel of intended pixel parameter value, wherein, reference frame picture is the former frame picture of present frame picture;According to First number of statistics, and scene switching threshold, judge picture that video card shows whether occurrence scene switching.
Alternatively, the program is additionally operable to perform the program code of following steps:According to the first number of statistics, and scene Switching threshold, judges whether occurrence scene switching includes for picture that video card shows:It is determined that the first number and presumptive area of statistics The first ratio between the total number of interior pixel;Judge whether the first ratio determined is more than scene switching threshold;Judging As a result in the case of being no, determine that the picture that video card is shown does not have occurrence scene switching.
Alternatively, the program is additionally operable to perform the program code of following steps:The picture shown according to video card, detects video card Whether producing flating includes:Two continuous frames in the continuous predetermined quantity N frame pictures shown respectively to video card, judge aobvious Whether card produces two field pictures shake, and obtains the quantity that video card produces two field pictures shake;Judge that video card produces two field pictures Whether the quantity of shake is more than scene dithering threshold;In the case where judged result is no, determine that video card is corresponding in N frame pictures Current scene does not produce flating.
Alternatively, the program is additionally operable to perform the program code of following steps:Video card is shown respectively is continuous predetermined Two continuous frames in quantity N frame pictures, judge whether video card produces two field pictures shake and include:Count video card is shown continuous two Second of the pixel for meeting intended pixel parameter value of present frame picture presumptive area corresponding with reference frame picture in frame Number, wherein, reference frame picture is the former frame picture of present frame picture;It is determined that the second number of statistics and pixel in presumptive area The second ratio between the total number of point;Judge whether the second ratio determined is more than two dither frame threshold values;It is in judged result In the case of no, determine that video card does not produce two field pictures shake.
Alternatively, the program is additionally operable to perform the program code of following steps:Presumptive area is the picture that video card is shown Peripheral region, wherein, peripheral region be the corresponding region of distance areas edge preset width, preset width be less than edges of regions with The half of distance between picture center.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through Mode is realized.Wherein, device embodiment described above is only schematical, the division of such as unit, can be one kind Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of unit or module, Can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can for personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (16)

1. a kind of picture data processing method, it is characterised in that including:
Obtain the picture that video card is shown;
The picture shown according to the video card, detects whether the video card produces flating;
In the case where testing result is no, the picture of the picture shown using the corresponding algorithm of image non-jitter to the video card Data are handled.
2. according to the method described in claim 1, it is characterised in that in the picture shown according to the video card, detect institute State before whether video card produce flating, in addition to:
Judge whether occurrence scene switches for picture that the video card shows, in judged result in the case of no, according to described aobvious Block the picture of display, detect whether the video card produces flating.
3. method according to claim 2, it is characterised in that judge whether occurrence scene is cut for picture that the video card shows Change including:
Count the satisfaction for the present frame picture presumptive area corresponding with the reference frame picture that the video card is shown that the video card is shown First number of the pixel of intended pixel parameter value, wherein, the reference frame picture is the former frame of the present frame picture Picture;
According to first number of statistics, and scene switching threshold, judge whether the picture that the video card is shown occurs field Scape switches.
4. method according to claim 3, it is characterised in that according to first number of statistics, and the scene Switching threshold, judges whether occurrence scene switching includes for picture that the video card shows:
It is determined that the first ratio in first number and the presumptive area of statistics between the total number of pixel;
Judge whether first ratio determined is more than the scene switching threshold;
In the case where judged result is no, determine that the picture that the video card is shown does not have occurrence scene switching.
5. according to the method described in claim 1, it is characterised in that the picture shown according to the video card, detect described Whether video card, which produces flating, includes:
Two continuous frames in the continuous predetermined quantity N frame pictures shown respectively to the video card, judge whether the video card produces Raw two field pictures shake, and obtain the quantity that the video card produces two field pictures shake;
Judge that whether the video card produces the quantity of two field pictures shake more than scene dithering threshold;
In judged result in the case of no, to determine the video card in the not no generation figure of the corresponding current scene of the N frames picture As shake.
6. method according to claim 5, it is characterised in that the continuous predetermined quantity N shown respectively to the video card Two continuous frames in frame picture, judge whether the video card produces two field pictures shake and include:
The satisfaction for counting present frame picture presumptive area corresponding with reference frame picture in the two continuous frames that the video card is shown is pre- Second number of the pixel of fixation element parameter value, wherein, the reference frame picture is drawn for the former frame of the present frame picture Face;
It is determined that the second ratio in second number and the presumptive area of statistics between the total number of pixel;
Judge whether second ratio determined is more than two dither frame threshold values;
In the case where judged result is no, determine that the video card does not produce two field pictures shake.
7. the method according to any one of claim 3,4,6, it is characterised in that the presumptive area is that the video card is shown Picture peripheral region, wherein, the peripheral region be the corresponding region of distance areas edge preset width, the pre- fixed width Degree is less than the half of distance between the edges of regions and picture center.
8. a kind of picture data processing unit, it is characterised in that including:
Acquisition module, for obtaining the picture that video card is shown;
Detection module, for the picture shown according to the video card, detects whether the video card produces flating;
Processing module, it is aobvious to the video card using the corresponding algorithm of image non-jitter in the case of being no in testing result The picture data of the picture shown is handled.
9. device according to claim 8, it is characterised in that also include:
Judge module, for judging whether occurrence scene switches for picture that the video card shows, the situation for being no in judged result Under, the picture shown according to the video card detects whether the video card produces flating.
10. device according to claim 9, it is characterised in that the judge module includes:
Statistic unit, it is corresponding pre- for counting present frame picture and the reference frame picture that the video card is shown that the video card shows Determine the first number of the pixel for meeting intended pixel parameter value in region, wherein, the reference frame picture is the present frame The former frame picture of picture;
First judging unit, for first number according to statistics, and scene switching threshold, judges that the video card is shown Picture whether occurrence scene switch.
11. device according to claim 10, it is characterised in that the first judging unit includes:
In first determination subelement, first number and the presumptive area for determining statistics the total number of pixel it Between the first ratio;
Whether the first judgment sub-unit, first ratio for judging to determine is more than the scene switching threshold;
Second determination subelement, in the case of being no in the judged result of first judgment sub-unit, is determined described aobvious The picture of card display does not have occurrence scene switching.
12. device according to claim 8, it is characterised in that the detection module includes:
Second judging unit, for the two continuous frames in the continuous predetermined quantity N frame pictures that are shown respectively to the video card, sentences Whether the video card that breaks produces two field pictures shake, and obtains the quantity that the video card produces two field pictures shake;
3rd judging unit, for judging that whether the video card produces the quantity of two field pictures shake more than scene dithering threshold;
First determining unit, in the case of being no in the judged result of second judging unit, determines that the video card exists The corresponding current scene of the N frames picture does not produce flating.
13. device according to claim 12, it is characterised in that second judging unit includes:
Subelement is counted, it is corresponding with reference frame picture pre- for counting the present frame picture in the two continuous frames that the video card is shown Determine the second number of the pixel for meeting intended pixel parameter value in region, wherein, the reference frame picture is the present frame The former frame picture of picture;
In 3rd determination subelement, second number and the presumptive area for determining statistics the total number of pixel it Between the second ratio;
Whether the second judgment sub-unit, second ratio for judging to determine is more than two dither frame threshold values;
4th determination subelement, in the case where the judged result of second judgment sub-unit is no, determining the video card Two field pictures shake is not produced.
14. the device according to any one of claim 10,11,13, it is characterised in that the presumptive area is described aobvious Block the peripheral region of the picture of display, wherein, the peripheral region is the corresponding region of distance areas edge preset width, described Preset width is less than the half of distance between the edges of regions and picture center.
15. a kind of storage medium, it is characterised in that the storage medium includes the program of storage, wherein, when described program is run Method any one of perform claim requirement 1 to 7.
16. a kind of processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run Profit requires the method any one of 1 to 7.
CN201710211596.3A 2017-03-31 2017-03-31 Picture data processing method and processing device Pending CN107040693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710211596.3A CN107040693A (en) 2017-03-31 2017-03-31 Picture data processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710211596.3A CN107040693A (en) 2017-03-31 2017-03-31 Picture data processing method and processing device

Publications (1)

Publication Number Publication Date
CN107040693A true CN107040693A (en) 2017-08-11

Family

ID=59534792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710211596.3A Pending CN107040693A (en) 2017-03-31 2017-03-31 Picture data processing method and processing device

Country Status (1)

Country Link
CN (1) CN107040693A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009769A (en) * 2007-02-09 2007-08-01 于中 Jitter-prevention processing method of TV image
CN101309357A (en) * 2007-05-18 2008-11-19 卡西欧计算机株式会社 Image pickup apparatus equipped with function of detecting image shaking
CN102930559A (en) * 2012-10-23 2013-02-13 华为技术有限公司 Image processing method and device
CN105721836A (en) * 2016-04-11 2016-06-29 北京西派科技有限公司 Multifunctional graphics card and data processing method of multifunctional graphics card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009769A (en) * 2007-02-09 2007-08-01 于中 Jitter-prevention processing method of TV image
CN101309357A (en) * 2007-05-18 2008-11-19 卡西欧计算机株式会社 Image pickup apparatus equipped with function of detecting image shaking
CN102930559A (en) * 2012-10-23 2013-02-13 华为技术有限公司 Image processing method and device
CN105721836A (en) * 2016-04-11 2016-06-29 北京西派科技有限公司 Multifunctional graphics card and data processing method of multifunctional graphics card

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
牛颢,丁春利,张明,唐博: "视频镜头边缘检测算法研究与比较", 《计算机应用研究》 *
雷鑑铭,邹雪城,邹望辉,刘三清: "应用于LCD控制器的动态抖动算法及帧速率控制技术", 《微电子学与计算机》 *

Similar Documents

Publication Publication Date Title
US10136183B2 (en) Dynamic video overlays
TWI686774B (en) Human face live detection method and device
Li et al. Investigation on cost assignment in spatial image steganography
US9092855B2 (en) Method and apparatus for reducing noise introduced into a digital image by a video compression encoder
CN104244024B (en) A kind of video front cover generation method, device and terminal
CN105374013B (en) Image visibility restorative procedure and image processing apparatus based on double dark channel priors
US8498495B2 (en) Border region processing in images
CN104735449B (en) A kind of image transfer method split based on rectangle every column scan
KR100591470B1 (en) Detection of transitions in video sequences
CN100393106C (en) Method and apparatus for detecting and/or tracking image or color area of image sequence
CN101427559B (en) Visual processing device, visual processing method, display device, and integrated circuit
Pan et al. Exposing image splicing with inconsistent local noise variances
Lukac et al. A taxonomy of color image filtering and enhancement solutions
US6985628B2 (en) Image type classification using edge features
US6088137A (en) Specified image-area extracting method and device
CN103632352B (en) Method for time domain noise reduction of noise image and related device
AU2010241260B2 (en) Foreground background separation in a scene with unstable textures
US9514225B2 (en) Video recording apparatus supporting smart search and smart search method performed using video recording apparatus
US7346211B2 (en) Image type classification using color discreteness features
JP5045371B2 (en) Foreground / background classification apparatus, method, and program for each pixel of moving image
CN101141608B (en) Video instant communication system and method
JP4201602B2 (en) Image processing apparatus and method for improving image, and image display apparatus having the image processing apparatus
CN107463949B (en) Video action classification processing method and device
US20040046896A1 (en) Image processing apparatus and method
CN104794462B (en) A kind of character image processing method and processing device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170811