CN104978731A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN104978731A
CN104978731A CN201410141685.1A CN201410141685A CN104978731A CN 104978731 A CN104978731 A CN 104978731A CN 201410141685 A CN201410141685 A CN 201410141685A CN 104978731 A CN104978731 A CN 104978731A
Authority
CN
China
Prior art keywords
field picture
frame
frame difference
difference
value
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
CN201410141685.1A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410141685.1A priority Critical patent/CN104978731A/en
Publication of CN104978731A publication Critical patent/CN104978731A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses an information processing method and electronic equipment. The method comprises the following steps of: obtaining the i-th frame difference between the i-th frame of image and the (i-1)-th frame of image in a video file, wherein the i is a integer being greater than or equal to 3; judging whether the i-the frame difference is greater than a first preset experience value or not to obtain a first judging result; if the first judging result is zero, obtaining an average value of the frame differences between adjacent images from the (i-j)-th frame of image to the (i-1) frame of image, wherein the j is an integer which is greater than or equal to 2 but smaller than or equal to (i-1); and when the ratio of the i-th frame difference to the average value conforms to a first preset condition, and the i-th frame difference conforms to a second preset condition, determining the i-th frame of image to be a boundary image of the lens boundary. The method and the electronic equipment provided by the invention are used for solving the technical problem of lens boundary detection inaccuracy since the lens boundary image is determined according to the experience value or according to the average frame difference of the current video in the prior art.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of information processing method and electronic equipment.
Background technology
Video data is compared image data and is had the large feature of data volume, effective management and retrieval carry out to it more difficult, but video data has certain structure, namely one section of video is top-down is divided into video, scene, camera lens and frame, therefore can analyze video in such structure.Camera lens refers to that the sequence of the adjacent some frames obtained taken by video camera in a continuous print Time and place, it is the fundamental element of video, also be the fundamental element of scene, scene conversion nearly all occurs in shot boundary place, therefore shot boundary detector is the important foundation of video content analysis and retrieval, usually selects the jump of boundary image as video tour at shot boundary place.
Current, shot boundary detector, often take following two kinds of technical schemes:
One is, determines that one presets empirical value, when the frame difference of adjacent two frames is greater than this default empirical value, determine that these adjacent two two field pictures are shot boundary image according to experience in the past.
Two are, the average frame calculating current video is poor, when the frame difference of adjacent two frames is greater than the several times of this average frame difference, determine that these adjacent two two field pictures are shot boundary image.
But present inventor is in the process realizing invention technical scheme in the embodiment of the present application, find that above-mentioned technology at least exists following technical matters:
Only determine shot boundary image according to empirical value in the past, have ignored the difference of different video, when running into shot boundary frame difference and changing more weak video, easily occur the undetected of shot boundary.
Only determine shot boundary image according to the average frame difference of current video, have ignored the directive significance of empirical value, when the frame difference change running into certain adjacent two frame in same camera lens is stronger, easily occur the erroneous judgement of shot boundary.
Visible, determine shot boundary image based on experience value or according to the average frame difference of current video in prior art, there is the inaccurate technical matters of shot boundary detector.
Summary of the invention
The embodiment of the present application, by providing a kind of information processing method and electronic equipment, solves in prior art, determines shot boundary image based on experience value or according to the average frame difference of current video, the inaccurate technical matters of shot boundary detector of existence.
On the one hand, the embodiment of the present application provides following technical scheme:
A kind of information processing method, is applied in electronic equipment, comprises:
Obtain the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer;
Judge whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result;
If described first judged result is no, then obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1;
When described i-th frame difference and the ratio of described mean value meet one first pre-conditioned, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
Optionally, describedly meet one first pre-conditioned when described i-th frame difference and the ratio of described mean value, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary, be specially: judge whether described i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, obtains the second judged result; If described second judged result is yes, then judge whether described i-th frame difference is greater than second and presets empirical value, obtains the 3rd judged result, wherein, described second presets empirical value is less than the described first default empirical value; If described 3rd judged result is yes, then determine that described i-th two field picture is the boundary image of shot boundary.
Optionally, described i-th frame difference is specially i-th the gray scale difference numerical value for characterizing the gray difference between described i-th two field picture and described i-th-1 two field picture, and/or for characterizing i-th aberration numerical value of the tone difference between described i-th two field picture and described i-th-1 two field picture.
Optionally, when described i-th frame difference is described i-th gray scale difference numerical value, i-th frame difference between described acquisition i-th two field picture and the i-th-1 two field picture, is specially: obtain the i-th frame grey level histogram of the i-th two field picture and the i-th-1 frame grey level histogram of the i-th-1 two field picture; Based on described i-th frame grey level histogram and described i-th-1 frame grey level histogram, calculate described i-th gray scale difference numerical value by histogram comparison algorithm.
Optionally, when described i-th frame difference is described i-th aberration numerical value, i-th frame difference between described acquisition i-th two field picture and the i-th-1 two field picture, is specially: obtain the i-th frame hue histogram of the i-th two field picture and the i-th-1 frame hue histogram of the i-th-1 two field picture; Based on described i-th frame hue histogram and described i-th-1 frame hue histogram, calculate described i-th aberration numerical value by histogram comparison algorithm.
Optionally, described determine that described i-th two field picture is the boundary image of shot boundary after, described method also comprises: store described i-th frame difference, and upgrades described first with described i-th frame difference and preset empirical value.
Optionally, described determine that described i-th two field picture is the boundary image of shot boundary after, described method also comprises: store i-th video location of described i-th two field picture in described video file and/or the i-th-1 video location of described i-th-1 two field picture in described video file, and in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture.
On the other hand, the embodiment of the present application additionally provides a kind of electronic equipment, comprising:
First acquisition module, for obtaining the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer;
Judge module, for judging whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result;
Second acquisition module, if be no for described first judged result, then obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1;
Determination module, pre-conditioned for meeting one first when described i-th frame difference and the ratio of described mean value, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
Optionally, described determination module comprises: the first judging unit, for judging whether described i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, obtains the second judged result; Second judging unit, if be yes for described second judged result, then judges whether described i-th frame difference is greater than second and presets empirical value, obtains the 3rd judged result, and wherein, described second presets empirical value is less than the described first default empirical value; Determining unit, if be yes for described 3rd judged result, then determines that described i-th two field picture is the boundary image of shot boundary.
Optionally, described i-th frame difference is specially i-th the gray scale difference numerical value for characterizing the gray difference between described i-th two field picture and described i-th-1 two field picture, and/or for characterizing i-th aberration numerical value of the tone difference between described i-th two field picture and described i-th-1 two field picture.
Optionally, when described i-th frame difference is described i-th gray scale difference numerical value, described first acquisition module comprises: the first acquiring unit, for the i-th-1 frame grey level histogram of the i-th frame grey level histogram and the i-th-1 two field picture that obtain the i-th two field picture; First comparing unit, for based on described i-th frame grey level histogram and described i-th-1 frame grey level histogram, calculates described i-th gray scale difference numerical value by histogram comparison algorithm.
Optionally, when described i-th frame difference is described i-th aberration numerical value, described first acquisition module comprises: second acquisition unit, for the i-th-1 frame hue histogram of the i-th frame hue histogram and the i-th-1 two field picture that obtain the i-th two field picture; Second comparing unit, for based on described i-th frame hue histogram and described i-th-1 frame hue histogram, calculates described i-th aberration numerical value by histogram comparison algorithm.
Optionally, described electronic equipment also comprises: update module, for storing described i-th frame difference, and upgrades the described first default empirical value with described i-th frame difference.
Optionally, described electronic equipment also comprises: indicate module, for storing i-th video location of described i-th two field picture in described video file and/or the i-th-1 video location of described i-th-1 two field picture in described video file, and in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture.
The one or more technical schemes provided in the embodiment of the present application, at least have following technique effect or advantage:
1, the method that the embodiment of the present application provides and electronic equipment, first i-th the frame difference and first between the i-th two field picture with the i-th-1 two field picture is preset empirical value to compare, when i-th frame difference is less than the first default empirical value, again the mean value of the frame difference between i-th frame difference and adjacent image is before compared, and meet first pre-conditioned at comparative result, and i-th frame difference meet second pre-conditioned time, determine that the i-th two field picture is the boundary image of shot boundary, combine with the feature of current video by the directiveness of empirical value, achieve the technique effect of the accuracy improving shot boundary detector.
2, the method that the embodiment of the present application provides and electronic equipment, after i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, also can judge whether i-th frame difference is greater than one and is less than the second default empirical value that first presets empirical value, when i-th frame difference is greater than the second default empirical value, just determine that the i-th two field picture is the boundary image of shot boundary, when can avoid that in camera lens, a certain section of video is static, because described mean value is too little, when i-th frame difference is almost all greater than a predetermined threshold value with the ratio of described mean value, the erroneous judgement to shot boundary occurred, the accuracy of further raising shot boundary detector.
3, the method that provides of the embodiment of the present application and electronic equipment, after determining that described i-th two field picture is the boundary image of shot boundary, upgrades described first with described i-th frame difference and presets empirical value, and then promote the accuracy of next time carrying out shot boundary detector.
4, the method that provides of the embodiment of the present application and electronic equipment, after determining that described i-th two field picture is the boundary image of shot boundary, in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture, the video tour of jumping can be carried out based on the boundary image identified fast to make user.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of information processing method in the embodiment of the present application one;
Fig. 2 is the schematic diagram indicating boundary image in the embodiment of the present application one;
Fig. 3 is the detail flowchart of information processing method in the embodiment of the present application one;
Fig. 4 is the structural drawing of electronic equipment in the embodiment of the present application two.
Embodiment
The embodiment of the present application, by providing a kind of information processing method and electronic equipment, achieves the technique effect of the accuracy improving shot boundary detector.
In order to solve the technical matters that above-mentioned prior art exists, the general thought of the technical scheme that the embodiment of the present application provides is as follows:
A kind of information processing method, is applied in electronic equipment, comprises:
Obtain the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer;
Judge whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result;
If described first judged result is no, then obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1;
When described i-th frame difference and the ratio of described mean value meet one first pre-conditioned, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
Can be found out by foregoing, first i-th the frame difference and first between the i-th two field picture with the i-th-1 two field picture is preset empirical value to compare, when i-th frame difference is less than the first default empirical value, again the mean value of the frame difference between i-th frame difference and adjacent image is before compared, and meet first pre-conditioned at comparative result, and i-th frame difference meet second pre-conditioned time, determine that the i-th two field picture is the boundary image of shot boundary, combine with the feature of current video by the directiveness of empirical value, achieve the technique effect of the accuracy improving shot boundary detector.
In order to better understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
Embodiment one:
In embodiment one, provide a kind of information processing method, be applied in electronic equipment, please refer to Fig. 1, Fig. 1 is the process flow diagram of the information processing method of the embodiment of the present application one, and described method comprises:
Step S101, obtains the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer;
Step S102, judges whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result;
Step S103, if described first judged result is no, then obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1;
Step S104, when described i-th frame difference and the ratio of described mean value meet one first pre-conditioned, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
In specific implementation process, described electronic equipment can be the electronic equipments such as camera, smart mobile phone, panel computer, video camera, notebook, desktop computer, will not enumerate in the present embodiment.
The method of the information processing that the embodiment of the present application provides, not only can be applied to the shot boundary detector of video, can also be applied to the photo detecting different scene in multiple photo sequence of shooting fast.
Below in conjunction with Fig. 1, to the method for the information processing provided in embodiment one, describe in detail by step:
First, perform step S101, obtain the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer.
In the embodiment of the present application, described i-th frame difference is specially i-th the gray scale difference numerical value for characterizing the gray difference between described i-th two field picture and described i-th-1 two field picture, and/or for characterizing i-th aberration numerical value of the tone difference between described i-th two field picture and described i-th-1 two field picture.
In specific implementation process, described i-th frame difference can also for i-th the edge difference numerical value for characterizing the edge lines difference between described i-th two field picture and described i-th-1 two field picture.
Certainly, in order to characterize the image difference of the i-th two field picture and the i-th-1 two field picture more accurately, can also arrange i-th frame difference is: by i-th gray scale difference numerical value, i-th aberration numerical value and i-th edge difference numerical value, and i-th the comprehensive frame that simultaneously can characterize gray difference, tone difference and edge lines difference between the i-th two field picture and the i-th-1 two field picture calculated is poor.
Below respectively for i-th frame difference be described i-th gray scale difference numerical value and i-th frame difference for described i-th aberration numerical value, the acquisition methods of i-th frame difference is described:
The first, i-th frame difference is described i-th gray scale difference numerical value.
Now, i-th frame difference between described acquisition i-th two field picture and the i-th-1 two field picture, is specially:
Obtain the i-th frame grey level histogram of the i-th two field picture and the i-th-1 frame grey level histogram of the i-th-1 two field picture;
Based on described i-th frame grey level histogram and described i-th-1 frame grey level histogram, calculate described i-th gray scale difference numerical value by histogram comparison algorithm.
Grey level histogram is the function of gray level, and it represents the number of the pixel of often kind of gray level in image, the frequency that in reflection image, often kind of gray scale occurs.The horizontal ordinate of grey level histogram is gray level, and ordinate is the frequency that this gray level occurs, is one of the most basic statistical nature of image.
In specific implementation process, can based on described i-th frame grey level histogram and described i-th-1 frame grey level histogram, calculate described i-th gray scale difference numerical value by histogram comparison algorithms such as histogram intersection method, histogram matchings, be not restricted in the present embodiment.
The second, i-th frame difference is described i-th aberration numerical value.
Now, i-th frame difference between described acquisition i-th two field picture and the i-th-1 two field picture, is specially:
Obtain the i-th frame hue histogram of the i-th two field picture and the i-th-1 frame hue histogram of the i-th-1 two field picture;
Based on described i-th frame hue histogram and described i-th-1 frame hue histogram, calculate described i-th aberration numerical value by histogram comparison algorithm.
Hue histogram is also one of the most basic statistical nature of image.Described by it is the ratio of different color shared by entire image.
In specific implementation process, can based on described i-th frame hue histogram and described i-th-1 frame hue histogram, calculate described i-th gray scale difference numerical value by histogram comparison algorithms such as histogram intersection method, histogram matchings, be not restricted in the present embodiment.
Specifically, grey level histogram or hue histogram is adopted to calculate i-th frame difference, owing to only needing the frequency considering that gray scale or tone occur, and do not need the corresponding relation considering position on gray scale and tone and image, calculated amount is less, can realize the technique effect of the computing velocity of raising i-th frame difference.
Certainly, in specific implementation process, also can the distributing position of gray scale or tone on combining image, i-th two field picture and the i-th-1 two field picture correspondence are divided into multiple region, the frame difference of first carrying out corresponding region calculates, after the frame difference of multiple corresponding region being averaged again, obtain i-th frame difference, thus improve the accuracy of shot boundary detector further.
After obtained i-th frame difference by step S101, enter step S102, judge whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result.
In specific implementation process, described first to preset empirical value can be the data that technician combines shot boundary in the past and gathers, and knows and input the empirical value of described electronic equipment; Also can be that electronic equipment downloads the empirical value of acquisition from server.
When described i-th frame difference is greater than the described first default empirical value, determine that described i-th two field picture is the boundary image of shot boundary, namely determine that described i-th-1 two field picture is the last frame image of previous camera lens, described i-th two field picture is the first two field picture of a rear camera lens.
When described i-th frame difference is less than the described first default empirical value, perform step S103-S104, obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1; When described i-th frame difference and the ratio of described mean value meet one first pre-conditioned, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
In specific implementation process, can arrange according to video features first pre-conditioned and second pre-conditioned targetedly, also can arrange first pre-conditioned and second pre-conditioned based on experience value, be described respectively below:
The first, arrange first pre-conditioned and second pre-conditioned targetedly according to video features.
Such as: when in known video, first camera lens is daytime, second camera lens is night, when i-th frame difference is gray scale difference, because night camera lens and daytime camera lens gray difference larger, can arrange first is pre-conditionedly, i-th frame difference is greater than with the ratio of described mean value the predetermined threshold value that is more than or equal to 10.The gray average that the second pre-conditioned gray average being i-th frame difference can symbolize the i-th two field picture is greater than the i-th-1 two field picture is set.
The second, arranges first pre-conditioned and second pre-conditioned based on experience value.
Namely describedly meet one first pre-conditioned when described i-th frame difference and the ratio of described mean value, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary, be specially:
Judge whether described i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, obtains the second judged result;
If described second judged result is yes, then judge whether described i-th frame difference is greater than second and presets empirical value, obtains the 3rd judged result, wherein, described second presets empirical value is less than the described first default empirical value;
If described 3rd judged result is yes, then determine that described i-th two field picture is the boundary image of shot boundary.
Wherein, described predetermined threshold value is the empirical value that technician is known according to previous experiences, in order to effectively pick out the violent boundary image of frame difference change, there will not be again undetected, can arrange described predetermined threshold value be more than or equal to 5 value.
Further, the empirical value that described second default empirical value can be known according to previous experiences for technician, also can be the value calculated by the first empirical value, such as: can arrange described second preset empirical value equal described first preset empirical value 12 or 32.
Such as, when i-th frame difference is gray scale difference, j=5, first to preset empirical value be 0.24, and predetermined threshold value is 5, second preset empirical value when being 0.16:
First, the i-th two field picture in acquisition video file and i-th gray scale difference between the i-th-1 two field picture are 0.21;
Because 0.21 be less than first preset empirical value be 0.24, next, the mean value obtaining the gray scale difference from the i-th-5 two field picture to described i-th-1 two field picture between adjacent image is 0.009;
Because i-th gray scale difference 0.21 is greater than 5 times 0.009; Therefore judge whether i-th gray scale difference is greater than second and presets empirical value 0.16 again.
Preset empirical value 0.16 because i-th gray scale difference 0.21 is greater than second, therefore determine that the i-th two field picture is the boundary image of shot boundary.
Specifically, after i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, also can judge whether i-th frame difference is greater than one and is less than the second default empirical value that first presets empirical value, when i-th frame difference is greater than the second default empirical value, just determine that the i-th two field picture is the boundary image of shot boundary, when can avoid that in camera lens, a certain section of video is static, because described mean value is too little, when i-th frame difference is almost all greater than a predetermined threshold value with the ratio of described mean value, the erroneous judgement to shot boundary occurred, the accuracy of further raising shot boundary detector.
In the embodiment of the present application, passing through step S104, determine that described i-th two field picture is after the boundary image of shot boundary, described method also comprises:
Store described i-th frame difference, and upgrade the described first default empirical value with described i-th frame difference.
Specifically, after determining that described i-th two field picture is the boundary image of shot boundary, upgrade described first with described i-th frame difference and preset empirical value, and then promote the accuracy of next time carrying out shot boundary detector.
In the embodiment of the present application, passing through step S104, after determining that described i-th two field picture is the boundary image of shot boundary, described method also comprises:
Store i-th video location of described i-th two field picture in described video file and/or the i-th-1 video location of described i-th-1 two field picture in described video file, and in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture.
In specific implementation process, described i-th two field picture is indicated and/or described i-th-1 two field picture can be: on the progress bar of video file, add boundary marker 201 as shown in Figure 2 to indicate described i-th two field picture and/or described i-th-1 two field picture in described video file, to make when user clicks boundary marker 201, video is switched to described i-th two field picture or described i-th-1 two field picture fast.
Can also be: in the side of video file display interface, the i-th two field picture reduced and/or the i-th-1 two field picture reduced is demonstrated with tabular form, to make when user clicks the i-th two field picture reduced or the i-th-1 two field picture reduced, video is switched to described i-th two field picture or described i-th-1 two field picture fast.
Specifically, after determining that described i-th two field picture is the boundary image of shot boundary, in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture, user can be made to carry out the video tour of jumping based on the boundary image identified fast.
Below in conjunction with Fig. 3, in the information processing method that the present embodiment is provided, determined to the detailed step of shot boundary image is described.
As shown in Figure 3, determine in the present embodiment that the detailed step of shot boundary image comprises:
Step S301, obtains the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture;
Step S302, judges whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result; If described first judged result, for being, performs step S306, if described first judged result is otherwise performs step S303;
Step S303, obtains the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image;
Step S304, judges whether described i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, obtains the second judged result; If described second judged result, for being, performs step S305, if described second judged result is otherwise performs step S309;
Step S305, judges whether described i-th frame difference is greater than second and presets empirical value, obtains the 3rd judged result; If described 3rd judged result, for being, performs step S306, if described first judged result is otherwise performs step S309;
Step S306, determines that described i-th two field picture is the boundary image of shot boundary;
Step S307, stores described i-th frame difference, and upgrades the described first default empirical value with described i-th frame difference;
Step S308, store i-th video location of described i-th two field picture in described video file and/or the i-th-1 video location of described i-th-1 two field picture in described video file, and in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture.
Step S309, temporarily determines that described i-th two field picture is not the boundary image of shot boundary.
In specific implementation process, in the present embodiment, information processing method can be realized by program.
Such as, pre-defined i-th frame difference is Diff (i), first default empirical value is DIFF (E), second default empirical value is M*DIFF (E), the mean value of the frame difference in the i-th-j two field picture to described i-th-1 two field picture between adjacent image is Mean(i, j), predetermined threshold value is N, then the program that realizes is:
On the other hand, based on same inventive concept, the present invention provides a kind of electronic equipment corresponding with the method in embodiment one by another embodiment of the application, detailed in Example two.
Embodiment two:
In embodiment two, provide a kind of electronic equipment, please refer to Fig. 4, Fig. 4 is the structural drawing of the electronic equipment of the embodiment of the present application two, comprising:
First acquisition module 401, for obtaining the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer;
Judge module 402, for judging whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result;
Second acquisition module 403, if be no for described first judged result, then obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1;
Determination module 404, pre-conditioned for meeting one first when described i-th frame difference and the ratio of described mean value, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
In the embodiment of the present application, described determination module 404 comprises:
First judging unit, for judging whether described i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, obtains the second judged result;
Second judging unit, if be yes for described second judged result, then judges whether described i-th frame difference is greater than second and presets empirical value, obtains the 3rd judged result, and wherein, described second presets empirical value is less than the described first default empirical value;
Determining unit, if be yes for described 3rd judged result, then determines that described i-th two field picture is the boundary image of shot boundary.
In the embodiment of the present application, described i-th frame difference is specially i-th the gray scale difference numerical value for characterizing the gray difference between described i-th two field picture and described i-th-1 two field picture, and/or for characterizing i-th aberration numerical value of the tone difference between described i-th two field picture and described i-th-1 two field picture.
In the embodiment of the present application, when described i-th frame difference is described i-th gray scale difference numerical value, described first acquisition module 401 comprises:
First acquiring unit, for the i-th-1 frame grey level histogram of the i-th frame grey level histogram and the i-th-1 two field picture that obtain the i-th two field picture;
First comparing unit, for based on described i-th frame grey level histogram and described i-th-1 frame grey level histogram, calculates described i-th gray scale difference numerical value by histogram comparison algorithm.
In the embodiment of the present application, when described i-th frame difference is described i-th aberration numerical value, described first acquisition module 401 comprises:
Second acquisition unit, for the i-th-1 frame hue histogram of the i-th frame hue histogram and the i-th-1 two field picture that obtain the i-th two field picture;
Second comparing unit, for based on described i-th frame hue histogram and described i-th-1 frame hue histogram, calculates described i-th aberration numerical value by histogram comparison algorithm.
In the embodiment of the present application, described electronic equipment also comprises:
Update module, for storing described i-th frame difference, and upgrades the described first default empirical value with described i-th frame difference.
In the embodiment of the present application, described electronic equipment also comprises:
Indicate module, for storing i-th video location of described i-th two field picture in described video file and/or the i-th-1 video location of described i-th-1 two field picture in described video file, and in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture.
The information processing method provided in the electronic equipment provided in the present embodiment and embodiment one, based on the aspect of two under same inventive concept, detailed description is done to the implementation process of method above, so those skilled in the art can according to the structure of the electronic equipment in aforementioned understanding the present embodiment be described clearly and implementation process, succinct in order to instructions, has just repeated no more at this.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
1, the method that the embodiment of the present application provides and electronic equipment, first i-th the frame difference and first between the i-th two field picture with the i-th-1 two field picture is preset empirical value to compare, when i-th frame difference is less than the first default empirical value, again the mean value of the frame difference between i-th frame difference and adjacent image is before compared, and meet first pre-conditioned at comparative result, and i-th frame difference meet second pre-conditioned time, determine that the i-th two field picture is the boundary image of shot boundary, combine with the feature of current video by the directiveness of empirical value, achieve the technique effect of the accuracy improving shot boundary detector.
2, the method that the embodiment of the present application provides and electronic equipment, after i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, also can judge whether i-th frame difference is greater than one and is less than the second default empirical value that first presets empirical value, when i-th frame difference is greater than the second default empirical value, just determine that the i-th two field picture is the boundary image of shot boundary, when can avoid that in camera lens, a certain section of video is static, because described mean value is too little, when i-th frame difference is almost all greater than a predetermined threshold value with the ratio of described mean value, the erroneous judgement to shot boundary occurred, the accuracy of further raising shot boundary detector.
3, the method that provides of the embodiment of the present application and electronic equipment, after determining that described i-th two field picture is the boundary image of shot boundary, upgrades described first with described i-th frame difference and presets empirical value, and then promote the accuracy of next time carrying out shot boundary detector.
4, the method that provides of the embodiment of the present application and electronic equipment, after determining that described i-th two field picture is the boundary image of shot boundary, in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture, the video tour of jumping can be carried out based on the boundary image identified fast to make user.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Specifically, the computer program instructions that two kinds of information processing methods in the embodiment of the present application are corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk.
For the information processing method that embodiment one provides, when the computer program instructions corresponding with described information processing method in storage medium is read by an electronic equipment or be performed, comprise the steps:
Obtain the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer;
Judge whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result;
If described first judged result is no, then obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1;
When described i-th frame difference and the ratio of described mean value meet one first pre-conditioned, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
Optionally, that store in described storage medium and step: when described i-th frame difference and the ratio of described mean value meet one first pre-conditioned, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
Judge whether described i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, obtains the second judged result;
If described second judged result is yes, then judge whether described i-th frame difference is greater than second and presets empirical value, obtains the 3rd judged result, wherein, described second presets empirical value is less than the described first default empirical value;
If described 3rd judged result is yes, then determine that described i-th two field picture is the boundary image of shot boundary.
Optionally, described i-th frame difference is specially i-th the gray scale difference numerical value for characterizing the gray difference between described i-th two field picture and described i-th-1 two field picture, and/or for characterizing i-th aberration numerical value of the tone difference between described i-th two field picture and described i-th-1 two field picture.
Optionally, when described i-th frame difference is described i-th gray scale difference numerical value, that store in described storage medium and step: i-th frame difference between described acquisition i-th two field picture and the i-th-1 two field picture, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
Obtain the i-th frame grey level histogram of the i-th two field picture and the i-th-1 frame grey level histogram of the i-th-1 two field picture;
Based on described i-th frame grey level histogram and described i-th-1 frame grey level histogram, calculate described i-th gray scale difference numerical value by histogram comparison algorithm.
Optionally, when described i-th frame difference is described i-th aberration numerical value, that store in described storage medium and step: i-th frame difference between described acquisition i-th two field picture and the i-th-1 two field picture, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
Obtain the i-th frame hue histogram of the i-th two field picture and the i-th-1 frame hue histogram of the i-th-1 two field picture;
Based on described i-th frame hue histogram and described i-th-1 frame hue histogram, calculate described i-th aberration numerical value by histogram comparison algorithm.
Optionally, other computer instruction is also stored in described storage medium, these computer instructions with step: determine that described i-th two field picture is the boundary image of shot boundary, being performed after corresponding computer instruction is performed, comprising the steps: when being performed
Store described i-th frame difference, and upgrade the described first default empirical value with described i-th frame difference.
Optionally, other computer instruction is also stored in described storage medium, these computer instructions with step: determine that described i-th two field picture is the boundary image of shot boundary, being performed after corresponding computer instruction is performed, comprising the steps: when being performed
Store i-th video location of described i-th two field picture in described video file and/or the i-th-1 video location of described i-th-1 two field picture in described video file, and in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (14)

1. an information processing method, is applied in electronic equipment, comprises:
Obtain the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer;
Judge whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result;
If described first judged result is no, then obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1;
When described i-th frame difference and the ratio of described mean value meet one first pre-conditioned, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
2. the method for claim 1, it is characterized in that, describedly meet one first pre-conditioned when described i-th frame difference and the ratio of described mean value, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary, be specially:
Judge whether described i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, obtains the second judged result;
If described second judged result is yes, then judge whether described i-th frame difference is greater than second and presets empirical value, obtains the 3rd judged result, wherein, described second presets empirical value is less than the described first default empirical value;
If described 3rd judged result is yes, then determine that described i-th two field picture is the boundary image of shot boundary.
3. the method for claim 1, it is characterized in that, described i-th frame difference is specially i-th the gray scale difference numerical value for characterizing the gray difference between described i-th two field picture and described i-th-1 two field picture, and/or for characterizing i-th aberration numerical value of the tone difference between described i-th two field picture and described i-th-1 two field picture.
4. method as claimed in claim 3, it is characterized in that, when described i-th frame difference is described i-th gray scale difference numerical value, i-th frame difference between described acquisition i-th two field picture and the i-th-1 two field picture, is specially:
Obtain the i-th frame grey level histogram of the i-th two field picture and the i-th-1 frame grey level histogram of the i-th-1 two field picture;
Based on described i-th frame grey level histogram and described i-th-1 frame grey level histogram, calculate described i-th gray scale difference numerical value by histogram comparison algorithm.
5. method as claimed in claim 3, it is characterized in that, when described i-th frame difference is described i-th aberration numerical value, i-th frame difference between described acquisition i-th two field picture and the i-th-1 two field picture, is specially:
Obtain the i-th frame hue histogram of the i-th two field picture and the i-th-1 frame hue histogram of the i-th-1 two field picture;
Based on described i-th frame hue histogram and described i-th-1 frame hue histogram, calculate described i-th aberration numerical value by histogram comparison algorithm.
6. the method as described in as arbitrary in claim 1-5, is characterized in that, described determine that described i-th two field picture is the boundary image of shot boundary after, described method also comprises:
Store described i-th frame difference, and upgrade the described first default empirical value with described i-th frame difference.
7. the method as described in as arbitrary in claim 1-5, is characterized in that, described determine that described i-th two field picture is the boundary image of shot boundary after, described method also comprises:
Store i-th video location of described i-th two field picture in described video file and/or the i-th-1 video location of described i-th-1 two field picture in described video file, and in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture.
8. an electronic equipment, comprising:
First acquisition module, for obtaining the i-th two field picture in video file and i-th frame difference between the i-th-1 two field picture, i be more than or equal to 3 integer;
Judge module, for judging whether described i-th frame difference is greater than first and presets empirical value, obtains the first judged result;
Second acquisition module, if be no for described first judged result, then obtain the mean value of the frame difference from the i-th-j two field picture to described i-th-1 two field picture between adjacent image, j is more than or equal to the integer that 2 are less than or equal to i-1;
Determination module, pre-conditioned for meeting one first when described i-th frame difference and the ratio of described mean value, and described i-th frame difference meet one second pre-conditioned time, determine that described i-th two field picture is the boundary image of shot boundary.
9. electronic equipment as claimed in claim 8, it is characterized in that, described determination module comprises:
First judging unit, for judging whether described i-th frame difference is greater than a predetermined threshold value with the ratio of described mean value, obtains the second judged result;
Second judging unit, if be yes for described second judged result, then judges whether described i-th frame difference is greater than second and presets empirical value, obtains the 3rd judged result, and wherein, described second presets empirical value is less than the described first default empirical value;
Determining unit, if be yes for described 3rd judged result, then determines that described i-th two field picture is the boundary image of shot boundary.
10. electronic equipment as claimed in claim 8, it is characterized in that, described i-th frame difference is specially i-th the gray scale difference numerical value for characterizing the gray difference between described i-th two field picture and described i-th-1 two field picture, and/or for characterizing i-th aberration numerical value of the tone difference between described i-th two field picture and described i-th-1 two field picture.
11. electronic equipments as claimed in claim 10, is characterized in that, when described i-th frame difference is described i-th gray scale difference numerical value, described first acquisition module comprises:
First acquiring unit, for the i-th-1 frame grey level histogram of the i-th frame grey level histogram and the i-th-1 two field picture that obtain the i-th two field picture;
First comparing unit, for based on described i-th frame grey level histogram and described i-th-1 frame grey level histogram, calculates described i-th gray scale difference numerical value by histogram comparison algorithm.
12. electronic equipments as claimed in claim 10, is characterized in that, when described i-th frame difference is described i-th aberration numerical value, described first acquisition module comprises:
Second acquisition unit, for the i-th-1 frame hue histogram of the i-th frame hue histogram and the i-th-1 two field picture that obtain the i-th two field picture;
Second comparing unit, for based on described i-th frame hue histogram and described i-th-1 frame hue histogram, calculates described i-th aberration numerical value by histogram comparison algorithm.
13. as arbitrary in claim 8-12 as described in electronic equipment, it is characterized in that, described electronic equipment also comprises:
Update module, for storing described i-th frame difference, and upgrades the described first default empirical value with described i-th frame difference.
14. as arbitrary in claim 8-12 as described in electronic equipment, it is characterized in that, described electronic equipment also comprises:
Indicate module, for storing i-th video location of described i-th two field picture in described video file and/or the i-th-1 video location of described i-th-1 two field picture in described video file, and in described video file, indicate described i-th two field picture and/or described i-th-1 two field picture.
CN201410141685.1A 2014-04-10 2014-04-10 Information processing method and electronic equipment Pending CN104978731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410141685.1A CN104978731A (en) 2014-04-10 2014-04-10 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410141685.1A CN104978731A (en) 2014-04-10 2014-04-10 Information processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN104978731A true CN104978731A (en) 2015-10-14

Family

ID=54275212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410141685.1A Pending CN104978731A (en) 2014-04-10 2014-04-10 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104978731A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056584A (en) * 2016-05-24 2016-10-26 努比亚技术有限公司 Foreground-background segmenting device and foreground-background segmenting method
CN111062926A (en) * 2019-12-18 2020-04-24 腾讯科技(深圳)有限公司 Video data processing method and device and storage medium
CN113766089A (en) * 2021-09-18 2021-12-07 北京百度网讯科技有限公司 Method and device for detecting video rolling stripes, electronic equipment and storage medium
CN114782284A (en) * 2022-06-17 2022-07-22 广州三七极耀网络科技有限公司 Motion data correction method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6782049B1 (en) * 1999-01-29 2004-08-24 Hewlett-Packard Development Company, L.P. System for selecting a keyframe to represent a video
CN101013444A (en) * 2007-02-13 2007-08-08 华为技术有限公司 Method and apparatus for adaptively generating abstract of football video
CN101719271A (en) * 2009-11-05 2010-06-02 浙江传媒学院 Video shot boundary detection method based on mixed projection function and support vector machine
CN101820006A (en) * 2009-07-20 2010-09-01 湖南共创光伏科技有限公司 High-conversion rate silicon-based unijunction multi-laminate PIN thin-film solar cell and manufacturing method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6782049B1 (en) * 1999-01-29 2004-08-24 Hewlett-Packard Development Company, L.P. System for selecting a keyframe to represent a video
CN101013444A (en) * 2007-02-13 2007-08-08 华为技术有限公司 Method and apparatus for adaptively generating abstract of football video
CN101820006A (en) * 2009-07-20 2010-09-01 湖南共创光伏科技有限公司 High-conversion rate silicon-based unijunction multi-laminate PIN thin-film solar cell and manufacturing method thereof
CN101719271A (en) * 2009-11-05 2010-06-02 浙江传媒学院 Video shot boundary detection method based on mixed projection function and support vector machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张玉静: "一种自适应阈值与固定阈值相结合的镜头边界检测算法", 《中国电力教育》 *
李松斌 等: "一种基于双阈值法改进的镜头边界检测算法", 《微计算机应用》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056584A (en) * 2016-05-24 2016-10-26 努比亚技术有限公司 Foreground-background segmenting device and foreground-background segmenting method
CN106056584B (en) * 2016-05-24 2019-08-02 努比亚技术有限公司 A kind of front and back scape segmenting device and method
CN111062926A (en) * 2019-12-18 2020-04-24 腾讯科技(深圳)有限公司 Video data processing method and device and storage medium
CN111062926B (en) * 2019-12-18 2023-08-22 腾讯科技(深圳)有限公司 Video data processing method, device and storage medium
CN113766089A (en) * 2021-09-18 2021-12-07 北京百度网讯科技有限公司 Method and device for detecting video rolling stripes, electronic equipment and storage medium
CN113766089B (en) * 2021-09-18 2023-08-18 北京百度网讯科技有限公司 Method, device, electronic equipment and storage medium for detecting video scroll bar
CN114782284A (en) * 2022-06-17 2022-07-22 广州三七极耀网络科技有限公司 Motion data correction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11842438B2 (en) Method and terminal device for determining occluded area of virtual object
US10694175B2 (en) Real-time automatic vehicle camera calibration
CN106688013B (en) System and method for attitude estimation
US10474921B2 (en) Tracker assisted image capture
AU2017232186A1 (en) Fast and robust image alignment for burst mode
US20140205141A1 (en) Systems and methods for tracking and detecting a target object
CN111222509B (en) Target detection method and device and electronic equipment
CN110288549B (en) Video repairing method and device and electronic equipment
CN108961183B (en) Image processing method, terminal device and computer-readable storage medium
CN103135903B (en) A kind of chart gallery display method and device
CN104978731A (en) Information processing method and electronic equipment
CN114882321A (en) Deep learning model training method, target object detection method and device
CN112329762A (en) Image processing method, model training method, device, computer device and medium
CN115205925A (en) Expression coefficient determining method and device, electronic equipment and storage medium
CN107330849B (en) Panoramic image splicing method, device, equipment and storage medium
CN113112542A (en) Visual positioning method and device, electronic equipment and storage medium
CN110555861B (en) Optical flow calculation method and device and electronic equipment
CN113344994B (en) Image registration method, device, electronic equipment and storage medium
CN108932703B (en) Picture processing method, picture processing device and terminal equipment
CN110517201A (en) Circulation protects the method, apparatus and electronic equipment of side smothing filtering
EP2669894A1 (en) Method for creating thumbnail images of videos and an electronic device for display thereof
CN104602096A (en) Detecting method and device for video subtitle area
CN106971386B (en) Method and device for judging image integrity and page loading degree and client equipment
CN111382643A (en) Gesture detection method, device, equipment and storage medium
CN114332928A (en) Image segmentation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151014

RJ01 Rejection of invention patent application after publication