CN108391163A - Method for processing video frequency and device, electronic equipment, computer readable storage medium - Google Patents

Method for processing video frequency and device, electronic equipment, computer readable storage medium Download PDF

Info

Publication number
CN108391163A
CN108391163A CN201810113009.1A CN201810113009A CN108391163A CN 108391163 A CN108391163 A CN 108391163A CN 201810113009 A CN201810113009 A CN 201810113009A CN 108391163 A CN108391163 A CN 108391163A
Authority
CN
China
Prior art keywords
video
sub
movement sub
electronic equipment
movement
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
CN201810113009.1A
Other languages
Chinese (zh)
Other versions
CN108391163B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810113009.1A priority Critical patent/CN108391163B/en
Publication of CN108391163A publication Critical patent/CN108391163A/en
Application granted granted Critical
Publication of CN108391163B publication Critical patent/CN108391163B/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/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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • G06V20/42Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items of sport video content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/20Movements or behaviour, e.g. gesture recognition
    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Abstract

A kind of method for processing video frequency of the application offer and device, electronic equipment, computer readable storage medium.The method includes:It obtains the multistage comprising moving object in the first video of electronic equipment shooting and moves sub-video, it is started counting up as starting point using final stage movement sub-video and moves the movement sub-video for continuously choosing the first quantity in sub-video from the multistage of acquisition, when playing the first video, the movement sub-video for the first quantity continuously chosen is played with the first frame per second, residual movement sub-video is played with the second frame per second, the first frame per second is less than the second frame per second.By being chosen to the movement sub-video there are moving object in the first video, the movement sub-video after choosing is played according to the first frame per second, it can will move the process of dynamic change and details in sub-video to show, so as to improve the clarity for moving details in video playing.

Description

Method for processing video frequency and device, electronic equipment, computer readable storage medium
Technical field
This application involves technical field of video processing, more particularly to a kind of method for processing video frequency and device, electronic equipment, Computer readable storage medium.
Background technology
With the development of electronic device technology, the shooting function of electronic equipment is more and more abundant, in traditional electronic equipment Shooting function not only can be only used for taking pictures, can be also used for video record with play, can in the mode recorded and played It is broadcast soon with selecting to record soon to broadcast and record slowly slowly, Mutiple Choice can be brought to user.Wherein, recording the function of broadcasting slowly soon would generally tie Resultant motion detection technique makes the diversification of video record mode by being identified to the detection of moving objects in video and can enrich The effect of video playing meets the experience of different user.
However, traditional processing mode broadcast slowly of recording soon is relatively simple, can cause to move details in video playing unintelligible.
Invention content
A kind of method for processing video frequency of the embodiment of the present application offer, device, electronic equipment, computer readable storage medium, can To improve the clarity for moving details in video playing.
A kind of method for processing video frequency, including:
It obtains the multistage comprising moving object in the first video of electronic equipment shooting and moves sub-video;
It starts counting up to move in sub-video from the multistage of the acquisition as starting point using final stage movement sub-video and continuously select Take the movement sub-video of the first quantity;
When playing first video, movement that first quantity continuously chosen is played with the first frame per second regards Frequently, residual movement sub-video is played with the second frame per second, first frame per second is less than second frame per second.
A kind of video process apparatus, including:
Video acquiring module moves son for obtaining the multistage comprising moving object in the first video that electronic equipment is shot Video;
Video chooses module, is transported for being started counting up from the multistage of the acquisition as starting point using final stage movement sub-video The movement sub-video of the first quantity is continuously chosen in mover video;
Video playback module plays the continuously chosen for when playing first video with the first frame per second The movement sub-video of one quantity plays residual movement sub-video with the second frame per second, and first frame per second is less than second frame per second.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor so that the processor executes following steps:
It obtains the multistage comprising moving object in the first video of electronic equipment shooting and moves sub-video;
It starts counting up to move in sub-video from the multistage of the acquisition as starting point using final stage movement sub-video and continuously select Take the movement sub-video of the first quantity;
When playing first video, movement that first quantity continuously chosen is played with the first frame per second regards Frequently, residual movement sub-video is played with the second frame per second, first frame per second is less than second frame per second.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
It obtains the multistage comprising moving object in the first video of electronic equipment shooting and moves sub-video;
It starts counting up to move in sub-video from the multistage of the acquisition as starting point using final stage movement sub-video and continuously select Take the movement sub-video of the first quantity;
When playing first video, movement that first quantity continuously chosen is played with the first frame per second regards Frequently, residual movement sub-video is played with the second frame per second, first frame per second is less than second frame per second.
Above-mentioned method for processing video frequency, device, electronic equipment, computer readable storage medium are clapped by obtaining electronic equipment The multistage comprising moving object moves sub-video in the first video taken the photograph, and is started counting up as starting point using final stage movement sub-video The movement sub-video that the first quantity is continuously chosen in sub-video is moved from the multistage of acquisition, when playing the first video, with first Frame per second plays the movement sub-video for the first quantity continuously chosen, and residual movement sub-video, the first frame per second are played with the second frame per second Less than the second frame per second.By being chosen to the movement sub-video there are moving object in the first video, broadcast according to the first frame per second The movement sub-video after choosing is put, the process of dynamic change and details in sub-video can will be moved and show, so as to To improve the clarity for moving details in video playing.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the internal structure schematic diagram of electronic equipment in one embodiment;
Fig. 2 is the flow chart of method for processing video frequency in one embodiment;
Fig. 3 is the method flow diagram that moving objects in video is detected in one embodiment;
Fig. 4 is the method flow diagram for merging movement sub-video in one embodiment;
Fig. 5 is the method flow diagram for the movement sub-video that the first quantity is chosen in one embodiment;
Fig. 6 is the method flow diagram for entering or exiting motion detection scene in one embodiment;
Fig. 7 is the structure diagram of video process apparatus in one embodiment;
Fig. 8 is the structure diagram of video process apparatus in another embodiment;
Fig. 9 is the schematic diagram of image processing circuit in one embodiment.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe herein various elements, But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.First client and the second client both client, but it is not same visitor Family end.
Fig. 1 is the internal structure schematic diagram of a kind of electronic equipment in one embodiment.The electronic equipment includes passing through system Processor, memory, display and the network interface of bus connection.Wherein, which is used to provide calculating and control ability, Support the operation of entire electronic equipment.Memory for storing data, program, and/or instruction code etc., stored on memory to A few computer program, which can be executed by processor, to realize that is provided in the embodiment of the present application is suitable for The method for processing video frequency of electronic equipment.Memory may include magnetic disc, CD, read-only memory (Read-Only Memory, ROM) non-volatile memory mediums or random access memory (Random-Access-Memory, RAM) etc. such as.For example, storage Device includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system and computer program. The computer program can be performed by processor, for realizing a kind of video processing side that each embodiment of the application is provided Method.Built-in storage in non-volatile memory medium operating system and computer program the running environment of cache is provided. Display can be touch screen, for example be capacitance plate or electrical screen, be used for the interface information of the corresponding application of display foreground process, It may be utilized for the touch operation that detection acts on the display screen, generate corresponding instruction, for example generate video capture instruction Deng.The electronic equipment further includes the network interface connected by system bus, and network interface can be Ethernet card or wireless network Card etc. for being communicated with external electronic equipment, for example can be used for same server and be communicated.
It will be understood by those skilled in the art that structure shown in Fig. 1, is only tied with the relevant part of application scheme The block diagram of structure, does not constitute the restriction for the electronic equipment being applied thereon to application scheme, and specific electronic equipment can be with Including than more or fewer components as shown in the figure, either combining certain components or being arranged with different components.
In one embodiment, provide a kind of method for processing video frequency, be applied to above-mentioned electronic equipment come for example, As shown in Fig. 2, including the following steps:
Step 202, it obtains the multistage comprising moving object in the first video of electronic equipment shooting and moves sub-video.
Electronic equipment can open shooting function by obtaining video capture instruction, and camera can be moved according to electronic equipment Dynamic range carries out video record to the environment or object of surrounding.First video is the picture shot by camera acquisition, according to After picture generates picture frame, electronic equipment can be combined the picture frame of generation according to the sequence that picture acquires, will be each Picture frame is combined into complete video.Moving object in video is obtained by carrying out motion detection to video.Movement inspection Survey is detected to the motion state of object in video, in the case where electronic equipment remains stationary as, in the video of recording Object can be divided into motion state and stationary state.For example, record a people when playing basketball, hoop, basketball court and The flowers, plants and trees of surrounding is at stationary state, and this people to play basketball and basketball are kept in motion, also It is to say, this people to play basketball and basketball are exactly the moving object in the video that electronic equipment is recorded.Electronic equipment can incite somebody to action It records the first video completed and is divided into multiple sub-videos, it, can be by the according to whether there is moving object in the video of recording There are the sub-videos of moving object to be divided into multistage movement sub-video in one video, and moving object can also will be not present in the first video The sub-video of body is divided into non-athletic sub-video.
Specifically, whether electronic equipment can include movement according in video after getting complete first video The first video of object pair divides, after the first video is divided into multistage sub-video, what electronic equipment can be obtained from division Got in multistage sub-video include moving object multistage movement sub-video.For example, first regarding of getting of electronic equipment Frequency can be the video that the people recorded plays basketball, and in this video, can have and multiple fortune such as clap basketball, shoot, receive Action, therefore, the moving object in the first video includes the people to play basketball and basketball, and electronic equipment can be to the video Divided, by containing clap basketball, these athletic performances for shooting and receiving are divided into includes people and basket when clapping basketball People and basketball when ball, shooting, people and basketball these moving objects when receiving multistage movement sub-video, this can also be regarded It is people or the non-athletic sub-video of multistage that basketball remains static that frequency, which divides,.First video is divided into multistage by electronic equipment After sub-video, sub-video can be moved to the multistage in the multistage sub-video after division and extracted.
Step 204, it starts counting up to move in sub-video from the multistage of acquisition as starting point using final stage movement sub-video and connect The continuous movement sub-video for choosing the first quantity.
Final stage, which moves sub-video, to be extracted in complete first video recorded from electronic equipment.Specifically, most Latter section movement sub-video be from division include moving object multistage movement sub-video in, extraction is regarded closest to first Frequency records that section of movement sub-video completed.For example, electronic equipment record the first video in total when it is a length of 5 points 30 seconds, This total duration is that 5 points of 30 seconds first videos are divided into 5 cross-talk videos by electronic equipment, wherein first segment sub-video is fortune Mover video, when it is a length of 1 point 30 seconds, second segment sub-video be non-athletic sub-video, when it is 30 seconds a length of, third cross-talk video be fortune Mover video, when it is a length of 1 point 20 seconds, the 4th cross-talk video be non-athletic sub-video, when it is 40 seconds a length of, the 5th cross-talk video be fortune Mover video, when it is a length of 1 point 30 seconds, therefore, the 5th section of when, a length of 1 point of 30 seconds movement sub-video was exactly final stage movement Video.
First quantity can be user oneself setting, for example, the movement sub-video of the first quantity can be two sections of movements Sub-video.Electronic equipment can be moved using final stage sub-video be starting point start counting up to the multistage of division movement sub-video into Row is chosen, and when the movement sub-video of the first quantity is two sections of movement sub-videos, electronic equipment can move son with final stage Video starts counting up for starting point, continuous to choose two sections of movement sub-videos.For example, the first video of recording is divided by electronic equipment 5 cross-talk videos, wherein first segment is to move sub-video, second segment and the non-athletic sub-video of third section, the 4th section and the 5th section To move sub-video, electronic equipment can move namely the 5th section movement sub-video of sub-video as starting point, even using final stage It is continuous to choose two cross-talk videos, that is, the 5th section of movement sub-video and the 4th section of movement sub-video.
Step 206, when playing the first video, movement that the first quantity continuously chosen is played with the first frame per second regards Frequently, residual movement sub-video is played with the second frame per second, the first frame per second is less than the second frame per second.
Frame per second refers to the measurement for measuring display frame number, can be the frame number of display per second.First frame per second and second Frame per second can be user oneself setting, the video for distinguishing different broadcasting speeds.First frame per second can be less than the second frame per second, For example, the first frame per second can be 120fps, the second frame per second can be 240fps.That is, the movement sub-video played with the first frame per second Broadcasting speed than with the second frame per second play movement sub-video broadcasting speed it is slow.
When playing the first video, electronic equipment can play first continuously chosen according to the broadcasting speed of the first frame per second The movement sub-video of quantity, for the movement sub-video that other are not chosen, electronic equipment can be according to the broadcasting of the second frame per second Speed plays.
The multistage comprising moving object moves sub-video in the first video by obtaining electronic equipment shooting, with last Duan Yundong sub-videos are that starting point starts counting up to move from the multistage of acquisition and continuously chooses movement of the first quantity in sub-video and regard Frequently, when playing the first video, the movement sub-video for the first quantity continuously chosen is played with the first frame per second, is broadcast with the second frame per second Residual movement sub-video is put, the first frame per second is less than the second frame per second.By being regarded to movement there are moving object in the first video Frequency is chosen, and the movement sub-video after choosing is played according to the first frame per second, can will move the mistake of dynamic change in sub-video Journey and details are shown, so as to improve the clarity for moving details in video playing.
As shown in figure 3, in one embodiment, a kind of method for processing video frequency provided can also include being transported in detection video The process of animal body, specific steps include:
Step 302, the instruction of electronic equipment recorded video is obtained.
Electronic equipment can get the instruction that user triggers recorded video by a control on interface, which can To realize recording of the electronic equipment to video.Electronic equipment can start the process of recorded video according to the instruction of acquisition.
Step 304, the first video is recorded according to instruction, and the current frame image of recording and previous frame image is compared It is right.
First video can be one section of complete video, and during electronic equipment recorded video, electronic equipment can be with Picture frame is generated according to the image collected, electronic equipment can be there are one sequencing when acquiring image.Therefore, electric The picture frame that sub- equipment generates can be the multiple orderly picture frames generated according to the sequencing of acquisition image, by generation Multiple orderly picture frames combine in sequence is formed one section of complete video.
The video of recording can be that the orderly picture frame generated combines, and electronic equipment is recording present frame When show that the recording to previous frame image has been completed, electronic equipment can be by upper the one of the current frame image of recording and recording Frame image is compared.Specifically, each object shot in the two field pictures of recording can be compared in electronic equipment, than To mode can compare each pixel in two field pictures.
Step 306, when the picture of current frame image and the picture of previous frame image have differences, include in the first video Moving object.
When including moving object in the first video, show the picture and previous frame of the current frame image that electronic equipment obtains The picture of image is distinct.For example, the picture for the current frame image that electronic equipment obtains is that a people is shooting, basketball arrives The distance of hoop is 20 centimetres of such a picture, and the picture for the previous frame image that electronic equipment obtains be a people The distance of shooting, basketball to hoop is 5 centimetres of a picture, the picture and previous frame of the current frame image that electronic equipment obtains The distance of basketball to hoop is different in the picture of image, shows that in the first video that electronic equipment obtains include moving object Body.
Step 308, it when difference is not present in the picture of current frame image and the picture of previous frame image, is not wrapped in the first video Containing moving object.
Difference is not present with the picture of previous frame image in the picture of current frame image, can refer to the picture of current frame image It is the same with the picture of previous frame image, without any difference.For example, in the case where keeping electronic equipment position constant, Include some flowers, plants and trees of Basket ball basket, basketball and surrounding in the picture for the current frame image that electronic equipment obtains, works as electricity Also include some flowers, plants and trees of Basket ball basket, basketball and surrounding in the picture for the previous frame image that sub- equipment obtains, and Existing position is the same with the picture of electronic equipment current frame image.That is, the picture of current frame image and previous frame image Picture it is the same, when without any difference, moving object is not included in the first video that electronic equipment obtains.
By obtaining the instruction of electronic equipment recorded video, the first video that electronic equipment is recorded is obtained according to instruction, it will The current frame image of recording is compared with previous frame image, and it is poor that the picture of current frame image exists with the picture of previous frame image Different time includes moving object in the first video, when difference is not present with the picture of previous frame image in the picture of current frame image, Moving object is not included in first video.It is compared by the current frame image and previous frame image that are obtained to electronic equipment, It can accurately judge whether in the first video that electronic equipment is recorded include moving object, and then improve video playing Effect.
In one embodiment, a kind of method for processing video frequency provided can also include the process for merging movement sub-video, As shown in figure 4, specific steps include:
Step 402, the first time obtained in the movement sub-video for the first quantity continuously chosen between adjacent two sections is poor Value.
First time difference refer to the first quantity continuously chosen movement sub-video in it is adjacent two sections movement sub-video it Between time difference.It, can also the company of acquisition while the movement sub-video for the first quantity continuously chosen that electronic equipment obtains The time of the start image frame of each movement sub-video of the first continuous quantity, in order to calculate it is adjacent two sections movement sub-video it Between time difference.For example, when the movement sub-video of the first quantity is two sections of movement sub-videos, electronic equipment can obtain successively The time of the start image frame of this two sections movement sub-videos is taken, this two sections move in sub-videos, scheme in first segment movement sub-video As at the beginning of frame for 2 points 30 seconds, the end time be 2 points 45 seconds, second segment moves in sub-video at the beginning of picture frame For 2 points 50 seconds, the end time be 3 points 10 seconds, then two sections movement sub-videos between first time differences be 2 points 45 seconds with 2 points Difference between 50 seconds, i.e., 5 seconds.
Step 404, when first time difference is less than the first duration threshold value, by the corresponding two sections of movements of first time difference Sub-video merges into one section of movement sub-video, and combined movement sub-video is played according to the first frame per second.
When first time difference is less than the first duration threshold value, show that movement continuously chosen that electronic equipment obtains regards Time interval between frequency is too small, and the smaller movement sub-video of this two sections of time intervals can be merged into one section of fortune by electronic equipment Mover video.For example, when the first duration threshold value is set as 5 seconds, calculated two continuously chosen section of electronic equipment move son and regard Frequency can be first segment movement sub-video in picture frame end time be 2 points 46 seconds, second segment move sub-video in picture frame At the beginning of for 2 points 50 seconds, the time differences between this two sections continuous movement sub-videos are 4 seconds, are less than the first duration threshold First segment can be moved sub-video and merge into one section of movement sub-video with second segment movement sub-video by value 5 seconds, electronic equipment.It closes And later, electronic equipment can play the movement sub-video after merging according to the first frame per second.
On the contrary, when first time difference is more than or equal to the first duration threshold value, electronic equipment to continuously acquire the The movement sub-video of one quantity is without any processing, and the first frame per second is still used to be played out according to two sections of movement sub-videos.
When frame per second is 120fps, the motion detection duration of an electronic equipment pair cross-talk video can be greater than or equal to 1s, Here 1s can be between 0.5s to 1.5s there are one the range floated.When frame per second is 240fps, one section of electronic equipment pair The motion detection duration of sub-video should be greater than or equal to 500ms, and the range that 500ms floats there is also one, can be 250ms To between 750ms.When electronic equipment is less than 1s to the motion detection time interval of continuous two cross-talks video, electronic equipment can be with It is a cross-talk video by this two cross-talks video merging.
First time difference in movement sub-video by obtaining the first quantity continuously chosen between adjacent two sections, when When first time difference is less than the first duration threshold value, the corresponding two sections of movements sub-video of first time difference is merged into one section of fortune Mover video, and combined movement sub-video is played according to the first frame per second.Pass through the between adjacent two sections movement sub-videos One time difference, can to avoid adjacent two sections movement sub-video time intervals too short influence result of broadcast the problem of.It will be between the time One section of movement sub-video is merged into every two sections of smaller movement sub-videos to play, and can reduce the power consumption of video processing.
In one embodiment, when first time difference is less than the first duration threshold value, first time difference is corresponding Two sections of movement sub-videos are merged into after one section of movement sub-video, and electronic equipment can also move sub-video with final stage and be Point starts counting up the movement sub-video for being moved from the multistage of acquisition and continuously choosing the first quantity in sub-video.
The movement sub-video for the first quantity that electronic equipment is continuously chosen merges due to existing, the quantity of the sub-video of selection It can change.Electronic equipment can also move sub-video with final stage again after being merged to movement sub-video It is started counting up for starting point, the movement sub-video for continuously choosing the first quantity in sub-video is moved from multistage.For example, the first quantity It is 5 sections of movement sub-videos to move sub-video, when there are between continuous 2 cross-talk video in this 5 sections movement sub-videos of selection When time difference is less than the first duration threshold value, electronic equipment can merge this 2 sections movement sub-videos, after the completion of merging, The 5 cross-talk videos variation that electronic equipment is chosen is 4 cross-talk videos, at this point, electronic equipment can move son with final stage again Video starts counting up for starting point, is moved from multistage and continuously chooses 5 sections of movement sub-videos in sub-video.
As shown in figure 5, in one embodiment, a kind of method for processing video frequency provided can also include choosing the first quantity Movement sub-video process, specific steps include:
Step 502, the second time difference between two sections of movement sub-videos of continuous adjacent is obtained.
Second time difference refers in all sub-videos that the first video divides between two sections of continuous adjacent movement sub-videos Time interval.Electronic equipment can divide video after getting the complete video of recording, obtain multistage and regard Frequently, it may include the movement sub-video containing moving object in these movement sub-videos, can also include containing stationary object Move sub-video.
Electronic equipment can obtain the second time difference between adjacent two sections of movements sub-video, that is to say, that electronics is set Can be two sections of movement sub-videos all it be the movement sub-video for including moving object in the standby two sections of movement sub-videos obtained.
The second time difference that electronic equipment obtains can be continuous two sections in all sub-videos that the first video divides Between being put at the beginning of the end time point and latter section of movement sub-video of the last period movement sub-video in movement sub-video Difference.For example, in continuous two sections of movements sub-video that electronic equipment obtains, the end time that first segment moves sub-video is 4 Points 30 seconds, second segment move at the beginning of sub-video for 4 points 35 seconds, the second time differences between this two sections movement sub-videos It is 5 seconds.
Step 504, when the second time difference is less than the first duration threshold value, by the corresponding two sections of movements of the second time difference Sub-video merges into one section of movement sub-video.
When the second time difference between arbitrary two sections continuous movement sub-videos is less than the first duration threshold value, electronics is set It is standby two sections of movements sub-video corresponding with the second time difference to be merged into one section of movement sub-video.For example, when first When long threshold value is 5 seconds, in continuous two sections of movements sub-video that electronic equipment obtains, the end time of first segment movement sub-video is 4 points 30 seconds, second segment move sub-video at the beginning of for 4 points 34 seconds, this two sections movement sub-videos between the second time differences Value is 4 seconds, is less than the first duration threshold value 5 seconds, and first segment can be moved sub-video and move sub-video with second segment by electronic equipment Merge, becomes one section of new movement sub-video.
Opposite, when the second time difference is more than or equal to the first duration threshold value, electronic equipment is not to the second time The corresponding two sections of movements sub-video of difference does any processing.
Step 506, continuous choose comprising movement is started counting up as starting point using final stage movement sub-video in the first video The movement sub-video of first quantity of object.
May include the movement containing moving object in the multistage sub-video divided by the first video that electronic equipment obtains Sub-video can also include the non-athletic sub-video containing stationary object.When the second time difference is less than the first duration threshold value, Electronic equipment can merge movement sub-video, so that the quantity of movement sub-video can be reduced.
First quantity can be the movement sub-video quantity that the electronic equipment set needs to obtain.Electronic equipment can be with Final stage movement sub-video is the movement sub-video that starting point continuously chooses the first quantity comprising moving object in first video, When electronic equipment movement sub-video is merged cause to move sub-video quantity reduce when, electronic equipment still can be according to the One quantity chooses the movement sub-video containing moving object.For example, after electronic equipment gets video, 6 sections are divided video into Sub-video is moved, is moved in sub-video at this 6 sections, when there are the second time difference between continuous two sections movement sub-videos is small When duration threshold value, electronic equipment can merge this two sections movement sub-videos, after the completion of merging, electronic equipment Just there is only 5 sections of movement sub-videos in the video of acquisition, electronic equipment can be from the final stage fortune in this 5 sections movement sub-videos Mover video is that starting point continuously chooses two sections of movement sub-videos comprising moving object.
By obtaining the second time differences between two sections of continuous adjacent movement sub-videos, when the second time difference is less than the When one duration threshold value, the corresponding two sections of movements sub-video of the second time difference is merged into one section of movement sub-video, is regarded with first Final stage movement sub-video is the movement sub-video that starting point continuously chooses the first quantity comprising moving object in frequency.First clock synchronization Between the shorter movement sub-video of difference merge, then the movement sub-video after merging is chosen, so as to improve pair The selection efficiency of movement sub-video containing moving object, and then reduce the power consumption of video processing.
In one embodiment, in a kind of method for processing video frequency provided, each movement of the first selected quantity The duration of video is all higher than or is equal to the second duration threshold value.
Electronic equipment can also obtain the duration of each movement sub-video of the first quantity of selection, move sub-video when Length can be the difference put at the beginning of moving sub-video between the end time point of movement sub-video.Second duration threshold value It can set, when the duration of a certain number of each movement sub-videos of selection is all higher than or is equal to the second duration threshold value When, show that the duration for each movement sub-video chosen is met the requirements.
It is calculated, can be more quickly found out when meeting by the duration of each movement sub-video to the first quantity Long desired movement sub-video, can reduce the power consumption of video processing.
In one embodiment, electronic equipment can calculate the duration of each movement sub-video got, when There are when the movement sub-video that duration is less than the second duration threshold value in each movement sub-video, the second frame may be used in electronic equipment Rate plays the movement sub-video that the duration is less than the second duration threshold value.
In one embodiment, a kind of method for processing video frequency provided can also include entering or exiting motion detection scene Process, as shown in fig. 6, specific steps include:
Step 602, the first picture frame numerical value of the successive image frame comprising moving object is obtained.
First picture frame numerical value is the numerical value for the successive image frame comprising moving object that electronic equipment obtains, for example, the One picture frame numerical value can be 5 frames.Electronic equipment, can be to acquisition when acquisition includes the successive image frame of moving object The quantity of successive image frame is calculated, and when the quantity of the successive image frame of acquisition reaches the first picture frame numerical value, electronics is set It is standby can obtain this include moving object successive image frame the first picture frame numerical value.
Step 604, when the first picture frame numerical value is more than the first image frames numbers threshold value, record enters motion detection scene Time.
First image frames numbers threshold value can also be user setting.For example, the first image frames numbers threshold value can be arranged For 4 frames.When the first picture frame numerical value is more than the first image frames numbers threshold value, indicate that there are the packets of continuous first picture frame numerical value Picture frame containing moving object, electronic equipment can be more than the first image frames numbers threshold value detecting the first picture frame numerical value When initially enter motion detection scene, and record the time into motion detection.
Step 606, the second picture frame numerical value of the successive image frame for not including moving object is obtained.
Second picture frame numerical value refer to electronic equipment obtain do not include moving object successive image frame numerical value, second Picture frame numerical value can be 9 frames.
Step 608, when the second picture frame numerical value is more than the second image frames numbers threshold value, record exits motion detection scene Time.
Second image frames numbers threshold value can be set, and the second image frames numbers threshold value could be provided as 8 frames.When When two picture frame numerical value are more than the second image frames numbers threshold value, indicate that there are the second picture frame numerical value do not include moving object Successive image frame.Electronic equipment can be exited when detecting that the second picture frame numerical value is more than the second image frames numbers threshold value Motion detection scene, and record the time for exiting motion detection scene.
Step 610, it calculates into motion detection scene and exits the time difference between moving scene, in time difference The frame image of recording is one section of movement sub-video.
Electronic equipment is having recorded into motion detection scene time and after exiting motion detection scene time, can calculate Go out to enter motion detection scene and exit the time difference between moving scene, the frame image recorded in the time difference is There are the frame images of moving object, that is, one section of movement sub-video.
By the first picture frame numerical value of successive image frame of the acquisition comprising moving object, when the first picture frame numerical value is more than When the first image frames numbers threshold value, record obtains the consecutive image for not including moving object into the time of motion detection scene Second picture frame numerical value of frame, when the second picture frame numerical value is more than the second image frames numbers threshold value, record exits motion detection The time of scene calculates into motion detection scene and exits the time difference between moving scene, recorded in time difference Frame image be one section movement sub-video.By calculating the time difference for carrying out or exiting motion detection scene, electricity Sub- equipment can determine the time for entering or exiting motion detection scene, can be examined in this way to avoid frequently entering or exiting movement Survey scene.
In one embodiment, a kind of method for processing video frequency is provided, it is described to realize that this method is as follows:
First, electronic equipment can get the instruction that user triggers recorded video by a control on interface, should Recording of the electronic equipment to video may be implemented in instruction.Electronic equipment can start the mistake of recorded video according to the instruction of acquisition Journey.Electronic equipment can also obtain the first video that electronic equipment is recorded according to instruction.First video can be one section complete Video, during electronic equipment recorded video, electronic equipment can generate picture frame according to the image collected, and electronics is set It is standby when acquire image can there are one sequencing.Therefore, the picture frame that electronic equipment generates can be according to acquisition Multiple orderly picture frames that the sequencing of image generates, multiple orderly picture frames of generation are combined in sequence It is formed one section of complete video.The video of recording can be that the orderly picture frame generated combines, and electronics is set Standby to show that the recording to previous frame image has been completed when recording present frame, electronic equipment can be by the present frame of recording Image is compared with the previous frame image of recording.Specifically, electronic equipment can be each to being shot in the two field pictures of recording A object is compared, and the mode of comparison can compare each pixel in two field pictures.It is wrapped in first video When containing moving object, show that the picture of the picture and previous frame image of the current frame image that electronic equipment obtains is distinct. Difference is not present with the picture of previous frame image in the picture of current frame image, can refer to the picture and previous frame of current frame image The picture of image is the same, without any difference.That is, one mould one of picture of the picture of current frame image and previous frame image Sample when without any difference, does not include moving object in the first video that electronic equipment obtains.
Then, electronic equipment can obtain the multistage movement sub-video comprising moving object in the first video of shooting.Tool Body, whether electronic equipment can include moving object pair first according in video after getting complete first video Video is divided, and after the first video is divided into multistage movement sub-video, electronic equipment can be transported from obtained multistage is divided Got in mover video it is continuous include moving object multistage movement sub-video.For example, electronic equipment get first Video can be the video played basketball of a people recorded, in this video, can have clap basketball, shoot, receive etc. it is multiple Athletic performance, therefore, the moving object in the first video include the people to play basketball and basketball, and electronic equipment can regard this Frequency is divided, by containing clap basketball, these athletic performances for shooting and receiving be divided into include people when clapping basketball and People and basketball when basketball, shooting, people and basketball these moving objects when receiving multistage movement sub-video, can also should It is people or the non-athletic sub-video of multistage that basketball remains static that video, which divides,.
Then, it refers to complete first video recorded from electronic equipment that electronic equipment can move sub-video with final stage Middle extraction, division include moving object continuous multistage movement sub-video in, closest to the first video record complete That section movement sub-video.First quantity can be user oneself setting, for example, the movement sub-video of the first quantity can be with It is two sections of movement sub-videos.Electronic equipment can be moved sub-video using final stage and move sub-video to the multistage of division as starting point It is chosen, when the movement sub-video of the first quantity is two sections of movement sub-videos, electronic equipment can be moved with final stage Sub-video is starting point, continuous to choose two sections of movement sub-videos.
Secondly, electronic equipment can obtain the second time difference between two sections of movement sub-videos of continuous adjacent.When second Between difference can be user setting, can also be what electronic equipment randomly generated.Electronic equipment is getting the complete of recording Video after, video can be divided, obtain multistage movement sub-video, these movement sub-videos in may include containing transport The movement sub-video of animal body can also include the movement sub-video containing stationary object.When the second time difference is less than first When duration threshold value, the corresponding two sections of movements sub-video of the second time difference can be merged into one section of movement and regarded by electronic equipment Frequently.It includes the of moving object that electronic equipment, which can also be that starting point continuously chooses using final stage movement sub-video in the first video, The movement sub-video of one quantity.
Then, when playing the first video, electronic equipment can play the first quantity continuously chosen with the first frame per second Sub-video is moved, residual movement sub-video is played with the second frame per second, the first frame per second is less than the second frame per second.Playing the first video When, electronic equipment can play the movement sub-video for the first quantity continuously chosen according to the broadcasting speed of the first frame per second, for Other movement sub-videos that do not choose, electronic equipment can be played according to the broadcasting speed of the second frame per second.Specifically, electronics is set First time difference in the standby movement sub-video that can obtain the first quantity continuously chosen between adjacent two sections.When first Between difference be less than the first duration threshold value when, electronic equipment can by first time difference it is corresponding two sections movement sub-video merge into One section of movement sub-video, and combined movement sub-video is played according to the first frame per second.
Finally, electronic equipment can obtain the first picture frame numerical value of the successive image frame comprising moving object.First figure As frame number value be electronic equipment obtain the successive image frame comprising moving object numerical value, for example, the first picture frame numerical value can Think 5 frames.Electronic equipment, can be to the number of the successive image frame of acquisition when acquisition includes the successive image frame of moving object Amount is calculated, and when the quantity of the successive image frame of acquisition reaches the first picture frame numerical value, electronic equipment can obtain this First picture frame numerical value of a successive image frame for including moving object.When the first picture frame numerical value is more than the first number of image frames When measuring threshold value, electronic equipment can record the time into motion detection scene.It does not include movement that electronic equipment, which can also obtain, Second picture frame numerical value of the successive image frame of object.When the second picture frame numerical value is more than the second image frames numbers threshold value, electricity Sub- equipment can record the time for exiting motion detection scene.Electronic equipment can also calculate into motion detection scene with exit Time difference between moving scene, the frame image recorded in time difference are one section of movement sub-video.
It should be understood that although each step in above-mentioned flow chart is shown successively according to the instruction of arrow, this A little steps are not that the inevitable sequence indicated according to arrow executes successively.Unless expressly state otherwise herein, these steps It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, in above-mentioned flow chart at least A part of step may include that either these sub-steps of multiple stages or stage are not necessarily in same a period of time to multiple sub-steps Quarter executes completion, but can execute at different times, the execution in these sub-steps or stage be sequentially also not necessarily according to Secondary progress, but can either the sub-step of other steps or at least part in stage in turn or replace with other steps Ground executes.
Fig. 7 is the structure diagram of video process apparatus in one embodiment.As shown in fig. 7, the device includes:
Video acquiring module 710 is transported for obtaining the multistage comprising moving object in the first video that electronic equipment is shot Mover video.
Video chooses module 720, is transported for being started counting up from the multistage of acquisition as starting point using final stage movement sub-video The movement sub-video of the first quantity is continuously chosen in mover video.
Video playback module 730, for when playing the first video, the first quantity continuously chosen to be played with the first frame per second Movement sub-video, with the second frame per second play residual movement sub-video, the first frame per second be less than the second frame per second.
In one embodiment, video acquiring module 710 can be also used for obtaining the instruction of electronic equipment recorded video, root The first video that electronic equipment is recorded is obtained according to instruction, whether detect in the first video includes moving object.
In one embodiment, video acquiring module 710 can be also used for the current frame image that will be recorded and previous frame figure Include movement when the picture of current frame image has differences with the picture of previous frame image, in the first video as being compared Object when difference is not present with the picture of previous frame image in the picture of current frame image, does not include moving object in the first video.
In one embodiment, video chooses the movement that module 720 can be also used for obtaining the first quantity continuously chosen First time difference in sub-video between adjacent two sections, when first time difference is less than the first duration threshold value, when by first Between the corresponding two sections of movements sub-video of difference merge into one section of movement sub-video, and it is sub according to the first frame per second to play combineds movement Video.
In one embodiment, video chooses module 720 and can be also used for being less than the first duration threshold when first time difference When value, after the corresponding two sections of movements sub-video of first time difference is merged into one section of movement sub-video, transported with final stage Mover video is that starting point starts counting up the movement sub-video for being moved from the multistage of acquisition and continuously choosing the first quantity in sub-video.
In one embodiment, video acquiring module 710 can be also used for obtaining two sections of continuous adjacent movement sub-videos it Between the second time difference, when the second time difference be less than the first duration threshold value when, by the second time difference it is corresponding two sections fortune Mover video merging is one section of movement sub-video, is started counting up continuously as starting point using final stage movement sub-video in the first video Choose the movement sub-video of the first quantity comprising moving object.
In one embodiment, the duration of each movement sub-video of the first selected quantity is all higher than or is equal to second Duration threshold value.
As shown in figure 8, in another embodiment, the video process apparatus provided can also include:
First picture frame numerical value acquisition module 740, the first image for obtaining the successive image frame comprising moving object Frame number value.
Entry time logging modle 750, for when the first picture frame numerical value is more than the first image frames numbers threshold value, recording Into the time of motion detection scene.
Second picture frame numerical value acquisition module 760, the second figure for obtaining the successive image frame for not including moving object As frame number value.
Post-set time logging modle 770, for when the second picture frame numerical value is more than the second image frames numbers threshold value, recording Exit the time of motion detection scene.
Time difference computing module 780, for calculating into motion detection scene and exiting the time between moving scene Difference, the frame image recorded in time difference are one section of movement sub-video.
The division of modules is only used for for example, in other embodiments, can will regard in above-mentioned video process apparatus Frequency processing device is divided into different modules as required, to complete all or part of function of above-mentioned video process apparatus.
Specific about video process apparatus limits the restriction that may refer to above for method for processing video frequency, herein not It repeats again.Modules in above-mentioned video process apparatus can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in or independently of in the processor in computer equipment, can also store in a software form in the form of hardware In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
Realizing for modules in the video process apparatus provided in the embodiment of the present application can be the shape of computer program Formula.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal Or on the memory of server.When the computer program is executed by processor, method described in the embodiment of the present application is realized Step.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When so that the processor executes the step of method for processing video frequency.
A kind of computer program product including instruction, when run on a computer so that computer executes video Processing method.
The embodiment of the present application also provides a kind of computer equipment.Above computer equipment includes image processing circuit, figure As processing circuit can utilize hardware and or software component to realize, it may include define ISP (Image Signal Processing, picture signal processing) pipeline various processing units.Fig. 9 is that image processing circuit shows in one embodiment It is intended to.As shown in figure 9, for purposes of illustration only, only showing the various aspects with the relevant image processing techniques of the embodiment of the present application.
As shown in figure 8, image processing circuit includes ISP processors 940 and control logic device 950.Imaging device 910 captures Image data handled first by ISP processors 940, ISP processors 940 to image data analyzed with capture can be used for really The image statistics of fixed and/or imaging device 910 one or more control parameters.Imaging device 910 may include thering is one The camera of a or multiple lens 912 and imaging sensor 914.Imaging sensor 914 may include colour filter array (such as Bayer filters), imaging sensor 914 can obtain the luminous intensity captured with each imaging pixel of imaging sensor 914 and wavelength Information, and the one group of raw image data that can be handled by ISP processors 940 is provided.Sensor 920 (such as gyroscope) can be based on passing The parameter (such as stabilization parameter) of the image procossing of acquisition is supplied to ISP processors 940 by 920 interface type of sensor.Sensor 920 Interface can utilize SMIA (Standard Mobile Imaging Architecture, Standard Mobile Imager framework) interface, The combination of other serial or parallel camera interfaces or above-mentioned interface.
In addition, raw image data can be also sent to sensor 920 by imaging sensor 914, sensor 920 can be based on passing 920 interface type of sensor is supplied to ISP processors 940 or sensor 920 to deposit raw image data raw image data It stores up in video memory 930.
ISP processors 940 handle raw image data pixel by pixel in various formats.For example, each image pixel can Bit depth with 8,10,12 or 14 bits, ISP processors 940 can carry out raw image data at one or more images Reason operation, statistical information of the collection about image data.Wherein, image processing operations can be by identical or different bit depth precision It carries out.
ISP processors 940 can also receive image data from video memory 930.For example, 920 interface of sensor will be original Image data is sent to video memory 930, and the raw image data in video memory 930 is available to ISP processors 940 It is for processing.Video memory 930 can be independent special in a part, storage device or electronic equipment for memory device With memory, and it may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.
When receiving from 914 interface of imaging sensor or from 920 interface of sensor or from video memory 930 When raw image data, ISP processors 940 can carry out one or more image processing operations, such as time-domain filtering.Treated schemes As data can be transmitted to video memory 930, to carry out other processing before shown.ISP processors 940 are from image Memory 930 receives processing data, and is carried out in original domain and in RGB and YCbCr color spaces to the processing data Image real time transfer.Treated that image data may be output to display 970 for ISP processors 940, for user's viewing and/or It is further processed by graphics engine or GPU (Graphics Processing Unit, graphics processor).In addition, ISP processors 940 output also can be transmitted to video memory 930, and display 970 can read image data from video memory 930. In one embodiment, video memory 930 can be configured as realizing one or more frame buffers.In addition, ISP processors 940 Output can be transmitted to encoder/decoder 960, so as to encoding/decoding image data.The image data of coding can be saved, And it is decompressed before being shown in 970 equipment of display.Encoder/decoder 960 can be real by CPU or GPU or coprocessor It is existing.
The statistical data that ISP processors 940 determine, which can be transmitted, gives control logic device Unit 950.For example, statistical data can wrap Include the image sensings such as automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 912 shadow correction of lens 914 statistical information of device.Control logic device 950 may include the processor and/or micro-control that execute one or more routines (such as firmware) Device processed, one or more routines can determine the control parameter and ISP processors of imaging device 910 according to the statistical data of reception 940 control parameter.For example, the control parameter of imaging device 910 may include 920 control parameter of sensor (such as gain, exposure The time of integration, stabilization parameter of control etc.), camera flash control parameter, 912 control parameter of lens (such as focus or zoom With focal length) or these parameters combination.ISP control parameters may include for automatic white balance and color adjustment (for example, in RGB During processing) 912 shadow correction parameter of gain level and color correction matrix and lens.
It is to realize method for processing video frequency that above-described embodiment provides with image processing techniques in Fig. 9 below.
Used in this application may include to any reference of memory, storage, database or other media is non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the application the scope of the claims therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of method for processing video frequency, which is characterized in that including:
It obtains the multistage comprising moving object in the first video of electronic equipment shooting and moves sub-video;
It is that starting point starts counting up and continuously chooses the from the multistage of acquisition movement sub-video using final stage movement sub-video The movement sub-video of one quantity;
When playing first video, the movement sub-video of first quantity continuously chosen is played with the first frame per second, with Second frame per second plays residual movement sub-video, and first frame per second is less than second frame per second.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain the instruction of electronic equipment recorded video;
First video is recorded according to described instruction, and whether detect in first video includes moving object.
3. according to the method described in claim 2, it is characterized in that, whether include moving object in detection first video, Including:
The current frame image of recording is compared with previous frame image;
When the picture of the picture of the current frame image and the previous frame image has differences, include in first video There is moving object;
When difference is not present in the picture of the picture of the current frame image and the previous frame image, in first video not Including moving object.
4. according to the method described in claim 1, it is characterized in that, described when playing first video, with the first frame per second The movement sub-video for playing first quantity continuously chosen plays residual movement sub-video with the second frame per second, including:
Obtain the first time difference between adjacent two sections in the movement sub-video of first quantity continuously chosen;
When the first time difference is less than the first duration threshold value, corresponding two sections of movements of the first time difference is regarded Frequency merges into one section of movement sub-video, and the movement sub-video of the merging is played according to first frame per second.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain the second time difference between two sections of movement sub-videos of continuous adjacent;
When second time difference is less than the first duration threshold value, corresponding two sections of movements of second time difference is regarded Frequency merges into one section of movement sub-video;
It is that start counting up continuous choose include the of moving object to starting point using final stage movement sub-video in first video The movement sub-video of one quantity.
6. according to the method described in claim 1, it is characterized in that, each movement sub-video of the first selected quantity Duration be all higher than or be equal to the second duration threshold value.
7. method according to any one of claims 1 to 6, which is characterized in that the method further includes:
Obtain the first picture frame numerical value of the successive image frame comprising moving object;
When described first image frame number value is more than the first image frames numbers threshold value, time of the record into motion detection scene;
Obtain the second picture frame numerical value of the successive image frame for not including moving object;
When the second picture frame numerical value is more than the second image frames numbers threshold value, record exits the time of motion detection scene;
It calculates and enters motion detection scene and the time difference exited between moving scene, recorded in the time difference Frame image be one section movement sub-video.
8. a kind of video process apparatus, which is characterized in that including:
Video acquiring module is regarded for obtaining multistage movement comprising moving object in the first video that electronic equipment is shot Frequently;
Video chooses module, and son is moved for being started counting up from the multistage of the acquisition as starting point using final stage movement sub-video The movement sub-video of the first quantity is continuously chosen in video;
Video playback module, for when playing first video, first number continuously chosen to be played with the first frame per second The movement sub-video of amount plays residual movement sub-video with the second frame per second, and first frame per second is less than second frame per second.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor so that the processor executes the video processing as described in any one of claim 1 to 7 The step of method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claim 1 to 7 is realized when being executed by processor.
CN201810113009.1A 2018-02-05 2018-02-05 Video processing method and device, electronic equipment and computer readable storage medium Expired - Fee Related CN108391163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810113009.1A CN108391163B (en) 2018-02-05 2018-02-05 Video processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810113009.1A CN108391163B (en) 2018-02-05 2018-02-05 Video processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108391163A true CN108391163A (en) 2018-08-10
CN108391163B CN108391163B (en) 2020-07-21

Family

ID=63074698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810113009.1A Expired - Fee Related CN108391163B (en) 2018-02-05 2018-02-05 Video processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108391163B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541912A (en) * 2020-04-30 2020-08-14 北京奇艺世纪科技有限公司 Video splitting method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102157081A (en) * 2011-03-31 2011-08-17 北京唐风汉语教育科技有限公司 Multi-media teaching device based on synchronous text teaching content display
CN102957864A (en) * 2011-08-24 2013-03-06 奥林巴斯映像株式会社 Imaging device and control method thereof
CN104080006A (en) * 2014-07-10 2014-10-01 福州瑞芯微电子有限公司 Video processing device and method
CN104519294A (en) * 2013-09-27 2015-04-15 杭州海康威视数字技术股份有限公司 Mobile information-based video recording playback method and device thereof
US20170078755A1 (en) * 2015-09-10 2017-03-16 Lg Electronics Inc. Mobile terminal and method for controlling the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102157081A (en) * 2011-03-31 2011-08-17 北京唐风汉语教育科技有限公司 Multi-media teaching device based on synchronous text teaching content display
CN102957864A (en) * 2011-08-24 2013-03-06 奥林巴斯映像株式会社 Imaging device and control method thereof
CN104519294A (en) * 2013-09-27 2015-04-15 杭州海康威视数字技术股份有限公司 Mobile information-based video recording playback method and device thereof
CN104080006A (en) * 2014-07-10 2014-10-01 福州瑞芯微电子有限公司 Video processing device and method
US20170078755A1 (en) * 2015-09-10 2017-03-16 Lg Electronics Inc. Mobile terminal and method for controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541912A (en) * 2020-04-30 2020-08-14 北京奇艺世纪科技有限公司 Video splitting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108391163B (en) 2020-07-21

Similar Documents

Publication Publication Date Title
CN108322650A (en) Video capture method and apparatus, electronic equipment, computer readable storage medium
CN110149482A (en) Focusing method, device, electronic equipment and computer readable storage medium
US11343474B2 (en) Image capture based on action recognition
CN108347563A (en) Method for processing video frequency and device, electronic equipment, computer readable storage medium
CN101755448B (en) Correcting imaging device motion during an exposure
US9092861B2 (en) Using motion information to assist in image processing
CN102244730B (en) Image capturing apparatus and camera shake correction method
CN108810413A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN109246354A (en) Image processing method and device, electronic equipment, computer readable storage medium
US8767096B2 (en) Image processing method and apparatus
CN102104725B (en) Imaging apparatus, data processing method, and program
CN110248106A (en) Image denoising method, device, electronic equipment and storage medium
CN109862269A (en) Image-pickup method, device, electronic equipment and computer readable storage medium
CN104917943B (en) The subject tracking of camera device and camera device
CN108734214A (en) Image-recognizing method and device, electronic equipment, storage medium
CN110191287A (en) Focusing method and device, electronic equipment, computer readable storage medium
JP5389049B2 (en) Imaging apparatus, semiconductor integrated circuit, and motion vector determination method
CN108833812A (en) A kind of imaging sensor and Image Motional Information processing method
CN106973285A (en) Camera device and flicker detection method
CN104380710A (en) Flicker reducing device, imaging device, and flicker reducing method
CN108769523A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN110290320A (en) Video preview drawing generating method and device, electronic equipment, computer readable storage medium
CN108322648B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN108848306A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN103108118A (en) Digital image capturing method and apparatus

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
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: 20200721