Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
As shown in figure 1, specific embodiment of the invention provides a kind of generation method of dynamic picture, terminal is applied to,
The method includes:
Step 101, according to the display content of terminal, intercepts multiple full-screen images.
Wherein, in a particular embodiment of the present invention, above-mentioned display content includes that the dynamic image played (is for example schemed
As interchange format (GIF, Graphics Interchange Format) image), and then ensure subsequently generate Dynamic Graph
Piece.
Specifically, in a particular embodiment of the present invention, the specific implementation of above-mentioned steps 101 can be:Default
In recording time, screenshotss operation is carried out to the display content of terminal according to the default sampling period, obtain multiple full-screen images.Its
In, screenshotss to full-screen image in comprising dynamic image picture frame.In this as an example, due to common dynamic image
Reproduction time it is not long, therefore for meet the dynamic image in major applications program playing duration requirement, above-mentioned default record
Time processed can be 20 seconds (s);Similar, because the frame rate of common dynamic image is relatively low, while under usual conditions, human eye
The speed for recognizing coherent image is 24 frames/second, and that frame period is about 40ms (1000 milliseconds/24 frame), therefore above-mentioned default is adopted
The sample cycle can be 5ms, it is necessary to explanation, if the above-mentioned default sampling period be 5ms, actual demand can be fully met, and
The performance requirement of middle-end screenshotss can be met.
And in a particular embodiment of the present invention, when the display content of terminal includes the dynamic image played, can
By way of being input into dynamic picture and generating instruction, triggering terminal intercepts multiple full-screen images.Specifically, can be set by pressing
The mode of the prompt operation button of the generation dynamic picture on the shortcuts bar of terminal system, input dynamic picture generation instruction.
Additionally, above-mentioned terminal can be the equipment such as smart mobile phone, panel computer.
Step 102, identifies dynamic area from full-screen image, and according to dynamic area, divides from multiple full-screen images
Separate out multiple dynamic image frames.
Wherein, in a particular embodiment of the present invention, the specific implementation of dynamic area is identified from full-screen image
Can be:The full-screen image of predetermined number is selected from multiple full-screen images first;Then it is full frame for every selected
Image, detects the edge of the dynamic image in full-screen image respectively;Finally according to the Dynamic Graph in the full-screen image of predetermined number
The edge of picture, determines dynamic area.
Specifically, in a particular embodiment of the present invention, can be by image first order gradient algorithm, in detecting full-screen image
Dynamic image edge, then according to the edge of each dynamic image, get each dynamic image on preset coordinate axle
Maxima and minima, determine 4 summits of rectangle, and determine the corresponding rectangle frame of each dynamic image according to this, most
The maximum corresponding region of rectangle frame of area is used as dynamic area at last.Wherein, above-mentioned preset coordinate axle includes orthogonal
Two reference axis, such as the first parallel with the display direction of terminal reference axis, and second seat vertical with the first reference axis
Parameter.
Wherein, in a particular embodiment of the present invention, after dynamic area is identified, just can be according to dynamic area, from many
Multiple dynamic image frames are isolated in full-screen image, i.e. one can be isolated from every full-screen image according to dynamic area
Dynamic image frame, for example, isolate as shown in Figure 2 B from the full-screen image 1 for including dynamic image frame 2 as shown in Figure 2 A
Dynamic image frame 2, the wherein content of dynamic image frame 2 include the head of a people, in full-screen image 1 in addition to dynamic image frame 2
Other regions on include the information such as status bar, such as return push-button, battery electric quantity, signal intensity etc..
Step 103, using multiple dynamic image frames, generates dynamic picture.
It can be seen that, in a particular embodiment of the present invention, by the display content according to terminal, multiple full-screen images are intercepted,
And dynamic area is identified from full-screen image, and then according to dynamic area, multiple dynamics are isolated from multiple full-screen images
Picture frame, finally using multiple dynamic image frames, generates dynamic picture, can quickly, easily generate dynamic picture, and disobey
Rely the download function in terminal, lift the effect of Consumer's Experience.
Wherein, in a particular embodiment of the present invention, as shown in figure 3, the specific implementation of above-mentioned steps 103 is included such as
Lower step:
Step 301, the quantity of the dynamic image frame included according to dynamic picture, when determining the playback period of dynamic picture
It is long.
Wherein, in a particular embodiment of the present invention, the dynamic image that the display content of terminal includes can be circulated always to be broadcast
Put, may be played many times in default recording time.Therefore it needs to be determined that head and the tail two field pictures, and Dynamic Graph is determined therefrom that out
The quantity of the dynamic image frame that piece is included, and then determine the playback period duration of dynamic picture, it is to avoid the Dynamic Graph for ultimately generating
There is identical picture in piece.
Specifically, in a particular embodiment of the present invention, the specific implementation of above-mentioned steps 301 can be:Press first
According to the sequencing of the interception time of multiple corresponding full-screen images of dynamic image frame, multiple dynamic image frames are ranked up;
Then using the first dynamic image frame made number one in multiple dynamic image frames as dynamic picture first frame, and according to sequence
Multiple dynamic image frames afterwards, determine the tail frame of dynamic picture;And then according to first frame and tail frame, determine what dynamic picture was included
The quantity of dynamic image frame;The quantity of the dynamic image frame that dynamic picture is included and the product in default sampling period are finally calculated,
And the result that will be obtained is used as the playback period duration of dynamic picture.
Step 302, the quantity of the picture frame that can be accommodated according to playback period duration and dynamic picture obtains dynamic picture
Picture frame time interval.
Wherein, in a particular embodiment of the present invention, the specific implementation of above-mentioned steps 302 can be:First will be dynamic
The figure that the default size of the first of state picture can be accommodated with the ratio of the second of single image frame the default size as dynamic picture
As the quantity of frame;The ratio of the quantity of the picture frame that then can accommodate playback period duration and dynamic picture is used as Dynamic Graph
The time interval of the picture frame of piece.
Herein it should be noted that the above-mentioned first default size is the size of dynamic picture, if for example, above-mentioned Dynamic Graph
Piece is for ease of being sent to the dynamic picture of other good friends by softwares such as wechats, then above-mentioned first presets size can be
500 kilobytes (KB), accordingly, the second default size of single image frame can be 5KB.It should be further stated that, lead to
Under the conditions of often, the speed of the identification coherent image of human eye is 24 frames/second, and that frame period is about 40ms (1000 milliseconds/24 frame),
Therefore maximum time interval is no more than 40ms.
Step 303, according to time interval, target dynamic picture frame is determined from multiple dynamic image frames.
Wherein, in a particular embodiment of the present invention, the specific implementation of above-mentioned steps 303 can be:It is first according to
Multiple dynamic image frames are ranked up by the sequencing of the interception time of multiple corresponding full-screen images of dynamic image frame;So
Afterwards with the first dynamic image frame for making number one in multiple dynamic image frames as starting point, time interval as step-length, from after sequence
Multiple dynamic image frames in extract dynamic image frame;Finally the first dynamic image frame and the dynamic image frame for extracting are made
It is target dynamic picture frame.
The process for extracting dynamic image frame is illustrated with a simple examples, it is assumed that time interval is 10ms, then from sequence herein
11ms, 21ms, 31ms and the follow-up dynamic image frame for being often separated by 10ms are extracted in multiple dynamic image frames afterwards successively.
Step 304, using target dynamic picture frame, generates dynamic picture.
Wherein, in a particular embodiment of the present invention, after dynamic picture is generated, just can be incited somebody to action by the chat software of wechat
The dynamic picture of generation is sent to other good friends, lifts Consumer's Experience.
Wherein, in a particular embodiment of the present invention, the specific implementation of above-mentioned steps 304 can be:If target is moved
Target dynamic picture frame is then compressed to second default big by the size of state picture frame more than the second of single image frame the default size
It is small, the target dynamic picture frame after being compressed, and using the target dynamic picture frame after compression, generate dynamic picture.
Herein it should be noted that for each target dynamic picture frame, as long as its size is more than the of single image frame
Two default sizes, just need for the target dynamic picture frame to be compressed to the second default size, to ensure subsequently can normally use life
Into dynamic picture.
And it should be further stated that, when dynamic picture is generated using target dynamic picture frame, should be dynamic according to target
Sequencing (i.e. according to the order of first frame to tail frame) the generation dynamic picture of state picture frame, and then ensure the dynamic on last birthdate
Picture is expected dynamic picture, lifts Consumer's Experience.
Additionally, being more to understand the above method, at this to according to multiple after sequence in a particular embodiment of the present invention
Dynamic image frame, determines that the specific implementation of the tail frame of dynamic picture is described in detail.
Wherein, because the common dynamic picture frame period time is than larger so that in multiple the dynamic image frames for getting
In the presence of with the first dynamic image frame identical dynamic image frame.Therefore, in a particular embodiment of the present invention, can be by comparing picture
The mode of plain value find out with the first dynamic image frame identical dynamic image frame, and by the previous Dynamic Graph of the dynamic image frame
As frame is used as the tail frame of dynamic picture.
Specifically, in specific implementation of the invention, above-mentioned multiple dynamic image frames according to after sequence determine Dynamic Graph
The specific implementation of the tail frame of piece can be:After the first dynamic image frame being located at from multiple the dynamic image frames after sequence
In each dynamic image frame, the pixel value of multiple second pixels positioned at predeterminated position is obtained successively, judge the second pixel
Pixel value whether pixel value respectively with multiple first pixels of the predeterminated position positioned at the first dynamic image frame is identical, when
Pixel value of the pixel value of two pixels respectively with multiple first pixels of the predeterminated position positioned at the first dynamic image frame is identical
When, by the previous dynamic image frame of dynamic image frame corresponding with the second pixel value, as the tail frame of dynamic picture.Wherein,
When the second pixel pixel value respectively with the pixel value of multiple first pixels of the predeterminated position positioned at the first dynamic image frame
When identical, terminal just determines that dynamic image frame corresponding with second pixel value is identical with the first dynamic image frame.
Wherein, in a particular embodiment of the present invention, above-mentioned dynamic area can be divided into M rows × N row, will dynamic area
It is divided into M × N number of pixel so that based on this, the pixel value of every M of dynamic image frame × N number of pixel can be obtained (for position
Just it is the pixel value of above-mentioned multiple second pixels for each the dynamic image frame after the first dynamic image frame;For
Just it is the pixel value of above-mentioned multiple first pixels for one dynamic image frame), and then fast and accurately find out and the first dynamic
Picture frame identical dynamic image frame.Wherein, as an example, above-mentioned M can be able to be 10 for 20, N.
Here, it should be noted that to guarantee to generate expected dynamic picture, Consumer's Experience is lifted, when the second pixel
When pixel value of the pixel value of point respectively with multiple first pixels of the predeterminated position positioned at the first dynamic image frame is identical, can give birth to
The moving to the previous dynamic image frame of dynamic image frame corresponding with second pixel value into one from the first dynamic image frame
Preview effect is drawn, and prompts the user whether to terminate to record, if if user indicates to terminate to record, just directly by second pixel value
The previous dynamic image frame of corresponding dynamic image frame, as the tail frame of dynamic picture;And if user indicates to continue what is recorded
Words, just need to find next and the first dynamic image frame identical dynamic image frame, until user indicates to terminate to record, and will
With the previous dynamic image frame of the first dynamic image frame identical dynamic image frame, as the tail frame of dynamic picture.
As can be seen here, in a particular embodiment of the present invention, by the display content according to terminal, multiple full frame figures are intercepted
Picture, and dynamic area is identified from full-screen image, and then according to dynamic area, multiple are isolated from multiple full-screen images and is moved
State picture frame, the quantity of the dynamic image frame for and then being included according to dynamic picture determines the playback period duration of dynamic picture,
And the quantity of the picture frame that can be accommodated according to playback period duration and dynamic picture, obtain the time of the picture frame of dynamic picture
Interval;Finally according to time interval, target dynamic picture frame is determined from multiple dynamic image frames, and use target dynamic figure
As frame, generate dynamic picture, can quickly, easily generate dynamic picture, and do not rely on the download function of terminal, lifting is used
The effect of family experience.
As shown in Fig. 4 A to Fig. 4 B, specific embodiment of the invention additionally provides a kind of terminal, and the terminal 400 includes:
Interception module 401, for the display content according to terminal, intercepts multiple full-screen images;
Identification module 402, it is full frame from multiple for identifying dynamic area from full-screen image, and according to dynamic area
Multiple dynamic image frames are isolated in image;
Generation module 403, for using multiple dynamic image frames, generates dynamic picture.
Wherein, above-mentioned terminal 400 can be the equipment such as smart mobile phone, panel computer.
Optionally, interception module 401, specifically in default recording time, according to the default sampling period to terminal
Display content carries out screenshotss operation, obtains multiple full-screen images.
Optionally, identification module 402 includes:
Selection submodule, the full-screen image for selecting predetermined number from multiple full-screen images;
Detection sub-module, for for the every full-screen image selected, the dynamic image in full-screen image being detected respectively
Edge;
First determination sub-module, for the edge of the dynamic image in the full-screen image according to predetermined number, it is determined that dynamic
Region.
Optionally, generation module 403 includes:
Second determination sub-module 4031, the quantity of the dynamic image frame for being included according to dynamic picture, determines Dynamic Graph
The playback period duration of piece;
Acquisition submodule 4032, the quantity of the picture frame for that can be accommodated according to playback period duration and dynamic picture,
Obtain the time interval of the picture frame of dynamic picture;
3rd determination sub-module 4033, for according to time interval, target dynamic being determined from multiple dynamic image frames
Picture frame;
Generation submodule 4034, for using target dynamic picture frame, generates dynamic picture.
Optionally, the second determination sub-module 4031 includes:
First sequencing unit, the priority for the interception time according to multiple corresponding full-screen images of dynamic image frame is suitable
Multiple dynamic image frames are ranked up by sequence;
First determining unit, for the first dynamic image frame for will being made number one in multiple dynamic image frames as dynamic
The first frame of picture;
Second determining unit, for according to multiple the dynamic image frames after sequence, determining the tail frame of dynamic picture;
3rd determining unit, for according to first frame and tail frame, determining the quantity of the dynamic image frame that dynamic picture is included;
Computing unit, for calculating the quantity of the dynamic image frame that dynamic picture is included and the product in default sampling period,
Playback period duration of the result that will be obtained as dynamic picture.
Optionally, the second determining unit includes:
Judgment sub-unit, moves for each from multiple the dynamic image frames after sequence after the first dynamic image frame
In state picture frame, the pixel value of multiple second pixels positioned at predeterminated position is obtained successively, judge the pixel of the second pixel
Whether pixel value respectively with multiple first pixels of the predeterminated position positioned at the first dynamic image frame is identical for value;
Determination subelement, for when the second pixel pixel value respectively with the predeterminated position positioned at the first dynamic image frame
Multiple first pixels pixel value it is identical when, by the previous dynamic image of dynamic image frame corresponding with the second pixel value
Frame, as the tail frame of dynamic picture.
Optionally, acquisition submodule 4032 includes:
4th determining unit, for the first of dynamic picture default size to be preset into size with the second of single image frame
The quantity of the picture frame that ratio can be accommodated as dynamic picture;
5th determining unit, the ratio of the quantity of picture frame for playback period duration and dynamic picture can be accommodated
As the time interval of the picture frame of dynamic picture.
Optionally, the 3rd determination sub-module 4033 includes:
Second sequencing unit, the priority for the interception time according to multiple corresponding full-screen images of dynamic image frame is suitable
Multiple dynamic image frames are ranked up by sequence;
Extracting unit, for the first dynamic image frame for making number one in multiple dynamic image frames as starting point, the time
At intervals of step-length, dynamic image frame is extracted from multiple the dynamic image frames after sequence;
6th determining unit, for using the first dynamic image frame and the dynamic image frame for extracting as target dynamic figure
As frame.
Optionally, generation submodule 4034 includes:
Compression unit, if presetting size more than the second of single image frame for the size of target dynamic picture frame, will
Target dynamic picture frame is compressed to the second default size, the target dynamic picture frame after being compressed;
Generation unit, for using the target dynamic picture frame after compression, generating dynamic picture.
In an embodiment of the present invention, terminal is by the display content according to terminal, intercepts multiple full-screen images, and from complete
Dynamic area is identified in screen image, and then according to dynamic area, multiple dynamic image frames is isolated from multiple full-screen images,
Finally use multiple dynamic image frames, generate dynamic picture, can quickly, easily generate dynamic picture, and do not rely on end
The download function at end, lifts the effect of Consumer's Experience.
It should be noted that the terminal that the specific embodiment of the invention is provided is using the terminal of the above method, i.e., above-mentioned side
All embodiments of method are applied to the terminal, and can reach same or analogous beneficial effect.
As shown in figure 5, specific embodiment of the invention additionally provides a kind of terminal, the terminal 500 includes:At at least one
Reason device 501, memory 502, at least one network interface 504 and other users interface 503.Each component in terminal 500 leads to
Bus system 505 is crossed to be coupled.It is understood that bus system 505 is used to realize the connection communication between these components.Bus
System 505 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But in order to clear
For the sake of explanation, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 503 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 502 of system and method described herein be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 5022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program for calling memory 502 to store or instruction, specifically, can be application
The program stored in program 5022 or instruction, processor 501, for implementing function such as:According to the display content of terminal, interception
Multiple full-screen images;Dynamic area is identified from full-screen image, and according to dynamic area, is isolated from multiple full-screen images
Multiple dynamic image frames;Using multiple dynamic image frames, dynamic picture is generated.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501.
Processor 501 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 501 or software form.Above-mentioned treatment
Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 502, processor 501 reads the information in memory 502, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Alternatively, processor 501 is additionally operable to:In default recording time, the display according to the default sampling period to terminal
Content carries out screenshotss operation, obtains multiple full-screen images.
Alternatively, processor 501 is additionally operable to:The full-screen image of predetermined number is selected from multiple full-screen images;For
The every full-screen image selected, detects the edge of the dynamic image in full-screen image respectively;According to the full frame figure of predetermined number
The edge of the dynamic image as in, determines dynamic area.
Alternatively, processor 501 is additionally operable to:The quantity of the dynamic image frame included according to dynamic picture, determines Dynamic Graph
The playback period duration of piece;The quantity of the picture frame that can be accommodated according to playback period duration and dynamic picture, obtains Dynamic Graph
The time interval of the picture frame of piece;According to time interval, target dynamic picture frame is determined from multiple dynamic image frames;Use
Target dynamic picture frame, generates dynamic picture.
Alternatively, processor 501 is additionally operable to:According to the elder generation of the interception time of multiple corresponding full-screen images of dynamic image frame
Multiple dynamic image frames are ranked up by order afterwards;By the first dynamic image frame made number one in multiple dynamic image frames
As the first frame of dynamic picture;According to multiple the dynamic image frames after sequence, the tail frame of dynamic picture is determined;According to first frame and tail
Frame, determines the quantity of the dynamic image frame that dynamic picture is included;Calculate the quantity of dynamic image frame that dynamic picture includes with it is pre-
If the product in sampling period, playback period duration of the result that will be obtained as dynamic picture.
Alternatively, processor 501 is additionally operable to:After the first dynamic image frame being located at from multiple the dynamic image frames after sequence
Each dynamic image frame in, successively obtain positioned at predeterminated position multiple second pixels pixel value, judge the second pixel
Whether pixel value respectively with multiple first pixels of the predeterminated position positioned at the first dynamic image frame is identical for the pixel value of point;When
The pixel value of the second pixel respectively with the pixel value phase of multiple first pixels of the predeterminated position positioned at the first dynamic image frame
Meanwhile, by the previous dynamic image frame of dynamic image frame corresponding with the second pixel value, as the tail frame of dynamic picture.
Alternatively, processor 501 is additionally operable to:The first of dynamic picture default size is preset with the second of single image frame
The quantity of the picture frame that the ratio of size can be accommodated as dynamic picture;Playback period duration can be accommodated with dynamic picture
Picture frame quantity ratio as the picture frame of dynamic picture time interval.
Alternatively, processor 501 is additionally operable to:According to the elder generation of the interception time of multiple corresponding full-screen images of dynamic image frame
Multiple dynamic image frames are ranked up by order afterwards;With the first dynamic image frame made number one in multiple dynamic image frames
For starting point, time interval are step-length, dynamic image frame is extracted from multiple the dynamic image frames after sequence;By the first dynamic image
Frame and the dynamic image frame that extracts are used as target dynamic picture frame.
Alternatively, processor 501 is additionally operable to:If the size of target dynamic picture frame is preset more than the second of single image frame
Size, then be compressed to the second default size, the target dynamic picture frame after being compressed by target dynamic picture frame;Use compression
Target dynamic picture frame afterwards, generates dynamic picture.
Terminal 500 can realize each process of terminal realization in previous embodiment, to avoid repeating, no longer go to live in the household of one's in-laws on getting married here
State.
In a particular embodiment of the present invention, terminal intercepts multiple full-screen images by the display content according to terminal, and
Dynamic area is identified from full-screen image, and then according to dynamic area, multiple Dynamic Graphs is isolated from multiple full-screen images
As frame, finally using multiple dynamic image frames, generate dynamic picture, can quickly, easily generate dynamic picture, and be independent of
In the download function of terminal, the effect of Consumer's Experience is lifted.
As shown in fig. 6, specific embodiment of the invention provides a kind of terminal, the terminal 600 can be mobile phone, flat board electricity
Brain, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..
Terminal 600 in Fig. 6 includes radio frequency (Radio Frequency, RF) circuit 610, memory 620, input block
630th, display unit 640, processor 660, voicefrequency circuit 670, WiFi (Wireless Fidelity) module 680 and power supply
690。
Wherein, input block 630 can be used to receive the numeral or character information of user input, and produce and terminal 600
User set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 630 can be with
Including contact panel 631.Contact panel 631, also referred to as touch-screen, can collect user thereon or neighbouring touch operation (ratio
Such as user uses the operation of finger, any suitable object of stylus or annex on contact panel 631), and according to setting in advance
Fixed formula drives corresponding attachment means.Optionally, contact panel 631 may include touch detecting apparatus and touch controller two
Individual part.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, and signal is passed
Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then
Give the processor 660, and the order sent of receiving processor 660 and can be performed.Furthermore, it is possible to using resistance-type, electricity
The polytypes such as appearance formula, infrared ray and surface acoustic wave realize contact panel 631.Except contact panel 631, input block 630
Other input equipments 632 can also be included, other input equipments 632 can include but is not limited to physical keyboard, function key (such as
Volume control button, switch key etc.), trace ball, mouse, one or more in action bars etc..
Wherein, display unit 640 can be used for display by the information of user input or be supplied to the information and terminal of user
600 various menu interfaces.Display unit 640 may include display panel 641, optionally, can use LCD or organic light emission two
The forms such as pole pipe (Organic Light-Emitting Diode, OLED) configure display panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 660 is sent to determine the type of touch event, with preprocessor
660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of terminal 600, using various interfaces and connection whole mobile phone each
Part, by running or performing software program of the storage in first memory 621 and/or module, and calls storage the
Data in two memories 622, perform the various functions and processing data of terminal 600, so as to carry out overall prison to terminal 600
Control.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/
Or the data in the second memory 622, processor 660, for implementing function such as:According to the display content of terminal, interception
Multiple full-screen images;Dynamic area is identified from full-screen image, and according to dynamic area, is isolated from multiple full-screen images
Multiple dynamic image frames;Using multiple dynamic image frames, dynamic picture is generated.
Alternatively, processor 660 is additionally operable to:In default recording time, the display according to the default sampling period to terminal
Content carries out screenshotss operation, obtains multiple full-screen images.
Alternatively, processor 660 is additionally operable to:The full-screen image of predetermined number is selected from multiple full-screen images;For
The every full-screen image selected, detects the edge of the dynamic image in full-screen image respectively;According to the full frame figure of predetermined number
The edge of the dynamic image as in, determines dynamic area.
Alternatively, processor 660 is additionally operable to:The quantity of the dynamic image frame included according to dynamic picture, determines Dynamic Graph
The playback period duration of piece;The quantity of the picture frame that can be accommodated according to playback period duration and dynamic picture, obtains Dynamic Graph
The time interval of the picture frame of piece;According to time interval, target dynamic picture frame is determined from multiple dynamic image frames;Use
Target dynamic picture frame, generates dynamic picture.
Alternatively, processor 660 is additionally operable to:According to the elder generation of the interception time of multiple corresponding full-screen images of dynamic image frame
Multiple dynamic image frames are ranked up by order afterwards;By the first dynamic image frame made number one in multiple dynamic image frames
As the first frame of dynamic picture;According to multiple the dynamic image frames after sequence, the tail frame of dynamic picture is determined;According to first frame and tail
Frame, determines the quantity of the dynamic image frame that dynamic picture is included;Calculate the quantity of dynamic image frame that dynamic picture includes with it is pre-
If the product in sampling period, playback period duration of the result that will be obtained as dynamic picture.
Alternatively, processor 660 is additionally operable to:After the first dynamic image frame being located at from multiple the dynamic image frames after sequence
Each dynamic image frame in, successively obtain positioned at predeterminated position multiple second pixels pixel value, judge the second pixel
Whether pixel value respectively with multiple first pixels of the predeterminated position positioned at the first dynamic image frame is identical for the pixel value of point;When
The pixel value of the second pixel respectively with the pixel value phase of multiple first pixels of the predeterminated position positioned at the first dynamic image frame
Meanwhile, by the previous dynamic image frame of dynamic image frame corresponding with the second pixel value, as the tail frame of dynamic picture.
Alternatively, processor 660 is additionally operable to:The first of dynamic picture default size is preset with the second of single image frame
The quantity of the picture frame that the ratio of size can be accommodated as dynamic picture;Playback period duration can be accommodated with dynamic picture
Picture frame quantity ratio as the picture frame of dynamic picture time interval.
Alternatively, processor 660 is additionally operable to:According to the elder generation of the interception time of multiple corresponding full-screen images of dynamic image frame
Multiple dynamic image frames are ranked up by order afterwards;With the first dynamic image frame made number one in multiple dynamic image frames
For starting point, time interval are step-length, dynamic image frame is extracted from multiple the dynamic image frames after sequence;By the first dynamic image
Frame and the dynamic image frame that extracts are used as target dynamic picture frame.
Alternatively, processor 660 is additionally operable to:If the size of target dynamic picture frame is preset more than the second of single image frame
Size, then be compressed to the second default size, the target dynamic picture frame after being compressed by target dynamic picture frame;Use compression
Target dynamic picture frame afterwards, generates dynamic picture.
It can be seen that, in a particular embodiment of the present invention, terminal intercepts multiple full frame figures by the display content according to terminal
Picture, and dynamic area is identified from full-screen image, and then according to dynamic area, multiple are isolated from multiple full-screen images and is moved
State picture frame, finally using multiple dynamic image frames, generates dynamic picture, can quickly, easily do not generate dynamic picture, and not
The download function of terminal is depended on, the effect of Consumer's Experience is lifted.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.