Image display method and device

文档序号:1719597 发布日期:2019-12-17 浏览:11次 中文

阅读说明:本技术 一种图像展示方法和装置 (Image display method and device ) 是由 吴晗菲 于 2018-06-07 设计创作,主要内容包括:本申请公开了一种图像展示方法和装置。方法包括:在图像展示界面中,获取移动终端晃动时移动终端的传感器采集到的传感器数据;然后,基于传感器数据确定所述移动终端的运动状态;基于所述运动状态,以及当前展示图像在图像展示列表中的顺序,从所述图像展示列表中选择图像并展示。由此,本申请可在用户手持移动终端进行手势操作以浏览图像时,基于传感器采集的传感器数据从图像展示列表中选择对应的图像并进行展示,实现提高查找图像效率的目的。(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.)

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.

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.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:显示界面的局部刷新方法、装置、设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类