CN106657762A - Method and system for generating thumbnail based on dual cameras - Google Patents
Method and system for generating thumbnail based on dual cameras Download PDFInfo
- Publication number
- CN106657762A CN106657762A CN201610874848.6A CN201610874848A CN106657762A CN 106657762 A CN106657762 A CN 106657762A CN 201610874848 A CN201610874848 A CN 201610874848A CN 106657762 A CN106657762 A CN 106657762A
- Authority
- CN
- China
- Prior art keywords
- thumbnail
- camera
- video
- module
- shoots
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8549—Creating video summaries, e.g. movie trailer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a method for generating a thumbnail based on dual cameras, which comprises the steps of starting a first camera to shoot a video, and acquiring a video data frame shot by the first camera; judging whether the video data frame is a key frame or not, if so, starting a second camera to shoot a thumbnail; acquiring the thumbnails shot by the second camera and corresponding timestamps, making the thumbnails and the corresponding timestamps into a thumbnail sequence and a corresponding timestamp sequence, and storing the thumbnail sequence and the corresponding timestamp sequence. The invention further discloses a system for generating a thumbnail based on dual cameras, which comprises an acquisition module, a control module and an operation judgment module, wherein the acquisition module is connected with the control module and the operation judgment module, and the control module is connected with the operation judgment module. The method and the system can generate a corresponding thumbnail sequence in real time by using the existing dual rear-camera configuration and store the generated thumbnail sequences in a video file, so that the thumbnail of each key frame can be generated without depending on a video editing program. The experience degree is greatly improved when a user watches recorded files such as surveillance videos and long videos.
Description
Technical field
The present invention relates to multi-media processing technical field, more particularly to a kind of reduced graph generating method based on dual camera
And system.
Background technology
Current video file recording technology, simply forms a hypertonic sketch map to some key frame in video, preserves
In video file.In the case of program request Internet video, user's fast forward and fast reverse is operated to certain access point of video file stream
When, if the thumbnail of the access point frame of video can be shown in real time, splendid Consumer's Experience can be obtained.To realize that this is real-time
Thumbnail is experienced, and current technology is that video server side uses video editor first to each key frame life of video file
Into correspondence thumbnail, in the buffer stage that program request starts, these thumbnails are sent to client.Due to existing recording technology not
The thumbnail in video corresponding to each key frame can be in real time generated, when the scene of these thumbnails is needed, needs are used and regarded
Frequency edit routine first finds out each key frame to video file, then decodes key frame, then down-sampling generates corresponding breviary
Figure.This way for relying on video editor, it is meant that complexity, and real-time has a greatly reduced quality.
The content of the invention
The present invention provides a kind of reduced graph generating method and system based on dual camera, makes full use of existing double rear shootings
Head configuration, can in real time produce corresponding breviary graphic sequence and be stored in video file, just can give birth to without the need for relying on video editor
Into the thumbnail of each key frame.To files such as program request monitor video, long videos, Consumer's Experience is greatly improved.
The inventive method includes step:
S100 starts the first camera and shoots video, and obtains the video data frame of the first camera shooting;
S200 judges whether the video data frame is key frame, if so, then starts second camera and shoots thumbnail;
S300 obtains thumbnail and the correspondent time that the second camera shoots, make breviary graphic sequence and to correspondence when
Between stab and sequence and preserved.
This programme takes full advantage of the dual camera configuration in existing smart machine, and when shooting video breviary is produced in real time
Figure.Start a camera and shoot video, such as can select high camera of matching somebody with somebody and be used for shooting video, while obtaining what is shot in real time
Video data frame, when key frame is detected, starts immediately the low camera of another pixel and shoots thumbnail, thus regards in shooting
Also thumbnail is generated while frequency in real time.
It is further preferred that also including step:
S001 is arranged and is shot video configuration parameter, thumbnail configuration parameter.
Size, resolution ratio, pattern of shooting etc. can be according to circumstances set before shooting, additionally, user can also arrange video
Shooting duration of video, the quantity of thumbnail etc..System can arrange video duration and number of thumbnails ratio in most ratio of greater inequality, and user also may be used
Ratio value is voluntarily adjusted before shooting.User selects more diversified, and Experience Degree is higher.
It is further preferred that step S200 also includes step:
The first frame that S210 shoots first camera shoots contracting as the first key frame, starting second camera
Sketch map;
S220 judges whether present frame and the shooting interval time of previous keyframe reach predetermined interval value, if so, then sentences
Disconnected present frame is key frame, starts the second camera and shoots thumbnail.
This programme by extracted at equal intervals video data frame as key frame way, it is ensured that thumbnail shoot it is real-time
Property.Traditional way for analyzing judgement frame by frame, operand is larger, and real-time is difficult to ensure, and passes through this scheme then without the need for more
Computing, enhances real-time.
It is further preferred that also including step:
S280 judges the repetitive rate of the thumbnail and previous thumbnail, when the thumbnail and the repetition of previous thumbnail
When rate is higher than default threshold value, then the thumbnail is deleted.
On the basis of such scheme, the thumbnail to having obtained is carried out further preferably this programme, because previous scheme is
Based on decimation in time frame at equal intervals as key frame, if the time that we are arranged is shorter, in fact it could happen that the key frame of selection
Less, the situation for causing the thumbnail for shooting also to be more or less the same can then optimize the selection of thumbnail by this programme to difference, pass through
Relatively the thumbnail judges whether to retain the thumbnail with the repetitive rate of its previous thumbnail.Repetitive rate is high, illustrates that feature becomes
Change less, repetitive rate is low, illustrates that this two hypertonics sketch map has more characteristic change.
It is further preferred that also including step:
The video data frame that first camera for obtaining shoots is carried out Video coding by S250, forms Video coding
Stream;
The Video coding stream is generated video file by S260;
The thumbnail and timestamp are stored in first shooting by S400 at the end of first camera shooting
In the video file that head shoots.
This programme increased to be stored in the thumbnail and correspondent time and shoot in the video for generating, and user's viewing is regarded
During frequency, any time point is dragged to, then corresponding thumbnail can in real time be presented according to the time point.
It is further preferred that also including step:
S010 judges whether the dual camera is located at the same side, if so, then pushes whether open thumbnail systematic function
Whether message, thumbnail is synchronously generated when selecting and judge and shoot video according to user.
Dual camera need to can be realized positioned at homonymy in this programme, increased by one and judged step, intellectual monitoring dual camera
Homonymy whether is located at, provides whether the video that user selects the shooting needs thumbnail again on this basis.
The present invention also provides a kind of thumbnail based on dual camera and generates system, including acquisition module, control module and
Operation judges module;The acquisition module is connected respectively with the control module and operation judges module, and the control module
It is connected with the operation judges module, wherein:
The control module starts the first camera and shoots video, and the acquisition module obtains regarding for the first camera shooting
Frequency Frame;
When the operation judges module judges the video data frame of the acquisition module acquisition for key frame, the control
Module starts second camera and shoots thumbnail;
The acquisition module obtains thumbnail and the correspondent time that the second camera shoots, the operation judges mould
The thumbnail and correspondence time that block obtains the acquisition module makes breviary graphic sequence and correspondent time sequence, and is protected
Deposit.
It is further preferred that also including setup module, generation module;
The setup module is used to arrange the first camera shooting video configuration parameter and second camera shoots thumbnail
Configuration parameter;
The generation module is connected with the operation judges module, wherein:
The video data frame that first camera that the operation judges module obtains the acquisition module shoots enters
Row Video coding, forms Video coding stream;
Video coding stream made by the operation judges module is write the video generation module correspondence of video file
Field.
At the end of first camera shoots, the contracting that the generation module preserves the operation judges module
The thumbnail and the timestamp in sketch map sequence and timestamp sequence is stored in the video that first camera shoots
The corresponding field and mark lengths of file.
The setup module increased in this programme, can allow user voluntarily to arrange camera relevant parameter as needed, such as clap
Take the photograph ratio value of size, the size of each frame or thumbnail, video duration and thumbnail etc..
Also add generation module in this programme in addition, there is provided a kind of video that thumbnail is put into shooting is specifically square
Case, user obtains in real time thumbnail when having shot video and reviewing.
It is further preferred that the operation judges module the first frame for shooting first camera for first used as closing
Key frame, the control module starts the second camera and shoots thumbnail;
The operation judges module judges whether present frame and the shooting interval time of previous keyframe reach predetermined interval
Value, if so, then judges that present frame is key frame, starts the second camera and shoots thumbnail.
Present solution provides a kind of method of quick judgement key frame, the frame for photographing at equal intervals is key frame, another
Camera also can at equal intervals shoot thumbnail, certainly the equally spaced time here be defaulted as an optimum time point, Yong Huke
Adjustment is voluntarily set as needed.Quickly judge key frame to provide safeguard for the captured in real-time of thumbnail.
It is further preferred that also including:
The operation judges module judges the repetitive rate of the thumbnail and previous thumbnail, when the thumbnail with it is previous
When the repetitive rate of thumbnail is higher than default threshold value, then the thumbnail is deleted.
Further the selection of optimization thumbnail, deletes unnecessary thumbnail, reduces committed memory.
The present invention has the beneficial effect that:
(1) this programme makes full use of existing double rear camera configurations, can in real time produce corresponding breviary graphic sequence and be stored in
In video file, without the need for relying on video editor the thumbnail of each key frame can be just generated.The real-time that thumbnail is generated
The files such as height, monitor video, the long video that user records in viewing, Experience Degree is largely increased.
(2) on the basis of existing technology, realization of the invention is simple, feasible.The system combines the dual camera of homonymy
It is capable of achieving the synchronous generation of thumbnail during video capture.Dual camera has risen on intelligent machine, it is only necessary to existing
Videoing skill and dual camera technically add key frame feedback interface, and breviary graphic sequence saving interface, timestamp sequence are preserved
Interface.
(3) user can voluntarily arrange the configuration parameter for shooting video and thumbnail, enhance the autonomous right to choose of user, spirit
Activity is higher.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, without having to pay creative labor, can be obtaining it according to these accompanying drawings
His accompanying drawing.
Fig. 1 is reduced graph generating method first embodiment flow chart of the present invention based on dual camera;
Fig. 2 is reduced graph generating method second embodiment flow chart of the present invention based on dual camera;
Fig. 3 is reduced graph generating method 3rd embodiment flow chart of the present invention based on dual camera;
Fig. 4 is that thumbnail of the present invention based on dual camera generates system first embodiment block diagram;
Fig. 5 is that thumbnail of the present invention based on dual camera generates system second embodiment block diagram;
Fig. 6 is that thumbnail of the present invention based on dual camera generates system 3rd embodiment block diagram;
Fig. 7 is reduced graph generating method fourth embodiment flow chart of the present invention based on dual camera.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into
One step ground is described in detail, it is clear that described embodiment is only present invention some embodiments, rather than the enforcement of whole
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
On the one hand, the invention provides a kind of reduced graph generating method based on dual camera, first embodiment such as Fig. 1 institutes
Show, including step:
S100 starts the first camera and shoots video, and obtains the video data frame of the first camera shooting;
S200 judges whether video data frame is key frame, if so, then starts second camera and shoots thumbnail;
S300 obtains thumbnail and the correspondent time that second camera shoots, and makes breviary graphic sequence and correspondent time
Sequence is simultaneously preserved.
Dual camera is made full use of to realize generating thumbnail in real time, the key point for starting second camera shooting thumbnail exists
In key frame is judged, the judgement of key frame in the present embodiment such as be able to will can be regarded using various determination methods in prior art
First frame of frequency camera lens as key frame, then compare subsequent video two field picture and the characteristics of image of key frame whether there occurs compared with
Big change, gradually judges to obtain subsequent key frame.If it is intended to obtaining higher real-time, it would however also be possible to employ the method for sampling is obtained
Key frame is obtained, so as to start second camera video is shot.When this method is typically by randomly selecting key frame or regulation
Between interval extract key frame or regulation frame number interval extract etc..
After getting the thumbnail and correspondent time of shooting, breviary graphic sequence and timestamp sequence are made, be available for follow-up
Video playback is called or is put into video file.
Preferably, setting steps are increased on above-described embodiment:Arrange and shoot video configuration parameter and thumbnail configuration ginseng
Number.
Before shooting video, we can be adjusted setting to configuration parameter according to actual conditions, and we can arrange shooting
The picture dimension of video, the size of thumbnail, size etc..Can also be by arranging video duration and thumbnail ratio so that after
Continuous to judge that the frame obtained at equal intervals according to the default time is key frame, second camera starts also can be clapped at equal intervals therewith
Take the photograph.
Second embodiment of the inventive method is as shown in Fig. 2 including step:
S100 starts the first camera and shoots video, and obtains the video data frame of the first camera shooting;
The first frame that S210 shoots the first camera shoots breviary as the first key frame, starting second camera
Figure;
S220 judges whether present frame and the shooting interval time of previous keyframe reach predetermined interval value, if so, then sentences
Disconnected present frame is key frame, starts second camera and shoots thumbnail.
S300 obtains thumbnail and the correspondent time that second camera shoots, and makes breviary graphic sequence and correspondent time
Sequence is simultaneously preserved.
The method that the present embodiment has selected the time at equal intervals in the method for judge key frame, the advantage of this method exists
In, real-time is higher, in the judgement of key frame without more algorithm and other operation can quickly obtain, be also not take up compared with
Many internal memories and consumption performance.First camera shoots video, and second camera shoots at equal intervals thumbnail according to key frame, whole
Individual process is very smooth, and real-time is very high.
Preferably, on the basis of above-described embodiment, the process that a thumbnail is increased after step S220 judges step:
Judge thumbnail and previous thumbnail repetitive rate, when thumbnail is higher than default threshold value with the repetitive rate of previous thumbnail, then
Delete thumbnail.The larger repetition of thumbnail can be so avoided, internal memory is also saved.
3rd embodiment of the inventive method, as shown in figure 3, including step:
S100 starts the first camera and shoots video, and obtains the video data frame of the first camera shooting;
S200 judges whether video data frame is key frame, if so, then starts second camera and shoots thumbnail;
The video data frame that the first camera for obtaining shoots is carried out Video coding by S250, forms Video coding stream;
Video coding stream is generated video file by S260;
S300 obtains thumbnail and the correspondent time that second camera shoots, and makes breviary graphic sequence and correspondent time
Sequence is simultaneously preserved.
Thumbnail and timestamp are stored in the video of the first camera shooting by S400 at the end of the shooting of the first camera
In file.
The present embodiment contains breviary map generalization, and the thumbnail and timestamp of acquisition are stored directly in into regarding for shooting
In frequency file, user then can in real time see thumbnail when video is reviewed.With regard to the position for storing, after recording terminates, can
The image sequence that all thumbnails are formed is attached into the last of video file, and changes the relevant field of video file head
Mark the image sequence and its length;The corresponding field that every frame thumbnail and its timestamp can also be stored in into video file is simultaneously
Its length is marked, to facilitate player or network side video server index thumbnail.
Preferably, can increase before video is shot in the above-described embodiments and judge step:Judge dual camera whether position
In the same side, if so, then push and whether open thumbnail systematic function message, when selecting to judge shooting video according to user whether
It is synchronous to generate thumbnail.
If user simply shoots shorter video, thumbnail is then acted on less, therefore user can also select before shooting
Thumbnail is not generated.Also one kind is achieved in that, without choosing whether to enable thumbnail function before shooting, synchronously gives birth to during shooting
Into thumbnail, shooting judges whether to need thumbnail again after terminating to user, if it is desired, then retain thumbnail and to correspondence when
Between;If need not, delete.Even if in the case where user needs thumbnail, can also also allow user to just look at thumbnail, choosing
Selecting property retains which thumbnail etc..
On the other hand, the present invention also provides a kind of thumbnail based on dual camera and generates system, as shown in figure 4, including
Acquisition module 10, control module 20 and operation judges module 30;Acquisition module 10 respectively with control module 20 and operation judges mould
Block 30 is connected, and control module 20 is connected with operation judges module 30, wherein:
Control module 20 starts the first camera and shoots video, and acquisition module 10 obtains the video counts that the first camera shoots
According to frame;
When operation judges module 30 judges the video data frame of the acquisition of acquisition module 10 for key frame, control module 20 is opened
Dynamic second camera shoots thumbnail;
Acquisition module 10 obtains thumbnail and the correspondent time that second camera shoots, and operation judges module 30 will be obtained
The thumbnail and correspondence time that module 10 is obtained makes breviary graphic sequence and correspondent time sequence, and is preserved.
Control module 20 is used for controlling the first camera recorded video and second camera shoots thumbnail;Acquisition module 10
Then it is used for obtaining video data frame and thumbnail of shooting etc., when operation judges module 30 is judged to determine as key by him
Start the shooting of thumbnail, and the thumbnail for obtaining and correspondence time etc. are preserved according to breviary graphic sequence and timestamp sequence.
Second embodiment of present system, as shown in figure 5, on the basis of above-mentioned first embodiment, also including setting
Module 00, generation module 40;Setup module 00 is connected with operation judges module 30, generation module 40 and the phase of operation judges module 30
Connect, wherein:
Setup module 00 is used to arrange shooting video configuration parameter and thumbnail configuration parameter;
The video data frame that the first camera that operation judges module 30 obtains acquisition module 10 shoots carries out video volume
Code, forms Video coding stream;
Video coding stream made by operation judges module 30 is write video generation module 40 corresponding field of video file.
At the end of the first camera shoots, the breviary graphic sequence that generation module 40 preserves operation judges module 30 is timely
Between stab sequence in thumbnail and timestamp be stored in the first camera shooting video file corresponding field and mark lengths.
Setup module 00 is used for arranging shooting picture size, every thumbnail size, screen resolution etc..
The encoding stream that generation module 40 is mainly used to form the coding video frequency data frame of operation judges module 30 generates video,
And the thumbnail that obtains acquisition module 10 and timestamp are stored in the video of shooting.The position aspect of preservation, can own
The image sequence that thumbnail is formed is attached to the last of video file, and changes the relevant field of video file head marking this
Image sequence and its length;The time that user sees directly invokes;Every frame thumbnail and its timestamp can also be stored in
The corresponding field of video file simultaneously marks its length, to facilitate player or network side video server index thumbnail.
3rd embodiment of present system, on the basis of first or second embodiments, operation judges module is at equal intervals
Extracted data frame starts second camera as key frame so as to pass through control module.
Used as the first key frame, control module starts second to the first frame that operation judges module shoots the first camera
Camera shoots thumbnail;
Operation judges module judges whether present frame and the shooting interval time of previous keyframe reach predetermined interval value, if
It is then to judge that present frame is key frame, starts second camera and shoot thumbnail.
The advantage of extracted at equal intervals is that operand is little, shoots that thumbnail real-time is high, it is existing in cluster or other calculations
Method class judges keyframe techniques in real-time than relatively low.
Preferably, operation judges module judges the repetitive rate of thumbnail and previous thumbnail, when thumbnail and previous breviary
When the repetitive rate of figure is higher than default threshold value, then thumbnail is deleted.
Thumbnail to obtaining is further processed, and deletes the thumbnail of redundancy so that being stored in after video file to subtract
Small video file size.
4th embodiment of present system, as shown in fig. 6, including comprising such as lower module:Camera CA1 control modules
100th, the video encoding module 400, dual camera of camera CA2 control modules 200, CA1 records top control module 300, video text
Part generation module 50.Solid arrow is controlling stream direction in figure, and dotted arrow is data flow direction.
Control module during in this embodiment the application power is wanted divide into camera CA1 control modules 100, camera
CA2 control modules 200, dual camera record top control module 300;The operation judges module of Quan Yaozhong is equivalent in this embodiment
The video encoding module 400 of CA1;
The dual camera records top control module 300, according to user instruction, initialization CA1 control modules 100 and CA2 controls
Molding block 200 (including CA1 video recording sizes, CA1 preview sizes, setting of CA2 photo sizes etc.), notifies CA1 control modules 100
To open the preview screen of CA1.User is clicked on after video recording, notifies that camera CA1 control modules 100 start video recording, and is initialized
The video encoding module 400 of CA1.When receiving CA1 video encoding modules 400 and detecting the message of key frame, master control mould is recorded
Block 300 notifies camera CA2 control modules 200 to shoot a hypertonic sketch map.
The CA1 control modules 100 receive the control that dual camera records top control module 300, open preview screen, are receiving
To after the video recording instruction of top control module 300, each frame video source data of collection is sent to CA1 video encoding modules 400.
The CA1 video encoding modules 400 receive each frame video source data from CA1 control modules 100 and are regarded
Frequency is encoded, and generates Video coding stream, and key frame is detected in video source data frame, and real-time informing dual camera records master control
Module 300.Camera CA2 control modules 200 are notified by the latter and shoots a hypertonic sketch map to understand.CA1 video encoding modules 400
The Video coding stream of generation is sent to video file generation module 50.
The CA2 control modules 200 receive the breviary that dual camera records the control shooting given dimensional of top control module 300
Figure photo.The thumbnail photo feedback for generating is recorded into top control module 300 to camera, an interim breviary is preserved by the latter
Graphic sequence and timestamp sequence, send to video file generation module 50 at the end of recording.
The video file generation module 50 will be literary according to video from the Video coding stream of CA1 video encoding modules 400
Part format specification is preserved into the corresponding field of file, at the end of recording, is received and is recorded top control module from dual camera
300 breviary graphic sequence and timestamp sequence, by sequence corresponding field, and the byte number of records series are write.
Each part in reference to the fourth embodiment of said system, further illustrates their job step, i.e. the present invention
4th embodiment of method, as shown in fig. 7, step is:
Dual camera records top control module, according to user instruction, initialization CA1 control modules and CA2 control modules (including
CA1 video recording sizes, CA1 preview sizes, setting of CA2 photo sizes etc.), the preview for notifying CA1 control modules to open CA1 is drawn
Face.User is clicked on after video recording, and dual camera records master control and notifies that camera CA1 control modules start video recording, and initializes CA1's
Video encoding module.
S1, camera CA1 control modules send each frame video source data of collection to CA1 video encoding modules;
S2, CA1 video encoding module detects whether key frame, is then execution step S321, otherwise execution step S31;
When CA1 video encoding modules detect key frame in video source data frame, execution step S321 notifies double shootings
Head records top control module;
S322, camera CA2 control modules are receiving the notice that dual camera recording top control module forwarding comes, and shoot one
Thumbnail;
S323, dual camera top control module preserves thumbnail when each frame thumbnail of CA2 control modules feedback is received
To an interim sequence, and the corresponding timestamp of the thumbnail is recorded to timestamp sequence;
S31, video encoding module carries out Video coding, generates Video coding stream,
S4, sends to video file generation module, according in filespec write video file corresponding field;
S5, to every one-frame video data all through the process of step S1 to S4, until receiving the order that user's video recording terminates;
S6 when recording end order is received, record top control module and send out breviary graphic sequence and timestamp sequence by dual camera
Deliver to video file generation module;
Every frame thumbnail and its timestamp are stored in S7 video files generation module the correspondence of video file according to specification
Field simultaneously marks its length, to facilitate player or network side video server index thumbnail.
It can be seen that on the basis of existing dual camera technology and videoing skill, it is only necessary to add step S321, S322,
S323, S6 and S7 can generate the video recording with thumbnail.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. a kind of reduced graph generating method based on dual camera, it is characterised in that including step:
S100 starts the first camera and shoots video, and obtains the video data frame that first camera shoots;
S200 judges whether the video data frame is key frame, if so, then starts second camera and shoots thumbnail;
S300 obtains thumbnail and the correspondent time that the second camera shoots, and makes breviary graphic sequence and correspondent time
Sequence is simultaneously preserved.
2. the generation method of a kind of thumbnail based on dual camera according to claim 1, it is characterised in that also include
Step:
S001 is arranged and is shot video configuration parameter and take the photograph thumbnail configuration parameter.
3. a kind of generation method of thumbnail based on dual camera according to claim 1, it is characterised in that the step
Rapid S200 also includes step:
The first frame that S210 shoots first camera shoots contracting as the first key frame, starting the second camera
Sketch map;
S220 judges whether present frame and the shooting interval time of previous keyframe reach predetermined interval value, if so, then judges institute
Present frame is stated for key frame, the startup second camera shooting thumbnail.
4. the generation method of a kind of thumbnail based on dual camera according to claim 3, it is characterised in that also include
Step:
S280 judges the thumbnail and previous thumbnail repetitive rate, when the thumbnail and the repetitive rate of the previous thumbnail
During higher than default threshold value, then the thumbnail is deleted.
5. the generation method of a kind of thumbnail based on dual camera according to any one of claim 1-4, its feature
It is, also including step:
The video data frame that first camera for obtaining shoots is carried out Video coding by S250, forms Video coding stream;
The Video coding stream is generated video file by S260;
The thumbnail and the timestamp are stored in first shooting by S400 at the end of first camera shooting
In the video file that head shoots.
6. the generation method of a kind of thumbnail based on dual camera according to claim 1, it is characterised in that also include
Step:
S010 judges whether the dual camera is located at the same side, if so, then pushes and whether opens thumbnail systematic function message,
Whether thumbnail is synchronously generated when selecting and judge and shoot video according to user.
7. a kind of thumbnail based on dual camera generates system, it is characterised in that including acquisition module, control module and operation
Judge module;The acquisition module is connected respectively with the control module and the operation judges module, and the control module
It is connected with the operation judges module, wherein:
The control module starts the first camera and shoots video, and the acquisition module obtains regarding for the first camera shooting
Frequency Frame;
When the operation judges module judges the video data frame of the acquisition module acquisition for key frame, the control module
Start second camera and shoot thumbnail;
The acquisition module obtains the thumbnail and the correspondent time that the second camera shoots, the operation judges mould
The thumbnail and the correspondent time that block obtains the acquisition module makes breviary graphic sequence and correspondent time sequence
Row, and preserved.
8. a kind of thumbnail based on dual camera according to claim 7 generates system, it is characterised in that also including setting
Put module, generation module;
The setup module is used to arrange the first camera shooting video configuration parameter and the second camera shoots contracting
Sketch map configuration parameter;
The generation module is connected with the operation judges module, wherein:
The video data frame that first camera that the operation judges module obtains the acquisition module shoots is regarded
Frequency is encoded, and forms Video coding stream;
The Video coding made by the operation judges module is generated video file by the video generation module;
At the end of first camera shoots, the thumbnail that the generation module preserves the operation judges module
The thumbnail and the timestamp in sequence and the timestamp sequence is stored in the video that first camera shoots
The corresponding field and mark lengths of file.
9. a kind of breviary map generalization system based on dual camera according to claim 7, it is characterised in that
The first frame that the operation judges module shoots first camera is used as the first key frame, the control module
Start the second camera and shoot thumbnail;
The operation judges module judges whether present frame and the shooting interval time of previous keyframe reach predetermined interval value, if
It is then to judge the present frame for key frame, starts the second camera and shoot thumbnail.
10. a kind of breviary map generalization system based on dual camera according to claim 9, it is characterised in that
The operation judges module judges the repetitive rate of the thumbnail and previous thumbnail, when the thumbnail it is previous with described
When the repetitive rate of thumbnail is higher than default threshold value, then the thumbnail is deleted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610874848.6A CN106657762A (en) | 2016-09-30 | 2016-09-30 | Method and system for generating thumbnail based on dual cameras |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610874848.6A CN106657762A (en) | 2016-09-30 | 2016-09-30 | Method and system for generating thumbnail based on dual cameras |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106657762A true CN106657762A (en) | 2017-05-10 |
Family
ID=58854379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610874848.6A Pending CN106657762A (en) | 2016-09-30 | 2016-09-30 | Method and system for generating thumbnail based on dual cameras |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657762A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108124099A (en) * | 2017-12-14 | 2018-06-05 | Tcl移动通信科技(宁波)有限公司 | A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail |
CN108959346A (en) * | 2018-04-12 | 2018-12-07 | 腾讯科技(上海)有限公司 | Determine method, apparatus, medium and the equipment of text file breviary information |
CN109309871A (en) * | 2018-08-07 | 2019-02-05 | 任阿毛 | Key frame movement range detection system |
CN109660864A (en) * | 2018-08-07 | 2019-04-19 | 任阿毛 | Key frame movement range detection method |
CN114073178A (en) * | 2019-07-23 | 2022-02-18 | 株式会社富士 | Data management device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101807199A (en) * | 2010-02-05 | 2010-08-18 | 腾讯科技(深圳)有限公司 | Thumbnail display method and device |
CN103699261A (en) * | 2013-12-19 | 2014-04-02 | 京东方科技集团股份有限公司 | Touch panel and manufacturing method thereof |
US20150084997A1 (en) * | 2013-09-25 | 2015-03-26 | Samsung Electronics Co., Ltd. | Adjusting light emitting pixels |
CN104754223A (en) * | 2015-03-12 | 2015-07-01 | 广东欧珀移动通信有限公司 | Method for generating thumbnail and shooting terminal |
CN105323634A (en) * | 2014-06-27 | 2016-02-10 | Tcl集团股份有限公司 | Method and system for generating thumbnail of video |
-
2016
- 2016-09-30 CN CN201610874848.6A patent/CN106657762A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101807199A (en) * | 2010-02-05 | 2010-08-18 | 腾讯科技(深圳)有限公司 | Thumbnail display method and device |
US20150084997A1 (en) * | 2013-09-25 | 2015-03-26 | Samsung Electronics Co., Ltd. | Adjusting light emitting pixels |
CN103699261A (en) * | 2013-12-19 | 2014-04-02 | 京东方科技集团股份有限公司 | Touch panel and manufacturing method thereof |
CN105323634A (en) * | 2014-06-27 | 2016-02-10 | Tcl集团股份有限公司 | Method and system for generating thumbnail of video |
CN104754223A (en) * | 2015-03-12 | 2015-07-01 | 广东欧珀移动通信有限公司 | Method for generating thumbnail and shooting terminal |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108124099A (en) * | 2017-12-14 | 2018-06-05 | Tcl移动通信科技(宁波)有限公司 | A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail |
CN108959346A (en) * | 2018-04-12 | 2018-12-07 | 腾讯科技(上海)有限公司 | Determine method, apparatus, medium and the equipment of text file breviary information |
CN108959346B (en) * | 2018-04-12 | 2020-11-24 | 腾讯科技(上海)有限公司 | Method, device, medium and equipment for determining text file thumbnail information |
CN109309871A (en) * | 2018-08-07 | 2019-02-05 | 任阿毛 | Key frame movement range detection system |
CN109660864A (en) * | 2018-08-07 | 2019-04-19 | 任阿毛 | Key frame movement range detection method |
CN114073178A (en) * | 2019-07-23 | 2022-02-18 | 株式会社富士 | Data management device |
EP4007479A4 (en) * | 2019-07-23 | 2022-08-03 | Fuji Corporation | Data management device |
US11886701B2 (en) | 2019-07-23 | 2024-01-30 | Fuji Corporation | Data management device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657762A (en) | Method and system for generating thumbnail based on dual cameras | |
US10582149B1 (en) | Preview streaming of video data | |
CN102611865B (en) | Apparatus and method for processing moving image data | |
US9578279B1 (en) | Preview streaming of video data | |
US6842190B1 (en) | Video bit stream extension with supplementary content information to aid in subsequent video processing | |
JP2009171296A (en) | Video network system, and video data management method | |
US7388605B2 (en) | Still image capturing of user-selected portions of image frames | |
JP2011526013A (en) | Image processing | |
JP4881210B2 (en) | Imaging apparatus, image processing apparatus, and control method thereof | |
TW201602922A (en) | Automatic insertion of video into a photo story | |
WO2013056311A1 (en) | Keypoint based keyframe selection | |
WO2014065033A1 (en) | Similar image retrieval device | |
JP6234146B2 (en) | RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND PROGRAM | |
CN205883437U (en) | Video monitoring device | |
WO2015178234A1 (en) | Image search system | |
JP7340720B1 (en) | Electronics | |
JP2003032600A (en) | Image processing unit, index preparing system, index preparing method, recording medium and program | |
JP2009267773A (en) | Video editing device, photographic device, and video-editing method | |
CN108495038B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
US11636683B2 (en) | Precise object segmentation with multi-modal input for realtime video application | |
US20040054721A1 (en) | Visual media viewing system and method | |
JP5070179B2 (en) | Scene similarity determination device, program thereof, and summary video generation system | |
JP2009118040A (en) | Image retrieving device, and image retrieving method | |
Chen et al. | Saliency-context two-stream convnets for action recognition | |
KR101610007B1 (en) | Method for generating video data |
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 | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20191206 |