CN108171189A - A kind of method for video coding, video coding apparatus and electronic equipment - Google Patents
A kind of method for video coding, video coding apparatus and electronic equipment Download PDFInfo
- Publication number
- CN108171189A CN108171189A CN201810009945.8A CN201810009945A CN108171189A CN 108171189 A CN108171189 A CN 108171189A CN 201810009945 A CN201810009945 A CN 201810009945A CN 108171189 A CN108171189 A CN 108171189A
- Authority
- CN
- China
- Prior art keywords
- image
- video
- key frame
- frame
- mentioned
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/49—Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
Abstract
The invention discloses a kind of method for video coding, video coding apparatus, electronic equipment and computer readable storage medium, wherein, which includes:Image identification is carried out to each frame image in video;Result based on image identification clusters each frame image;According to cluster as a result, the image of preset quantity to be encoded to the key frame of the video in every a kind of image;Other images are encoded to by prediction frame based on the key frame, wherein, other images are the image for not being encoded as key frame in the video.The present invention program can flexibly set the position of key frame in video, and user is helped preferably to be positioned when playing video to video.
Description
Technical field
The invention belongs to multimedia technology fields more particularly to a kind of method for video coding, video coding apparatus, electronics to set
Standby and computer readable storage medium.
Background technology
When carrying out Video coding, it will usually the time cycle of encoded key frames (I frames) is preset, according to the week time
The initial time of phase sets the timestamp of several encoded key frames, to by the figure corresponding to the timestamp with encoded key frames
As being encoded to key frame;Other images are then encoded to prediction frame (P frames or B frames) based on key frame.And by regarding
During frequency player plays video, positioning when providing pulling video progress bar to the user usually as locating frame due to key frame is believed
Breath, this will cause user that can only be positioned according to the key frame images of set time point to video.
Invention content
In view of this, it the present invention provides method for video coding, video coding apparatus, electronic equipment and computer-readable deposits
Storage media so that the key frame in video is no longer on set time stamp, helps user when playing video preferably to video
It is positioned.
The first aspect of the present invention provides a kind of method for video coding, and the method for video coding includes:
Image identification is carried out to each frame image in video;
Result based on image identification clusters each frame image;
According to cluster as a result, the image of preset quantity to be encoded to the key frame of the video in every a kind of image;
Other images are encoded to by prediction frame based on the key frame, wherein, other images be the video in not
It is encoded as the image of key frame.
The second aspect of the present invention provides a kind of video coding apparatus, and the video coding apparatus includes:
Recognition unit, for carrying out image identification to each frame image in video;
Cluster cell, for being clustered based on the result that image identifies to each frame image;
Key frame coding unit, for according to cluster as a result, the image of preset quantity is encoded in every a kind of image
Key frame for the video;
It predicts frame coding unit, other images is encoded to prediction frame for being based on the key frame, wherein, it is described other
Image is the image for not being encoded as key frame in the video.
The third aspect of the present invention provides a kind of electronic equipment, the electronic equipment include memory, processor and
It is stored in the computer program that can be run in the memory and on the processor, which is characterized in that the processor is held
The step of as above first aspect the method being realized during the row computer program.
The fourth aspect of the present invention provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Contain computer program, which is characterized in that side described in as above first aspect is realized when the computer program is executed by processor
The step of method.
Therefore in the present invention program, image identification is carried out to each frame image in video first, is then based on figure
As the result of identification clusters each frame image, and according to cluster as a result, by preset quantity in every a kind of image
Image be encoded to key frame, and other images are encoded to by prediction frame based on the key frame, wherein, other images are
The image of key frame is not encoded as in the video source file.The present invention program causes key frame during Video coding not locating
It is stabbed on position in regular time, but the position of key frame can be flexibly set according to the different content that video is showed, helped
User is helped preferably to be positioned when playing video.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the realization flow diagram of method for video coding provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of video coding apparatus provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specifically
The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
Road and the detailed description of method, in case unnecessary details interferes description of the invention.
In order to illustrate the technical solution of the present invention, illustrated below by specific embodiment.
Embodiment one
Fig. 1 shows the realization flow for the method for video coding that the embodiment of the present invention one provides, and details are as follows:
In a step 101, image identification is carried out to each frame image in video;
In embodiments of the present invention, can image identification first be carried out to each frame image in video, to know each frame image
Represented picture material;Optionally, when in video exist include text information image when, can also to each frame image into
Row text identification, to know the content of text represented by each frame image.The object of above-mentioned text identification can be single word,
Can also be the sentence or paragraph of multiple word compositions.Further, the object of above-mentioned text identification can be Chinese, also may be used
Also or can be the text for mixing several spoken and written languages to be English and other spoken and written languages.Further, above-mentioned text
The object of identification can be that handwriting or machine beat word.Specifically, optical character identification may be used in a step 101
(OCR, Optical Character Recognition) technology carries out text identification to each frame image in video.Certainly,
Other text recognition techniques may be used, text identification is carried out to each frame image in video, be not construed as limiting herein.
In a step 102, the result based on image identification clusters above-mentioned each frame image;
In embodiments of the present invention, the result of the image identification based on step 101 clusters above-mentioned each frame image, will
The identical picture frame of result of image identification is as same class;Optionally, the quantity of picture frame included per a kind of image is equal
The not up to preset ratio value of image frames numbers total in video, then it is assumed that using the identical picture frame of result that image identifies as
Of a sort cluster mode excessively refines, and the picture frame that the result for continuing to identify image can be selected similar is as same big
Class.It optionally, can also the knot based on text identification if also having carried out text identification to above-mentioned each frame image in step 101
Fruit obtains the text similarity between each frame image, and text similarity is more than the picture frame of default similarity threshold as same
It is a kind of.It is of course also possible to be clustered otherwise to above-mentioned each frame image, it is not construed as limiting herein.
In step 103, according to cluster as a result, the image of preset quantity is encoded to above-mentioned regard in every a kind of image
The key frame of frequency;
In embodiments of the present invention, above-mentioned preset quantity can be with the picture frame total quantity pass in direct ratio of every a kind of image
System, but should be noted that above-mentioned preset quantity is also to have upper limit threshold.It for example it is assumed that will be each in video in step 102
Frame image clustering is two classes, has 10 frame images in A class images, has 20 frame images in B class images, then by 2 frame figures in A class images
As being used as key frame, using 4 frames as key frame in B class images.The upper limit threshold for assuming above-mentioned preset quantity again is 10, then is
Continuous after an action of the bowels also there are the C class images of 100 frames, also can only be in the C class images using 10 frame images as key frame.Certainly, it is above-mentioned
Preset quantity may be a fixed value, i.e., no matter the picture frame total quantity of such image is how many, will from such image
The picture frame of fixed quantity is not construed as limiting herein as key frame.
At step 104, other images are encoded to by prediction frame based on above-mentioned key frame.
In embodiments of the present invention, by step 103, often there is the image for being encoded as key frame in one kind image
And other images, above-mentioned other images are the image for not being encoded as key frame in above-mentioned video.It then can be in all kinds of images
Other images in all kinds of images are encoded to prediction frame by key frame respectively, and above-mentioned prediction frame includes P frames, and (i.e. forward prediction is compiled
Code frame) and B frames (i.e. bi-directional predictive coding frame).In fact, when carrying out image coding, above-mentioned B frames can also be according to encoded
Good P frames are encoded, and not fully depend directly on key frame.
Optionally, before above-mentioned steps 101, above-mentioned method for video coding further includes:
Receive video source file;
Cache the image sequence in above-mentioned video source file;
Then above-mentioned steps 101 include:
Image identification is carried out to each frame image in above-mentioned image sequence.
Wherein, if electronic equipment is connected to camera, the behaviour of shooting video can be started by camera in electronic equipment
When making, the video source file sent by camera is received.Above-mentioned camera can be the camera that electronic equipment carries, and also may be used
To be the external camera of electronic equipment, it is not construed as limiting herein.Or or pass through the Internet download video source file;
Or it can also be that receiving other electronic equipments passes through bluetooth, infrared or the short distance wireless communication technology (Near Field
Communication, NFC) transmitted by video source file, be not construed as limiting herein.
Optionally, before above-mentioned steps 104, above-mentioned method for video coding further includes:
More than one key frame scramble time stamp is set;
Image corresponding to key frame scramble time stamp above-mentioned in above-mentioned video is encoded to key frame.
In embodiments of the present invention, can on the basis of step 103 encodes key frame according to the result of cluster,
Several key frame scramble time stamps are further set.Above-mentioned key frame scramble time stamp can be carried out with equal time interval
Setting can also be configured with the time interval not waited, is not construed as limiting herein.
Optionally, in order to enable user can faster recognize video content to be expressed, above-mentioned Video coding
Method further includes:
Based on to the image identification as a result, generation label information corresponding with above-mentioned key frame of above-mentioned key frame;
According to the timestamp of above-mentioned key frame, it is associated with above-mentioned label information and above-mentioned video.
In embodiments of the present invention, can according to above-mentioned key frame carry out image identification as a result, generation with above-mentioned pass
The corresponding label information of key frame.It optionally, can also base if also having carried out text identification to key frame in above-mentioned steps 101
Label information corresponding with above-mentioned key frame is generated in the result of text identification, to show the classification of above-mentioned picture frame.
Optionally, in order to enable user can faster recognize video content to be expressed, above-mentioned Video coding
Method further includes:
According to above-mentioned key frame, preview graph corresponding with above-mentioned key frame is generated;
According to the timestamp of above-mentioned key frame, it is associated with above-mentioned preview graph and above-mentioned video.
It in embodiments of the present invention, can be by above-mentioned key frame boil down to thumbnail, as corresponding with above-mentioned key frame
Preview graph, the preview graph can be presented to the user when user plays video by pulling progress bar, to inform that user works as
Image corresponding to preceding progress bar.
In a kind of application scenarios, above-mentioned label information and/or above-mentioned preview graph can be together with key frames and prediction frame
Video file is packaged as, i.e., above-mentioned label information and/or above-mentioned preview graph are integrated in video file;Alternatively, in another kind
In application scenarios, above-mentioned label information and/or above-mentioned preview graph can be stored in another file, such as a configuration file, root
Above-mentioned configuration file is associated with above-mentioned video according to the timestamp of above-mentioned key frame.It is of course also possible to otherwise
Above-mentioned label information and/or above-mentioned preview graph with above-mentioned key frame are associated, are not construed as limiting herein.
Optionally, if the picture frame total quantity that there is a kind of image is excessive, but lead to such image for quantity limits
In then figure can only can also be selected in frame is predicted at random in such image using a certain number of picture frames as key frame
As frame is as target frame, generation label information corresponding with above-mentioned target frame and preview graph, and according to the time of above-mentioned target frame
Stamp associates label information corresponding with above-mentioned target frame and preview graph with above-mentioned video.That is, although these picture frames are not
Key frame is encoded as, but their label information and/or preview graph still can show user when user plays video,
It is more accurate by the relevant information of key frame and the progress of the relevant information of fractional prediction frame when dragging video progress bar for user
True positioning.
Therefore through the embodiment of the present invention, the result identified according to image gathers each frame image in video
After alanysis, selected digital image is encoded to key frame in every a kind of image so that the key frame in video is no longer confined to fixed
Several timestamp positions, but the position of key frame can be flexibly set according to the different content that video is showed, help user
It is preferably positioned when playing video.
It should be understood that the size of the serial number of each step is not meant to the priority of execution sequence, each process in above-described embodiment
Execution sequence should determine that the implementation process without coping with the embodiment of the present invention forms any limit with its function and internal logic
It is fixed.
Embodiment two
Fig. 2 shows the concrete structure block diagram of video coding apparatus provided by Embodiment 2 of the present invention, for convenience of description,
Illustrate only the relevant part of the embodiment of the present invention.The video coding apparatus 2 includes:Recognition unit 21, cluster cell 22 are crucial
Frame coding unit 23, prediction frame coding unit 24.
Wherein, recognition unit 21, for carrying out image identification to each frame image in video;
Cluster cell 22, for being clustered based on the result that image identifies to above-mentioned each frame image;
Key frame coding unit 23, for according to cluster as a result, the image of preset quantity is compiled in every a kind of image
Code is the key frame of above-mentioned video;
Predict frame coding unit 24, other images be encoded to prediction frame for being based on above-mentioned key frame, wherein, it is above-mentioned its
Its image is the image for not being encoded as key frame in above-mentioned video.
Optionally, above-mentioned video coding apparatus 2 further includes:
Receiving unit, for receiving video source file;
Buffer unit, for caching the image sequence in above-mentioned video source file;
Above-mentioned recognition unit 21, specifically for carrying out image identification to each frame image in above-mentioned image sequence.
Optionally, above-mentioned video coding apparatus 2 further includes:
Setting unit, for setting more than one key frame scramble time stamp;
Above-mentioned key frame coding unit 23 is additionally operable to the figure corresponding to by key frame scramble time stamp above-mentioned in above-mentioned video
As being encoded to key frame.
Optionally, above-mentioned video coding apparatus 2 further includes:
First generation unit, for based on to the image identification as a result, generation and above-mentioned key frame pair of above-mentioned key frame
The label information answered;
First associative cell for the timestamp according to above-mentioned key frame, is associated with above-mentioned label information and above-mentioned video.
Optionally, above-mentioned video coding apparatus 2 further includes:
Second generation unit, for according to above-mentioned key frame, generating preview graph corresponding with above-mentioned key frame;
Second associative cell for the timestamp according to above-mentioned key frame, is associated with above-mentioned preview graph and above-mentioned video.
Therefore through the embodiment of the present invention, video coding apparatus according to the result that image identifies to each in video
After frame image carries out cluster analysis, selected digital image is encoded to key frame in every a kind of image so that the key frame in video is not
It is limited to fixed several timestamp positions again, but the position of key frame can be flexibly set according to the different content that video is showed
It puts, user is helped preferably to be positioned when playing video.
Embodiment three
Fig. 3 is the schematic diagram of electronic equipment provided in an embodiment of the present invention.As shown in figure 3, the electronic equipment 3 of the embodiment
Including:Processor 30, memory 31 and it is stored in the calculating that can be run in above-mentioned memory 31 and on above-mentioned processor 30
Machine program 32, such as video coding program.Above-mentioned processor 30 realizes above-mentioned each method when performing above computer program 32
Step in embodiment, such as step 101 shown in FIG. 1 is to 104.Alternatively, above-mentioned processor 30 performs above computer program
The function of each unit in above-mentioned each device embodiment, such as the function of unit 21 to 24 shown in Fig. 2 are realized when 32.
Illustratively, above computer program 32 can be divided into one or more units, said one or multiple
Unit is stored in above-mentioned memory 31, and is performed by above-mentioned processor 30, to complete the present invention.Said one or multiple lists
Member can complete the series of computation machine program instruction section of specific function, which is used to describe above computer journey
Implementation procedure of the sequence 32 in above-mentioned electronic equipment 3.For example, above computer program 32 can be divided into recognition unit, gather
Class unit, key frame coding unit predict frame coding unit, and each unit concrete function is as follows:
Recognition unit, for carrying out image identification to each frame image in video;
Cluster cell, for being clustered based on the result that image identifies to above-mentioned each frame image;
Key frame coding unit, for according to cluster as a result, the image of preset quantity is encoded in every a kind of image
Key frame for above-mentioned video;
It predicts frame coding unit, other images is encoded to prediction frame for being based on above-mentioned key frame, wherein, it is above-mentioned other
Image is the image for not being encoded as key frame in above-mentioned video.
Above-mentioned electronic equipment 3 can be desktop PC, notebook, learning machine, smart mobile phone and cloud server etc.
Computing device.Above-mentioned electronic equipment may include, but be not limited only to, processor 30, memory 31.Those skilled in the art can manage
Solution, Fig. 3 is only the example of electronic equipment 3, does not form the restriction to electronic equipment 3, can be included more or more than illustrating
Few component either combines certain components or different components, such as above-mentioned electronic equipment 3 can also include input and output
Equipment, network access equipment, bus etc..
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
Above-mentioned memory 31 can be the internal storage unit of above-mentioned electronic equipment 3, such as the hard disk of electronic equipment 3 or interior
It deposits.Above-mentioned memory 31 can also be the External memory equipment of above-mentioned electronic equipment 3, such as be equipped on above-mentioned electronic equipment 3
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, above-mentioned memory 31 can also both include the storage inside list of above-mentioned electronic equipment 3
Member also includes External memory equipment.Above-mentioned memory 31 is used to store needed for above computer program and above-mentioned electronic equipment 3
Other programs and data.Above-mentioned memory 31 can be also used for temporarily storing the data that has exported or will export.
Therefore through the embodiment of the present invention, electronic equipment according to the result that image identifies to each frame figure in video
After carrying out cluster analysis, selected digital image is encoded to key frame in every a kind of image so that the key frame in video no longer limits
In fixed several timestamp positions, but the position of key frame can be flexibly set according to the different content that video is showed,
User is helped preferably to be positioned when playing video.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of above device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that each unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Above system
The specific work process of middle unit, module can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/electronic equipment and method, it can be with
It realizes by another way.For example, device described above/electronic equipment embodiment is only schematical, for example, on
The division of module or unit is stated, only a kind of division of logic function can have other dividing mode in actual implementation, such as
Multiple units or component may be combined or can be integrated into another system or some features can be ignored or does not perform.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or the INDIRECT COUPLING of unit or communication connection, can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated module/unit realized in the form of SFU software functional unit and be independent product sale or
In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, above-mentioned meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method..Wherein, above computer program includes computer program code, above computer program
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Readable Jie of above computer
Matter can include:Can carry above computer program code any entity or device, recording medium, USB flash disk, mobile hard disk,
Magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that above-mentioned
The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment modifies or carries out equivalent replacement to which part technical characteristic;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of method for video coding, which is characterized in that the method for video coding includes:
Image identification is carried out to each frame image in video;
Result based on image identification clusters each frame image;
According to cluster as a result, the image of preset quantity to be encoded to the key frame of the video in every a kind of image;
Other images are encoded to by prediction frame based on the key frame, wherein, other images are not compiled in the video
Code is the image of key frame.
2. method for video coding as described in claim 1, which is characterized in that each frame image in video carries out image
Before identification, further include:
Receive video source file;
Cache the image sequence in the video source file;
Each frame image in video carries out image identification, including:
Image identification is carried out to each frame image in described image sequence.
3. method for video coding as described in claim 1, which is characterized in that described to be compiled other images based on the key frame
Before code is prediction frame, further include:
More than one key frame scramble time stamp is set;
Image corresponding to key frame scramble time stamp described in the video is encoded to key frame.
4. method for video coding as described in any one of claims 1 to 3, which is characterized in that the method for video coding also wraps
It includes:
Based on to the image identification as a result, generation label information corresponding with the key frame of the key frame;
According to the timestamp of the key frame, it is associated with the label information and the video.
5. method for video coding as described in any one of claims 1 to 3, which is characterized in that the method for video coding also wraps
It includes:
According to the key frame, preview graph corresponding with the key frame is generated;
According to the timestamp of the key frame, it is associated with the preview graph and the video.
6. a kind of video coding apparatus, which is characterized in that the video coding apparatus includes:
Recognition unit, for carrying out image identification to each frame image in video;
Cluster cell, for being clustered based on the result that image identifies to each frame image;
Key frame coding unit, for according to cluster as a result, the image of preset quantity is encoded to institute in every a kind of image
State the key frame of video;
It predicts frame coding unit, other images is encoded to prediction frame for being based on the key frame, wherein, other images
For the image of key frame is not encoded as in the video.
7. video coding apparatus as claimed in claim 6, which is characterized in that the video coding apparatus further includes:
Receiving unit, for receiving video source file;
Buffer unit, for caching the image sequence in the video source file;
The recognition unit, specifically for carrying out image identification to each frame image in described image sequence.
8. video coding apparatus as claimed in claim 6, which is characterized in that the video coding apparatus further includes:
Setting unit, for setting more than one key frame scramble time stamp;
The key frame coding unit is additionally operable to encode the image corresponding to key frame scramble time stamp described in the video
For key frame.
9. a kind of electronic equipment, including memory, processor and it is stored in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when performing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810009945.8A CN108171189A (en) | 2018-01-05 | 2018-01-05 | A kind of method for video coding, video coding apparatus and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810009945.8A CN108171189A (en) | 2018-01-05 | 2018-01-05 | A kind of method for video coding, video coding apparatus and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108171189A true CN108171189A (en) | 2018-06-15 |
Family
ID=62517519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810009945.8A Pending CN108171189A (en) | 2018-01-05 | 2018-01-05 | A kind of method for video coding, video coding apparatus and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108171189A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108810622A (en) * | 2018-07-09 | 2018-11-13 | 腾讯科技(深圳)有限公司 | Extracting method, device, computer-readable medium and the electronic equipment of video frame |
CN109116718A (en) * | 2018-06-29 | 2019-01-01 | 上海掌门科技有限公司 | The method and apparatus of alarm clock is set |
CN110737669A (en) * | 2019-10-18 | 2020-01-31 | 北京百度网讯科技有限公司 | Data storage method, device, equipment and storage medium |
CN112101196A (en) * | 2020-09-14 | 2020-12-18 | 北京百度网讯科技有限公司 | Data processing method, device, equipment and storage medium |
CN112118494A (en) * | 2019-06-20 | 2020-12-22 | 腾讯科技(深圳)有限公司 | Video data processing method and device and storage medium |
CN112672154A (en) * | 2020-12-15 | 2021-04-16 | 上海信联信息发展股份有限公司 | Live video playing method and device, server and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464893A (en) * | 2008-12-31 | 2009-06-24 | 清华大学 | Method and device for extracting video abstract |
CN103810711A (en) * | 2014-03-03 | 2014-05-21 | 郑州日兴电子科技有限公司 | Keyframe extracting method and system for monitoring system videos |
CN104837031A (en) * | 2015-04-08 | 2015-08-12 | 中国科学院信息工程研究所 | Method for high-speed self-adaptive video keyframe extraction |
-
2018
- 2018-01-05 CN CN201810009945.8A patent/CN108171189A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464893A (en) * | 2008-12-31 | 2009-06-24 | 清华大学 | Method and device for extracting video abstract |
CN103810711A (en) * | 2014-03-03 | 2014-05-21 | 郑州日兴电子科技有限公司 | Keyframe extracting method and system for monitoring system videos |
CN104837031A (en) * | 2015-04-08 | 2015-08-12 | 中国科学院信息工程研究所 | Method for high-speed self-adaptive video keyframe extraction |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109116718A (en) * | 2018-06-29 | 2019-01-01 | 上海掌门科技有限公司 | The method and apparatus of alarm clock is set |
CN108810622A (en) * | 2018-07-09 | 2018-11-13 | 腾讯科技(深圳)有限公司 | Extracting method, device, computer-readable medium and the electronic equipment of video frame |
CN108810622B (en) * | 2018-07-09 | 2020-01-24 | 腾讯科技(深圳)有限公司 | Video frame extraction method and device, computer readable medium and electronic equipment |
US11200426B2 (en) | 2018-07-09 | 2021-12-14 | Tencent Technology (Shenzhen) Company Limited | Video frame extraction method and apparatus, computer-readable medium |
CN112118494A (en) * | 2019-06-20 | 2020-12-22 | 腾讯科技(深圳)有限公司 | Video data processing method and device and storage medium |
CN110737669A (en) * | 2019-10-18 | 2020-01-31 | 北京百度网讯科技有限公司 | Data storage method, device, equipment and storage medium |
CN112101196A (en) * | 2020-09-14 | 2020-12-18 | 北京百度网讯科技有限公司 | Data processing method, device, equipment and storage medium |
CN112101196B (en) * | 2020-09-14 | 2023-08-11 | 北京百度网讯科技有限公司 | Data processing method, device, equipment and storage medium |
CN112672154A (en) * | 2020-12-15 | 2021-04-16 | 上海信联信息发展股份有限公司 | Live video playing method and device, server and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108171189A (en) | A kind of method for video coding, video coding apparatus and electronic equipment | |
CN108170792B (en) | Question and answer guiding method and device based on artificial intelligence and computer equipment | |
US20180247405A1 (en) | Automatic detection and semantic description of lesions using a convolutional neural network | |
US20190026367A1 (en) | Navigating video scenes using cognitive insights | |
CN104735468B (en) | A kind of method and system that image is synthesized to new video based on semantic analysis | |
WO2018105194A1 (en) | Method and system for generating multi-relevant label | |
CN110321958A (en) | Training method, the video similarity of neural network model determine method | |
CN109660823A (en) | Video distribution method, apparatus, electronic equipment and storage medium | |
EP3869385A1 (en) | Method for extracting structural data from image, apparatus and device | |
KR102135477B1 (en) | Method and system for image automatic classification | |
CN112215171B (en) | Target detection method, device, equipment and computer readable storage medium | |
JP2021190095A (en) | Method for identifying video, device, electric apparatus, storage medium, and computer program | |
Hii et al. | Multigap: Multi-pooled inception network with text augmentation for aesthetic prediction of photographs | |
US10956470B2 (en) | Facet-based query refinement based on multiple query interpretations | |
CN110472154A (en) | A kind of resource supplying method, apparatus, electronic equipment and readable storage medium storing program for executing | |
CN110059577B (en) | Pedestrian attribute information extraction method and device | |
CN116303459A (en) | Method and system for processing data table | |
CN107580013A (en) | The method and device of cross-domain request data | |
CN111930805A (en) | Information mining method and computer equipment | |
CN109598250A (en) | Feature extracting method, device, electronic equipment and computer-readable medium | |
CN113221983A (en) | Training method and device for transfer learning model, and image processing method and device | |
JP7309811B2 (en) | Data annotation method, apparatus, electronics and storage medium | |
CN113407254B (en) | Form generation method and device, electronic equipment and storage medium | |
CN107729491B (en) | Method, device and equipment for improving accuracy rate of question answer search | |
CN110019875A (en) | The generation method and device of index file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180615 |