CN105306961B - A kind of method and device for taking out frame - Google Patents
A kind of method and device for taking out frame Download PDFInfo
- Publication number
- CN105306961B CN105306961B CN201510698751.XA CN201510698751A CN105306961B CN 105306961 B CN105306961 B CN 105306961B CN 201510698751 A CN201510698751 A CN 201510698751A CN 105306961 B CN105306961 B CN 105306961B
- Authority
- CN
- China
- Prior art keywords
- frame
- detection
- key
- detection frame
- pure color
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234381—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
Abstract
The invention discloses a kind of method and devices for taking out frame.Wherein, this method includes:Detection frame is extracted in the predeterminated position of current video;Judge whether detection frame is pure color frame;When detection frame is pure color frame, different detection frames is extracted again, and continue to judge whether detection frame is pure color frame;When detection frame is not pure color frame, judge whether not identical as the detection frame of pure color frame and other key frames in key frame data library, if detection frame is different from other key frames in key frame data library, will test key frame of the frame as current video.This method, which can select, to contain much information and more representational key frame.Meanwhile this method is simple and effective, can improve the efficiency for taking out frame with fast selecting key frame.
Description
Technical field
The present invention relates to technical field of video processing more particularly to a kind of method and devices for taking out frame.
Background technique
For in a strict sense, video is to play individual picture frame by frame, using the eye storage characteristic of naked eyes, to vision
Generate continuous animation illusion;For each picture a frame, each video frame includes the video snap-shot of image scene in video file,
The summary browsing and quickly positioning of video content can be realized by browsing key frame picture, and therefore, key frame is video tour
Important auxiliary information.Single key frame picture generally uses jpeg format, and entire keyframe sequence generally saves as a text
One ZIP file of part catalogue or boil down to.Frame is taken out, exactly individual picture is extracted out from these pictures, one is extracted from video
Representative of the frame image as the video, such as it is used as stage photo.
Video system may include extracting the video frame of video for use as the ability of key frame.For example, can be from view
One group of key frame is extracted in frequency to construct storyboard (storyboard) for video.By by extracted key frame
A series of thumbnail image is reproduced as to construct storyboard, a series of thumbnail image provides in video to spectators
The visual instruction held.
The artificial method for extracting video frame takes time and effort.Currently, generally since video camera lens, centre or end
Place extracts key frame, but possibly can not generate the best key frame for representing video in this way.In addition, the arrangement based on camera lens in video
Key frame is extracted from video possibly can not provide the flexibility of key-frame extraction.
Summary of the invention
The embodiment of the present invention provides a kind of method and device for taking out frame, cannot flexibly extract for solving existing extractive technique
The technical issues of key frame.
A kind of method for taking out frame provided in an embodiment of the present invention, includes the following steps:
Current video predeterminated position extract detection frame, predeterminated position be position corresponding with default frame number or with
The corresponding position of frame number at the preset ratio of current video totalframes;
Judge whether detection frame is pure color frame;
When detection frame is pure color frame, different detection frames is extracted again, and continue to judge whether detection frame is pure color frame;
When detection frame is not pure color frame, judge not as other keys in the detection frame of pure color frame and key frame data library
Whether frame is identical, if detection frame is different from other key frames in key frame data library, will test frame as current video
Key frame is stored with the key frame of other videos in key frame data library.
A kind of method for taking out frame provided in an embodiment of the present invention is chosen simultaneously by extracting the not detection frame for pure color frame
With the different detection frame of other key frames in key frame data library as key frame, contain much information so as to selecting and
More representational key frame.Meanwhile this method is simple and effective, can improve the efficiency for taking out frame with fast selecting key frame.It is logical
It crosses and judges that the size of detection frame determines whether that for pure color frame, this method does not need excessive operation, is easy to realize on computers,
Operation efficiency can more be improved.
In the above-mentioned technical solutions, judge whether detection frame is pure color frame, including:
Determine the size of detection frame;
When the size of detection frame is less than preset threshold, detection frame is pure color frame;
When the size of detection frame is not less than preset threshold, detection frame is not pure color frame.
In the above-mentioned technical solutions, when detection frame is pure color frame, different detection frames is extracted again, including:
Plus-minus random number process is carried out to the frame number of detection frame;
Using present frame corresponding with treated frame number as the detection frame extracted again.
In the above-mentioned technical solutions, after will test frame as the key frame of current video, further include:
The key frame of current video is stored in key frame data library according to default resolution sizes.
In the above-mentioned technical solutions, judge other key frames in detection frame and key frame data library it is whether identical it
Before, further include:
Judge whether the difference between the size of detection frame and the size of other key frames in key frame data library is less than
Preset difference value;
When difference is less than preset difference value, execution judge detection frame and other key frames in key frame data library whether phase
Same step.
A kind of method of the pumping frame provided in the embodiment of the present invention one, by extracting the not detection frame for pure color frame, simultaneously
It chooses with the different detection frame of other key frames in key frame data library as key frame, so as to select information content
Big and more representational key frame.Meanwhile this method is simple and effective, can improve the effect for taking out frame with fast selecting key frame
Rate.By judging that the size of detection frame determines whether that, for pure color frame, this method does not need excessive operation, is easy on computers
It realizes, can more improve operation efficiency.It is compared by the size with detection frame, chooses and be less than preset difference value in key frame data library
" other key frames " compared with the detection frame, to reduce the number that detection frame is compared, further increase processing
Efficiency.
A kind of device for taking out frame provided in an embodiment of the present invention, including:
Abstraction module extracts detection frame for the predeterminated position in current video, and predeterminated position is opposite with default frame number
The position or position corresponding with the frame number at the preset ratio of current video totalframes answered;
First judgment module, for judging whether detection frame is pure color frame;
First processing module for extracting different detection frames again when detection frame is pure color frame, and continues judgement inspection
Survey whether frame is pure color frame;
Second processing module, for judging the detection frame and key frame not as pure color frame when detection frame is not pure color frame
Whether other key frames in database are identical, will inspection if detection frame is different from other key frames in key frame data library
Key frame of the frame as current video is surveyed, the key frame of other videos is stored in key frame data library.
In the above-mentioned technical solutions, first judgment module includes:
Determination unit, for determining the size of detection frame;
Processing unit, for when the size of detection frame is less than preset threshold, detection frame to be pure color frame;It is big when detection frame
It is small be not less than preset threshold when, detection frame is not pure color frame.
In the above-mentioned technical solutions, first processing module includes:
Frame number processing unit carries out plus-minus random number process for the frame number to detection frame;
Unit is redefined, for using present frame corresponding with treated frame number as the detection frame extracted again.
In the above-mentioned technical solutions, which further includes:
Memory module, for the key frame of current video to be stored in key frame data library according to default resolution sizes
In.
In the above-mentioned technical solutions, which further includes:
Third judgment module, for judge detection frame size and key frame data library in other key frames size it
Between difference whether be less than preset difference value;When third judgment module determines that difference is less than preset difference value, execution judges detection frame
The whether identical step with other key frames in key frame data library.
The method and device of a kind of pumping frame provided in the embodiment of the present invention one, by extracting the not detection for pure color frame
Frame, while choosing with the different detection frame of other key frames in key frame data library as key frame, so as to choose
It contains much information out and more representational key frame.Meanwhile the embodiment of the present invention is simple and effective, it can be with fast selecting key
Frame improves the efficiency for taking out frame.By judging that the size of detection frame determines whether that, for pure color frame, this method does not need excessive fortune
It calculates, is easy to realize on computers, can more improve operation efficiency.It is compared by the size with detection frame, chooses crucial frame number
It is compared according to " other key frames " that is less than preset difference value in library with the detection frame, to reduce time that detection frame is compared
Number, further increases treatment effeciency.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation
Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart that the method for frame is taken out in the embodiment of the present invention;
Fig. 2 be in the embodiment of the present invention determine detection frame whether be pure color frame flow chart;
Fig. 3 is the flow chart for extracting different detection frames in the embodiment of the present invention again;
Fig. 4 is the size that detection frame is judged in the embodiment of the present invention and the size of other key frames in key frame data library
Between difference whether be less than the flow chart of preset difference value;
Fig. 5 is the method flow diagram that frame is taken out in the embodiment of the present invention one;
Fig. 6 is the first structure figure that frame device is taken out in the embodiment of the present invention;
Fig. 7 is the structure chart of first judgment module in the embodiment of the present invention;
Fig. 8 is the structure chart of first processing module in the embodiment of the present invention;
Fig. 9 is the second structure chart that frame device is taken out in the embodiment of the present invention;
Figure 10 is the third structure chart that frame device is taken out in the embodiment of the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Referring to Fig. 1, a kind of process of method that taking out frame provided in an embodiment of the present invention is as follows, specifically includes step 101-
104:
Step 101:Detection frame is extracted in the predeterminated position of current video.
In embodiments of the present invention, the predeterminated position be position corresponding with default frame number or with the total frame of current video
The corresponding position of frame number at several preset ratios.
Frame is the single width image frame of minimum unit in image animation, and a frame is exactly a secondary static picture, continuous frame
With regard to forming animation, such as television image.In the embodiment of the present invention, the frame number of a certain frame means the position of the frame in all frames
Number.It for example, current video includes 240 frames altogether, that is, include 240 width single width image frames, if a certain frame is the of the current video
10 frames, then the frame number of the frame is 10.
It in embodiments of the present invention, i.e., will be with default frame number when predeterminated position is position corresponding with default frame number
Video frame at corresponding position is as detection frame.For example, current video includes 240 frames altogether, current frame number is 10, then will work as
10th video frame of preceding video is as detection frame.When predeterminated position is the frame number at the preset ratio with current video totalframes
When corresponding position, then detection frame is determined according to the frame number at the preset ratio of current video totalframes.For example, current video
It is default with this if the preset ratio of current video totalframes is 0.1 altogether comprising 240 frames (i.e. current video totalframes is 240)
The corresponding frame number of ratio is 24, i.e., the video frame for being 24 using frame number is as detection frame.
Step 102:Judge whether detection frame is pure color frame.
In the embodiment of the present invention, pure color frame is the video frame of pure color, is only by a kind of video frame that color forms.It can be with
By judging that the similarity between detection frame and the pure color frame of standard (or judges the pixel of a certain color in detection frame in the inspection
Survey ratio shared in all pixels in frame), judge whether detection frame is pure color frame.In the embodiment of the present invention, due to pure color frame
Information content is small, therefore the file size of pure color frame is smaller, therefore by judging whether the size of detection frame can determine detection frame
For pure color frame.Specifically, shown in Figure 2, judgment step includes step 201-203:
Step 201, the size for determining detection frame;
Step 202, when the size of detection frame be less than preset threshold when, detection frame be pure color frame;
Step 203, when the size of detection frame be not less than preset threshold when, detection frame is not pure color frame.
Step 103:When detection frame is pure color frame, different detection frames is extracted again, and continue whether to judge detection frame
For pure color frame.
Specifically, illustrating that the detection frame information content extracted is fewer when detection frame is pure color frame, it is not suitable as current
The key frame of video, therefore need to extract different detection frames again, and continue to judge whether detection frame is pure color frame.
Wherein, in embodiments of the present invention, different detection frames is extracted in step 103 again, as shown in figure 3, specific packet
Include step 301-302:
Step 301 carries out plus-minus random number process to the frame number of detection frame;
Step 302, using present frame corresponding with treated frame number as the detection frame extracted again.
Specifically, when predeterminated position is position corresponding with default frame number or predeterminated position is and current video
When the corresponding position of frame number at the preset ratio of totalframes, the frame number of detection frame can be determined, by the detection frame
Frame number carry out plus-minus random number process and can extract other video frames near the detection frame again at random, and by this other
Video frame is as the detection frame extracted again.
Step 104:When detection frame is not pure color frame, judge not as in the detection frame of pure color frame and key frame data library
Whether other key frames are identical, if detection frame is different from other key frames in key frame data library, will test frame and are used as and work as
The key frame of preceding video is stored with the key frame of other videos in key frame data library.
In the embodiment of the present invention, key frame data library is the database for prestoring key frame, and the key frame is according to pre-
If resolution sizes store, i.e. the resolution ratio of key frame in the key frame data library is all the same.Meanwhile working as in determination each time
After the key frame of preceding video, the key frame of current video is stored in key frame data library according to default resolution sizes,
The references object of key frame is chosen as other later videos.
Since certain video frames of current video are similar or even identical with the video frame of other program videos, if this kind of video
Frame is that is extracted is not the detection frame of pure color frame, then the detection frame is not suitable as the video frame of current video.The present invention is implemented
It is whether identical not as the detection frame of pure color frame and other key frames in key frame data library by judging in example, it can reject
Duplicate key frame, so as to select more representational key frame.
A kind of method for taking out frame provided in an embodiment of the present invention is chosen simultaneously by extracting the not detection frame for pure color frame
With the different detection frame of other key frames in key frame data library as key frame, contain much information so as to selecting and
More representational key frame.Meanwhile this method is simple and effective, can improve the efficiency for taking out frame with fast selecting key frame.It is logical
It crosses and judges that the size of detection frame determines whether that for pure color frame, this method does not need excessive operation, is easy to realize on computers,
Operation efficiency can more be improved.
Preferably, shown in Figure 4, judge other key frames in detection frame and key frame data library it is whether identical it
Before, it further include step 401-402:
Step 401:Judge the difference between the size of detection frame and the size of other key frames in key frame data library
Whether preset difference value is less than.
Step 402:When difference is less than preset difference value, other keys judged in detection frame and key frame data library are executed
The whether identical step of frame.
In embodiments of the present invention, it is compared by the size with detection frame, chooses to be less than in key frame data library and preset
" other key frames " and detection frame of difference compare, to reduce the number that detection frame is compared, further increase
Treatment effeciency.
The process of the pumping frame method is discussed in detail below by one embodiment.
Embodiment one
In example 1, by judging that the size of detection frame determines whether it is pure color frame, and judge the big of detection frame
Whether the small difference between the size of other key frames in key frame data library is less than preset difference value, is efficiently completed with realizing
Take out frame process.Specifically, shown in Figure 5, a kind of pumping frame method that embodiment one provides includes step 501-508:
Step 501:Detection frame is extracted in the predeterminated position of current video.
In example 1, the predeterminated position be position corresponding with default frame number or with current video totalframes
The corresponding position of frame number at preset ratio.
Step 502:Determine the size of detection frame.
Step 503:Judge whether the size of detection frame is less than preset threshold, when the size of detection frame is less than preset threshold
When, continue step 504, otherwise continues step 506.
Step 504:Plus-minus random number process is carried out to the frame number of detection frame.
Step 505:Using present frame corresponding with treated frame number as the detection frame extracted again, and continue step
502。
Step 506:Judge the difference between the size of detection frame and the size of other key frames in key frame data library
Whether it is less than preset difference value, continues step 507 when difference is less than preset difference value, otherwise redefine key frame data library
In other key frames, and continue step 506.
Step 507:Judge it is whether not identical as the detection frame of pure color frame and other key frames in key frame data library, when
When with other key frame differences, continue step 508, otherwise continues step 504.
Step 508:It will test key frame of the frame as current video, and by the key frame of current video according to default resolution
Rate size is stored in key frame data library.
A kind of method of the pumping frame provided in the embodiment of the present invention one, by extracting the not detection frame for pure color frame, simultaneously
It chooses with the different detection frame of other key frames in key frame data library as key frame, so as to select information content
Big and more representational key frame.Meanwhile this method is simple and effective, can improve the effect for taking out frame with fast selecting key frame
Rate.By judging that the size of detection frame determines whether that, for pure color frame, this method does not need excessive operation, is easy on computers
It realizes, can more improve operation efficiency.It is compared by the size with detection frame, chooses and be less than preset difference value in key frame data library
" other key frames " compared with the detection frame, to reduce the number that detection frame is compared, further increase processing
Efficiency.
The process of the pumping frame method is described in detail above, this method can also be realized by corresponding device, below
The structure and function of the device is discussed in detail.
Based on same inventive concept, the embodiment of the present invention also provides a kind of device for taking out frame, shown in Figure 6, the dress
Set including:
Abstraction module 61 extracts detection frame for the predeterminated position in current video, and predeterminated position is and default frame number phase
Corresponding position or position corresponding with the frame number at the preset ratio of current video totalframes;
First judgment module 62, for judging whether detection frame is pure color frame;
First processing module 63, for extracting different detection frames again, and continue to judge when detection frame is pure color frame
Whether detection frame is pure color frame;
Second processing module 64, for when detection frame is not pure color frame, judging not as the detection frame of pure color frame and key
Whether other key frames in frame data library are identical, will if detection frame is different from other key frames in key frame data library
Key frame of the detection frame as current video is stored with the key frame of other videos in key frame data library.
Preferably, shown in Figure 7, first judgment module 62 includes:
Determination unit 621, for determining the size of detection frame;
Processing unit 622, for when the size of detection frame is less than preset threshold, detection frame to be pure color frame;Work as detection frame
Size be not less than preset threshold when, detection frame is not pure color frame.
Preferably, shown in Figure 8, first processing module 63 includes:
Frame number processing unit 631 carries out plus-minus random number process for the frame number to detection frame;
Unit 632 is redefined, for using present frame corresponding with treated frame number as the detection extracted again
Frame.
Preferably, shown in Figure 9, which further includes:
Memory module 65, for the key frame of current video to be stored in key frame data library according to default resolution sizes
In.
Preferably, shown in Figure 10, which further includes:
Third judgment module 66, the size of other key frames in size and key frame data library for judging detection frame
Between difference whether be less than preset difference value;When third judgment module determines that difference is less than preset difference value, judgement detection is executed
The frame step whether identical as other key frames in key frame data library.
The method and device of a kind of pumping frame provided in the embodiment of the present invention one, by extracting the not detection for pure color frame
Frame, while choosing with the different detection frame of other key frames in key frame data library as key frame, so as to choose
It contains much information out and more representational key frame.Meanwhile the embodiment of the present invention is simple and effective, it can be with fast selecting key
Frame improves the efficiency for taking out frame.By judging that the size of detection frame determines whether that, for pure color frame, this method does not need excessive fortune
It calculates, is easy to realize on computers, can more improve operation efficiency.It is compared by the size with detection frame, chooses crucial frame number
It is compared according to " other key frames " that is less than preset difference value in library with the detection frame, to reduce time that detection frame is compared
Number, further increases treatment effeciency.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (6)
1. a kind of method for taking out frame, which is characterized in that include the following steps:
Current video predeterminated position extract detection frame, the predeterminated position be position corresponding with default frame number or with
The corresponding position of frame number at the preset ratio of current video totalframes;
Judge whether the detection frame is pure color frame;
When the detection frame is pure color frame, different detection frames is extracted again, and continue to judge whether detection frame is pure color frame;
When detection frame is not pure color frame, judge be not as the detection frame of pure color frame and other key frames in key frame data library
It is no identical, if the detection frame is different from other key frames in key frame data library, using the detection frame as working as forward sight
The key frame of frequency is stored with the key frame of other videos in the key frame data library;
Judge whether the detection frame is pure color frame, including:
Determine the size of the detection frame;
When the size of the detection frame is less than preset threshold, the detection frame is pure color frame;
When the size of the detection frame is not less than preset threshold, the detection frame is not pure color frame;
After using the detection frame as the key frame of current video, further include:
The key frame of current video is stored in the key frame data library according to default resolution sizes.
2. the method as described in claim 1, which is characterized in that described to extract again not when the detection frame is pure color frame
Same detection frame, including:
Plus-minus random number process is carried out to the frame number of the detection frame;
Using present frame corresponding with treated frame number as the detection frame extracted again.
3. the method as described in claim 1, which is characterized in that in the judgement detection frame and key frame data library
Before whether other key frames are identical, further include:
Judge whether the difference between the size of the detection frame and the size of other key frames in key frame data library is less than
Preset difference value;
When the difference is less than preset difference value, other keys in the judgement detection frame and key frame data library are executed
The whether identical step of frame.
4. a kind of device for taking out frame, which is characterized in that including:
Abstraction module extracts detection frame for the predeterminated position in current video, and the predeterminated position is opposite with default frame number
The position or position corresponding with the frame number at the preset ratio of current video totalframes answered;
First judgment module, for judging whether the detection frame is pure color frame;
First processing module for extracting different detection frames again when the detection frame is pure color frame, and continues judgement inspection
Survey whether frame is pure color frame;
Second processing module, for judging the detection frame and key frame not as pure color frame when detection frame is not pure color frame
Whether other key frames in database are identical, if the detection frame is different from other key frames in key frame data library,
Using the detection frame as the key frame of current video, the key frame of other videos is stored in the key frame data library;
First judgment module includes:
Determination unit, for determining the size of the detection frame;
Processing unit, for when the size of the detection frame is less than preset threshold, the detection frame to be pure color frame;When the inspection
When surveying the size of frame not less than preset threshold, the detection frame is not pure color frame;
Memory module, for the key frame of current video to be stored in the key frame data library according to default resolution sizes
In.
5. device as claimed in claim 4, which is characterized in that first processing module includes:
Frame number processing unit carries out plus-minus random number process for the frame number to the detection frame;
Unit is redefined, for using present frame corresponding with treated frame number as the detection frame extracted again.
6. device as claimed in claim 4, which is characterized in that further include:
Third judgment module, for judge the detection frame size and key frame data library in other key frames size it
Between difference whether be less than preset difference value;When third judgment module determines that the difference is less than preset difference value, sentence described in execution
The detection frame of the breaking step whether identical as other key frames in key frame data library.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510698751.XA CN105306961B (en) | 2015-10-23 | 2015-10-23 | A kind of method and device for taking out frame |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510698751.XA CN105306961B (en) | 2015-10-23 | 2015-10-23 | A kind of method and device for taking out frame |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105306961A CN105306961A (en) | 2016-02-03 |
CN105306961B true CN105306961B (en) | 2018-11-20 |
Family
ID=55203636
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510698751.XA Expired - Fee Related CN105306961B (en) | 2015-10-23 | 2015-10-23 | A kind of method and device for taking out frame |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105306961B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108064448A (en) * | 2016-09-14 | 2018-05-22 | 深圳市柔宇科技有限公司 | A kind of playback equipment and its playback method |
CN110442499B (en) * | 2019-07-10 | 2023-08-04 | 创新先进技术有限公司 | Method and device for testing and improving page response performance and terminal equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1461483A (en) * | 2001-04-19 | 2003-12-10 | 皇家菲利浦电子有限公司 | Keyframe-based playback position selection method and system |
CN1947427A (en) * | 2004-04-08 | 2007-04-11 | 皇家飞利浦电子股份有限公司 | Monochrome frame detection method and corresponding device |
CN101655859A (en) * | 2009-07-10 | 2010-02-24 | 北京大学 | Method for fast removing redundancy key frames and device thereof |
CN104837031A (en) * | 2015-04-08 | 2015-08-12 | 中国科学院信息工程研究所 | Method for high-speed self-adaptive video keyframe extraction |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100590537B1 (en) * | 2004-02-18 | 2006-06-15 | 삼성전자주식회사 | Method and apparatus of summarizing plural pictures |
-
2015
- 2015-10-23 CN CN201510698751.XA patent/CN105306961B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1461483A (en) * | 2001-04-19 | 2003-12-10 | 皇家菲利浦电子有限公司 | Keyframe-based playback position selection method and system |
CN1947427A (en) * | 2004-04-08 | 2007-04-11 | 皇家飞利浦电子股份有限公司 | Monochrome frame detection method and corresponding device |
CN101655859A (en) * | 2009-07-10 | 2010-02-24 | 北京大学 | Method for fast removing redundancy key frames and device thereof |
CN104837031A (en) * | 2015-04-08 | 2015-08-12 | 中国科学院信息工程研究所 | Method for high-speed self-adaptive video keyframe extraction |
Also Published As
Publication number | Publication date |
---|---|
CN105306961A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109803180B (en) | Video preview generation method and device, computer equipment and storage medium | |
US8610758B2 (en) | Depth map generation for a video conversion system | |
US11438510B2 (en) | System and method for editing video contents automatically technical field | |
CN107862315A (en) | Subtitle extraction method, video searching method, captions sharing method and device | |
US20120194506A1 (en) | Director-style based 2d to 3d movie conversion system and method | |
US10271038B2 (en) | Camera with plenoptic lens | |
JP2020115351A (en) | Method and device for generating extrapolation image based on object detection | |
US9531952B2 (en) | Expanding the field of view of photograph | |
WO2017021731A1 (en) | 2d-to-3d video frame conversion | |
CN105306961B (en) | A kind of method and device for taking out frame | |
US10924637B2 (en) | Playback method, playback device and computer-readable storage medium | |
CN106162222B (en) | A kind of method and device of video lens cutting | |
CN106412718A (en) | Rendering method and device for subtitles in 3D space | |
CN115967823A (en) | Video cover generation method and device, electronic equipment and readable medium | |
US20150009227A1 (en) | Color grading preview method and apparatus | |
EP2791778A1 (en) | Method for real-time processing of a video sequence on mobile terminals | |
CN105893578B (en) | A kind of method and device of photo selection | |
Shah et al. | Trajectory based video object manipulation | |
US11581018B2 (en) | Systems and methods for mixing different videos | |
Ren et al. | Constrained sampling for image retargeting | |
KR101826463B1 (en) | Method and apparatus for synchronizing time line of videos | |
CN108305210B (en) | Data processing method, device and storage medium | |
CN104954892A (en) | Method and device for showing video subject content | |
Nguyen et al. | Novel evaluation metrics for seam carving based image retargeting | |
Koçberber et al. | Video retargeting: video saliency and optical flow based hybrid approach |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A frame extraction method and device Effective date of registration: 20210104 Granted publication date: 20181120 Pledgee: Inner Mongolia Huipu Energy Co.,Ltd. Pledgor: WUXI TVMINING MEDIA SCIENCE & TECHNOLOGY Co.,Ltd. Registration number: Y2020990001517 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181120 Termination date: 20211023 |
|
CF01 | Termination of patent right due to non-payment of annual fee |