CN105306961A - Frame extraction method and device - Google Patents

Frame extraction method and device Download PDF

Info

Publication number
CN105306961A
CN105306961A CN201510698751.XA CN201510698751A CN105306961A CN 105306961 A CN105306961 A CN 105306961A CN 201510698751 A CN201510698751 A CN 201510698751A CN 105306961 A CN105306961 A CN 105306961A
Authority
CN
China
Prior art keywords
frame
key
pure color
described detection
detection frame
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.)
Granted
Application number
CN201510698751.XA
Other languages
Chinese (zh)
Other versions
CN105306961B (en
Inventor
吴晓龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201510698751.XA priority Critical patent/CN105306961B/en
Publication of CN105306961A publication Critical patent/CN105306961A/en
Application granted granted Critical
Publication of CN105306961B publication Critical patent/CN105306961B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234381Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a frame extraction method and device. The method comprises the following steps: extracting a detection frame from a preset position of a current video; judging whether the detection frame is a pure color frame; when the detection frame is the pure color frame, re-extracting a different detection frame, and continuing to judge whether the detection frame is the pure color frame; and when detecting that the detection frame is not the pure color frame, judging whether the detection frame, which is not the pure color frame, is the same as other key frames in a key frame database, and if the detection frame is not the same as the other key frames in the key frame database, using the detection frame as the key frame of the current video. The method can be used for selecting the key frame with large information content and better representativeness. Meanwhile, the method is simple and effective, and can be used for quickly selecting the key frame to improve the frame extraction efficiency.

Description

A kind of method and device taking out frame
Technical field
The present invention relates to technical field of video processing, particularly relate to a kind of method and the device of taking out frame.
Background technology
In a strict sense, video plays individual picture frame by frame, utilizes the eye storage characteristic of naked eyes, produces continuous animation illusion to vision; In video file, each picture is a frame, and each frame of video comprises the video snap-shot of image scene, and the summary that can realize video content by browsing key frame picture is browsed and quick position, and therefore, key frame is the important supplementary of video tour.Single key frame picture generally adopts jpeg format, and whole keyframe sequence generally saves as a file directory or boil down to ZIP file.Take out frame, from these pictures, extract individual picture out exactly, from video, extract the representative of a two field picture as this video, as stage photo etc.
Video system can comprise the video frame of extraction video to be used as the ability of key frame.Such as, one group of key frame can be extracted from video thus be video build storyboard (storyboard).Build storyboard by extracted key frame is reproduced as a series of thumbnail image, described a series of thumbnail image provides the visual instruction of video content to spectators.
The method of artificial extraction frame of video takes time and effort.At present, generally from video camera lens, middle or end extracts key frame, but possibly cannot produce the best key frame representing video like this.In addition, the flexibility that key frame possibly cannot provide key-frame extraction is extracted in the arrangement based on camera lens in video from video.
Summary of the invention
The embodiment of the present invention provides a kind of method and the device of taking out frame, can not extract the technical problem of key frame for solving existing extractive technique flexibly.
A kind of method of taking out frame that the embodiment of the present invention provides, comprises the following steps:
Extract at the predeterminated position of current video and detect frame, predeterminated position is the position corresponding with default frame number or the position corresponding with the frame number at the preset ratio place of current video totalframes;
Judge to detect whether frame is pure color frame;
When detection frame is pure color frame, again extract different detection frames, and continue to judge to detect whether frame is pure color frame;
When detection frame is not pure color frame, judge that whether the detection frame not as pure color frame is identical with other key frames in key frame data storehouse, if it is different from other key frames in key frame data storehouse to detect frame, then using detecting frame as the key frame of current video, in key frame data storehouse, store the key frame of other videos.
A kind of method of taking out frame that the embodiment of the present invention provides, by the detection frame that extraction is not pure color frame, choose the detection frame not identical with other key frames in key frame data storehouse as key frame simultaneously, thus can select and contain much information and have more representational key frame.Meanwhile, the method is simply effective, can fast selecting key frame, improves the efficiency of taking out frame.By judging that the size detecting frame determines whether that the method does not need too much computing into pure color frame, being easy to realize on computers, more can improving operation efficiency.
In technique scheme, judge to detect whether frame is pure color frame, comprising:
Determine the size detecting frame;
When the size detecting frame is less than predetermined threshold value, detecting frame is pure color frame;
When the size detecting frame is not less than predetermined threshold value, detecting frame is not pure color frame.
In technique scheme, when detection frame is pure color frame, again extracts different detection frames, comprising:
Plus-minus random number process is carried out to the frame number detecting frame;
Using the present frame corresponding with the frame number after process as the detection frame again extracted.
In technique scheme, using detect frame as current video key frame after, also comprise:
The key frame of current video is stored in key frame data storehouse according to default resolution sizes.
In technique scheme, before judging that whether detection frame is identical with other key frames in key frame data storehouse, also comprise:
Whether the difference between the size judging other key frames detected in the size of frame and key frame data storehouse is less than preset difference value;
When difference is less than preset difference value, performs and judge to detect the frame step whether identical with other key frames in key frame data storehouse.
A kind of method of taking out frame provided in the embodiment of the present invention one, by the detection frame that extraction is not pure color frame, choose the detection frame not identical with other key frames in key frame data storehouse as key frame simultaneously, thus can select and contain much information and have more representational key frame.Meanwhile, the method is simply effective, can fast selecting key frame, improves the efficiency of taking out frame.By judging that the size detecting frame determines whether that the method does not need too much computing into pure color frame, being easy to realize on computers, more can improving operation efficiency.By comparing with the size detecting frame, choosing in key frame data storehouse " other key frames " that be less than preset difference value and comparing with this detection frame, thus decreasing the number of times detecting frame and compare, improving treatment effeciency further.
A kind of device taking out frame that the embodiment of the present invention provides, comprising:
Abstraction module, detect frame for extracting at the predeterminated position of current video, predeterminated position is the position corresponding with default frame number or the position corresponding with the frame number at the preset ratio place of current video totalframes;
For judging, first judge module, detects whether frame is pure color frame;
First processing module, for when detection frame is pure color frame, extracts different detection frames again, and continues to judge to detect whether frame is pure color frame;
Second processing module, for when detection frame is not pure color frame, judge that whether the detection frame not as pure color frame is identical with other key frames in key frame data storehouse, if it is different from other key frames in key frame data storehouse to detect frame, then using detecting frame as the key frame of current video, in key frame data storehouse, store the key frame of other videos.
In technique scheme, the first judge module comprises:
Determining unit, for determining the size detecting frame;
Processing unit, during for being less than predetermined threshold value when the size detecting frame, detecting frame is pure color frame; When the size detecting frame is not less than predetermined threshold value, detecting frame is not pure color frame.
In technique scheme, the first processing module comprises:
Frame number processing unit, for carrying out plus-minus random number process to the frame number detecting frame;
Redefine unit, for using with the corresponding present frame of frame number after process as the detection frame again extracted.
In technique scheme, this device also comprises:
Memory module, for being stored in the key frame of current video in key frame data storehouse according to default resolution sizes.
In technique scheme, this device also comprises:
3rd judge module, for judge other key frames detected in the size of frame and key frame data storehouse size between difference whether be less than preset difference value; When the 3rd judge module determination difference is less than preset difference value, performs and judge to detect the frame step whether identical with other key frames in key frame data storehouse.
A kind of method and the device taking out frame provided in the embodiment of the present invention one, by the detection frame that extraction is not pure color frame, choose the detection frame not identical with other key frames in key frame data storehouse as key frame simultaneously, thus can select and contain much information and have more representational key frame.Meanwhile, the embodiment of the present invention is simply effective, can fast selecting key frame, improves the efficiency of taking out frame.By judging that the size detecting frame determines whether that the method does not need too much computing into pure color frame, being easy to realize on computers, more can improving operation efficiency.By comparing with the size detecting frame, choosing in key frame data storehouse " other key frames " that be less than preset difference value and comparing with this detection frame, thus decreasing the number of times detecting frame and compare, improving treatment effeciency further.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for taking out frame in the embodiment of the present invention;
Fig. 2 determines in the embodiment of the present invention to detect the flow chart whether frame is pure color frame;
Fig. 3 is the flow chart again extracting different detection frames in the embodiment of the present invention;
Fig. 4 be judge other key frames detected in the size of frame and key frame data storehouse in the embodiment of the present invention size between difference whether be less than the flow chart of preset difference value;
Fig. 5 is the method flow diagram taking out frame in the embodiment of the present invention one;
Fig. 6 is the first structure chart taking out frame device in the embodiment of the present invention;
Fig. 7 is the structure chart of the first judge module in the embodiment of the present invention;
Fig. 8 is the structure chart of the first processing module in the embodiment of the present invention;
Fig. 9 is the second structure chart taking out frame device in the embodiment of the present invention;
Figure 10 is the 3rd structure chart taking out frame device in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
See Fig. 1, a kind of flow process of taking out the method for frame that the embodiment of the present invention provides is as follows, specifically comprises step 101-104:
Step 101: extract at the predeterminated position of current video and detect frame.
In embodiments of the present invention, this predeterminated position is the position corresponding with default frame number or the position corresponding with the frame number at the preset ratio place of current video totalframes.
Frame is the single width image frame of least unit in image animation, and a frame is exactly a secondary static picture, and continuous print frame just forms animation, as television image etc.In the embodiment of the present invention, the frame number of a certain frame means this frame figure place in all frames.Such as, current video comprises 240 frames altogether, namely comprises 240 width single width image frames, if a certain frame is the 10th frame of this current video, then the frame number of this frame is 10.
In embodiments of the present invention, when predeterminated position is the position corresponding with default frame number, be about to the frame of video of the position corresponding with default frame number as detecting frame.Such as, current video comprises 240 frames altogether, and current frame number is 10, then using the 10th of current video the frame of video as detection frame.When predeterminated position is the position corresponding with the frame number at the preset ratio place of current video totalframes, then determine to detect frame according to the frame number at the preset ratio place of current video totalframes.Such as, current video comprises 240 frames (namely current video totalframes is 240) altogether, if the preset ratio of current video totalframes is 0.1, then corresponding with this preset ratio frame number is 24, is that the frame of video of 24 is as detection frame by frame number.
Step 102: judge to detect whether frame is pure color frame.
In the embodiment of the present invention, pure color frame is the frame of video of pure color, is the frame of video be only made up of a kind of color.Can by judge to detect similarity between frame and the pure color frame of standard (or the pixel judging to detect a certain color in frame in this detection frame in all pixels shared by ratio), judge whether detection frame is pure color frame.In the embodiment of the present invention, because pure color frame information amount is little, therefore the file size of pure color frame is smaller, and the size therefore by judging to detect frame can be determined to detect whether frame is pure color frame.Concrete, shown in Figure 2, determining step comprises step 201-203:
Step 201, determine to detect the size of frame;
Step 202, when detecting the size of frame and being less than predetermined threshold value, detecting frame is pure color frame;
Step 203, when detecting the size of frame and being not less than predetermined threshold value, detecting frame is not pure color frame.
Step 103: when detection frame is pure color frame, again extract different detection frames, and continue to judge to detect whether frame is pure color frame.
Concrete, when detection frame is pure color frame, illustrates that the detection frame information amount extracted is fewer, be not suitable as the key frame of current video, therefore need again to extract different detection frames, and continue to judge to detect whether frame is pure color frame.
Wherein, in embodiments of the present invention, again extract different detection frames in step 103, as shown in Figure 3, specifically comprise step 301-302:
Step 301, carry out plus-minus random number process to detecting the frame number of frame;
Step 302, using with the corresponding present frame of frame number after process as the detection frame again extracted.
Concrete, when predeterminated position is the position corresponding with default frame number or when predeterminated position is with the position that the frame number at the preset ratio place of current video totalframes is corresponding, all can determine the frame number detecting frame, again other frame of video near this detection frame can be extracted at random by carrying out adding and subtracting random number process to the frame number of this detection frame, and using these other frame of video as the detection frame again extracted.
Step 104: when detection frame is not pure color frame, judge that whether the detection frame not as pure color frame is identical with other key frames in key frame data storehouse, if it is different from other key frames in key frame data storehouse to detect frame, then using detecting frame as the key frame of current video, in key frame data storehouse, store the key frame of other videos.
In the embodiment of the present invention, key frame data storehouse is the database prestoring key frame, and this key frame all stores according to default resolution sizes, and the resolution of the key frame namely in this key frame data storehouse is all identical.Meanwhile, after the key frame determining current video each time, the key frame of current video is stored in key frame data storehouse according to default resolution sizes, chooses the references object of key frame as other videos later.
Because some frame of video of current video is similar even identical with the frame of video of other program video, if this kind of frame of video is that what extract is not the detection frame of pure color frame, then this detection frame is not suitable as the frame of video of current video.In the embodiment of the present invention, whether identical with other key frames in key frame data storehouse by judging the detection frame not as pure color frame, the key frame of repetition can be rejected, thus more representational key frame can be selected.
A kind of method of taking out frame that the embodiment of the present invention provides, by the detection frame that extraction is not pure color frame, choose the detection frame not identical with other key frames in key frame data storehouse as key frame simultaneously, thus can select and contain much information and have more representational key frame.Meanwhile, the method is simply effective, can fast selecting key frame, improves the efficiency of taking out frame.By judging that the size detecting frame determines whether that the method does not need too much computing into pure color frame, being easy to realize on computers, more can improving operation efficiency.
Preferably, shown in Figure 4, before judging that whether detection frame is identical with other key frames in key frame data storehouse, also comprise step 401-402:
Step 401: whether the difference between the size judging other key frames detected in the size of frame and key frame data storehouse is less than preset difference value.
Step 402: when difference is less than preset difference value, performs and judges to detect the frame step whether identical with other key frames in key frame data storehouse.
In embodiments of the present invention, by comparing with the size detecting frame, choosing in key frame data storehouse " other key frames " that be less than preset difference value and comparing with this detection frame, thus decreasing the number of times detecting frame and compare, improving treatment effeciency further.
The flow process that this takes out frame method is introduced in detail below by an embodiment.
Embodiment one
In embodiment one, by judging that detecting the size of frame determines whether it is pure color frame, and whether the difference between the size judging other key frames in the size of detection frame and key frame data storehouse is less than preset difference value, takes out frame process to realize efficiently completing.Concrete, shown in Figure 5, the one that embodiment one provides is taken out frame method and is comprised step 501-508:
Step 501: extract at the predeterminated position of current video and detect frame.
In embodiment one, this predeterminated position is the position corresponding with default frame number or the position corresponding with the frame number at the preset ratio place of current video totalframes.
Step 502: determine the size detecting frame.
Step 503: judge whether the size detecting frame is less than predetermined threshold value, when the size detecting frame is less than predetermined threshold value, continues step 504, otherwise continues step 506.
Step 504: plus-minus random number process is carried out to the frame number detecting frame.
Step 505: using the present frame corresponding with the frame number after process as the detection frame again extracted, and continue step 502.
Step 506: whether the difference between the size judging other key frames detected in the size of frame and key frame data storehouse is less than preset difference value, step 507 is continued when difference is less than preset difference value, otherwise other key frames redefined in key frame data storehouse, and continue step 506.
Step 507: judge that whether the detection frame not as pure color frame is identical with other key frames in key frame data storehouse, when different from other key frames, continues step 508, otherwise continues step 504.
Step 508: will the key frame of frame as current video be detected, and the key frame of current video is stored in key frame data storehouse according to default resolution sizes.
A kind of method of taking out frame provided in the embodiment of the present invention one, by the detection frame that extraction is not pure color frame, choose the detection frame not identical with other key frames in key frame data storehouse as key frame simultaneously, thus can select and contain much information and have more representational key frame.Meanwhile, the method is simply effective, can fast selecting key frame, improves the efficiency of taking out frame.By judging that the size detecting frame determines whether that the method does not need too much computing into pure color frame, being easy to realize on computers, more can improving operation efficiency.By comparing with the size detecting frame, choosing in key frame data storehouse " other key frames " that be less than preset difference value and comparing with this detection frame, thus decreasing the number of times detecting frame and compare, improving treatment effeciency further.
More than describe the flow process that this takes out frame method in detail, the method also can be realized by corresponding device, introduces the 26S Proteasome Structure and Function of this device below in detail.
Based on same inventive concept, the embodiment of the present invention also provides a kind of device taking out frame, shown in Figure 6, and this device comprises:
Abstraction module 61, detect frame for extracting at the predeterminated position of current video, predeterminated position is the position corresponding with default frame number or the position corresponding with the frame number at the preset ratio place of current video totalframes;
For judging, first judge module 62, detects whether frame is pure color frame;
First processing module 63, for when detection frame is pure color frame, extracts different detection frames again, and continues to judge to detect whether frame is pure color frame;
Second processing module 64, for when detection frame is not pure color frame, judge that whether the detection frame not as pure color frame is identical with other key frames in key frame data storehouse, if it is different from other key frames in key frame data storehouse to detect frame, then using detecting frame as the key frame of current video, in key frame data storehouse, store the key frame of other videos.
Preferably, shown in Figure 7, the first judge module 62 comprises:
Determining unit 621, for determining the size detecting frame;
Processing unit 622, during for being less than predetermined threshold value when the size detecting frame, detecting frame is pure color frame; When the size detecting frame is not less than predetermined threshold value, detecting frame is not pure color frame.
Preferably, shown in Figure 8, the first processing module 63 comprises:
Frame number processing unit 631, for carrying out plus-minus random number process to the frame number detecting frame;
Redefine unit 632, for using with the corresponding present frame of frame number after process as the detection frame again extracted.
Preferably, shown in Figure 9, this device also comprises:
Memory module 65, for being stored in the key frame of current video in key frame data storehouse according to default resolution sizes.
Preferably, shown in Figure 10, this device also comprises:
3rd judge module 66, for judge other key frames detected in the size of frame and key frame data storehouse size between difference whether be less than preset difference value; When the 3rd judge module determination difference is less than preset difference value, performs and judge to detect the frame step whether identical with other key frames in key frame data storehouse.
A kind of method and the device taking out frame provided in the embodiment of the present invention one, by the detection frame that extraction is not pure color frame, choose the detection frame not identical with other key frames in key frame data storehouse as key frame simultaneously, thus can select and contain much information and have more representational key frame.Meanwhile, the embodiment of the present invention is simply effective, can fast selecting key frame, improves the efficiency of taking out frame.By judging that the size detecting frame determines whether that the method does not need too much computing into pure color frame, being easy to realize on computers, more can improving operation efficiency.By comparing with the size detecting frame, choosing in key frame data storehouse " other key frames " that be less than preset difference value and comparing with this detection frame, thus decreasing the number of times detecting frame and compare, improving treatment effeciency further.
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 disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-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 computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram 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 flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
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 (10)

1. take out a method for frame, it is characterized in that, comprise the following steps:
Extract at the predeterminated position of current video and detect frame, described predeterminated position is the position corresponding with default frame number or the position corresponding with the frame number at the preset ratio place of current video totalframes;
Judge whether described detection frame is pure color frame;
When described detection frame is pure color frame, again extract different detection frames, and continue to judge to detect whether frame is pure color frame;
When detection frame is not pure color frame, judge that whether the detection frame not as pure color frame is identical with other key frames in key frame data storehouse, if described detection frame is different from other key frames in key frame data storehouse, then using the key frame of described detection frame as current video, in described key frame data storehouse, store the key frame of other videos.
2. the method for claim 1, is characterized in that, judges whether described detection frame is pure color frame, comprising:
Determine the size of described detection frame;
When the size of described detection frame is less than predetermined threshold value, described detection frame is pure color frame;
When the size of described detection frame is not less than predetermined threshold value, described detection frame is not pure color frame.
3. method as claimed in claim 1 or 2, is characterized in that, when described detection frame is pure color frame, describedly again extracts different detection frames, comprising:
Plus-minus random number process is carried out to the frame number of described detection frame;
Using the present frame corresponding with the frame number after process as the detection frame again extracted.
4. method as claimed in claim 1 or 2, is characterized in that, using described detection frame as current video key frame after, also comprise:
The key frame of current video is stored in described key frame data storehouse according to default resolution sizes.
5. method as claimed in claim 4, is characterized in that, described judge that whether described detection frame identical with other key frames in key frame data storehouse before, also comprise:
Whether the difference between the size judging other key frames in the size of described detection frame and key frame data storehouse is less than preset difference value;
When described difference is less than preset difference value, perform the described step whether described detection frame is identical with other key frames in key frame data storehouse that judges.
6. take out a device for frame, it is characterized in that, comprising:
Abstraction module, detect frame for extracting at the predeterminated position of current video, described predeterminated position is the position corresponding with default frame number or the position corresponding with the frame number at the preset ratio place of current video totalframes;
First judge module, for judging whether described detection frame is pure color frame;
First processing module, for when described detection frame is pure color frame, extracts different detection frames again, and continues to judge to detect whether frame is pure color frame;
Second processing module, for when detection frame is not pure color frame, judge that whether the described detection frame not as pure color frame is identical with other key frames in key frame data storehouse, if described detection frame is different from other key frames in key frame data storehouse, then using the key frame of described detection frame as current video, in described key frame data storehouse, store the key frame of other videos.
7. device as claimed in claim 6, it is characterized in that, the first judge module comprises:
Determining unit, for determining the size of described detection frame;
Processing unit, for when the size of described detection frame is less than predetermined threshold value, described detection frame is pure color frame; When the size of described detection frame is not less than predetermined threshold value, described detection frame is not pure color frame.
8. device as claimed in claims 6 or 7, it is characterized in that, the first processing module comprises:
Frame number processing unit, for carrying out plus-minus random number process to the frame number of described detection frame;
Redefine unit, for using with the corresponding present frame of frame number after process as the detection frame again extracted.
9. device as claimed in claims 6 or 7, is characterized in that, also comprise:
Memory module, for being stored in the key frame of current video in described key frame data storehouse according to default resolution sizes.
10. device as claimed in claim 9, is characterized in that, also comprise:
3rd judge module, for judge other key frames in the size of described detection frame and key frame data storehouse size between difference whether be less than preset difference value; When the 3rd judge module determines that described difference is less than preset difference value, perform the described step whether described detection frame is identical with other key frames in key frame data storehouse that judges.
CN201510698751.XA 2015-10-23 2015-10-23 A kind of method and device for taking out frame Expired - Fee Related CN105306961B (en)

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 true CN105306961A (en) 2016-02-03
CN105306961B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN110442499A (en) * 2019-07-10 2019-11-12 阿里巴巴集团控股有限公司 Test, the method and apparatus for improving page response performance, terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1461483A (en) * 2001-04-19 2003-12-10 皇家菲利浦电子有限公司 Keyframe-based playback position selection method and system
US20050180730A1 (en) * 2004-02-18 2005-08-18 Samsung Electronics Co., Ltd. Method, medium, and apparatus for summarizing a plurality of frames
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1461483A (en) * 2001-04-19 2003-12-10 皇家菲利浦电子有限公司 Keyframe-based playback position selection method and system
US20050180730A1 (en) * 2004-02-18 2005-08-18 Samsung Electronics Co., Ltd. Method, medium, and apparatus for summarizing a plurality of frames
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

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN110442499A (en) * 2019-07-10 2019-11-12 阿里巴巴集团控股有限公司 Test, the method and apparatus for improving page response performance, terminal device
CN110442499B (en) * 2019-07-10 2023-08-04 创新先进技术有限公司 Method and device for testing and improving page response performance and terminal equipment

Also Published As

Publication number Publication date
CN105306961B (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN106254933B (en) Subtitle extraction method and device
CN107862315B (en) Subtitle extraction method, video searching method, subtitle sharing method and device
CN102469242B (en) Imaging device and imaging method
KR102281184B1 (en) Method and apparatus for calibrating image
US8610758B2 (en) Depth map generation for a video conversion system
US11438510B2 (en) System and method for editing video contents automatically technical field
US9123125B2 (en) Image processing method and associated apparatus
CN110324706B (en) Video cover generation method and device and computer storage medium
US10728510B2 (en) Dynamic chroma key for video background replacement
WO2009156905A1 (en) Image processing
JP2014116009A (en) Display apparatus, and image displaying method thereof
CN107295296B (en) Method and system for selectively storing and recovering monitoring video
CN101420612A (en) Still image compression using moving image techniques
CN105512255A (en) Picture screening method and device and mobile terminal
CN106485653B (en) User terminal and panoramic picture dynamic thumbnail generation method
CN105306961A (en) Frame extraction method and device
CN104580913A (en) Picture continuous shooting method and device
CN111353965A (en) Image restoration method, device, terminal and storage medium
US10924637B2 (en) Playback method, playback device and computer-readable storage medium
RU2669470C1 (en) Device for removing logos and subtitles from video sequences
CN106162222B (en) A kind of method and device of video lens cutting
WO2013087935A1 (en) Method for real-time processing of a video sequence on mobile terminals
WO1999051022A1 (en) Method of selecting key-frames from a video sequence
KR102245349B1 (en) Method and apparatus for extracting color scheme from video
KR20150089598A (en) Apparatus and method for creating summary information, and computer readable medium having computer program recorded therefor

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
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

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

Granted publication date: 20181120

Termination date: 20211023