An action shot display methods and system based on pressure sensitivity Touch Screen
Technical field
The technical field shown the invention belongs to photo more particularly to a kind of an action shot based on pressure sensitivity Touch Screen are aobvious
Show method and system.
Background technique
Pressure sensitivity Touch Screen will be more and more common on smart phone, and pressure-sensitive touch technology is between resistance-type and condenser type
Between touch technology.Emerging touch screen between use feeling between capacitance plate and touch screens provides while controlling cost
Multi-touch function.Resistance-type design is simple, and cost is minimum.Pressure-sensitive Touch Screen has the multi-point touch of capacitive screens simultaneously
Sense of touch, but it is accurate with touch screens.
What traditional photograph taking obtained can only be static photo, feeling fresh and alive to people, and scientific and technological circle are not thus
Break an action shot proposed about " photo being become fresh and alive memory, make your memory life-like ", such as LivePhoto is
The IOS new function that behaviour is continued saying it with interest, have left a deep impression to people.The specific operation method is as follows for it: starting " camera ", selection
" Live Photo " function, then long-pressing shutter key, a Live Photo (an action shot) just have been ingested.Then,
In " photograph album " the inner photo found just now, the 3D Touch function having with new iPhone, with some power long-pressing sub-screens, i.e.,
The user experience of photo " fresh and alive " can be enjoyed.Live Photo (an action shot) be in fact by a JPG picture and
One 45 frame MOV video file forms (front and back of shooting high definition photo respectively shoots one section of video).Playing Live Photo
When (an action shot), this section of MOV is then played with 15 frames/second speed, gives the experience of photo " fresh and alive ".
And Live Photo (an action shot) is not entirely novel invention.Blackberry, blueberry, Nokia, HTC current year all released it is similar
Function, the Rewind of blackberry, blueberry can allow people look back a photo front and back a period of time variation, to choose optimal one
, the case where avoiding subject eye closing, laugh at not open.The ZOE that HTC is released before this is similar with the Rewind function of blackberry, blueberry, it
3 seconds pictures can be automatically snapped, 20 continuous shootings and one section of video file are generated, final effect becomes a Dynamic Graph;Nuo Ji
Sub- Living Image video is similar with Live Photo (an action shot) of apple, but is shorter in length than 1 second, without sound
Sound.
The technical solution of above-mentioned introduction all stresses technique for taking, and one section of video is shot when shooting photo, then by broadcasting
The mode for putting video reaches photo " fresh and alive " effect;Since this method contains the video additionally recorded, generally generate " live shine
Piece " is 2 times of normal photo size, and no matter an action shot or still photo shoot one section of view when shooting photo
Frequently, the extra Documents Comparison for shooting and generating in the case where the photo such as Building class photo under script is i.e. static is caused to waste
Space.
In order to solve the above technical problems, China Patent No. discloses a kind of method, apparatus that control Live Photo is generated
And [application number: 2016103758833], wherein method includes: when electronic equipment is in scene photograph Live to electronic equipment
When being shot under Photo mode, the record of video image is carried out to target scene, and photograph taking is carried out to target scene;
Judge whether target scene is dynamic scene according to the video image being recorded;If judging mesh according to the video image being recorded
Mark scene is dynamic scene, then retains the photo of video image and the target scene taken;If according to the view being recorded
Frequency image judges that target scene is not dynamic scene, then deletes video image, and retain the photo of the target scene taken.Again
If China Patent No. discloses a kind of photo display methods and device, intelligent terminal [application number: 201510893738.X], wherein
Method includes: to obtain photo group to be shown, includes at least two photos in the photo group;By each in the photo group
Photo is shown one by one in same display area.
Although the former solves that avoid in the case where object is static Production development photo from wasting extra in above scheme
The technical issues of space, but still stress technique for taking, still there is the video additionally recorded in an action shot, generation
" an action shot " is 2 times of normal photo size;And need compatible display program (live format photo can be decoded) ability
Decoding and presentation " an action shot ";And although the latter has saved memory space to a certain extent, there is can not basis
Customer demand carrys out the problem of carrying out Dynamic Display to photo.
Summary of the invention
Regarding the issue above, the present invention provides a kind of generate an action shot in such a way that photo is shown, it is not required to
Additional recorded video is wanted, an action shot display methods of the space-efficient based on pressure sensitivity Touch Screen is saved,
The another object of this programme is to provide a kind of high degree of automation and is shone using the dynamic based on pressure sensitivity Touch Screen
An action shot display system based on pressure sensitivity Touch Screen of piece display methods.
In order to achieve the above objectives, present invention employs following technical proposals:
An action shot display methods based on pressure sensitivity Touch Screen the following steps are included:
S1: photo is shown in the display area of pressure sensitivity touch screen by photo display module, pressure sensitivity touch screen is inputted and is used
Pressure sensitivity touch event is notified display control module by the instruction of family pressure sensitivity, pressure sensitivity touch-control sensing module;
S2: display control module when receiving pressure sensitivity touch event, searched in a manner of preset search by notice photo search module
Rope, which corresponds to photo and sorts, forms photo sequence, and the photo in photo sequence is sent to photo by display control module and is shown
Module;
S3: photo display module receives the photo that display control module is sent, and is shown in display area, updates simultaneously
Photo content in display area, to form an action shot in display area.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, in step sl, user's pressure sensitivity
Instruction is for long-pressing and/or again by the photo in the display area for being shown in pressure sensitivity touch screen.
In the above-mentioned technical solutions, photo is shown under normal circumstances in static form, if pressed with longer period of time again
Photo on display screen can be so that the continuous photo before and after it be continuously shown in a short time to obtain the effect of an action shot.
Preset search side in the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, in the step S2
Formula specifically includes:
S2.1: display control module is when receiving pressure sensitivity touch event, with being touched in the display area of pressure sensitivity touch screen
Control photo is search parameter;
S2.2: photo search module is by touch-control photo according to judging by the name search image data base of touch-control photo
No is continuous photo;
If being judged as continuous photo, controlled by touch-control photo by sequentially forming photo sequence and feeding back to display when generating
Molding block.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, if being judged as non-continuous photo, according to
By the generation time of touch-control photo, search for image data base, search first time period before being generated the time by touch-control photo and/
Or the photo in the second time period after the generation time, sequentially forming photo sequence and feeding back to display when being generated according to piece
Control module;
In the present solution, the mode for generating an action shot is first to judge whether photo is continuous photo, then according to judgement
As a result judge whether to execute and search by the image data base in front and back a period of time of the generation time of touch-control photo for generation
An action shot.
Or;Photo search module searches for image data base, lookup is shone by touch-control according to by the generation time of touch-control photo
First time period before the piece generation time and/or the screening photo in the second time period after the generation time, and according to quilt
The title of touch-control photo judges to screen in photo whether have continuous photo;
If judgement has continuous photo, screens continuous photo affiliated in photo and sequentially form photo sequence by shooting time
It arranges and feeds back to display control module;
If judging no continuous photo, screen photo by shooting time sequentially form photo sequence and feed back to display control
Molding block.
In the present solution, the mode for generating an action shot is the first interior search for a period of time before and after being generated by touch-control photo
Then image data base judges whether there is continuous photo in the image searched and then generates dynamic photograph according to judging result
Piece.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, the duration of the first time period and
The duration of two periods is not identical.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, the first time period and the second time
Duan Junwei T minutes and T≤10.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, in the step S2.2, according to being touched
The title of control photo judges whether to be continuous photo by touch-control photo or screens photo according to by the title judgement of touch-control photo
Whether the specific method with continuous photo includes:
Photo search module will be by the title of touch-control photo and all name of pictures of image data base or screening name of pictures
Compare, the naming rules of all photos in a continuous shooting be formula 1., it may be assumed that
xxx-n.jpg①;
Wherein n is variable and represents n-th photo in this continuous shooting, and xxx is the shooting that this continuous shooting first opens photo
Time;
Numerical value by comparing n and/or xxx is obtained by whether touch-control photo is whether continuous photo or screening photo have
There is continuous photo.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, in step s 2, the display control
Photo in photo sequence is sent to photo display module with the first frame rate by module;In step s3, the display area
Interior photo is updated with the second frame rate.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, first frame rate and the second frame speed
Rate is unequal;
Alternatively, first frame rate and the second frame rate be N frame per second and N >=12.
The moving based on pressure sensitivity Touch Screen of an action shot display methods of the use based on pressure sensitivity Touch Screen of the invention
State photo display system includes the pressure sensitivity touch-control sensing module being connected with the display area of pressure sensitivity touch screen, the pressure sensitivity touch-control
Induction module is connected by display control module with photo display module, and the display control module is connected with photo search
Module, in which:
Pressure sensitivity touch-control sensing module: for receiving user's pressure sensitivity instruction to the input of pressure sensitivity touch screen, and by pressure sensitivity touch-control
Event notifies display control module;
Display control module: for when receiving pressure sensitivity touch event, notice photo search module search to be qualified
Photo sequence, and photo display module is sent to the first frame rate to the photo in sequence;
Photo search module: it forms photo sequence for searching for corresponding photo in a manner of preset search and sorting and feeds back to
Display control module;
Photo display module: for showing photo in display area, and display is received when pressure sensitivity touch event occurs
The photo that control module is sent, and the photo content in display area is updated with the second frame rate, thus in display area
Form an action shot.
The present invention lays particular emphasis on the displaying that photo display technology realizes an action shot, when to pressure sensitivity touch screen input user's pressure sensitivity
When instruction, display program just select using an action shot display technology presentation an action shot of the invention, photo or needs to present
Additional recorded video is not all needed for dynamic photo, is occupied little space.
Detailed description of the invention
Fig. 1 is the structural block diagram of embodiment one provided by the invention;
Fig. 2 is the flow chart of embodiment one provided by the invention;
Fig. 3 is the flow chart of embodiment two provided by the invention.
In figure, pressure sensitivity touch-control sensing module 1;Display control module 2;Photo display module 3;Photo search module 4;It is touched
Control photo P;Display area R;Sequence S;All photo PN.
Specific embodiment
It is the preferred embodiment of the present invention and in conjunction with attached drawing below, technical scheme of the present invention will be further described,
It is single that the present invention is not limited to these Examples.
Embodiment one
For the problem that presently, there are an action shot memory space it is big, and need compatible display program, the present embodiment
Passerby's one kind is provided and does not need shooting video, it is only necessary to photo display technology show an action shot based on pressure sensitivity Touch Screen
An action shot display methods.
It is detailed in the flow chart of the structural block diagram and Fig. 2 of Fig. 1, an action shot based on pressure sensitivity Touch Screen of the present embodiment is aobvious
Show method the following steps are included:
S1: photo is shown in the display area of pressure sensitivity touch screen by photo display module 3, it is preferable that pressure sensitivity here
The display area of touch screen is in rectangle, currently according to the needs of the shape of pressure sensitivity touch screen and display effect, viewing area here
Domain may be other shapes,
Then, to the input user's pressure sensitivity instruction of pressure sensitivity touch screen, pressure sensitivity touch-control sensing module 1 notifies pressure sensitivity touch event
Display control module 2;
In above-mentioned steps, the instruction of user's pressure sensitivity is long-pressing and/or again by being shown in the display area of pressure sensitivity touch screen
Photo, the photo be by touch-control photo P.
In the technical scheme, photo is shown under normal circumstances in static form, if user is aobvious with certain dynamics long-pressing
Show on region can be so that continuous shooting before and after it or be not that continuous photo is updated in a short time with continuous by touch-control photo P
It shows, to obtain the effect of an action shot.
S2: display control module 2 notifies photo search module 4 in a manner of preset search when receiving pressure sensitivity touch event
Search for corresponding photo and sort and forms photo sequence S, and by display control module 2 by the photo in photo sequence S with first frame
Rate is sent to photo display module 3;
Preset search mode in above-mentioned steps specifically includes:
S2.1: display control module 2 is when receiving pressure sensitivity touch event, with being touched in the display area of pressure sensitivity touch screen
Control photo P is search parameter;
S2.2: photo search module 4 judges according to by the name search image data base of touch-control photo P by touch-control photo P
It whether is continuous photo;
If being judged as continuous photo, sequentially forming photo sequence S and feeding back to display when by touch-control photo P by generation
Control module 2;
If being judged as non-continuous photo, according to by the generation time of touch-control photo P, image data base is searched for, lookup is touched
First time period before the control photo P generation time and/or the photo in the second time period after the generation time, it is raw according to piece
At when sequentially form photo sequence S and feed back to display control module 2;
Further, the first time period in above-mentioned steps and second time period are T minutes and T≤10.
That is first time period and second time period here is equal, checks by before and after the touch-control photograph taking time ten
Photo in minute, the considerations of being mainly based upon terminal arithmetic speed and terminal space, if terminal is with higher hard certainly
Part configuration, T here can also be greater than 10 minutes, and user can be according to self-setting the case where terminal hardware.
In the present solution, the mode for generating an action shot is first to judge whether photo is continuous photo, then according to judgement
As a result judge whether to execute and search by the image data base in front and back a period of time of the generation time of touch-control photo P for generation
An action shot.
In above-mentioned steps S2.2, according to by the title of touch-control photo judge by touch-control photo whether be continuous photo or
According to judging to screen photo by the title of touch-control photo whether there is the specific method of continuous photo to include:
Photo search module (4) will be by the title of touch-control photo and all name of pictures of image data base or screening photo name
Title compares, the naming rules of all photos in a continuous shooting be formula 1., it may be assumed that
xxx-n.jpg ①;
Wherein n is variable and represents n-th photo in this continuous shooting, and xxx is the shooting that this continuous shooting first opens photo
Time;
Numerical value by comparing n and/or xxx is obtained by whether touch-control photo is whether continuous photo or screening photo have
There is continuous photo.
That is, each time continuous shooting when photo name be all it is regular, " xxx " in " xxx-n.jpg " is thus
Secondary continuous shooting first opens the shooting time of photo, wherein " n " represent be current photo as in continuous photo which, such as by
Touch-control photo is " xxx-3.jpg ", that photo search module 4 searches for all photo PN titles of image data base or all sieves automatically
Name of pictures is selected, needs to find out " xxx-1.jpg ", " xxx-2.jpg " before being " xxx-3.jpg " by touch-control photo, simultaneously
If not being last in current continuous shooting for " xxx-3.jpg " by touch-control photo, oneself to search for " xxx-
4.jpg ", " xxx-5.jpg " ... are until search last photo " xxx-n.jpg " in the secondary continuous shooting.
S3: photo display module 3 receives the photo that display control module 2 is sent, and is shown in display area, while with
Second frame rate updates the photo content in display area, to form an action shot in display area.
Further, in the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, first frame rate
With the second frame rate be N frame per second and N >=12.
The technical program is different from realizing the prior art of an action shot by the way of recorded video, the technical program without
It is rendered as dynamic photo by static photo or needs and does not all need additional recorded video, lay particular emphasis on the realization of photo display technology
The displaying of an action shot, when to the input user's pressure sensitivity instruction of pressure sensitivity touch screen, display program just selects to move using of the invention
An action shot is presented in state photo display technology.
The present embodiment also disclose it is a kind of using an action shot display methods based on pressure sensitivity Touch Screen based on pressure sensitivity
An action shot display system of Touch Screen comprising the pressure sensitivity touch-control sensing module being connected with the display area of pressure sensitivity touch screen
1, the pressure sensitivity touch-control sensing module 1 is connected by display control module 2 with photo display module 3, and the display control
Molding block 2 is connected with photo search module 4, in which:
Pressure sensitivity touch-control sensing module 1: for receiving user's pressure sensitivity instruction to the input of pressure sensitivity touch screen, and by pressure sensitivity touch-control
Event notifies display control module 2;
Display control module 2: for being shone using notifying currently by touch-control photo P as parameter when receiving pressure sensitivity touch event
Piece search module 4 searches for qualified photo sequence S, and to the photo in sequence S with the rate of N frame per second (such as N >=12)
It is sent to photo display module 3;
Photo search module 4: it forms photo sequence S for searching for corresponding photo in a manner of preset search and sorting and feeds back
To display control module 2;
Photo display module 3: for showing that photo, photo display module 3 first show photo in R in the R of display area
P, in the R of display area occur pressure sensitivity touch event when receive display control module 2 send through 4 basis of photo search module
The parameter of photo P and the photo screened, and the photo content in the R of display area is updated with the second frame rate, thus in viewing area
An action shot is formed in the R of domain, the display area of the present embodiment is rectangular area.
By above-mentioned each module, existing photo in the electronic equipments such as mobile phone is utilized, is with by touch-control photo P by all
Continuous shooting relationship or the photo shot in a period of time before and after it are presented in such a way that certain speed updates in display area
An action shot makes full use of original photo, eliminates video record step, saves a large amount of for the additional of the needs of recorded video two
Space.
An action shot display system based on pressure sensitivity Touch Screen of the present embodiment facilitates an action shot display function
Exploitation, and easy, the consistent user experience to user.
Embodiment two
The structural principle and embodiment of the present embodiment are similar with embodiment one, the difference is that:
See the flow chart of figure three, the present embodiment judge in step S2.2 by touch-control photo P whether be continuous photo side
Formula are as follows: photo search module 4 first according to by the generation time of touch-control photo P, is searched for image data base, searched by touch-control photo P
First time period before the generation time and/or the screening photo in the second time period after the generation time, that is, it is all
Photo PN, and judge to screen in photo whether there is continuous photo according to by the title of touch-control photo P;
If judging there is continuous photo, affiliated continuous photo sequentially forms photo by shooting time in all photo PN
Sequence S simultaneously feeds back to display control module 2;
If judging no continuous photo, all photo PN are sequentially formed photo sequence S and are fed back to aobvious as shooting time
Show control module 2.
In the present solution, the mode for generating an action shot is first to search in a period of time before and after being generated by touch-control photo P
Then rope image data base judges whether there is continuous photo in the image searched and then generates dynamic according to judging result
Photo.
Embodiment three
The structural principle and embodiment of the present embodiment are similar with embodiment one, the difference is that:
Display control module 2 is sent in the first frame rate and S3 step of 3 photo of photo display module in S2 step
The second frame rate by display module more new photo is unequal.
Transmission and display are conducive to adapt to switch in transmission process or updating display using unequal rate
Buffer time in journey keeps Dynamically Announce more natural.
Example IV
The structural principle and embodiment of the present embodiment are similar with embodiment one, the difference is that:
When in step S2.2 by the first time period before the touch-control photo P generation time and second after the generation time
Between section duration it is not identical, herein according to specific needs be arranged period size, clapped for example, can be set and check by touch-control photo
It takes the photograph the photo before the time in 10 minutes and checks by the photo after the touch-control photograph taking time in 5 minutes, it in this way can be with
Multiple choices are provided the user with, user can be according to self-setting the case where itself.
The present invention utilizes the pressure sensitivity Touch Screen technology of smart phone, realizes a kind of new common software control, the control
The picture display function of existing Android control is inherited, and when receiving specific pressure sensitivity touch event, passes through photo search module 4
It is updated to picture shown by control according to certain algorithm search image data base and in a specific way.In electron album, wallpaper
Use the control that can realize the user experience of an action shot in any program Deng display photo.
The present invention also has many advantages, such as that system hardware framework is simple, high degree of automation, and it is aobvious that system facilitates an action shot
Show the exploitation of function, and easy, the consistent user experience to user.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.
Although pressure sensitivity touch-control sensing module 1 is used more herein;Display control module 2;Photo display module 3;According to
Piece search module 4;By touch-control photo P;Display area R;Sequence S;The terms such as all photo PN, but be not precluded and use other arts
A possibility that language.The use of these items is only for be more convenient to describe and explain essence of the invention;It is construed as
Any additional limitation is disagreed with spirit of that invention.