CN110580124A - Image display method and device - Google Patents

Image display method and device Download PDF

Info

Publication number
CN110580124A
CN110580124A CN201810581953.XA CN201810581953A CN110580124A CN 110580124 A CN110580124 A CN 110580124A CN 201810581953 A CN201810581953 A CN 201810581953A CN 110580124 A CN110580124 A CN 110580124A
Authority
CN
China
Prior art keywords
image
image display
mobile terminal
determining
display list
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
CN201810581953.XA
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810581953.XA priority Critical patent/CN110580124A/en
Publication of CN110580124A publication Critical patent/CN110580124A/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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

the application discloses an image display method and device. The method comprises the following steps: in an image display interface, acquiring sensor data acquired by a sensor of a mobile terminal when the mobile terminal shakes; then, determining a motion state of the mobile terminal based on the sensor data; and selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list. Therefore, when the user holds the mobile terminal to conduct gesture operation to browse the images, the corresponding images are selected from the image display list and displayed based on the sensor data collected by the sensor, and the purpose of improving the image searching efficiency is achieved.

Description

Image display method and device
Technical Field
the present application relates to the field of computer technologies, and in particular, to an image display method and apparatus.
background
as the storage capacity of mobile terminals increases, the number of images that can be stored by the mobile terminals increases. The image storage is convenient for users to store images, and meanwhile, troubles are brought to the users for searching the images.
at present, there are two common image display schemes: one, the images are displayed to the user one by one based on the left and right sliding of the user; alternatively, the images are sorted by time line or place line, and then the related images are displayed to the user based on the sliding operation of the user.
However, with these two schemes, when the number of images is large, the user needs to perform sliding operation for multiple times to make the mobile terminal display different images, so that image searching is possible.
disclosure of Invention
the embodiment of the specification provides an image display method and device, and is used for solving the problem that image searching efficiency is low in the prior art.
An embodiment of the present specification further provides an image display method, including:
in an image display interface, acquiring sensor data when the mobile terminal shakes;
determining a motion state of the mobile terminal based on the sensor data;
And selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
optionally, the determining the motion state of the mobile terminal based on the sensor data includes:
Determining location change descriptive data of the mobile terminal relative to a reference location based on the sensor data;
Determining a motion state of the mobile terminal based on the location change description data.
optionally, the motion state includes a motion direction;
Wherein said selecting an image from an image presentation list based on the motion state and an order of a currently presented image in the image presentation list comprises:
Determining an image switching direction based on the motion direction;
And determining and selecting the next image to be displayed in the image display list based on the image switching direction and the sequence of the currently displayed image in the image display list.
Optionally, before determining the image switching direction based on the motion direction, the method further includes:
acquiring an image switching rule corresponding to the image display interface, wherein the image switching rule is used for describing a corresponding relation between an image switching direction and a direction angle range of the mobile terminal;
accordingly, determining an image switching direction based on the motion direction comprises:
Determining a direction angle range to which a direction angle of the mobile terminal corresponding to the motion direction relative to the reference position belongs;
And determining the image switching direction based on the direction angle range to which the direction angle belongs.
Optionally, the determining and selecting a next image to be displayed in the image display list includes:
When the switching direction is leftward or downward switching, determining to select a next image of the currently displayed image from the image display list;
and when the switching direction is rightward or upward switching, determining to select the previous image of the currently displayed image from the image display list.
Optionally, the method further includes:
when the current display image is the last image in the image display list, taking the first image in the image display list as the next image of the current display image;
and when the current display image is the first image in the image display list, taking the last image in the image display list as the last image of the current display image.
optionally, the motion state further includes a motion speed;
Wherein presenting the selected image from the image presentation list comprises:
determining the movement speed of the image in the image display interface based on the movement speed;
determining a movement direction of an image in the image presentation interface based on the movement direction;
And displaying the image selected from the image display list based on the movement direction and the movement speed of the image in the image display interface.
Optionally, the method further includes:
Detecting whether a preset trigger instruction is received or not in an image display interface;
And if so, entering a quick browsing mode to allow images to be selected from the image display list and displayed based on the motion state and the sequence of the currently displayed images in the image display list.
An embodiment of the present specification further provides an image display apparatus, including:
The first acquisition module is used for acquiring sensor data of the mobile terminal during shaking in the image display interface;
a first determination module for determining a motion state of the mobile terminal based on the sensor data;
and the processing module is used for selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
Optionally, the first determining module is specifically configured to determine, based on the sensor data, location change description data of the mobile terminal relative to a reference location; determining a motion state of the mobile terminal based on the location change description data.
Optionally, the motion state includes a motion direction;
the processing module is specifically configured to determine an image switching direction based on the motion direction; and determining and selecting the next image to be displayed in the image display list based on the image switching direction and the sequence of the currently displayed image in the image display list.
optionally, the apparatus further comprises:
The second obtaining module is used for obtaining an image switching rule corresponding to the image display interface, wherein the image switching rule is used for describing a corresponding relation between an image switching direction and a direction angle range of the mobile terminal;
Correspondingly, the processing module is specifically configured to determine a direction angle range to which a direction angle of the mobile terminal relative to the reference position corresponding to the motion direction belongs; and determining the image switching direction based on the direction angle range to which the direction angle belongs.
Optionally, the processing module is specifically configured to determine that a next image of a currently displayed image is selected from the image display list when the switching direction is left or down; and when the switching direction is rightward or upward switching, determining to select the previous image of the currently displayed image from the image display list.
Optionally, the processing module is further configured to, when the currently displayed image is the last image in the image display list, take the first image in the image display list as the next image of the currently displayed image; and when the current display image is the first image in the image display list, taking the last image in the image display list as the last image of the current display image.
optionally, the motion state further includes a motion speed;
the processing module is specifically configured to determine a movement speed of the image in the image display interface based on the movement speed; determining a movement direction of an image in the image presentation interface based on the movement direction; and displaying the image selected from the image display list based on the movement direction and the movement speed of the image in the image display interface.
optionally, the method further includes:
The detection module is used for detecting whether a preset trigger instruction is received in the image display interface; and if so, entering a quick browsing mode to allow images to be selected from the image display list and displayed based on the motion state and the sequence of the currently displayed images in the image display list.
an embodiment of the present specification further provides an electronic device, including:
A processor; and
A memory arranged to store computer executable instructions that, when executed, cause the processor to:
In an image display interface, acquiring sensor data when the mobile terminal shakes;
Determining a motion state of the mobile terminal based on the sensor data;
And selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
The present specification embodiments also provide a computer readable medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform operations comprising:
in an image display interface, acquiring sensor data when the mobile terminal shakes;
determining a motion state of the mobile terminal based on the sensor data;
And selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
in the embodiment of the description, the sensor based on the mobile terminal can sense the characteristics of the motion data of the mobile terminal, the sensor data sensed by the sensor when the mobile terminal is shaken is read in the image display interface, the motion state of the mobile terminal can be determined based on the sensor data, and then the next image to be displayed is selected and displayed based on the sequence of the current displayed image in the image display list. Compared with the scheme of switching the images for display by continuously sliding the touch screen in the prior art, the method and the device can reduce the operation complexity of the user and improve the efficiency of searching the images.
drawings
the accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present specification;
fig. 2 is a schematic flow chart of an image displaying method provided in embodiment 1 of the present specification;
Fig. 3 is a schematic flow chart for determining an image switching direction provided in embodiment 1 of the present specification;
Fig. 4 is a schematic flow chart of an image displaying method provided in embodiment 2 of the present specification;
FIG. 5 is a schematic structural diagram of an image display apparatus provided in embodiment 3 of the present specification;
FIG. 6 is a schematic structural diagram of an image display apparatus provided in embodiment 4 of the present specification;
Fig. 7 is a schematic structural diagram of an electronic device provided in embodiment 5 of this specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As stated in the background section, when a certain image needs to be searched for in a large number of images stored in the mobile terminal, the user needs to perform a sliding operation on the touch screen continuously, so that the mobile terminal switches the images to be displayed continuously. In the class, the operation amount required by the user is large, and the efficiency of searching the image is low.
based on the above, the invention provides an image display method, which is characterized in that sensor data which is sensed by a sensor and is generated when a mobile terminal is shaken are read in an image display interface, so that the motion state of the mobile terminal and the sequence of the current display image in an image display list can be determined based on the sensor data, and the next image to be displayed is selected and displayed.
an application scenario of the present invention is exemplarily illustrated with reference to fig. 1.
The first application scenario may be:
after a user clicks and opens the image A in the gallery, the handheld mobile terminal performs an appointed gesture operation to switch the image displayed on the image display interface from the image A to the image B, and the appointed gesture operation can be as follows: side-to-side, up-and-down, etc. Synchronously, a sensor of the mobile terminal senses that the mobile terminal is shaken to generate corresponding sensor data; then, the processor of the mobile terminal determines the motion state of the mobile terminal based on the sensor data read from the sensor, and then selects and displays the next image to be displayed from the image list corresponding to the gallery by taking the motion state of the mobile terminal as the basis for image switching.
The second application scenario may be:
after a user clicks on an image in some social software, for example: opening a certain image A in a certain chat group, and carrying out appointed gesture operation by the handheld mobile terminal so as to switch the image displayed on the image display interface from the image A to the image B, wherein the appointed gesture operation can be as follows: side-to-side, up-and-down, etc. Synchronously, a sensor of the mobile terminal senses that the mobile terminal is shaken to generate corresponding sensor data; then, the processor of the mobile terminal determines the moving direction of the mobile terminal and the moving speed of the image in the image display interface based on the sensor data read from the sensor, then selects the next image to be displayed from the image list corresponding to the social software by taking the moving state of the mobile terminal as the basis of image switching, and displays the selected image based on the moving state of the mobile terminal and the moving speed of the image in the image display interface.
The mobile terminal refers to a computer device which can be used in mobile, and broadly includes a mobile phone, a notebook, a tablet computer, a POS machine, and even a vehicle-mounted computer. But most often refer to cell phones or smart phones and tablets with multiple application functions. For convenience of description and understanding, the mobile terminal is exemplified as a smart phone in the following.
the technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
example 1
fig. 2 is a schematic flowchart of an image displaying method provided in embodiment 1 of the present specification, and referring to fig. 2, the method may be executed by a processor of a mobile terminal, and specifically may include the following steps:
Step 22, acquiring sensor data of the mobile terminal during shaking in an image display interface;
with reference to fig. 1, it should be noted that one implementation manner of step 22 may be:
First, based on the user's operation on the touch screen, for example: clicking a certain image in the gallery, and skipping to an image display interface by the mobile terminal to display the image; then, when the image needs to be switched, the user holds the mobile terminal to perform a predetermined gesture operation, such as: swing the mobile terminal left/right, swing the mobile terminal up/down, etc.; synchronously, the sensor senses that the mobile terminal is shaken to generate corresponding sensor data for the processor to read the sensor data from a predetermined sensor.
Wherein, the sensor can be a gyroscope, an acceleration sensor, a gravity sensor and the like.
The embodiment of the present application shows a specific implementation manner of the step 22. Of course, it should be understood that step 22 may be implemented in other ways, and the embodiment of the present application is not limited thereto.
step 24, determining the motion state of the mobile terminal based on the sensor data;
It should be noted that, one implementation manner of step 24 may be:
determining location change descriptive data of the mobile terminal relative to a reference location based on the sensor data; determining a motion state of the mobile terminal based on the location change description data. The location change description data is used to describe parameters relative to a reference location, and the real-time parameter change in the location change process of the mobile terminal is, for example: real-time differences in inclination relative to a reference position, real-time speed of position change, and the like.
Taking the left swing of the mobile terminal as an example, the specific process of the implementation manner may be:
The placement position of the mobile terminal in a normal state (in a normal state, the position of the mobile terminal held by a user is horizontally upward, or the front end of the mobile terminal is tilted up by about 45 degrees) is taken as a reference position, and when the user swings the mobile terminal leftwards, the processor can calculate the real-time change of relevant parameters in the process of leftwards swinging of the mobile terminal based on sensor data collected by the sensor data. Taking the moving direction in the moving state as an example, the implementation manner is as follows: and calculating real-time inclination data based on the inclination data sensed by the gyroscope, and determining the movement direction of the mobile terminal to be leftward movement based on the inclination data and the inclination data of the reference position.
Wherein, the reference position can also be: and the mobile terminal jumps to the placing position of the image display interface.
the embodiment of the present application shows a specific implementation manner of the step 24. Of course, it should be understood that step 24 may be implemented in other ways, and the embodiment of the present application is not limited thereto.
And 26, selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
It should be noted that, the first implementation manner of step 26 may be:
firstly, when the mobile terminal jumps to the image display interface, the environment of the image display interface is detected to determine an image display list. For example: the method comprises the steps that a user clicks a first image in a gallery, when a mobile terminal jumps to an image display interface to display the first image, all/part of images in the first gallery are determined, and an image display list is constructed; or the user clicks a second image in the chat group, when the mobile terminal jumps to the image display interface to display the second image, all/part images in the chat group are determined, and an image display list is constructed.
Secondly, the order (for example, the number) of the currently displayed image (for example, the image clicked and opened by the user) in the image display list is determined based on the determined image display list, and then the next image to be displayed in the image display list is determined and selected based on the moving direction of the mobile terminal. For example: and if the mobile terminal moves to the left, selecting the image with the number of the current display image added with 1 (or subtracted with 1) in the image display list. It is understood that the next image to be displayed is not necessarily the same image as the next image, and the next image to be displayed may be the previous image of the currently displayed image, the next image of the currently displayed image, or even an image spaced from the currently displayed image.
and finally, displaying the selected image.
in addition, it should be noted that the image switching rules corresponding to different image display interfaces may be different, for example: some of the image switching rules are switching images left and right, and some of the image switching rules are switching images up and down. Based on this, a second implementation of step 26 may be:
Firstly, determining an image switching direction based on the motion direction; then, based on the image switching direction and the sequence of the currently displayed image in the image display list, determining the next image to be displayed in the image display list and selecting the image for displaying.
with reference to fig. 3, an implementation manner of determining the image switching direction in this implementation manner may be, for example:
step 32, obtaining an image switching rule corresponding to the image display interface, wherein the image switching rule is used for describing a corresponding relation between an image switching direction and a direction angle range of the mobile terminal;
the image switching rule may be, for example:
when the left inclined angle of the mobile terminal exceeds the inclined angle of the reference position by a certain threshold value (for example: 4 degrees), judging that the image switching direction is in a direction; when the right tilt angle of the mobile terminal exceeds the tilt angle of the reference position by a predetermined threshold (for example, 4 degrees), it is determined that the image switching direction is the right direction.
Alternatively, the first and second electrodes may be,
When the upward inclination angle of the mobile terminal exceeds the inclination angle of the reference position by a certain threshold value (for example: 4 degrees), judging that the image switching direction is upward; when the downward inclination angle of the mobile terminal exceeds the inclination angle of the reference position by a certain threshold value (for example, 4 degrees), it is determined that the image switching direction is downward.
However, it is understood that it is actually difficult for the user to know the image switching rule when the user swings the mobile terminal to switch the image, and thus, there may occur a problem that the image switching rule is switched up and down, and the user swings the mobile terminal left and right and cannot switch the image.
Based on this, the image switching rule may be further optimized as:
When the left or upward inclination angle of the mobile terminal exceeds the inclination angle of the reference position by a certain threshold value (for example: 4 degrees) based on the comparative well-known user habits (the leftward and upward sliding is used for switching to the next sheet, and the rightward and downward sliding is used for switching to the previous sheet), the image switching direction is judged to be switched to the next sheet;
When the tilt angle of the mobile terminal to the right or downward exceeds the tilt angle of the reference position by a certain threshold (for example, 4 degrees), it is determined that the image switching direction is switched to the previous one.
step 34, determining a direction angle range to which a direction angle of the mobile terminal corresponding to the motion direction relative to the reference position belongs;
it should be noted that, in conjunction with the description in step 24, the direction angle of the position of the mobile terminal relative to the reference position may be calculated first based on the inclination of the real-time position of the mobile terminal. The conversion between the tilt data detected by the gyroscope and the direction angle of the mobile terminal relative to the reference position is a well-known technology, and is not described herein again.
then, the direction angle of the position of the mobile terminal relative to the reference position is compared with each direction angle range divided in the image switching rule, and the direction angle range to which the mobile terminal belongs is determined.
And step 36, determining the image switching direction based on the direction angle range to which the direction angle belongs.
it will be understood that the corresponding image switching direction is determined based on the direction angle range to which the direction angle of the position of the mobile terminal with respect to the reference position determined in step 34 belongs, and the correspondence between the image switching direction and the direction angle range of the mobile terminal.
in addition, as an optimization solution for the above two implementation manners of step 26, the embodiment further defines:
when the current display image is the last image in the image display list, taking the first image in the image display list as the next image of the current display image;
And when the current display image is the first image in the image display list, taking the last image in the image display list as the last image of the current display image.
It is understood that the image display list with one-way numbers can be set as the image display list with the cycle numbers which are connected end to end through the optimization scheme, so that the defect that when a user wants to return to view an image with a later number (for example, a second image) when viewing an image with a later number (for example, a second image), the user needs to turn over more images between the second image and the second image can be avoided, and the user only needs to turn over the first image and the first image. The purpose of further improving the efficiency of searching the image by the user is achieved.
Based on the implementation manner for determining the gradient difference between the position of the mobile terminal and the reference position in real time and the implementation manner for selecting the image, in order to further reduce the complexity of the user operation and improve the browsing effect, the embodiment exemplarily illustrates one implementation manner for displaying the selected image:
Firstly, based on the real-time gradient difference between the position of the mobile terminal and the reference position, the real-time moving speed of the image on the image display interface, that is, the real-time speed of the image "flowing" on the image display interface, is determined, for example: the greater the difference in inclination, the greater the "flow" speed of the image, which remains the same when the difference in inclination is constant;
Then, controlling the current displayed image to move on the image display interface based on the real-time moving speed of the image on the image display interface;
and then, controlling the next image to be displayed and the current displayed image to synchronously move on the image display interface in a seamless connection manner, namely controlling the next image to be displayed and the current displayed image to synchronously flow the image display interface in an almost seamless connection manner, and forming the effect that the image continuously and uninterruptedly flows on the image display interface.
In addition, in order to further facilitate finding the image for the user, the embodiment further discloses:
Detecting whether a preset trigger instruction is received or not in an image display interface; and if so, entering a quick browsing mode to allow images to be selected from the image display list and displayed based on the movement direction and the sequence of the currently displayed images in the image display list.
for example: and when the user clicks and opens a certain image, the mobile terminal jumps to an image display interface. The user may enter a default gesture on the graphical presentation interface (e.g., double finger across the touch screen), or press a default button (e.g., double click on a volume key or a virtual key), or click on an "enter quick browse portal" option on the graphical presentation interface. Therefore, the user can freely select the browsing mode, and convenience is further provided for the user to search images.
it can be seen that, in this embodiment, based on the feature that the sensor of the mobile terminal can sense the motion data of the mobile terminal, the sensor data of the mobile terminal sensed by the sensor when being shaken is read in the image display interface, so that the motion state of the mobile terminal can be determined based on the sensor data, and then based on the sequence of the current display image in the image display list, the next image to be displayed is selected and displayed. Compared with the scheme of switching the images for display by continuously sliding the touch screen in the prior art, the method and the device can reduce the operation complexity of the user and improve the efficiency of searching the images.
Example 2
fig. 4 is a flowchart of an image displaying method provided in embodiment 2 of the present specification, and referring to fig. 4, the method may be executed by a processor of a mobile terminal, and specifically may include the following steps:
Step 42, acquiring sensor data of the mobile terminal during shaking in an image display interface;
It should be noted that step 42 is similar to step 22 in embodiment 1, and since the implementation manner is also similar, step 42 is not described herein again.
Step 44, determining a motion state of the mobile terminal based on the sensor data, wherein the motion state comprises a motion direction and a motion speed;
the moving direction of the mobile terminal and the moving speed of the image in the image display interface;
it should be noted that step 44 is similar to step 24 in embodiment 1, and the implementation manner of determining the motion direction of the mobile terminal is also similar, so that the implementation manner of determining the motion direction of the mobile terminal is not described herein again.
step 46, determining the movement direction of the image in the image display interface based on the movement direction of the mobile terminal, and determining the movement speed of the image in the image display interface based on the movement speed of the mobile terminal;
In step 46, a first implementation manner of the step of determining the movement speed of the image in the image display interface may be:
Firstly, determining position change description data of the mobile terminal relative to a reference position based on the sensor data, then determining the movement speed of the mobile terminal based on the position change description data, and further determining the movement speed of an image in an image display interface according to the movement speed of the mobile terminal. Specific examples are:
for example, based on real-time tilt data sensed by a gyroscope of the mobile terminal, a tilt speed of the mobile terminal during a position change relative to a reference position is calculated, and then a movement speed of the mobile terminal is determined based on the tilt speed. For example: the greater the tilting speed, the greater the moving speed of the mobile terminal. The conversion between the two can be determined based on the user habit, and is not limited herein.
For example, based on real-time acceleration data sensed by an acceleration sensor of the mobile terminal, real-time acceleration data of the mobile terminal in a position change process relative to a reference position is calculated, and then, the movement speed of the mobile terminal is determined based on the acceleration data. Likewise, the conversion between the two can be determined based on the user habit, and is not limited herein.
a second implementation manner of the step of determining the moving speed of the image in the image display interface may be:
Inclination data of the mobile terminal with respect to a reference position is calculated based on real-time inclination data sensed by a gyroscope of the mobile terminal, and then a moving speed of an image is determined based on the inclination data. For example: the greater the inclination, the greater the speed of movement of the image in the image presentation interface is determined. The conversion between the two can be determined based on the user habit, and is not limited herein.
the implementation manner of the step of determining the movement direction of the image in the image display interface is similar to that of the step 26, and therefore, the detailed description thereof is omitted here, and the following is briefly described:
when the leftward inclination angle of the mobile terminal exceeds the inclination angle of the reference position by a certain threshold value (for example: 4 degrees), determining that the movement direction of the image in the image display interface is leftward; when the right tilt angle of the mobile terminal exceeds the tilt angle of the reference position by a predetermined threshold (for example, 4 degrees), it is determined that the image switching direction is the right direction.
48, displaying the image selected from the image display list based on the movement direction and the movement speed of the image in the image display interface;
it should be noted that the step of selecting an image from the image display list is similar to the related description in embodiment 1, and therefore, the description thereof is omitted here.
The following illustrates the steps of displaying the selected image in this implementation:
for example, the faster the user swings the mobile terminal to the left, the faster the image is switched to the left and displayed, and the image is stopped to be switched when the user stops not swinging the mobile terminal.
for example, based on real-time tilt data sensed by a gyroscope of the mobile terminal, tilt data of the mobile terminal relative to a reference position is calculated, and then a movement speed of the image is determined based on the tilt data. For example: the greater the inclination, the greater the movement speed of the image is determined. The conversion between the two can be determined based on the user habit, and is not limited herein.
for example, when the user swings the mobile terminal to the left, the image is switched to the left and displayed in real time based on the difference of the inclination between the current position of the mobile terminal and the reference position; when the user puts the mobile terminal to the reference position, the left switching and the image display are stopped; when the user swings the mobile terminal to the right, the image is switched and displayed to the right in real time based on the difference of the inclination between the current position and the reference position of the mobile terminal.
therefore, the moving speed of the mobile terminal or the inclination of the mobile terminal relative to the reference position is determined through the sensor data, and the moving state of the selected image on the image display interface is controlled based on the moving speed or the inclination of the mobile terminal, so that the effects of 'stream-like' switching and image display can be achieved, and the purpose of improving the image viewing efficiency of a user is achieved.
In addition, for simplicity of explanation, the above-described method embodiments are described as a series of acts or combinations, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or steps described, as some steps may be performed in other orders or simultaneously according to the present invention. Furthermore, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example 3
Fig. 5 is a schematic structural diagram of an image display apparatus provided in embodiment 3 of this specification, and referring to fig. 5, the apparatus may specifically include: a first obtaining module 51, a first determining module 52 and a processing module 53, wherein,
The first obtaining module 51 is configured to obtain sensor data of the mobile terminal during shaking in the image display interface;
a first determining module 52 for determining a motion state of the mobile terminal based on the sensor data;
and the processing module 53 is configured to select and display an image from the image display list based on the motion state and the order of the currently displayed image in the image display list.
a first determining module 52, configured to determine location change description data of the mobile terminal relative to a reference location based on the sensor data; determining a motion state of the mobile terminal based on the location change description data.
the motion state comprises a motion direction; wherein, the processing module 53 is specifically configured to determine an image switching direction based on the motion direction; and determining and selecting the next image to be displayed in the image display list based on the image switching direction and the sequence of the currently displayed image in the image display list.
in addition, in another possible implementation, the apparatus further includes: second acquisition module (not shown in the figure)
The second obtaining module is used for obtaining an image switching rule corresponding to the image display interface, wherein the image switching rule is used for describing a corresponding relation between an image switching direction and a direction angle range of the mobile terminal;
on the basis of the above implementation manner, the processing module 53 is further configured to determine a direction angle range to which a direction angle of the mobile terminal corresponding to the motion direction relative to the reference position belongs; and determining the image switching direction based on the direction angle range to which the direction angle belongs.
Moreover, the processing module 53 is further configured to determine, when the switching direction is left or up, to select a next image of the currently displayed image from the image display list; and when the switching direction is rightward or downward switching, determining to select the previous image of the currently displayed image from the image display list.
when the current display image is the last image in the image display list, taking the first image in the image display list as the next image of the current display image; and when the current display image is the first image in the image display list, taking the last image in the image display list as the last image of the current display image.
it can be seen that, in this embodiment, based on the feature that the sensor of the mobile terminal can sense the motion data of the mobile terminal, the sensor data when the mobile terminal is shaken, which is sensed by the sensor, is read in the image display interface, so that the motion direction of the mobile terminal can be determined based on the sensor data, and then based on the sequence of the currently displayed image in the image display list, the next image to be displayed is selected and displayed. Compared with the scheme of switching the images for display by continuously sliding the touch screen in the prior art, the method and the device can reduce the operation complexity of the user and improve the efficiency of searching the images.
example 4
fig. 6 is a schematic structural diagram of an image display apparatus provided in embodiment 4 of this specification, where the apparatus may specifically include: a first acquisition module 61, a second determination module 62 and a processing module 63, wherein,
the first acquisition module 61 corresponds to the first acquisition module 51 in embodiment 3. Since the working principles are similar, the first obtaining module 61 is not described herein again.
in this embodiment, the second determining module 62 is configured to determine an operation state of the mobile terminal based on the sensor data, where the operation state includes a movement direction and a movement speed.
correspondingly, the processing module 63 is configured to determine a movement speed of the image in the image presentation interface based on the movement speed; determining a movement direction of an image in the image presentation interface based on the movement direction; and displaying the image selected from the image display list based on the movement direction and the movement speed of the image in the image display interface.
therefore, in the embodiment, the movement speed of the mobile terminal or the inclination of the mobile terminal relative to the reference position is determined through the sensor data, and then the movement state of the selected image on the image display interface is controlled based on the movement speed or the inclination of the mobile terminal, so that the effects of 'stream-like' switching and image display can be achieved. The method has the purpose of improving the image viewing efficiency of the user.
in addition, as an optimization scheme for embodiments 3 and 4, the apparatus may further include: detection module (not shown in the figure)
The detection module is used for detecting whether a preset trigger instruction is received in the image display interface; and if so, entering a quick browsing mode to allow images to be selected from the image display list and displayed based on the movement direction and the sequence of the currently displayed images in the image display list.
for example: and when the user clicks and opens a certain image, the mobile terminal jumps to an image display interface. The user may enter a default gesture on the graphical presentation interface (e.g., double finger across the touch screen), or press a default button (e.g., double click on a volume key or a virtual key), or click on an "enter quick browse portal" option on the graphical presentation interface. Therefore, the user can freely select the browsing mode, and convenience is further provided for the user to search images.
As for the above device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It should be noted that, in the respective components of the apparatus of the present invention, the components therein are logically divided according to the functions to be implemented thereof, but the present invention is not limited thereto, and the respective components may be newly divided or combined as necessary.
Example 5
fig. 7 is a schematic structural diagram of an electronic device provided in embodiment 5 of this specification, and referring to fig. 7, the electronic device includes a processor, an internal bus, a network interface, a memory, and a nonvolatile memory, and may also include hardware required by other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the image display device on the logic level. Of course, besides the software implementation, the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
the network interface, the processor and the memory may be interconnected by a bus system. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The Memory may include a Random-Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory.
The processor is used for executing the program stored in the memory and specifically executing:
In an image display interface, acquiring sensor data when the mobile terminal shakes;
Determining a direction of motion of the mobile terminal based on the sensor data;
And selecting and displaying an image from the image display list based on the motion direction and the sequence of the currently displayed image in the image display list.
the method performed by the image display apparatus or manager (Master) node according to the embodiments shown in fig. 5 and fig. 6 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The image presentation device may also perform the methods of fig. 2-4 and implement the methods performed by the administrator node.
Based on the same invention creation, the embodiment of the present application also provides a computer-readable storage medium storing one or more programs, which when executed by an electronic device including a plurality of application programs, cause the electronic device to execute the image presentation method provided in embodiment 1-2.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
the foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
as will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
the present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
it should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
as will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
the above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (13)

1. An image presentation method, comprising:
In an image display interface, acquiring sensor data when the mobile terminal shakes;
determining a motion state of the mobile terminal based on the sensor data;
And selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
2. The method of claim 1, wherein the determining the motion state of the mobile terminal based on the sensor data comprises:
Determining location change descriptive data of the mobile terminal relative to a reference location based on the sensor data;
determining a motion state of the mobile terminal based on the location change description data.
3. the method of claim 2, wherein the motion state comprises a direction of motion;
wherein said selecting an image from an image presentation list based on the motion state and an order of a currently presented image in the image presentation list comprises:
Determining an image switching direction based on the motion direction;
And determining and selecting the next image to be displayed in the image display list based on the image switching direction and the sequence of the currently displayed image in the image display list.
4. The method of claim 3, further comprising, prior to determining an image switching direction based on the motion direction:
Acquiring an image switching rule corresponding to the image display interface, wherein the image switching rule is used for describing a corresponding relation between an image switching direction and a direction angle range of the mobile terminal;
wherein determining an image switching direction based on the motion direction comprises:
Determining a direction angle range to which a direction angle of the mobile terminal corresponding to the motion direction relative to the reference position belongs;
and determining the image switching direction based on the direction angle range to which the direction angle belongs.
5. the method of claim 4, wherein the determining and selecting the next image to be displayed in the image display list comprises:
when the switching direction is leftward or upward switching, determining to select the next image of the currently displayed image from the image display list;
and when the switching direction is rightward or downward switching, determining to select the previous image of the currently displayed image from the image display list.
6. The method of claim 5, further comprising:
when the current display image is the last image in the image display list, taking the first image in the image display list as the next image of the current display image;
And when the current display image is the first image in the image display list, taking the last image in the image display list as the last image of the current display image.
7. The method of claim 3, wherein the motion state further comprises a speed of motion;
Wherein presenting the image selected from the image presentation list comprises:
Determining the movement speed of the image in the image display interface based on the movement speed;
Determining a movement direction of an image in the image presentation interface based on the movement direction;
and displaying the image selected from the image display list based on the movement direction and the movement speed of the image in the image display interface.
8. the method of any one of claims 1-7, further comprising:
detecting whether a preset trigger instruction is received or not in an image display interface;
and if so, entering a quick browsing mode to allow images to be selected from the image display list and displayed based on the motion state and the sequence of the currently displayed images in the image display list.
9. an image display apparatus, comprising:
The first acquisition module is used for acquiring sensor data of the mobile terminal during shaking in the image display interface;
a first determination module for determining a motion state of the mobile terminal based on the sensor data;
and the processing module is used for selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
10. the apparatus of claim 9, wherein the motion state comprises a direction of motion;
the processing module is specifically configured to determine an image switching direction based on the motion direction; and determining and selecting the next image to be displayed in the image display list based on the image switching direction and the sequence of the currently displayed image in the image display list.
11. The apparatus of claim 10, wherein the motion state further comprises a speed of motion;
the processing module is specifically configured to determine a movement speed of the image in the image display interface based on the movement speed; determining a movement direction of an image in the image presentation interface based on the movement direction; and displaying the image selected from the image display list based on the movement direction and the movement speed of the image in the image display interface.
12. An electronic device, comprising:
A processor; and
A memory arranged to store computer executable instructions that, when executed, cause the processor to:
In an image display interface, acquiring sensor data when the mobile terminal shakes;
Determining a motion state of the mobile terminal based on the sensor data;
And selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
13. A computer-readable medium storing one or more programs which, when executed by an electronic device including a plurality of application programs, cause the electronic device to:
In an image display interface, acquiring sensor data when the mobile terminal shakes;
Determining a motion state of the mobile terminal based on the sensor data;
and selecting and displaying images from the image display list based on the motion state and the sequence of the currently displayed images in the image display list.
CN201810581953.XA 2018-06-07 2018-06-07 Image display method and device Pending CN110580124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810581953.XA CN110580124A (en) 2018-06-07 2018-06-07 Image display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810581953.XA CN110580124A (en) 2018-06-07 2018-06-07 Image display method and device

Publications (1)

Publication Number Publication Date
CN110580124A true CN110580124A (en) 2019-12-17

Family

ID=68810295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810581953.XA Pending CN110580124A (en) 2018-06-07 2018-06-07 Image display method and device

Country Status (1)

Country Link
CN (1) CN110580124A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282846A (en) * 2021-05-19 2021-08-20 武汉悦学帮网络技术有限公司 Image display method and device, electronic equipment and computer readable storage medium
CN113408737A (en) * 2021-05-12 2021-09-17 联合汽车电子有限公司 Mobile terminal gesture recognition method and device and readable storage medium
CN113570609A (en) * 2021-07-12 2021-10-29 维沃移动通信有限公司 Image display method and device and electronic equipment
CN114756157A (en) * 2020-12-25 2022-07-15 博泰车联网科技(上海)股份有限公司 Picture display method of intelligent terminal, storage medium and intelligent terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2631829A1 (en) * 2012-02-24 2013-08-28 Samsung Electronics Co., Ltd Method of providing capture data and mobile terminal therefor
CN103941875A (en) * 2014-05-05 2014-07-23 成都理想境界科技有限公司 Page turning method and device and terminal
CN105528188A (en) * 2015-12-03 2016-04-27 网易(杭州)网络有限公司 Method and apparatus for browsing pictures

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2631829A1 (en) * 2012-02-24 2013-08-28 Samsung Electronics Co., Ltd Method of providing capture data and mobile terminal therefor
CN103941875A (en) * 2014-05-05 2014-07-23 成都理想境界科技有限公司 Page turning method and device and terminal
CN105528188A (en) * 2015-12-03 2016-04-27 网易(杭州)网络有限公司 Method and apparatus for browsing pictures

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756157A (en) * 2020-12-25 2022-07-15 博泰车联网科技(上海)股份有限公司 Picture display method of intelligent terminal, storage medium and intelligent terminal
CN114756157B (en) * 2020-12-25 2023-11-28 博泰车联网科技(上海)股份有限公司 Picture display method of intelligent terminal, storage medium and intelligent terminal
CN113408737A (en) * 2021-05-12 2021-09-17 联合汽车电子有限公司 Mobile terminal gesture recognition method and device and readable storage medium
CN113282846A (en) * 2021-05-19 2021-08-20 武汉悦学帮网络技术有限公司 Image display method and device, electronic equipment and computer readable storage medium
CN113570609A (en) * 2021-07-12 2021-10-29 维沃移动通信有限公司 Image display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US20220253212A1 (en) Split-Screen Display Processing Method and Apparatus, Device, and Storage Medium
CN110580124A (en) Image display method and device
EP3493100A1 (en) Two-dimensional code identification method and device, and mobile terminal
CN102741799B (en) Touch screen operation method and terminal
US20170322689A1 (en) Method and device for multi-task management, and computer-readable medium
CN113055525A (en) File sharing method, device, equipment and storage medium
US20160103576A1 (en) Navigating application interface
EP3128411A1 (en) Interface display method and device
US11397597B2 (en) Application processing method and apparatus
CN106372252B (en) A kind of image display method and mobile terminal
CN112416205B (en) Method and device for determining login account
WO2017167072A1 (en) Page processing method, device and intelligent terminal
CN109240678B (en) Code generation method and device
WO2024045948A1 (en) Interface display method and apparatus, terminal and storage medium
CN112860921A (en) Information searching method and device
CN112181570A (en) Background task display method and device and electronic equipment
CN111538453A (en) Book detail page display method, terminal and computer storage medium
CN112181515B (en) Application program control method, device, terminal and storage medium
US20160286036A1 (en) Method for quick access to application functionalities
CN110968513B (en) Recording method and device of test script
CN109376289B (en) Method and device for determining target application ranking in application search result
CN115016710A (en) Application program recommendation method
CN113986422A (en) Rapid control method and device for application function
CN112835786A (en) Optimal path calculation method and device for application program interface jump, storage medium and terminal
CN111459595A (en) Processing method and device and electronic equipment

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40018691

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191217