The Dynamic Display method and device of the static images based on big dataTechnical field
The present invention relates to technical field of picture display, dynamic in particular to a kind of static images based on big dataState methods of exhibiting and device.
Background technology
With developing rapidly of the big data technology such as the Internet and Internet of Things, image display technology is also constantly to high-resolutionDegree, high-resolution direction are developed, and in large-sized picture such as distant view photograph, the content comprising, element also get more and more.
At present, in the display device such as mobile phone, panel computer, the displaying great majority for image are static display mode.AndDue to being limited to the screen size of mobile phone, panel computer, when the element in the oversized of picture or picture is excessive, userMust oneself manually picture be zoomed in or out to check.
The existing effect carrying out Dynamic Display process for static images mainly has both of which: one kind is random to figureThe local of piece is once advanced the mode zooming out translation to be shown;Another kind is the first motion by user setup pictureRegion and termination area, picture zooms out the modes such as translation by propulsion and is shown, and eventually arrives at the termination area that user specifies.
The common drawback of both the above exhibition method is that the movement of picture has randomness it is easy to make in picture onePartial content cannot be shown, therefore result in the technical problem of the full detail being unable in exhibiting pictures.
Content of the invention
In view of this, it is an object of the invention to provide a kind of Dynamic Display method of the static images based on big data andDevice, can solve the problem that in existing picture Dynamic Display technology, there is the technical problem of the full detail being unable in exhibiting pictures.
In a first aspect, embodiments providing a kind of Dynamic Display method of the static images based on big data, bagInclude:
Parameter according to picture and the parameter of screen, determine picture displaying ratio and initial presentation region;
With predetermined motion track, Mobile exhibiting region on picture.
In conjunction with a first aspect, embodiments providing the first possible embodiment of first aspect, wherein, instituteState with predetermined motion track, during Mobile exhibiting region on picture, also include:
Whether real-time detection current presentation comprises targeted graphical in region;
If comprising targeted graphical, suspend Mobile exhibiting region, and described targeted graphical is amplified show.
In conjunction with a first aspect, the possible embodiment of the second that embodiments provides first aspect, wherein, instituteState after targeted graphical is amplified with display, also include:
Picture is contracted to former displaying ratio, and continues to move to display area.
In conjunction with a first aspect, embodiments providing the third possible embodiment of first aspect, wherein, instituteState with predetermined motion track, during Mobile exhibiting region on picture, also include:
Real-time reception is derived from the amplifieroperation signal of user;
When receiving amplifieroperation signal, according to described amplifieroperation signal, the local of picture is amplified showing.
In conjunction with a first aspect, embodiments providing the 4th kind of possible embodiment of first aspect, wherein, instituteState the local to picture be amplified display after, also include:
Picture is contracted to former displaying ratio, and continues to move to display area.
In conjunction with a first aspect, embodiments providing the 5th kind of possible embodiment of first aspect, wherein, instituteState with predetermined motion track, Mobile exhibiting region on picture, particularly as follows:
According to predetermined motion track and displaying duration, calculate the coordinate of the viewing area of next frame using interpolator;
The coordinate of the viewing area according to next frame, redraws out next two field picture.
Second aspect, the embodiment of the present invention also provides a kind of Dynamic Display device of the static images based on big data, bagInclude:
Initial calculation module, for the parameter of the parameter according to picture and screen, determines picture displaying ratio and initial exhibitionShow region;
Mobile exhibiting module, for predetermined motion track, Mobile exhibiting region on picture.
In conjunction with second aspect, embodiments provide the first possible embodiment of second aspect, wherein, shouldDevice also includes:
Whether detection module, comprise targeted graphical in real-time detection current presentation region;
Amplification module, during for comprising targeted graphical in current presentation region, suspends Mobile exhibiting region, and to describedTargeted graphical is amplified showing.
In conjunction with second aspect, embodiments provide the possible embodiment of the second of second aspect, wherein, shouldDevice also includes:
Receiver module, is derived from the amplifieroperation signal of user for real-time reception;
Amplification module, for when receiving amplifieroperation signal, according to described amplifieroperation signal, the local to pictureIt is amplified showing.
In conjunction with second aspect, embodiments provide the third possible embodiment of second aspect, wherein, instituteState Mobile exhibiting module to include:
Interpolator, for according to predetermined motion track and displaying duration, calculating the coordinate of the viewing area of next frame;
Redraw unit, for the coordinate of the viewing area according to next frame, redraw out next two field picture.
The embodiment of the present invention brings following beneficial effect: the static images based on big data provided in an embodiment of the present inventionDynamic Display method and device in, first according to the Aspect Ratio of the parameters such as the Aspect Ratio of picture, resolution and screen, pointThe parameters such as resolution, determine displaying ratio in screen for the picture and initial presentation region.Then with predetermined motion track, in figureMobile exhibiting region on piece, carries out Dynamic Display to picture in the way of translating.Because the motion track of display area is predetermined, both can pre-set in a program it is also possible to voluntarily be arranged by user, so this motion track is not random, thereforeCan full detail in exhibiting pictures, thus solving the skill that there is the full detail being unable in exhibiting pictures in prior artArt problem.
Other features and advantages of the present invention will illustrate in the following description, and, partly become from descriptionObtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages are in description, claimsAnd in accompanying drawing specifically noted structure realizing and to obtain.
For enabling the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinateAppended accompanying drawing, is described in detail below.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to use required in embodimentFigure is briefly described it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed asThe restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to thisA little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows the stream of the Dynamic Display method of the static images based on big data that the embodiment of the present invention one is providedCheng Tu;
Fig. 2 shows the coordinate schematic diagram of redrawing process in the embodiment of the present invention one;
Fig. 3 shows showing of the Dynamic Display device of the static images based on big data that the embodiment of the present invention two is providedIt is intended to.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present inventionMiddle accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment onlyIt is a part of embodiment of the present invention, rather than whole embodiments.Therefore, the enforcement to the present invention providing in the accompanying drawings belowThe detailed description of example is not intended to limit the scope of claimed invention, but is merely representative of the selected enforcement of the present inventionExample.Based on embodiments of the invention, it is all that those skilled in the art are obtained on the premise of not making creative workOther embodiment, broadly falls into the scope of protection of the invention.
At present in the Dynamic Display mode of picture, the movement of picture has randomness it is easy to make the part in pictureContent cannot be shown, therefore result in the technical problem of the full detail being unable in exhibiting pictures.
Based on this, a kind of Dynamic Display method of the static images based on big data provided in an embodiment of the present invention and dressPut, can solve the problem that in existing picture Dynamic Display technology, there is the technical problem of the full detail being unable in exhibiting pictures.
Embodiment one:
The embodiment of the present invention provides a kind of Dynamic Display method of the static images based on big data, as shown in figure 1, the partyMethod mainly includes step:
S1: the parameter according to picture and the parameter of screen, determine picture displaying ratio and initial presentation region.
Calculate the parameters such as the screen size of mobile phone or panel computer, length-width ratio, resolution, and picture to be shown is bigThe little, parameter such as length-width ratio, resolution, determines picture displaying ratio and initial presentation region, and generally acquiescence is with the upper left corner of pictureFor initial presentation region.
The displaying ratio of picture determines the size of display area, is that the concrete numerical value of displaying ratio can be according to formula10/ δ k is determining.Wherein, δ k is the ratio of picture and screen size;10 is the default value of amplification, certainly, Yong HuyeAccording to actual needs this amplification can be changed to other numerical value.
For example, the size of picture is 2 times of screen, then δ k=2, and its displaying ratio is then 10/2=5, that is, will schemePiece amplifies 5 times and carries out Dynamic Announce.
S2: with predetermined motion track, Mobile exhibiting region on picture.Particularly as follows:
S21: according to predetermined motion track and displaying duration, calculate the seat of the viewing area of next frame using interpolatorMark.
Specifically, obtain the time that the time of Dynamic Display and interface redraw first.Wherein, the time acquiescence of Dynamic Display10 seconds, that is, completed the Dynamic Display of this picture within 10 second time;Time further according to Dynamic Display and the refreshing of screenRate calculates interface and redraws the required time, that is, redraws the time needed for each two field picture.
Then the time redrawing according to interface, calculate, using interpolator (interpolator), the time next time redrawingPoint, and calculate the coordinate of next two field picture with reference to predetermined motion track, i.e. next coordinate in picture for the display area.In the present embodiment, using the method for the getinterpolator (float input) in interpolator, acquisition redraws next timeTime, and then calculate coordinate in picture for the next display area.
S22: the coordinate of the viewing area according to next frame, redraws out next two field picture.
As shown in Fig. 2 generally using the upper left corner of picture as zero o.The coordinate of current presentation regional center point isp0(x0,y0), the coordinate of next display area central point is p (x, y), then display area moves up in x-axis and y-axis sideSize is respectively as follows:
δ x=x-x0;
δ y=y-y0.
As a preferred version, the matrix (matrix) of 3 × 3 is can be utilized to be calculated, this matrix is as follows:
The coordinate of the viewing area of next frame can be calculated according to this matrix, and redrawn out according to the coordinate being calculatedNext two field picture.
It is further, during carrying out step s2, can also to comprise the following steps:
S3: whether real-time detection current presentation comprises targeted graphical in region.
Targeted graphical in the present embodiment is face figure, using existing Face datection algorithm it becomes possible to identify figureFace figure in piece (current presentation region), specific Face datection algorithm, no longer it is described in detail in the present embodiment.If comprising face figure in current presentation region, carry out step s4.
In other embodiments it is also possible to according to actual needs using other kinds of figure as targeted graphical, for exampleCharacter graphics, animals graphics, automobile figure, or comprise the license plate number of word, number etc..
S4: suspend Mobile exhibiting region, and face figure is amplified show.
When detecting face figure, the Dynamic Display process of pause step s2, and face figure is amplified show.
During specific amplification display, in x-axis and y-axis direction, k is amplified respectively to face figure region1And k2Times, then in face figure x coordinate a little and y-coordinate all can amplify k respectively1And k2Times, its formula is:
X=k1x0;
Y=k2y0.
As a preferred version it is also possible to be calculated using the matrix of 3 × 3, this matrix is as follows:
Can achieve that the amplification of face figure shows according to this matrix.K under normal circumstances1=k2, but the reality according to userDemand is it is also possible to by k1And k2It is set to different values.
The time that face figure is amplified with show can pre-set in a program it is also possible to by user according to itselfDemand voluntarily arrange, the time that generally this amplification shows may be configured as between 3 seconds to 5 seconds.
When the amplification to face figure show terminate after, also include:
S7: picture is contracted to former displaying ratio.
By the displaying ratio in face pattern reduction to former display area, and continue to move to display area, that is, continueCarry out step s2, Dynamic Display is carried out to picture.
It is further, during carrying out step s2, can also to comprise the following steps:
S5: real-time reception is derived from the amplifieroperation signal of user.
The display devices such as mobile phone, panel computer generally all have touch controllable function, and user is in the mistake of viewing picture Dynamic DisplayCheng Zhong, if it is desired to carry out finer observation it is possible to grasp by touch-control to certain in picture a part of (such as face figure)Make, this part is amplified.When display device receives from the amplifieroperation signal of user, then carry out step s6.
S6: according to amplifieroperation signal, the local of picture is amplified showing.
When display device receives from the amplifieroperation signal of user, the Dynamic Display process of pause step s2, andAccording to amplifieroperation signal, the office of picture is amplified showing.Wherein, the part amplified and magnification ratio, all fromRead in the amplifieroperation signal of family input.
After the amplifieroperation of user terminates, amplifying observation being terminated by operation, then carrying out step s7, thus continuingContinuous Mobile exhibiting region, carries out Dynamic Display to picture.
In the Dynamic Display method of the static images based on big data provided in an embodiment of the present invention, first according to pictureThe parameters such as the size of the parameters such as size, length-width ratio, resolution and screen, length-width ratio, resolution, determine that picture is aobvious in screenShow ratio and initial presentation region.Then with predetermined motion track, Mobile exhibiting region on picture, by translate in the way of pairPicture carries out Dynamic Display.Because the motion track of display area is predetermined, both can pre-set in a program it is also possible toVoluntarily arranged by user, so this motion track is not random, therefore, it is possible to the full detail in exhibiting pictures, thus solvingThere is the technical problem of the full detail being unable in exhibiting pictures in prior art.
In the embodiment of the present invention, by during the Dynamic Display of picture, in real-time detection current presentation region whetherComprise face figure (or other targeted graphicals), and face figure is amplified showing, such that it is able to more intuitively by pictureIn important information show user.
In addition, by, during the Dynamic Display of picture, real-time reception is derived from the amplifieroperation signal of user, and according toAmplifieroperation signal, is amplified display to the local of picture it is achieved that user actively clicks on checks pattern, makes the user can beDuring browsing pictures, autonomous selection needs the details that emphasis is checked.
Embodiment two:
As shown in figure 3, the embodiment of the present invention provides a kind of Dynamic Display device of the static images based on big data, whereinIncluding initial calculation module 1 and Mobile exhibiting module 2.
Wherein, initial calculation module 1 is used for according to the parameter of picture and the parameter of screen, determines picture displaying ratio and justBeginning display area.Mobile exhibiting module 2 is used for predetermined motion track, Mobile exhibiting region on picture.
Specifically, the parameter such as the screen size of initial calculation module 1 calculating mobile phone or panel computer, length-width ratio, resolution,And the parameter such as the size of picture to be shown, length-width ratio, resolution, determine picture displaying ratio and initial presentation region, lead toOften acquiescence is with the upper left corner of picture for initial presentation region.
The displaying ratio of picture determines the size of display area, is that the concrete numerical value of displaying ratio can be according to formula10/ δ k is determining.Wherein, δ k is the ratio of picture and screen size;10 is the default value of amplification, certainly, Yong HuyeAccording to actual needs this amplification can be changed to other numerical value.
As a preferred version, Mobile exhibiting module 2 includes interpolator 21 and redraws unit 22.Wherein, interpolator21 are used for according to predetermined motion track and show duration, calculate the coordinate of the viewing area of next frame.Redraw unit 22 to useIn the coordinate of the viewing area according to next frame, redraw out next two field picture.
Specifically, obtain first and show that the refresh rate of duration and screen calculates the time that interface redraws, then by insertingMend the time that device 21 redraws according to interface, calculate the time point next time redrawing, and calculate with reference to predetermined motion trackThe coordinate of next two field picture, i.e. next coordinate in picture for the display area.Redraw the matrix calculus that unit 22 utilizes 3 × 3Go out the coordinate of the viewing area of next frame, and next two field picture is redrawn out according to the coordinate being calculated.
It is further that the Dynamic Display device of the static images based on big data provided in an embodiment of the present invention also includesDetection module 3 and amplification module 4.Detection module 3 is used for whether comprising targeted graphical in real-time detection current presentation region.AmplifyWhen module 4 is used for comprising targeted graphical in current presentation region, suspends Mobile exhibiting region, and targeted graphical is amplifiedDisplay.
Targeted graphical in the present embodiment be face figure, detection module 3 utilize existing Face datection algorithm it becomes possible toIdentify the face figure in picture (current presentation region), specific Face datection algorithm, no longer carry out in the present embodimentDescribe in detail.When detection module 3 detects face figure, suspend Dynamic Display process, and by amplification module 4 to face figureIt is amplified showing.
When the amplification to face figure show terminate after, by face pattern reduction to the displaying ratio in former display area,And continue to move to display area, Dynamic Display is carried out to picture.
It is further that the Dynamic Display device of the static images based on big data provided in an embodiment of the present invention also includesReceiver module 5.Receiver module 5 is used for the amplifieroperation signal that real-time reception is derived from user, and amplification module 4 is additionally operable to when receptionWhen module 5 receives amplifieroperation signal, according to amplifieroperation signal, the local of picture is amplified showing.
The display devices such as mobile phone, panel computer generally all have the receiver module 5 of touch controllable function, and user moves in viewing pictureDuring state is shown, if it is desired to certain in picture a part of (such as face figure) carry out finer observe it is possible toBy touch control operation, this part is amplified.When the receiver module 5 of display device receives the amplifieroperation letter from userNumber when, suspend Dynamic Display process, and by amplification module 4 according to amplifieroperation signal, the office of picture be amplified showing.ItsIn, the part amplified and magnification ratio, read all from the amplifieroperation signal of user input.
After the amplifieroperation of user terminates, amplifying observation can be terminated by operation, by face pattern reduction to former exhibitionShow the displaying ratio in region, and continue to move to display area, Dynamic Display is carried out to picture.
In the Dynamic Display device of the static images based on big data provided in an embodiment of the present invention, first by initial calculationModule 1, according to parameters such as the size of the parameters such as the size of picture, length-width ratio, resolution and screen, length-width ratio, resolution, determinesDisplaying ratio in screen for the picture and initial presentation region.Then Mobile exhibiting module 2 is with predetermined motion track, in pictureUpper Mobile exhibiting region, carries out Dynamic Display to picture in the way of translating.Because the motion track of display area is predetermined,Both can pre-set in a program it is also possible to voluntarily be arranged by user, so this motion track is not random, therefore, it is possible toFull detail in exhibiting pictures, thus the technology solving the full detail that presence is unable in exhibiting pictures in prior art is askedTopic.
In the embodiment of the present invention, by detection module 3 during the Dynamic Display of picture, real-time detection current presentation areaWhether comprise face figure (or other targeted graphicals) in domain, and be amplified showing by face figure by amplification module 4, thusMore intuitively the important information in picture can be showed user.
In addition, by receiver module 5 during the Dynamic Display of picture, real-time reception is derived from the amplifieroperation letter of userNumber, and by amplification module 4 according to amplifieroperation signal, display is amplified it is achieved that user actively clicks on to the local of pictureCheck pattern, make the user can be during browsing pictures, autonomous selection needs the details that emphasis is checked.
The computer program of the Dynamic Display device of the static images based on big data that the embodiment of the present invention is provided producesProduct, including the computer-readable recording medium storing program code, before the instruction that described program code includes can be used for executionMethod described in the embodiment of the method for face, implements and can be found in embodiment of the method, will not be described here.
If described function realized using in the form of SFU software functional unit and as independent production marketing or use when, permissibleIt is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other wordsPartly being embodied in the form of software product of part that prior art is contributed or this technical scheme, this meterCalculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individualPeople's computer, server, or network equipment etc.) execution each embodiment methods described of the present invention all or part of step.And aforesaid storage medium includes: u disk, portable hard drive, read only memory (rom, read-only memory), random access memory are depositedReservoir (ram, random access memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyThose familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should containCover within protection scope of the present invention.Therefore, protection scope of the present invention should described be defined by scope of the claims.