CN106980453A - picture browsing method and device - Google Patents

picture browsing method and device Download PDF

Info

Publication number
CN106980453A
CN106980453A CN201710113891.5A CN201710113891A CN106980453A CN 106980453 A CN106980453 A CN 106980453A CN 201710113891 A CN201710113891 A CN 201710113891A CN 106980453 A CN106980453 A CN 106980453A
Authority
CN
China
Prior art keywords
mobile terminal
state information
current
comparative result
amplitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710113891.5A
Other languages
Chinese (zh)
Inventor
曾友财
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201710113891.5A priority Critical patent/CN106980453A/en
Publication of CN106980453A publication Critical patent/CN106980453A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Abstract

The invention discloses a kind of picture browsing method and device, wherein, methods described includes:Obtain the initial state information for characterizing mobile terminal initial attitude;Obtain for characterizing the current state information after mobile terminal conversion posture;The current posture changing direction of mobile terminal is determined according to initial state information and current state information;Switch the picture browsed to direction corresponding with current posture changing direction.Current state information after the initial state information and conversion posture that are used for characterizing mobile terminal initial attitude due to obtaining, the current posture changing direction of mobile terminal can be determined according to initial state information and current state information, then, switch the picture browsed to direction corresponding with current posture changing direction according to the posture changing direction of determination, so as to, the conversion posture according to mobile terminal is realized to determine the switching direction of browsing pictures, then the picture that orientation switching is browsed is realized, Consumer's Experience is improved.

Description

Picture browsing method and device
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of picture browsing method and device.
Background technology
With the development of science and technology, mobile terminal skip comes more flourishing, also in the trend of development in pluralism.For example, taking pictures, browsing Picture function has become the conventional func of mobile terminal.
Generally, user is in image browsing, by sliding the mutual switching that picture realizes picture to the left or to the right, certainly Part mobile terminal is also supported to be similar to the form that lantern slide is played automatically.Switch picture by sliding to be disadvantageous in that, Switching is required for going to slide manually every time;, can only played in order although the form that support slide is played, it is difficult to according to Family demand arbitrarily forwardly and rearwardly switches.
In the prior art, there are some by gravity sensor (or gyroscope) to detect mobile terminal run-off the straight Action, picture switching is carried out by detecting the inclination of mobile terminal.But, its essence is also similar to that broadcasting manually for lantern slide Form is put, i.e., when detecting mobile terminal run-off the straight, triggering switches to next pictures and shown, therefore, is also Played in order, it is difficult to arbitrarily forwardly and rearwardly switched according to user's request.
Therefore, in browsing pictures, how to realize that the picture that orientation switching is browsed turns into technical problem urgently to be resolved hurrily.
The content of the invention
In view of this, the embodiments of the invention provide a kind of picture browsing method and device, to realize in browsing pictures, The picture that orientation switching is browsed.
First aspect present invention provides a kind of picture browsing method, including:Obtain for characterizing the initial appearance of mobile terminal The initial state information of state;Obtain for characterizing the current state information after mobile terminal conversion posture;Believed according to original state Breath and current state information determine the current posture changing direction of mobile terminal;To side corresponding with current posture changing direction The picture browsed to switching.
Current state after the initial state information and conversion posture that are used for characterizing mobile terminal initial attitude due to obtaining Information, the current posture changing direction of mobile terminal, then, root can be determined according to initial state information and current state information Switch the picture browsed to direction corresponding with current posture changing direction according to the posture changing direction of determination, so that, realize The switching direction of browsing pictures determined according to the conversion posture of mobile terminal, the figure that orientation switching is browsed then is realized Piece, improves Consumer's Experience.
With reference to first aspect present invention, in first aspect present invention first embodiment, initial state information for it is mobile eventually Hold the inclined angle in initial attitude in the first direction;Current state information be mobile terminal after conversion posture along first The inclined angle in direction;The current posture changing side of mobile terminal is determined according to initial state information and current state information To, including:Current state information and initial state information are obtained into comparative result as difference;Mobile terminal is determined according to comparative result Current posture changing direction.
In this embodiment, it is used as status information by obtaining the angle of inclination of mobile terminal in the first direction, passes through Differential seat angle determines posture changing direction as comparative result so that in browsing pictures, can be by tilting in the first direction The mode of mobile terminal switches the picture browsed, then improves the efficiency and convenience of picture switching, improves user's body Test.
With reference to first aspect present invention first embodiment, in first aspect present invention second embodiment, to it is current The picture that browses of the corresponding direction in posture changing direction switching include:When comparative result is timing, then switching browses current figure Next pictures of piece;When comparative result is bears, then switching browses a upper pictures for photo current.
With reference to first aspect present invention first to or second embodiment, the embodiment of first aspect present invention the 3rd In, after difference obtains comparative result, determined to move according to comparative result by current state information and initial state information Before the current posture changing direction of terminal, in addition to:Judge whether the amplitude of comparative result exceedes default amplitude;If compared As a result amplitude exceedes default amplitude, then determines the current posture changing direction of mobile terminal according to comparative result.
In this embodiment, by judging whether the amplitude of comparative result exceedes default amplitude, if comparative result Amplitude exceedes default amplitude, then determines the current posture changing direction of mobile terminal according to comparative result.So that it is determined that mobile During the current posture changing direction of terminal, it can reduce and carry out picture because when comparative result caused by other factorses changes and cut Probability is changed, so as to avoid picture switching excessively sensitive, the probability of erroneous judgement is reduced.
With reference to third embodiment of the invention, in the embodiment of first aspect present invention the 4th, if the width of comparative result Value exceedes default amplitude, before the current posture changing direction of mobile terminal is determined according to comparative result, in addition to:Obtain super Cross the duration of the comparative result of default amplitude;Judge whether duration exceedes preset duration;If duration exceedes Preset duration, then determine the current posture changing direction of mobile terminal according to comparative result.
With reference to first aspect present invention first embodiment or second embodiment, in fifth embodiment of the invention, Before the picture browsed is switched to direction corresponding with current posture changing direction, in addition to:Mobile terminal is obtained along the The amplitude of the angle change in two directions;Judge whether the amplitude of the angle change of mobile terminal in a second direction is more than comparative result Amplitude;If the amplitude of the angle change of mobile terminal in a second direction be less than comparative result amplitude, to it is current The picture that the corresponding direction switching in posture changing direction is browsed.
In this embodiment, if the amplitude of the angle change of mobile terminal in a second direction is less than the width of comparative result Value, then switch the picture browsed, by the comparison knot for comparing first direction to direction corresponding with current posture changing direction The amplitude of the amplitude of fruit and the angle change of second direction so that (for example adjustment is regarded in change in a second direction in mobile terminal Angle) when, the probability of unexpected switching browsing pictures can be reduced, the probability of picture switching erroneous judgement is reduced.
With reference to first aspect present invention, or any embodiment of first aspect present invention the first to the second, the present invention the On the one hand in the 6th embodiment, after the picture browsed is switched to direction corresponding with current posture changing direction, also Including:Using current state information as next sampled point initial state information.
Second aspect of the present invention provides a kind of picture browsing device, including:Initial acquisition module, is used for table for obtaining Levy the initial state information of mobile terminal initial attitude;Current acquisition module, is used to characterize mobile terminal conversion appearance for obtaining Current state information after state;Direction determining mould, it is mobile whole for being determined according to initial state information and current state information The current posture changing direction in end;Handover module, for switching what is browsed to direction corresponding with current posture changing direction Picture.
Current state after the initial state information and conversion posture that are used for characterizing mobile terminal initial attitude due to obtaining Information, the current posture changing direction of mobile terminal, then, root can be determined according to initial state information and current state information Switch the picture browsed to direction corresponding with current posture changing direction according to the posture changing direction of determination, so that, realize The switching direction of browsing pictures determined according to the conversion posture of mobile terminal, the figure that orientation switching is browsed then is realized Piece, improves Consumer's Experience.
With reference to second aspect of the present invention, in second aspect of the present invention first embodiment, initial state information for it is mobile eventually Hold the inclined angle in initial attitude in the first direction;Current state information be mobile terminal after conversion posture along first The inclined angle in direction;Direction determining mould includes:Comparing unit, for current state information and initial state information to be made Difference obtains comparative result;Determining unit, for determining the current posture changing direction of mobile terminal according to comparative result.
In this embodiment, it is used as status information by obtaining the angle of inclination of mobile terminal in the first direction, passes through Differential seat angle determines posture changing direction as comparative result so that in browsing pictures, can be by tilting in the first direction The mode of mobile terminal switches the picture browsed, then improves the efficiency and convenience of picture switching, improves user's body Test.
With reference to second aspect of the present invention first embodiment, in second aspect of the present invention second embodiment, handover module Specifically for being timing when comparative result, then switching browses next pictures of photo current;When comparative result is bears, then cut Change the upper pictures for browsing photo current.
With reference to second aspect of the present invention first to or second embodiment, the embodiment of second aspect of the present invention the 3rd In, after difference obtains comparative result, determined to move according to comparative result by current state information and initial state information Before the current posture changing direction of terminal, in addition to:First judge module, for judging whether the amplitude of comparative result exceedes Default amplitude;If determining unit be used for the first judge module judge comparative result amplitude exceed preset amplitude, according to than The current posture changing direction of mobile terminal is determined compared with result.
In this embodiment, by judging whether the amplitude of comparative result exceedes default amplitude, if comparative result Amplitude exceedes default amplitude, then determines the current posture changing direction of mobile terminal according to comparative result.So that it is determined that mobile During the current posture changing direction of terminal, it can reduce and carry out picture because when comparative result caused by other factorses changes and cut Probability is changed, so as to avoid picture switching excessively sensitive, the probability of erroneous judgement is reduced.
With reference to third embodiment of the invention, in the embodiment of second aspect of the present invention the 4th, in addition to:Timing module, Duration for obtaining the comparative result for exceeding default amplitude;Second judge module, for judging whether duration surpasses Cross preset duration;If determining unit judges that duration exceedes preset duration for the second judge module, according to comparing knot Fruit determines the current posture changing direction of mobile terminal.
With reference to second aspect of the present invention first embodiment or second embodiment, in fifth embodiment of the invention, Also include:Direction acquisition module, the amplitude for obtaining the angle change of mobile terminal in a second direction;3rd judge module, For judging whether the amplitude of the angle change of mobile terminal in a second direction is more than the amplitude of comparative result;Handover module is used for If the 3rd judge module judges that the amplitude of the angle change of mobile terminal in a second direction is less than the amplitude of comparative result, to The picture that direction switching corresponding with current posture changing direction is browsed.
In this embodiment, if the amplitude of the angle change of mobile terminal in a second direction is less than the width of comparative result Value, then switch the picture browsed, by the comparison knot for comparing first direction to direction corresponding with current posture changing direction The amplitude of the amplitude of fruit and the angle change of second direction so that (for example adjustment is regarded in change in a second direction in mobile terminal Angle) when, the probability of unexpected switching browsing pictures can be reduced, the probability of picture switching erroneous judgement is reduced.
With reference to second aspect of the present invention, or any embodiment of second aspect of the present invention the first to the second, the present invention the In two the 6th embodiments of aspect, in addition to:Initialization module, for regarding current state information as the initial of next sampled point Status information.
Third aspect present invention provides a kind of mobile device, including:Display device, memory and processor, it is described aobvious Interconnected between showing device, the memory and the processor by bus, the computer that is stored with the memory refers to Order, the processor is by performing the computer instruction, so as to realize following methods:
Obtain the initial state information for characterizing mobile terminal initial attitude;Obtain for characterizing mobile terminal conversion appearance Current state information after state;The current posture changing side of mobile terminal is determined according to initial state information and current state information To;Switch the picture browsed to direction corresponding with current posture changing direction.
Current state after the initial state information and conversion posture that are used for characterizing mobile terminal initial attitude due to obtaining Information, the current posture changing direction of mobile terminal, then, root can be determined according to initial state information and current state information Switch the picture browsed to direction corresponding with current posture changing direction according to the posture changing direction of determination, so that, realize The switching direction of browsing pictures determined according to the conversion posture of mobile terminal, the figure that orientation switching is browsed then is realized Piece, improves Consumer's Experience.
Brief description of the drawings
The features and advantages of the present invention can be more clearly understood from by reference to accompanying drawing, accompanying drawing is schematical without that should manage Solve to carry out any limitation to the present invention, in the accompanying drawings:
Fig. 1 a show the hardware architecture diagram of mobile device in the embodiment of the present invention;
Fig. 1 b show a kind of picture browsing method first embodiment flow chart in the embodiment of the present invention;
Fig. 2 a show a kind of picture browsing method second embodiment flow chart in the embodiment of the present invention;
Fig. 2 b show a kind of mobile terminal three-axis reference schematic diagram in the embodiment of the present invention;
Fig. 2 c show in the embodiment of the present invention a kind of mobile terminal clinoplain schematic diagram in the first direction;
Fig. 3 shows a kind of picture browsing method 3rd embodiment flow chart in the embodiment of the present invention;
Fig. 4 shows a kind of picture browsing method fourth embodiment flow chart in the embodiment of the present invention;
Fig. 5 a show a kind of a kind of example structure schematic diagram of picture browsing device in the embodiment of the present invention;
Fig. 5 b show a kind of another example structure schematic diagram of picture browsing device in the embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not having There is the every other embodiment made and obtained under the premise of creative work, belong to the scope of protection of the invention.
The general idea of the embodiment of the present invention is:The change of mobile terminal posture is determined by obtaining status information of mobile terminal Direction is changed, changes direction to switch the orientation of browsing pictures based on determination.
In embodiments of the present invention, mobile device is the mobile device such as mobile phone or tablet personal computer, mobile device using mobile phone as Example, as shown in Figure 1a, mobile phone includes radio circuit 210 to the part-structure block diagram of mobile phone, memory 220, input block 230, aobvious Show the parts such as unit 240, sensor 250, voicefrequency circuit 260, wireless module 270, processor 280 and power supply 290.This area Technical staff is appreciated that the handset structure shown in Fig. 1 a does not constitute the restriction to mobile phone, can include more more than illustrating Or less part, either combine some parts or different parts arrangement.
Wherein RF circuits 210 be used for receive and send messages or communication process in, the reception and transmission of signal.Memory 220 is used for Software program and module are stored, processor 280 is stored in the software program and module of memory 220 by operation, so that Perform various function application and the data processing of mobile phone.Input block 230 is used for the numeral or character information for receiving input, with And the key signals that generation is set with the user of mobile phone and function control is relevant are inputted.Input block 230 may include contact panel 231 and other input equipments 232.Other input equipments 232 can include but is not limited to physical keyboard, function key, mouse, behaviour Make the one or more in bar.Display unit 240 be used to showing the information that is inputted by user or the information for being supplied to user and The various menus of mobile phone.Display unit 240 can include display panel 241.Contact panel 231 can cover display panel 241, when Contact panel 231 is detected after the touch operation on or near it, sends processor 280 to determine the class of touch event Type, corresponding visual output is provided with preprocessor 280 according to the type of touch event on display panel 241.
Mobile phone may also include at least one sensor 250, such as optical sensor, motion sensor and other sensors.Light Sensor may include ambient light sensor and proximity transducer, and environmental sensor can adjust display according to the light and shade of ambient light The brightness of panel 241, proximity transducer can close display panel 241 and/or backlight when mobile phone is moved in one's ear.This implementation Optical sensor can be arranged on the housing of the front and back of mobile phone in example, blocked area during for detecting that user holds mobile phone Domain.Pressure sensor can also be included herein, be arranged in the front of mobile phone or back housing, for the side by detecting pressure Formula obtains occlusion area during user's grip mobile phone.In addition, mobile phone can also configure gyroscope, barometer, hygrometer, temperature The other sensors such as meter, infrared ray sensor, are repeated no more.
Voicefrequency circuit 260, loudspeaker 261, microphone 262 can provide the COBBAIF between user and mobile phone.Wireless mould Block 270 can be WIFI module, provide the user wireless the Internet access service.
Processor 280 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform and be stored in software program and/or module in memory 220, and call and be stored in memory 220 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 280 can be with Including one or more processing units.In addition, mobile phone also includes the power supply 290 powered of each part, by power-supply management system with Processor 280 is logically contiguous, so as to realize the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
Fig. 1 b are refer to, are a kind of picture browsing method first embodiment flow chart disclosed in the present embodiment, the picture is clear The method of looking at includes:
Step S101, obtains the initial state information for characterizing mobile terminal initial attitude.It is alleged to move in the present embodiment Dynamic terminal initial state refers to user in browsing pictures, the posture that mobile terminal is presented, and generally, initial attitude has certain Angle of inclination.In other embodiments, the posture that can also be put mobile terminal level is used as original state.
Step S102, is obtained for characterizing the current state information after mobile terminal conversion posture.When user needs switching During the picture browsed, the posture of mobile terminal can be converted, after mobile terminal conversion posture, can be obtained after conversion posture Mobile terminal current state information.
Step S103, the current posture changing side of mobile terminal is determined according to initial state information and current state information To.In a particular embodiment, current state information should have same type parameter with initial state information, can be for example Inclination angle, position coordinates etc..After the initial state information and current state information with same type parameter is obtained, by first Beginning status information and current state information are compared, it may be determined that the current posture changing direction of mobile terminal.
Step S104, switches the picture browsed to direction corresponding with current posture changing direction.It had been embodied Cheng Zhong, can prestore the mapping relations between the switching direction for setting up browsing pictures and posture changing direction.Moved obtaining Behind the current posture changing direction of dynamic terminal, the figure browsed can be switched to direction corresponding with current posture changing direction Piece, for example, switch to next pictures, or switch to a pictures.
In the present embodiment, after the initial state information and conversion posture that are used for characterizing mobile terminal initial attitude due to obtaining Current state information, the current posture changing side of mobile terminal can be determined according to initial state information and current state information To, then, switch the picture browsed to direction corresponding with current posture changing direction according to the posture changing direction of determination, So as to realize the conversion posture according to mobile terminal to determine the switching direction of browsing pictures, then realize orientation switching The picture browsed, improves Consumer's Experience.
Fig. 2 a are refer to, are a kind of picture browsing method second embodiment flow chart, original state disclosed in the present embodiment Information is inclined angle of the mobile terminal in initial attitude in the first direction;Current state information is mobile terminal in conversion Inclined angle after posture in the first direction;Determine that mobile terminal is current according to initial state information and current state information Posture changing direction, including:Current state information and initial state information are obtained into comparative result as difference;It is true according to comparative result Determine the current posture changing direction of mobile terminal.The picture browsing method includes:
Step S201, obtains the initial state information for characterizing mobile terminal initial attitude.In the present embodiment, can be with Gather the triaxial coordinate data of mobile terminal to obtain mobile terminal in initial attitude in the first direction by gravity sensor Inclined angle.Specifically, Fig. 2 b and Fig. 2 c are refer to, wherein, Fig. 2 b are mobile terminal three-axis reference schematic diagram, this reality Apply in example, alleged first direction can be such as x-axis (hereafter same);Fig. 2 c are that mobile terminal in the first direction illustrate by clinoplain Figure.In the present embodiment, the coordinate data (x, y, z) in three directions can be gathered by gravity sensor, can then pass through public affairs FormulaTo ask for the inclined angle T0 of mobile terminal in initial attitude in the first direction.
Step S202, is obtained for characterizing the current state information after mobile terminal conversion posture.In mobile terminal conversion After posture, after the triaxial coordinate data that mobile terminal is gathered by gravity sensor, pass through formulaTo ask for moving Inclined angle T1 of the dynamic terminal after conversion posture in the first direction.
Step S2031, comparative result is obtained by current state information and initial state information as difference.Specifically, obtaining Inclined angle T0 and mobile terminal of the mobile terminal in initial attitude in the first direction conversion posture after in the first direction Inclined angle T1 after, current state information and the ratio of initial state information can be obtained by formula Δ T=T1-T0 Compared with result Δ T.
Step S2032, the current posture changing direction of mobile terminal is determined according to comparative result.In the present embodiment, due to Comparative result Δ T is obtained by way of algebraically makees difference, therefore, and comparative result Δ T can have positive and negative point, by comparing knot The positive and negative posture changing directions that can determine that mobile terminal is current of fruit Δ T.
Step S204, switches the picture browsed to direction corresponding with current posture changing direction.Detailed content is referred to Described in the step S104 of first embodiment.
In a particular embodiment, the operation of the picture browsed is being switched to direction corresponding with current posture changing direction In, it can include:When comparative result is timing, then switching browses next pictures of photo current;When comparative result is bears, Then switching browses a upper pictures for photo current.It should be noted that in some alternate embodiments, can also be to cutting Change rule and enter line replacement, i.e.,:When comparative result is bears, then switching browses next pictures of photo current;Work as comparative result For timing, then switching browses a upper pictures for photo current.
In the present embodiment, it is used as status information by obtaining the angle of inclination of mobile terminal in the first direction, passes through angle Degree difference determines posture changing direction as comparative result so that, can be by tilting shifting in the first direction in browsing pictures Move the mode of terminal to switch the picture browsed, then improve the efficiency and convenience of picture switching, improve Consumer's Experience.
Fig. 3 is refer to, is a kind of picture browsing method 3rd embodiment flow chart disclosed in the present embodiment, by current shape After difference obtains comparative result, the current posture of mobile terminal is being determined according to comparative result with initial state information for state information Before changing direction, in addition to:Judge whether the amplitude of comparative result exceedes default amplitude;If the amplitude of comparative result exceedes Default amplitude, then determine the current posture changing direction of mobile terminal according to comparative result.Specifically, the picture browsing method bag Include:
Step S301, obtains the initial state information for characterizing mobile terminal initial attitude.Detailed content refers to second Described in the step S201 of embodiment.
Step S302, is obtained for characterizing the current state information after mobile terminal conversion posture.Detailed content refers to Described in the step S202 of two embodiments.
Step S3031, comparative result is obtained by current state information and initial state information as difference.Detailed content refers to Described in the step S2031 of two embodiments.
Step S304, judges whether the amplitude of comparative result exceedes default amplitude.In a particular embodiment, it can deposit in advance The default amplitude As of storage, presetting amplitude As can determine according to modes such as priori, theory deduction or experimental datas.Need Illustrate, default amplitude As sets smaller, triggering picture switches sensitiveer, but is easily caused erroneous judgement, for example normally Hand-held shake caused by picture switch;Default amplitude As sets bigger, can more effectively reduce erroneous judgement switching, but It is to be easily caused picture switching to seem blunt, that is, needs to do the inclination of larger angle.In other embodiments, amplitude As is preset It can also be manually entered, can also be determined by way of user's teaching by user.In the present embodiment, if comparing knot The amplitude of fruit exceedes default amplitude, then performs step S307.If the amplitude of comparative result is held not less than default amplitude, return Row step S301.
Step S3032, the current posture changing direction of mobile terminal is determined according to comparative result.Detailed content refers to second Described in the step S2032 of embodiment.
It should be noted that after step S304 judges that comparative result exceedes default amplitude, should be beyond default amplitude Comparative result is likely to be caused by hand-held shake.In an alternate embodiment of the invention, between step S304 and step S3032, i.e., If the amplitude of comparative result exceedes default amplitude, according to comparative result determine the current posture changing direction of mobile terminal it Before, in addition to:
Step S305, obtains the duration for the comparative result for exceeding default amplitude.Specifically, judge in step S304 Comparative result exceedes after default amplitude, can be counted by prefixed time interval and exceed the comparison knot for presetting amplitude to count The duration of fruit;The duration of the comparative result of default amplitude can also be obtained exceeding come timing by timer.
Step S306, judges whether duration exceedes preset duration.In a particular embodiment, it can prestore default Duration, preset duration can be determined according to modes such as priori, theory deduction or experimental datas.It should be noted that Preset duration sets smaller, and triggering picture switches sensitiveer, but is easily caused erroneous judgement, such as normal hand-held shake and Caused picture switching;Preset duration sets bigger, can more effectively reduce erroneous judgement switching, still, be easily caused picture Switching seems blunt, that is, the inclination of mobile terminal is kept when needing long.In other embodiments, preset duration can also be by using The self-defined input in family.In the present embodiment, if duration exceedes preset duration, step S307 is performed.If continued Length then returns not less than preset duration and performs step S301.
Step S307, switches the picture browsed to direction corresponding with current posture changing direction.Detailed content is referred to Described in the step S204 of first embodiment.
In the present embodiment, by judging whether the amplitude of comparative result exceedes default amplitude, if the width of comparative result Value exceedes default amplitude, then determines the current posture changing direction of mobile terminal according to comparative result.So that it is determined that mobile whole When holding current posture changing direction, it can reduce because carrying out picture switching when comparative result caused by other factorses changes Probability, so as to avoid picture switching excessively sensitive, reduces the probability of erroneous judgement.
Refer to Fig. 4, be a kind of picture browsing method fourth embodiment flow chart disclosed in the present embodiment, to it is current The picture that browses of the corresponding direction in posture changing direction switching before, in addition to:Obtain the angle of mobile terminal in a second direction Spend the amplitude of change;Judge whether the amplitude of the angle change of mobile terminal in a second direction is more than the amplitude of comparative result;Such as The amplitude of the angle change of fruit mobile terminal in a second direction be less than comparative result amplitude, then to current posture changing side Switch the picture browsed to corresponding direction.Specifically, the application tool control method includes:
Step S401, obtains the initial state information for characterizing mobile terminal initial attitude.Detailed content refers to first Described in the step S201 of embodiment.
Step S402, is obtained for characterizing the current state information after mobile terminal conversion posture.Detailed content refers to Described in the step S202 of one embodiment.
Step S4031, comparative result is obtained by current state information and initial state information as difference.Detailed content refers to Described in the step S2031 of one embodiment.
Step S4032, the current posture changing direction of mobile terminal is determined according to comparative result.Detailed content refers to first Described in the step S2032 of embodiment.
Step S404, obtains the amplitude of the angle change of mobile terminal in a second direction.Fig. 2 b are refer to, when user is adjusting Whole when browsing visual angle, (y-axis) enters line tilt generally in a second direction.At this point it is possible to obtain the angle of mobile terminal in a second direction Spend the amplitude of change.
Step S405, judges whether the amplitude of the angle change of mobile terminal in a second direction is more than the width of comparative result Value.Due to manually adjusting angle by user, therefore, it will usually which causing mobile terminal, (x-axis) also occurs slightly in the first direction Inclination., can be by comparing mobile terminal in a second direction in order to determine whether to adjust for mobile terminal in the present embodiment The amplitude of angle change and the amplitude size of comparative result, if comparing the amplitude of the angle change of mobile terminal in a second direction More than the amplitude of comparative result, then show mobile terminal and currently adjust state for visual angle.In the present embodiment, if mobile terminal The amplitude of angle change in a second direction is less than the amplitude of comparative result, then performs step S406.If mobile terminal is along The amplitude of the angle change in two directions is more than the amplitude of comparative result, then returns and perform step S401.
Step S406, switches the picture browsed to direction corresponding with current posture changing direction.Detailed content is referred to Described in the step S204 of first embodiment.
It should be noted that in the present embodiment, the execution being not intended to limit between step S4031 and step S404 is successively suitable Sequence.
In the present embodiment, if the amplitude of the angle change of mobile terminal in a second direction is less than the width of comparative result Value, then switch the picture browsed, by the comparison knot for comparing first direction to direction corresponding with current posture changing direction The amplitude of the amplitude of fruit and the angle change of second direction so that (for example adjustment is regarded in change in a second direction in mobile terminal Angle) when, the probability of unexpected switching browsing pictures can be reduced, the probability of picture switching erroneous judgement is reduced.
It should be noted that in the above-described embodiments, being cut performing to direction corresponding with current posture changing direction Change after the picture browsed, can also include:Using current state information as next sampled point initial state information.So as to, So that after photo current switching is completed, reducing and calculating initial state information again by sensor gathered data, improve fortune Line efficiency.
In the above-described embodiments, due to obtaining the initial state information for being used for characterizing mobile terminal initial attitude and conversion appearance Current state information after state, can determine that the current posture of mobile terminal becomes according to initial state information and current state information Direction is changed, then, switches what is browsed to direction corresponding with current posture changing direction according to the posture changing direction of determination Picture, so that, realize the conversion posture according to mobile terminal to determine the switching direction of browsing pictures, then realize orientation Switch the picture browsed, improve Consumer's Experience.
The present embodiment also discloses a kind of picture browsing device, refer to Fig. 5 a, for the picture browsing device structural representation Figure, the picture browsing device includes:Initial acquisition module 501, current acquisition module 502, direction determine mould 503 and handover module 504, wherein:
Initial acquisition module 501 is used to obtain the initial state information for being used for characterizing mobile terminal initial attitude;Currently obtain Modulus block 502, which is used to obtain, to be used to characterize the current state information after mobile terminal conversion posture;Direction determines that mould 503 is used for root The current posture changing direction of mobile terminal is determined according to initial state information and current state information;Handover module 504 be used for The picture that direction switching corresponding with current posture changing direction is browsed.
Refer to Fig. 5 b, in an alternate embodiment of the invention, initial state information be mobile terminal in initial attitude along first The inclined angle in direction;Current state information is the inclined angle of mobile terminal after conversion posture in the first direction;Side Include to determining module 503:Comparing unit 5031, for obtaining being compared knot current state information and initial state information as difference Really;Determining unit 5032, for determining the current posture changing direction of mobile terminal according to comparative result.
In an alternate embodiment of the invention, handover module 504 is specifically for being timing when comparative result, then switching browses current figure Next pictures of piece;When comparative result is bears, then switching browses a upper pictures for photo current.
In an alternate embodiment of the invention, the picture browsing device also includes:First judge module 505, for judging to compare knot Whether the amplitude of fruit exceedes default amplitude;If determining unit 5032 is used for the width that the first judge module 505 judges comparative result Value exceedes default amplitude, then determines the current posture changing direction of mobile terminal according to comparative result.
In an alternate embodiment of the invention, the picture browsing device also includes:Timing module 506, exceedes default width for obtaining The duration of the comparative result of value;Second judge module 507, for judging whether duration exceedes preset duration;It is determined that If unit 5032 judges that duration exceedes preset duration for the second judge module 507, determined to move according to comparative result The current posture changing direction of dynamic terminal.
In an alternate embodiment of the invention, the picture browsing device also includes:Direction acquisition module 508, it is mobile whole for obtaining The amplitude of the angle change of end in a second direction;3rd judge module 509, for judging the angle of mobile terminal in a second direction Whether the amplitude of change is more than the amplitude of comparative result;If handover module 504, which is used for the 3rd judge module 509, judges mobile whole The amplitude of the angle change of end in a second direction is less than the amplitude of comparative result, then to corresponding with current posture changing direction The picture that direction switching is browsed.
In an alternate embodiment of the invention, the picture browsing device also includes:Initialization module 510, for current state to be believed Cease the initial state information as next sampled point.
Picture browsing device in the present embodiment is presented in the form of functional unit, unit here perform one or The processor and memory of multiple softwares or fixed routine, and/or other can provide the device of above-mentioned functions.
In addition, also providing another mobile device in the embodiment of the present invention, as shown in Figure 1a, it will not be repeated here, institute Processor is stated by performing the computer instruction, so as to realize following methods:Obtain for characterizing mobile terminal initial attitude Initial state information;Obtain for characterizing the current state information after mobile terminal conversion posture;According to initial state information The current posture changing direction of mobile terminal is determined with current state information;To direction corresponding with current posture changing direction Switch the picture browsed.
Alternatively, the processor is by performing the computer instruction, so as to realize following methods:Initial state information For inclined angle of the mobile terminal in initial attitude in the first direction;Current state information is mobile terminal in conversion posture Inclined angle in the first direction afterwards;The current posture of mobile terminal is determined according to initial state information and current state information Change direction, including:Current state information and initial state information are obtained into comparative result as difference;Determined to move according to comparative result The current posture changing direction of dynamic terminal.
Alternatively, the processor is by performing the computer instruction, so as to realize following methods:To with current appearance The state picture that the switching of corresponding direction browses of changing direction includes:When comparative result is timing, then switching browses photo current Next pictures;When comparative result is bears, then switching browses a upper pictures for photo current.
Alternatively, the processor is by performing the computer instruction, so as to realize following methods:By current state Information after difference obtains comparative result, is determining that the current posture of mobile terminal becomes with initial state information according to comparative result Change before direction, in addition to:Judge whether the amplitude of comparative result exceedes default amplitude;If the amplitude of comparative result exceedes pre- If amplitude, then the current posture changing direction of mobile terminal is determined according to comparative result.
Alternatively, the processor is by performing the computer instruction, so as to realize following methods:If comparative result Amplitude exceed default amplitude, before the current posture changing direction of mobile terminal is determined according to comparative result, in addition to:Obtain Take the duration of the comparative result more than default amplitude;Judge whether duration exceedes preset duration;If duration More than preset duration, then the current posture changing direction of mobile terminal is determined according to comparative result.
Alternatively, the processor is by performing the computer instruction, so as to realize following methods:To with it is current Before the picture that the corresponding direction switching in posture changing direction is browsed, in addition to:Obtain the angle of mobile terminal in a second direction The amplitude of change;Judge whether the amplitude of the angle change of mobile terminal in a second direction is more than the amplitude of comparative result;If The amplitude of the angle change of mobile terminal in a second direction be less than comparative result amplitude, then to current posture changing direction The picture that corresponding direction switching is browsed.
Alternatively, the processor is by performing the computer instruction, so as to realize following methods:To with it is current After the picture that the corresponding direction switching in posture changing direction is browsed, in addition to:It regard current state information as next sampled point Initial state information.
It is to lead to it will be understood by those skilled in the art that realizing all or part of flow in above-described embodiment method Cross computer program to instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (ROM) or random access memory (RAM) etc..
Although being described in conjunction with the accompanying embodiments of the invention, those skilled in the art can not depart from the present invention Spirit and scope in the case of various modification can be adapted and modification, such modifications and variations are each fallen within by appended claims institute Within the scope of restriction.

Claims (14)

1. a kind of picture browsing method, it is characterised in that including:
Obtain the initial state information for characterizing mobile terminal initial attitude;
Obtain for characterizing the current state information after the mobile terminal conversion posture;
The current posture changing direction of the mobile terminal is determined according to the initial state information and the current state information;
Switch the picture browsed to direction corresponding with the current posture changing direction.
2. picture browsing method as claimed in claim 1, it is characterised in that
The initial state information is inclined angle of the mobile terminal in initial attitude in the first direction;
The current state information is the inclined angle of the mobile terminal after conversion posture in the first direction;
It is described that the current posture changing of the mobile terminal is determined according to the initial state information and the current state information Direction, including:
The current state information and the initial state information are obtained into comparative result as difference;
The current posture changing direction of the mobile terminal is determined according to the comparative result.
3. picture browsing method as claimed in claim 2, it is characterised in that it is described to the current posture changing direction The picture that corresponding direction switching is browsed includes:
When the comparative result is timing, then switching browses next pictures of photo current;
When the comparative result is bears, then switching browses a upper pictures for photo current.
4. picture browsing method as claimed in claim 2 or claim 3, it is characterised in that it is described by the current state information with The initial state information after difference obtains comparative result, it is described according to the comparative result determine the mobile terminal work as Before preceding posture changing direction, in addition to:
Judge whether the amplitude of the comparative result exceedes default amplitude;
If the amplitude of the comparative result exceedes default amplitude, determine that the mobile terminal is current according to the comparative result Posture changing direction.
5. picture browsing method as claimed in claim 4, it is characterised in that preset if the amplitude of the comparative result exceedes Amplitude, before the posture changing direction for determining that the mobile terminal is current according to the comparative result, in addition to:
Obtain the duration of the comparative result more than the default amplitude;
Judge whether the duration exceedes preset duration;
If the duration exceedes preset duration, the current posture of the mobile terminal is determined according to the comparative result Change direction.
6. picture browsing method as claimed in claim 2 or claim 3, it is characterised in that to the current posture changing side Before switching the picture browsed to corresponding direction, in addition to:
Obtain the amplitude of the angle change of mobile terminal in a second direction;
Judge whether the amplitude of the angle change of the mobile terminal in a second direction is more than the amplitude of the comparative result;
If the amplitude of the angle change of the mobile terminal in a second direction be less than the comparative result amplitude, to institute State the picture that the corresponding direction switching in current posture changing direction is browsed.
7. the picture browsing method as described in claim 1-3 any one, it is characterised in that it is described to it is described current After the picture that the corresponding direction switching in posture changing direction is browsed, in addition to:
Using the current state information as next sampled point initial state information.
8. a kind of picture browsing device, it is characterised in that including:
Initial acquisition module, for obtaining the initial state information for being used for characterizing mobile terminal initial attitude;
Current acquisition module, is used to characterize the current state information after the mobile terminal conversion posture for obtaining;
Direction determining mould, for determining that the mobile terminal is worked as according to the initial state information and the current state information Preceding posture changing direction;
Handover module, for switching the picture browsed to direction corresponding with the current posture changing direction.
9. picture browsing device as claimed in claim 8, it is characterised in that the initial state information is the mobile terminal Inclined angle in initial attitude in the first direction;The current state information is the mobile terminal after conversion posture Inclined angle in the first direction;
The direction determining mould includes:
Comparing unit, for the current state information and the initial state information to be obtained into comparative result as difference;
Determining unit, for determining the current posture changing direction of the mobile terminal according to the comparative result.
10. picture browsing device as claimed in claim 9, it is characterised in that the handover module is specifically for when the ratio Relatively result is timing, then switching browses next pictures of photo current;When the comparative result is bears, then switching, which is browsed, works as A upper pictures for preceding picture.
11. the picture browsing device as described in claim 9 or 10, it is characterised in that also include:
First judge module, for judging whether the amplitude of the comparative result exceedes default amplitude;
If the determining unit, which is used for first judge module, judges that the amplitude of the comparative result exceedes default amplitude, The current posture changing direction of the mobile terminal is determined according to the comparative result.
12. picture browsing device as claimed in claim 11, it is characterised in that also include:
Timing module, the duration for obtaining the comparative result more than the default amplitude;
Second judge module, for judging whether the duration exceedes preset duration;
If the determining unit judges that the duration exceedes preset duration for second judge module, according to institute State comparative result and determine the current posture changing direction of the mobile terminal.
13. the picture browsing device as described in claim 9 or 10, it is characterised in that also include:
Direction acquisition module, the amplitude for obtaining the angle change of mobile terminal in a second direction;
3rd judge module, for judging whether the amplitude of the angle change of the mobile terminal in a second direction is more than the ratio The amplitude of relatively result;
If the handover module judges the angle change of the mobile terminal in a second direction for the 3rd judge module Amplitude be less than the amplitude of the comparative result, then switch to corresponding with current posture changing direction direction and browse Picture.
14. the picture browsing device as described in claim 8-10 any one, it is characterised in that also include:
Initialization module, for using the current state information as next sampled point initial state information.
CN201710113891.5A 2017-02-28 2017-02-28 picture browsing method and device Pending CN106980453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710113891.5A CN106980453A (en) 2017-02-28 2017-02-28 picture browsing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113891.5A CN106980453A (en) 2017-02-28 2017-02-28 picture browsing method and device

Publications (1)

Publication Number Publication Date
CN106980453A true CN106980453A (en) 2017-07-25

Family

ID=59339309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113891.5A Pending CN106980453A (en) 2017-02-28 2017-02-28 picture browsing method and device

Country Status (1)

Country Link
CN (1) CN106980453A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049173A (en) * 2012-12-20 2013-04-17 北京小米科技有限责任公司 Content selection method, content selection system and mobile terminal
CN103076880A (en) * 2012-12-28 2013-05-01 深圳市金立通信设备有限公司 Method and terminal for controlling flipping-over of page when page browsed by terminal
US20150212656A1 (en) * 2014-01-29 2015-07-30 Acer Incorporated Portable apparatus and method for adjusting window size thereof
CN105786167A (en) * 2014-12-26 2016-07-20 联想(北京)有限公司 Information processing method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049173A (en) * 2012-12-20 2013-04-17 北京小米科技有限责任公司 Content selection method, content selection system and mobile terminal
CN103076880A (en) * 2012-12-28 2013-05-01 深圳市金立通信设备有限公司 Method and terminal for controlling flipping-over of page when page browsed by terminal
US20150212656A1 (en) * 2014-01-29 2015-07-30 Acer Incorporated Portable apparatus and method for adjusting window size thereof
CN105786167A (en) * 2014-12-26 2016-07-20 联想(北京)有限公司 Information processing method and electronic device

Similar Documents

Publication Publication Date Title
US8934949B2 (en) Mobile terminal
US9465454B2 (en) Mobile terminal device, storage medium, and method for display control of mobile terminal device
CN109445736A (en) A kind of multi-screen display method and mobile terminal
CN109375890A (en) A kind of screen display method and Multi-screen electronic equipment
CN108319390A (en) A kind of control method and mobile terminal of flexible screen
WO2020134811A1 (en) Key control method, and terminal
CN108391007A (en) A kind of the volume setting method and mobile terminal of application program
CN110096326A (en) A kind of screenshotss method, terminal device and computer readable storage medium
CN108628521A (en) A kind of screen operating method and mobile terminal
CN108388396A (en) A kind of interface switching method and mobile terminal
CN110032309A (en) A kind of split screen method and terminal device
CN108762869A (en) A kind of information processing method and mobile terminal
CN109951582A (en) A kind of mobile terminal and sound output control method
CN108712563B (en) Call control method and device and mobile terminal
CN109683802A (en) A kind of icon moving method and terminal
CN109254719A (en) A kind of processing method and mobile terminal of display interface
CN108108113A (en) Webpage switching method and device
CN108388354A (en) A kind of display methods and mobile terminal in input method candidate area domain
CN109521937A (en) A kind of control method for screen display and mobile terminal
CN108279843B (en) A kind of screenshot method and mobile terminal
CN109445589A (en) A kind of multimedia file broadcasting control method and terminal device
CN108984099A (en) A kind of man-machine interaction method and terminal
WO2020134903A1 (en) Display screen operating method and mobile terminal
CN110673761A (en) Detection method of touch key and terminal equipment thereof
CN109739430A (en) A kind of display methods and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170725

RJ01 Rejection of invention patent application after publication