An action shot display methods and system based on pressure sensitivity Touch Screen
Technical field
It is aobvious the invention belongs to the technical field that photo shows, more particularly to a kind of an action shot based on pressure sensitivity Touch Screen
Show method and system.
Background technology
Pressure sensitivity Touch Screen will be more and more universal on smart mobile 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, while cost is controlled, there is provided
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, and with the accurate of touch screens.
What traditional photograph taking was obtained can only be static photo, not give people fresh and alive sensation, be this scientific and technological circle not
Disconnected to propose an action shot on " photo is become into fresh and alive memory, allow your memory life-like ", such as LivePhoto is
The IOS New functions that behaviour is continued saying it with interest, give people have left a deep impression.Its concrete operation method is as follows:Start " camera ", selection
" Live Photo " function, then grows key of tripping, and a Live Photo (an action shot) just has been ingested.Then,
In " photograph album " the inner photo for finding just now, the 3D Touch functions of possessing with new iPhone are long by sub-screen with some power, i.e.,
The Consumer's 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 is constituted (the one section of video of front and rear each shooting for shooting high definition photo).Playing Live Photo
When (an action shot), this section of MOV is then played with the speed of 15 frames/second, gives the experience of photo " fresh and alive ".
And Live Photo (an action shot) not entirely novel inventions.Blackberry, blueberry, Nokia, HTC released similar then
Function, the Rewind of blackberry, blueberry can allow people to look back the change of front and rear a period of time of photo, so as to choose optimal one
, it is to avoid the situation that subject is closed one's eyes, laughs at not open.The ZOE that HTC is released before this is similar with the Rewind functions of blackberry, blueberry, it
3 seconds pictures can be automatically snapped, 20 continuous shootings and one section of video file is generated, final effect turns into a Dynamic Graph;Nuo Ji
Sub- Living Image videos are similar with the Live Photo (an action shot) of apple, but are shorter in length than 1 second, do not have sound
Sound.
The technical scheme of above-mentioned introduction all stresses technique for taking, one section of video is shot when photo is shot, then by broadcasting
The mode for putting video reaches photo " fresh and alive " effect;Contain the video of extra recording due to the method, " the live photographs for generally generating
Piece " is 2 times of normal photo size, and no matter an action shot or still photo shoot one section and regard when photo is shot
Frequently, the unnecessary Documents Comparison for shooting and generating in the case of causing photo such as Building class photo under script i.e. static state is wasted
Space.
In order to solve the above technical problems, China Patent No. discloses a kind of method, the device of control Live Photo generations
And electronic equipment [application number:2016103758833], wherein method includes:When electronic equipment is in scene photograph Live
When being shot under Photo patterns, the record of video image is carried out to target scene, and photograph taking is carried out to target scene;
Video image according to recorded judges whether target scene is dynamic scene;If the video image according to recorded judges mesh
Mark scene is dynamic scene, then retain the photo of video image and the target scene for photographing;If according to regarding for recorded
Frequency image judges that target scene is not dynamic scene, then delete video image, and retain the photo of the target scene for photographing.Again
As China Patent No. discloses a kind of photo display methods and device, intelligent terminal [application number:201510893738.X], wherein
Method includes:Photo group to be shown is obtained, the photo group includes at least two photos;By each in the photo group
Photo, shows one by one in same viewing area.
Although the former solves and avoids the Production development photo in the case where object is static from wasting unnecessary in such scheme
The technical problem in space, but still stress technique for taking, and still there is the extra video recorded in its an action shot, generation
" an action shot " is 2 times of normal photo size;And need compatible display program (live forms photo can be decoded) ability
Decoding and presentation " an action shot ";And although the latter has saved memory space to a certain extent, existing cannot basis
Customer demand carries out the problem of Dynamic Display to photo.
The content of the invention
Regarding the issue above, the present invention provides a kind of generate an action shot in the way of photo shows, it is not required to
Want extra recorded video, an action shot display methods based on pressure sensitivity Touch Screen of save space,
The another object of this programme is to provide a kind of high degree of automation and using the dynamic photograph based on pressure sensitivity Touch Screen
An action shot display system based on pressure sensitivity Touch Screen of piece display methods.
To reach above-mentioned purpose, present invention employs following technical proposal:
An action shot display methods based on pressure sensitivity Touch Screen is comprised the following steps:
S1:Photo is shown in the viewing area of pressure sensitivity touch screen by photo display module, pressure sensitivity touch screen is input into and is used
Pressure sensitivity touch event is notified display control module by family pressure sensitivity instruction, pressure sensitivity touch-control sensing module;
S2:Display control module notifies that photo search module is searched in preset search mode when pressure sensitivity touch event is received
Rope correspondence photo simultaneously sorts and forms photo sequence, and the photo in photo sequence is sent into photo by display control module shows
Module;
S3:Photo display module receives the photo that display control module sends, and is displayed in viewing area, while updating
Photo content in viewing area, so as to form an action shot in viewing area.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, in step sl, user's pressure sensitivity
Instruct for it is long by and/or again by the photo being shown in the viewing area of pressure sensitivity touch screen.
In the above-mentioned technical solutions, generally photo is shown in the form of static state, if pressed with longer period of time again
Photo on display screen just can make the continuous photo before and after it continuously show to obtain the effect of an action shot in a short time.
In the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, the preset search side in the step S2
Formula is specifically included:
S2.1:Display control module is touched when pressure sensitivity touch event is received with the viewing area of pressure sensitivity touch screen
Control photo is search parameter;
S2.2:Photo search module is by touch-control photo according to by the name search image data base of touch-control photo, judging
No is continuous photo;
If being judged as continuous photo, sequentially forming photo sequence and feeding back to display control during by touch-control photo by generation
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 by the first time period before the touch-control photo generation time 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 this programme, the mode of an action shot is generated first to judge whether photo is continuous photo, then according to judgement
Result judges whether to perform searches by the image data base in front and rear a period of time of the generation time of touch-control photo for generation
An action shot.
Or;Photo search module is shone according to image data base, lookup by the generation time of touch-control photo, is searched for by touch-control
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
Whether the title of touch-control photo judges there is continuous photo in screening photo;
If judgement has continuous photo, affiliated continuous photo sequentially forms photo sequence by shooting time in screening photo
Arrange and feed back to display control module;
If judging, without continuous photo, screening photo is sequentially formed photo sequence and is fed back to display control as shooting time
Molding block.
In this programme, the mode for generating an action shot is first to generate search in front and rear a period of time by touch-control photo
Image data base, then judges whether that continuous photo then shines according to judged result generation dynamic in the image for searching
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 time periods is differed.
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
Control photo title judge by touch-control photo whether be continuous photo or according to by touch-control photo title judge screen photo
Whether the specific method with continuous photo includes:
Photo search module is by by all name of pictures of title and image data base of touch-control photo or screening name of pictures
Contrasted, the naming rule of all photos in a continuous shooting for formula 1., i.e.,:
xxx-n.jpg①;
Wherein n is variable and represents n-th photo in this continuous shooting, and xxx is first shooting of photo of this continuous shooting
Time;
Drawn by whether touch-control photo is whether continuous photo or screening photo have by the numerical value for comparing n and/or xxx
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 by module with the first frame rate;In step s3, the viewing 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 are fast
Rate is unequal;
Or, first frame rate and the second frame rate are N frames per second and N>=12.
Moving based on pressure sensitivity Touch Screen using an action shot display methods 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 viewing area of pressure sensitivity touch screen, described pressure sensitivity touch-control
Induction module is connected by display control module with photo display module, and described display control module is connected with photo search
Module, wherein:
Pressure sensitivity touch-control sensing module:For receiving the 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 pressure sensitivity touch event is received, notifying the search of photo search module qualified
Photo sequence, and photo display module is sent to the first frame rate to the photo in sequence;
Photo search module:Form photo sequence and feed back to for searching for correspondence photo and sorting in preset search mode
Display control module;
Photo display module:For showing photo in viewing area, and display is received when there is pressure sensitivity touch event
The photo that control module sends, and the photo content in viewing area is updated with the second frame rate, so as in viewing area
Form an action shot.
The present invention lays particular emphasis on the displaying that photo Display Technique realizes an action shot, when to pressure sensitivity touch screen input user's pressure sensitivity
During instruction, display program just select use an action shot Display Technique of the invention present an action shot, photo or need present
For dynamic photo does not all need extra recorded video, occupy little space.
Brief description of the drawings
Fig. 1 is the structured flowchart of the embodiment one that the present invention is provided;
Fig. 2 is the flow chart of the embodiment one that the present invention is provided;
Fig. 3 is the flow chart of the embodiment two that the present invention is provided.
In figure, pressure sensitivity touch-control sensing module 1;Display control module 2;Photo display module 3;Photo search module 4;Touched
Control photo P;Viewing area R;Sequence S;All photo PN.
Specific embodiment
The following is the preferred embodiments of the present invention and with reference to accompanying drawing, technical scheme is further described,
List is the invention is not restricted to these embodiments.
Embodiment one
It is big for an action shot memory space that presently, there are, and the problem of compatible display program is needed, the present embodiment
There is provided passerby's one kind need not shoot video, it is only necessary to photo Display Technique display an action shot based on pressure sensitivity Touch Screen
An action shot display methods.
The flow chart of the structured flowchart and Fig. 2 of Fig. 1 is referred to, an action shot based on pressure sensitivity Touch Screen of the present embodiment shows
Show that method is comprised the following steps:
S1:Photo is shown in the viewing area of pressure sensitivity touch screen by photo display module 3, it is preferable that pressure sensitivity here
The viewing area of touch screen is rectangular, currently the need for the shape and display effect according to pressure sensitivity touch screen, viewing area here
Domain can also be other shapes,
Then, to the input user 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 for it is long by and/or again by being shown in the viewing area of pressure sensitivity touch screen
Photo, the photo is by touch-control photo P.
In the technical program, generally photo is shown in the form of static state, if user is long by aobvious with certain dynamics
Show the continuous shooting that just can be made by touch-control photo P before and after it on region or be not that continuous photo updates with continuous in a short time
Displaying, to obtain the effect of an action shot.
S2:Display control module 2 notifies photo search module 4 in preset search mode when pressure sensitivity touch event is received
Search correspondence photo and sequence forms photo sequence S, and by display control module 2 by the photo in photo sequence S with the first frame
Speed is sent to photo display module 3;
Preset search mode in above-mentioned steps is specifically included:
S2.1:Display control module 2 is touched when pressure sensitivity touch event is received with the viewing area of pressure sensitivity touch screen
Control photo P is search parameter;
S2.2:Photo search module 4 is judged by touch-control photo P according to by the name search image data base of touch-control photo P
Whether it is continuous photo;
If being judged as continuous photo, sequentially forming photo sequence S and feeding back to display during by touch-control photo P by generation
Control module 2;
If being judged as non-continuous photo, according to image data base by the generation time of touch-control photo P, is searched for, lookup is touched
First time period before the control photo P generation times and/or the photo in the second time period after the generation time, give birth to according to piece
Into when sequentially form photo sequence S and feed back to display control module 2;
Further, the first time period and second time period in above-mentioned steps are T minutes and T<=10.
That is first time period and second time period here is equal, checks by ten before and after the touch-control photograph taking time
Photo in minute, is mainly based upon the consideration of terminal arithmetic speed and terminal space, if certainly terminal have it is higher hard
Part is configured, and T here can also be more than 10 minutes, and user can voluntarily be set according to the situation of terminal hardware.
In this programme, the mode of an action shot is generated first to judge whether photo is continuous photo, then according to judgement
Result judges whether to perform searches by the image data base in front and rear 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
Judge whether the specific method with continuous photo includes screening photo according to by the title of touch-control photo:
Photo search module (4) is by by all name of pictures of title and image data base of touch-control photo or screening photo name
Title is contrasted, the naming rule of all photos in a continuous shooting for formula 1., i.e.,:
xxx-n.jpg ①;
Wherein n is variable and represents n-th photo in this continuous shooting, and xxx is first shooting of photo of this continuous shooting
Time;
Drawn by whether touch-control photo is whether continuous photo or screening photo have by the numerical value for comparing n and/or xxx
There is continuous photo.
That is, each time continuous shooting when photo name be all regular, " xxx " in " xxx-n.jpg " is this
First shooting time of photo of secondary continuous shooting, wherein " n " represent be current photo as in continuous photo which, such as by
Touch-control photo is " xxx-3.jpg ", and that photo search module 4 searches for all photo PN titles of image data base or all sieves automatically
Select name of pictures, it is necessary to find out by touch-control photo be " xxx-3.jpg " before " xxx-1.jpg ", " xxx-2.jpg ", while
If by touch-control photo being last during " xxx-3.jpg " is not current continuous shooting, oneself search " xxx-
4.jpg ", " xxx-5.jpg " ... are until search last photo " xxx-n.jpg " in this continuous shooting.
S3:Photo display module 3 receives the photo that display control module 2 sends, and is displayed in viewing area, while with
Second frame rate updates the photo content in viewing area, so as to form an action shot in viewing area.
Further, in the above-mentioned an action shot display methods based on pressure sensitivity Touch Screen, first frame rate
N frames per second and N are with the second frame rate>=12.
The technical program is different from the prior art for realizing an action shot by the way of the recorded video, the technical program without
By static photo or need to be rendered as dynamic photo all not need extra recorded video, lay particular emphasis on the realization of photo Display Technique
The displaying of an action shot, when being instructed to pressure sensitivity touch screen input user pressure sensitivity, display program just selects to use of the invention moving
State photo Display Technique is presented an action shot.
The present embodiment also disclose it is a kind of using based on pressure sensitivity Touch Screen an action shot display methods based on pressure sensitivity
An action shot display system of Touch Screen, it includes the pressure sensitivity touch-control sensing module being connected with the viewing area of pressure sensitivity touch screen
1, described pressure sensitivity touch-control sensing module 1 is connected by display control module 2 with photo display module 3, and described display control
Molding block 2 is connected with photo search module 4, wherein:
Pressure sensitivity touch-control sensing module 1:For receiving the 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 when pressure sensitivity touch event is received, by touch-control photo P to be currently parameter, notify to shine
Piece search module 4 searches for qualified photo sequence S, and to the photo in sequence S with N frames (such as N per second>=speed 12)
It is sent to photo display module 3;
Photo search module 4:Form photo sequence S and feed back for searching for correspondence photo and sorting in preset search mode
To display control module 2;
Photo display module 3:For showing photo in the R of viewing area, photo display module 3 first shows photo in R
P, in the R of viewing area occur pressure sensitivity touch event when receive display control module 2 send through the basis of photo search module 4
The parameter of photo P and the photo that screens, and the photo content in the R of viewing area is updated with the second frame rate, so as in viewing area
An action shot is formed in the R of domain, the viewing area of the present embodiment is rectangular area.
By above-mentioned each module, existing photo in the electronic equipments such as mobile phone is make use of, be with by touch-control photo P by all
Continuous shooting relation or the photo shot within a period of time before and after it are presented in viewing area in the way of certain speed updates
An action shot, makes full use of original photo, eliminates video record step, and it is the extra of the needs of recorded video two to save a large amount of
Space.
An action shot display system based on pressure sensitivity Touch Screen of the present embodiment facilitates an action shot display function
Exploitation, and give user easy, consistent Consumer's Experience.
Embodiment two
The structural principle and implementation method of the present embodiment are similar with embodiment one, and difference is:
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 is:Photo search module 4 first according to by the generation time of touch-control photo P, searches for image data base, searches by touch-control photo P
Screening photo in first time period before the generation time and/or the second time period after the generation time, that is, own
Photo PN, and judge whether there is continuous photo in screening photo according to by the title of touch-control photo P;
If judgement has 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 without 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 this programme, the mode for generating an action shot is first to be searched in a period of time before and after being generated by touch-control photo P
Rope image data base, then judges whether that continuous photo then generates dynamic according to judged result in the image for searching
Photo.
Embodiment three
The structural principle and implementation method of the present embodiment are similar with embodiment one, and difference is:
During display control module 2 is sent to first frame rate and S3 steps of the photo of photo display module 3 in the S2 steps
The second frame rate by display module more new photo is unequal.
Transmission and display are conducive to adapting to switching in transmitting procedure or display is updated using unequal speed
Buffer time in journey, make Dynamic Announce more natural.
Example IV
The structural principle and implementation method of the present embodiment are similar with embodiment one, and difference is:
When in step S2.2 by the first time period before the touch-control photo P generation times and after the generation time second
Between section duration differ, time period size can be set according to specific needs herein, clapped by touch-control photo for example, can set and check
Take the photograph the photo before the time in 10 minutes and check by the photo after the touch-control photograph taking time in 5 minutes, so can be with
Multiple choices are provided the user with, user can voluntarily be set according to the situation of itself.
The present invention realizes a kind of new common software control, the control using the pressure sensitivity Touch Screen technology of smart mobile phone
The picture display function of existing Android control is inherited, and when specific pressure sensitivity touch event is received, by photo search module 4
It is updated to according to certain algorithm search image data base and in a specific way the picture shown by control.In electron album, wallpaper
The Consumer's Experience of an action shot can be realized in any program Deng display photo using the control.
The present invention also has system hardware framework simple, and the advantages of high degree of automation, system facilitates an action shot and shows
Show the exploitation of function, and give user easy, consistent Consumer's Experience.
Specific embodiment described herein is only to the spiritual explanation for example of the present invention.Technology neck belonging to of the invention
The technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar mode
Generation, but without departing from spirit of the invention or surmount scope defined in appended claims.
Although more having used pressure sensitivity touch-control sensing module 1 herein;Display control module 2;Photo display module 3;According to
Piece search module 4;By touch-control photo P;Viewing area R;Sequence S;The terms such as all photo PN, but be not precluded from using other arts
The possibility of language.It is used for the purpose of more easily describing and explaining essence of the invention using these terms;It is construed as
The additional limitation of any one is all disagreed with spirit of the present invention.