Image-based interaction method and device, computer equipment and storage medium

By displaying the target focused image on the terminal and using gesture detection to automatically switch to other images in the image collection, the problem of low image interaction efficiency in the existing technology is solved, and a convenient and efficient image viewing experience is achieved.

CN118625919APending Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310253138.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-06
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, users need to zoom in multiple times to observe details in different areas when viewing an image, resulting in low image interaction efficiency.

Method used

Provide an image-based interaction method that displays the target focused image through the terminal and switches to other images in the focused image collection in response to the user's viewing operation. It uses posture detection to automatically switch images to conveniently view multiple images in the same imaging scene. Every detail.

Benefits of technology

The efficiency of image interaction is improved. Users can view image details without zooming in on the image area multiple times, which improves the image viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625919A
    Figure CN118625919A
Patent Text Reader

Abstract

The invention relates to an image-based interaction method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps that a terminal displays a target focusing image, the target focusing image belongs to a focusing image set, imaging scenes of all focusing images in the focusing image set are the same, and focusing areas are different; in response to a viewing operation on the target focused image, displaying an image viewing interface about the focused image set; the image viewing interface comprises a first focusing image in the focusing image set; and switching the first focusing image into a second focusing image in the focusing image set in response to the change of the posture of the terminal. Therefore, the image interaction efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an image-based interaction method, apparatus, computer device, storage medium and computer program product. Background Art

[0002] Images have become an indispensable part of people's daily lives, such as promotional pictures, daily life pictures, landscape pictures, etc. As one of the media for information dissemination, pictures can supplement text information and enhance people's understanding and memory of the displayed information.

[0003] With the rapid development of smart devices, people can save and view images through electronic photo albums. With the development of computer technology and Internet technology, various platforms such as social platforms and video platforms also have the functions of image sharing and viewing. For example, users can share images on the platform for friends or themselves to view.

[0004] Currently, when users view pictures, they usually click on the picture to view the image in almost full screen. If the user wants to observe the details of different areas in the image, he needs to further zoom in on each area in the image through stretching or double-clicking. The operation is very cumbersome, resulting in low image interaction efficiency. Summary of the invention

[0005] Based on this, it is necessary to provide an image-based interaction method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the efficiency of image interaction in response to the above technical problems.

[0006] The present application provides an image-based interaction method. The method comprises:

[0007] The terminal displays a target focused image, the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas;

[0008] In response to a viewing operation on the target focused image, an image viewing interface for the focused image set is displayed; the image viewing interface includes a first focused image in the focused image set;

[0009] In response to a change in the posture of the terminal, the first focused image is switched to a second focused image in the focused image set.

[0010] The present application also provides an image-based interactive device. The device comprises:

[0011] An image display module, used for displaying a target focused image on a terminal, wherein the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas;

[0012] An interface display module, configured to display an image viewing interface for the focused image set in response to a viewing operation on the target focused image; the image viewing interface includes a first focused image in the focused image set;

[0013] A switching module is used to switch the first focused image to a second focused image in the focused image set in response to a change in the posture of the terminal.

[0014] In some embodiments, the device also includes a second shooting module and a second sharing module. The second shooting module is used to shoot at least two focused images with different focus areas for the same imaging scene in response to an image shooting operation, and the at least two focused images shot constitute the focused image set; the second sharing module is used to share a target focused image among the at least two focused images in response to an image sharing operation.

[0015] In some embodiments, the second shooting module is used to shoot at least two focused images with different focus areas for the same imaging scene in response to an image shooting operation when the posture detection device on the terminal is in an on state; the second shooting module is also used to shoot an image for the same imaging scene in response to an image shooting operation when the posture detection device on the terminal is in an off state.

[0016] In some embodiments, the second shooting module is used to display a content sharing interface of a target user; the content sharing interface is used to display content shared by the target user and the target user's contacts, and the content sharing interface includes an image entrance; in response to a triggering operation on the image entrance, at least two focused images with different focus areas are taken of the same imaging scene.

[0017] In some embodiments, the second shooting module is used to display a focus image shooting interface including a shooting icon in response to an image shooting operation; in response to a triggering operation on the shooting icon, sequentially focus on at least two objects in the imaging scene and then shoot at least two focus images with different focus areas; the second sharing module is also used to display at least two focused images captured in an image display area of ​​the focus image shooting interface; and in response to an image sharing operation, share a target focus image among the at least two focus images.

[0018] In some embodiments, the second sharing module is further used to display the target focused image in the image preview area of ​​the focused image shooting interface in response to a trigger operation on the target focused image among the at least two focused images; the image preview area is larger than the image display area; and the target focused image is shared in response to a confirmation sharing operation on the target focused image.

[0019] In some embodiments, the second sharing module is further used to start from the first focused image in the image display area, and select a focused image from the image display area in response to each change in the posture of the terminal; if a confirmation sharing operation is triggered after the target focused image is selected, the target focused image is shared.

[0020] In some embodiments, the device also includes a determination module, which is used to determine the focus area in each of the at least two focus images; determine the depth of field information of each of the focus areas; associate a tilt angle with each of the focus images in turn according to the size relationship of the depth of field information; store the tilt angle in correspondence with the corresponding focus image to obtain a focus image set.

[0021] In some embodiments, the image display module is used for the terminal to display a target focused image in a content sharing interface; to overlay and display a focused image mark in the target focused image; the image display module is also used for the terminal to also display a non-focused image in the content sharing interface, the non-focused image not including a focused image mark; and in response to a viewing operation on the non-focused image, to display an enlarged image of the non-focused image.

[0022] In some embodiments, the interface display module is used to select a first focused image from a focused image set to which the target focused image belongs in response to a viewing operation on the target focused image; and display the selected first focused image in an image preview area of ​​the image viewing interface; the interface display module is also used to display each focused image in the focused image set in an image display area of ​​the image viewing interface; and the image preview area is larger than the image display area.

[0023] In some embodiments, the interface display module is further configured to select a focused image with the smallest depth of field information of a focused area from the focused image set to which the target focused image belongs, as the first focused image.

[0024] In some embodiments, the interface display module is also used to determine the current tilt angle of the terminal; obtain the depth of field information of each focused image in the focused image set; and select a focused image corresponding to the depth of field information and the current tilt angle from the focused image set according to the correspondence between the preset tilt angle and the depth of field information as the first focused image.

[0025] In some embodiments, the interface display module is used to display an image viewing interface about the focused image set in response to a viewing operation on the target focused image when the posture detection device on the terminal is in an on state; the interface display module is also used to display an enlarged image of the target focused image in response to a viewing operation on the target focused image when the posture detection device on the terminal is in an off state.

[0026] In some embodiments, the switching module is used to detect the tilt angle of the terminal after the posture change in response to the change in the posture of the terminal; obtain the depth of field information of each focused image in the focused image set; according to the correspondence between the preset tilt angle and the depth of field information, select the second focused image corresponding to the corresponding depth of field information and the tilt angle after the posture change of the terminal from the focused image set; switch the first focused image to the second focused image in the focused image set.

[0027] In some embodiments, the switching module is used to superimpose a second focused image in the focused image set on the first focused image in response to a change in the posture of the terminal, and adjust the transparency of the first focused image to a minimum transparency value and the transparency of the second focused image to a maximum transparency value.

[0028] The present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0029] The terminal displays a target focused image, the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas;

[0030] In response to a viewing operation on the target focused image, an image viewing interface for the focused image set is displayed; the image viewing interface includes a first focused image in the focused image set;

[0031] In response to a change in the posture of the terminal, the first focused image is switched to a second focused image in the focused image set.

[0032] The present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0033] The terminal displays a target focused image, the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas;

[0034] In response to a viewing operation on the target focused image, an image viewing interface for the focused image set is displayed; the image viewing interface includes a first focused image in the focused image set;

[0035] In response to a change in the posture of the terminal, the first focused image is switched to a second focused image in the focused image set.

[0036] The present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0037] The terminal displays a target focused image, the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas;

[0038] In response to a viewing operation on the target focused image, an image viewing interface for the focused image set is displayed; the image viewing interface includes a first focused image in the focused image set;

[0039] In response to a change in the posture of the terminal, the first focused image is switched to a second focused image in the focused image set.

[0040] The above-mentioned image-based interaction method, device, computer equipment, storage medium and computer program product display the target focused image through the terminal, and after responding to the viewing operation of the target focused image, display the image viewing interface about the focused image set, so that the first focused image in the focused image set to which the target focused image belongs can be viewed. Once the posture change of the terminal is detected, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same and the focusing area is different, multiple details in the same imaging scene can be viewed conveniently and efficiently, without the need to repeatedly enlarge each area in the image to view the image details, thereby improving the efficiency of image interaction.

[0041] The present application provides an image-based interaction method. The method comprises:

[0042] In response to an image capturing operation, capturing at least two focused images with different focus areas for the same imaging scene, wherein the captured at least two focused images constitute a focused image set, wherein each focused image in the focused image set has the same imaging scene and different focus areas;

[0043] In response to the image sharing operation, sharing a target focused image among the at least two focused images;

[0044] The shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

[0045] The present application provides an image-based interaction device, the device comprising:

[0046] A first shooting module is used to shoot at least two focused images with different focus areas for the same imaging scene in response to an image shooting operation, wherein the at least two focused images shot constitute a focused image set, and each focused image in the focused image set has the same imaging scene and different focus areas;

[0047] A first sharing module, configured to share a target focused image among the at least two focused images in response to an image sharing operation;

[0048] The shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

[0049] The present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0050] In response to an image capturing operation, capturing at least two focused images with different focus areas for the same imaging scene, wherein the captured at least two focused images constitute a focused image set, wherein each focused image in the focused image set has the same imaging scene and different focus areas;

[0051] In response to the image sharing operation, sharing a target focused image among the at least two focused images;

[0052] The shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

[0053] The present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0054] In response to an image capturing operation, capturing at least two focused images with different focus areas for the same imaging scene, wherein the captured at least two focused images constitute a focused image set, wherein each focused image in the focused image set has the same imaging scene and different focus areas;

[0055] In response to the image sharing operation, sharing a target focused image among the at least two focused images;

[0056] The shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

[0057] The present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0058] In response to an image capturing operation, capturing at least two focused images with different focus areas for the same imaging scene, wherein the captured at least two focused images constitute a focused image set, wherein each focused image in the focused image set has the same imaging scene and different focus areas;

[0059] In response to the image sharing operation, sharing a target focused image among the at least two focused images;

[0060] The shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

[0061] The above-mentioned image-based interaction method, device, computer equipment, storage medium and computer program product, in response to an image shooting operation, shoot at least two focused images with different focusing areas for the same imaging scene, the at least two focused images shot constitute a focused image set, and the imaging scene of each focused image in the focused image set is the same, and the focusing areas are different; in response to an image sharing operation, a target focused image among the at least two focused images is shared; in this way, when the target focused image is viewed on the terminal, in response to a change in the posture of the terminal, the focused images in the focused image set are switched for viewing. Since the imaging scene of each focused image in the focused image set is the same, and the focusing areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, without having to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 is a diagram of an application environment of an image-based interaction method in an embodiment;

[0063] Figure 2 is a flowchart of an image-based interaction method in one embodiment;

[0064] Figure 3 is a schematic diagram of an image publishing interface in one embodiment;

[0065] Figure 4 A schematic diagram of a gyroscope startup operation in one embodiment;

[0066] Figure 5A is a schematic diagram of a content sharing interface in one embodiment;

[0067] Figure 5B is a schematic diagram of a content sharing interface in another embodiment;

[0068] Figure 6 is a schematic diagram of a focused image capturing interface in one embodiment;

[0069] Figure 7 is a schematic diagram of a content sharing interface in another embodiment;

[0070] Figure 8 is a schematic diagram of an image viewing interface in one embodiment;

[0071] Fig. 9 is a flowchart of an image-based interaction method in another embodiment;

[0072] Fig.10 is a flowchart of an image-based interaction method in another embodiment;

[0073] Fig.11 is a structural block diagram of an image-based interaction device in an embodiment;

[0074] Fig.12 is a structural block diagram of an image-based interaction device in another embodiment;

[0075] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0077] In traditional technology, when viewing an image, the user needs to click on the image to view it. If the user wants to view the details of different areas in the image, the image is zoomed in. At this time, the user needs to manually operate the image to obtain the zoomed image. Obviously, the image viewing process is very cumbersome, which reduces the efficiency of image interaction.

[0078] The image-based interaction method provided in the embodiment of the present application displays a target focused image through a terminal, and after responding to a viewing operation on the target focused image, displays an image viewing interface for a focused image set, so that the first focused image in the focused image set to which the target focused image belongs can be viewed. Once a change in the posture of the terminal is detected, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same and the focused areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, without the need to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0079] The image-based interaction method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other servers. The terminal 102 and the server 104 can jointly execute the image-based interaction method, and the terminal 102 can also execute the image-based interaction method alone.

[0080] The terminal 102 performs the image-based interaction method alone as an example for description. In some embodiments, the terminal 102 displays a target focused image, which belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas; in response to a viewing operation on the target focused image, an image viewing interface for the focused image set is displayed; the image viewing interface includes a first focused image in the focused image set; in response to a change in the posture of the terminal 102, the first focused image is switched to a second focused image in the focused image set.

[0081] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0082] In one embodiment, Figure 2 As shown, an image-based interaction method is provided, which is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:

[0083] Step 202: The terminal displays a target focused image, which belongs to a focused image set. Each focused image in the focused image set has the same imaging scene and different focused areas.

[0084] Among them, the target focused image is the image to be viewed. The imaging scene is the scene in the imaging image obtained by collecting the actual environment. Optionally, the imaging scene includes at least two different objects, wherein the objects can be people, animals, flowers, grass, trees, etc. The focus area refers to the area that can be clearly imaged on the focused image, and each focus area includes at least one object. The focused image refers to the image obtained by focusing on at least one object in the imaging scene. The focused image set is a set of focused images belonging to the same imaging scene. The focused image set contains at least two focused images, and the focus areas in each focused image are different. Exemplarily, the imaging scene includes flowers, children, tables and trees, and the focus area can be flowers, or children, or tables, or trees, etc. It should be noted that after the focus area is determined, the area located in the imaging scene and not belonging to the focus area is regarded as a non-focus area. It can be understood that the non-focus area is a blurred area. Exemplarily, for focused image 1, if the focus area is a flower, the child, table and tree in the imaging scene are blurred in the focused image 1.

[0085] In some embodiments, the target focused image may be a focused image collected by the target user through the terminal. After the target user obtains a focused image set by photographing the imaging scene through the terminal, the terminal displays a focused image in the focused image set, namely, the target focused image. The target focused image may be the first focused image in the focused image set, or may be any focused image.

[0086] In some embodiments, the target focused image may also be sent to the target user's terminal by other users through the terminal. After the target user obtains the target focused image through the terminal, the terminal may save the focused image to the electronic photo album, and display the target focused image in the image display interface in response to the triggering operation on the electronic photo album of the terminal. For example, the target user clicks the icon of the electronic photo album in the terminal, the image display interface is displayed, and the target focused image is displayed in the image display interface.

[0087] In some embodiments, in an application logged in with a target account, the terminal displays a content sharing interface and displays a target focus image in the content sharing interface. The target focus image may be posted in the content sharing interface by the target account or posted in the content sharing interface by a contact of the target account through a corresponding account. The content sharing interface is used to display the content shared by each user through their respective accounts. The shared content may be images, text, voice, etc. Among them, the target account is the account of the target user in the application.

[0088] Step 204: in response to a viewing operation on the target focused image, display an image viewing interface for the focused image set; the image viewing interface includes the first focused image in the focused image set.

[0089] The viewing operation of the target focused image can be understood as a triggering operation to enter the focused image set, and the viewing operation can be a single-click operation, or a double-click operation, etc., without specific limitation. The image viewing interface is used to display multiple focused images that belong to the same focused image set as the target focused image. The first focused image displayed in the image viewing interface can be the target focused image, or it can be other focused images in the focused image set except the target focused image.

[0090] Optionally, in response to a viewing operation on a target focused image, the terminal displays an image viewing interface for the focused image set, and presents a first focused image in the focused image set in the image viewing interface.

[0091] Optionally, in response to a viewing operation on a target focused image, the terminal displays an image viewing interface for a focused image set, and displays a first focused image in the focused image set in a larger area in the image viewing interface. In addition, reduced images of all focused images in the focused image set are displayed in a smaller area in the image viewing interface, and the reduced image corresponding to the first focused image is in a selected state, indicating that the first focused image is currently displayed in the larger area.

[0092] Step 206: In response to a change in the posture of the terminal, switch the first focused image to a second focused image in the focused image set.

[0093] The change in the posture of the terminal refers to the target user changing the posture of the terminal held by the target user, for example, the target user changes the posture of the terminal by rotating the terminal to a preset angle, or for another example, the target user changes the posture of the terminal by shaking the terminal. The first focused image and the second focused image are focused images with different focus areas. The second focused image can be a target focused image, or it can be another focused image in the focused image set except the target focused image and the first focused image.

[0094] Optionally, the terminal switches the first focused image to the second focused image in the image viewing interface in response to the number of times the terminal is shaken. For example, the second focused image corresponding to the number of shakes is preset, and after the number of shakes is determined, the first focused image is switched to the second focused image corresponding to the number of shakes.

[0095] Optionally, the terminal switches the first focused image to the second focused image in the focused image set in response to a change in the posture of the terminal in the image viewing interface. In one embodiment, when the terminal detects a change in the posture of the terminal, another focused image different from the first focused image is randomly determined from the focused image set, and the other focused image is used as the second focused image. In one embodiment, the focused images in the focused image set have an image order. When the terminal detects a change in the posture of the terminal, a focused image located after the first focused image is determined from the focused image set according to the image order, and the determined focused image is used as the second focused image.

[0096] In one embodiment, a focused image in a focused image set is associated with a posture, and the terminal determines a focused image associated with the changed posture information from the focused image set according to the changed posture information, and uses the determined focused image as the second focused image. For example, the posture information is the angle at which the terminal deviates from the vertical direction or the horizontal direction. Optionally, the terminal can associate the focused image with the posture according to the depth of field information of the focused area in the focused image. For example, if the posture information is the angle of the terminal's deviation from the horizontal direction, when the focus image set includes 3 focus images, focus images 1, 2, and 3, the focus areas are area A, area B, and area C, respectively, and the corresponding depth of field information is area A < area B < area C, that is, the object in area A is closest to the shooting device, area B is second, and area C is farthest. Then, a deviation of 10 degrees from the horizontal direction can be associated with focus image 1, a deviation of 0 degrees from the horizontal direction can be associated with focus image 2, and a deviation of 10 degrees downward from the horizontal direction can be associated with focus image 3. In this way, when the terminal is 10 degrees away from the horizontal direction, focus image 1 is switched to display, when the terminal is 0 degrees away from the horizontal direction, focus image 2 is switched to display, and when the terminal is 10 degrees downward from the horizontal direction, focus image 3 is switched to display, which can give the user a sense of being in a real focus image imaging scene and improve the user experience. Of course, the correspondence between posture and focus image is not limited to this method, but can also be other methods, and the embodiments of the present application are not limited to this.

[0097] In the above-mentioned image-based interaction method, the target focused image is displayed through the terminal. After responding to the viewing operation of the target focused image, the image viewing interface about the focused image set is displayed, so that the first focused image in the focused image set to which the target focused image belongs can be viewed. Once the posture change of the terminal is detected, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same and the focusing areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, and there is no need to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0098] In some embodiments, before the terminal displays the target focused image, the method also includes: in response to an image capturing operation, capturing at least two focused images with different focusing areas for the same imaging scene, and the at least two captured focused images constitute a focused image set; in response to an image sharing operation, sharing the target focused image among the at least two focused images.

[0099] Exemplarily, the terminal can respond to the image capture operation by capturing a focused image every second, for a total of n images. The value of n is not limited. For example, n can be 6 or 9. Of course, the terminal can also respond to the image capture operation by capturing n images continuously.

[0100] Exemplarily, during the shooting of at least two focused images, the terminal detects different objects in the current imaging scene, takes each object as the focus in turn, focuses on the imaging scene and shoots, obtaining at least two focused images with different focus areas and different focus objects. The terminal can locate each object in the imaging scene in turn through the target detection algorithm, and the embodiment of the present application does not limit the target detection algorithm used. The terminal can also divide the viewfinder into multiple grids of the same size according to the default size, and during the shooting process, take each grid as the focus area in turn, and shoot multiple focused images with different focus areas.

[0101] Exemplarily, in response to an image capturing operation, the terminal focuses on each object in the imaging scene in order from near to far according to the depth of field distance between the terminal and the object to obtain at least two focused images with different focus areas.

[0102] In one embodiment, in the process of shooting at least two focused images with different focus areas, the step of generating each focused image includes: the terminal determines the focus area of ​​the focused image and determines the mask information of the object in the focus area; the terminal determines the blur mode of the non-focus area in the focused image according to the area information and the mask information of the focus area. Based on the blur mode of the focused image, the terminal blurs the non-focus area in the focused image to generate a focused image.

[0103] Among them, the area information refers to the width and height of the focus area, and the mask information refers to the boundary information of the object mask in the focus area. The boundary information includes the maximum and minimum values ​​of the horizontal axis and the maximum and minimum values ​​of the vertical axis in the coordinate information corresponding to the object mask. The object mask can be understood as the edge of the object. Among them, the step of determining the focus area of ​​the focused image includes: according to the number of focused images, the preset focus range is evenly divided to determine the focus area of ​​each focused image. For example, it is determined that there are 6 focused images and the preset focus range is 100%, then the area range of each focus area is 16.7%.

[0104] Further, according to the area information and mask information of the focused area, the blur mode of the non-focused area in the focused image is determined, including: determining the image width and image height of the focused image, and calculating the first deviation factor of the center of the focused area and the non-focused area along the positive direction of the longitudinal axis according to the minimum value of the longitudinal axis, the height of the focused area and the image height. According to the maximum value of the longitudinal axis and the image height, the second deviation factor of the edge of the focused area and the non-focused area along the positive direction of the longitudinal axis is calculated. Based on the comparison result of the first deviation factor and the second deviation factor, the blur mode of the non-focused area in the focused image is determined.

[0105] Exemplarily, let the maximum value and minimum value of the vertical axis be Ymax and Ymin respectively, the height of the focus area be FocusH, and the image height be H, then the first deviation factor P1 is calculated according to the following formula. As described below:

[0106] P1=abs(Ymin+FocusH / 2-H / 2) / H

[0107] In the above formula, abs(.) is the absolute value function.

[0108] The second deviation factor P2 is calculated based on the following formula:

[0109] P2=1-Ymax / H

[0110] Further, based on the comparison result of the first deviation factor and the second deviation factor, the blurring mode of the non-focused area in the focused image is determined, including: if the first deviation factor is less than the second deviation factor, the blurring mode is determined to be the first blurring mode, and the first blurring mode is a mode of rapidly and gradually blurring the non-focused area along the positive and negative directions of the longitudinal axis. If the first deviation factor is greater than or equal to the second deviation factor, the blurring mode is determined to be the second blurring mode, and the second blurring mode is a mode of unidirectionally and gradually blurring along the positive direction of the longitudinal axis. It should be noted that if the first deviation factor is less than the second deviation factor, it means that the focused area is tending to the center of the focused image; if the first deviation factor is greater than or equal to the second deviation factor, it means that the focused area is tending to the boundary of the focused image.

[0111] Further, when the blur mode is determined to be the second blur mode, in order to speed up the blur processing of the non-focused area, it is determined whether a unidirectional fast gradient blur operation can be performed on the positive direction of the vertical axis. Specifically, if the ratio of the height of the focused image to the image height is greater than the first preset ratio, and the ratio of the width of the focused image to the image width is greater than the second preset ratio, it is determined that a unidirectional fast gradient blur operation can be performed on the positive direction of the vertical axis. The first preset ratio is different from the second preset ratio. For example, the first preset ratio is 0.7, and the second preset ratio is 0.8.

[0112] In this case, the boundary of the blur processing is determined, and based on the boundary of the blur processing, the non-focused area is blurred by performing a unidirectional fast gradient blur operation in the positive direction of the vertical axis to generate a focused image. The boundary of the blur processing is determined based on the height of the focused area and the maximum value of the vertical axis, for example, as shown in the following formula:

[0113] R_up_inner=FocusW*(-FocusH / Ymax)

[0114] R_up_outer=R_up_inner*1.1

[0115] R_down_inner=0

[0116] R_down_outer = 0

[0117] Among them, R_up_inner is the starting boundary of the fuzzy gradient in the positive direction of the vertical axis; R_up_outer is the ending boundary of the fuzzy gradient in the positive direction of the vertical axis; R_down_inner is the starting boundary of the fuzzy gradient in the negative direction of the vertical axis; R_down_outer is the ending boundary of the fuzzy gradient in the negative direction of the vertical axis. Ymax and Ymin are the maximum and minimum values ​​of the vertical axis respectively, FocusH is the height of the focus area, FocusW is the width of the focus area, and H is the image height.

[0118] Optionally, the terminal responds to an image capturing operation by capturing at least two focused images with different focus areas for the same scene, and the at least two focused images constitute a focused image set. The terminal responds to an image sharing operation on a target focused image among the at least two focused images by sharing the target focused image, and the shared target focused image can be viewed by the target user himself.

[0119] Optionally, the terminal captures at least two focused images with different focus areas for the same scene in response to an image capturing operation, and displays each focused image in the focused image set. In response to a trigger operation on a target focused image, after selecting the target focused image, the terminal shares the target focused image in response to a confirmation sharing operation on the target focused image.

[0120] Optionally, the terminal displays a content sharing interface, and in response to an image capture operation triggered in the content sharing interface, the terminal switches the content sharing interface to a focus image capture interface, captures at least two focus images with different focus areas for the same scene, and displays the at least two focus images with different focus areas captured in the image capture interface. In response to a trigger operation on a target focus image among the at least two focus images, the terminal selects the target focus image, and switches from the image capture interface to the image publishing interface, and displays the target focus image in the image publishing interface. Next, the terminal shares the target focus image to the content sharing interface in response to an image sharing operation on the target focus image in the image publishing interface. The image publishing interface is an interface for confirming whether an image is published. Figure 3 As shown, it is a schematic diagram of an image publishing interface in one embodiment. In addition to being able to display the target focused image, the image publishing interface can also publish text information, locate the location, prompt the viewing user, and determine the viewing authority. The image publishing interface also includes a publish icon, and the user's triggering operation on the publish icon is the image sharing operation. For example, after the target focused image is displayed in the image publishing interface, the terminal responds to the target user's triggering operation on the publish icon in the image publishing interface to share the target focused image.

[0121] In this example, after the terminal displays the content sharing interface, the target user can directly perform an image shooting operation based on the content sharing interface to generate a focused image set including a target focused image. Then, after determining the target focused image, the target focused image is directly shared.

[0122] In this embodiment, in response to the image capture operation, at least two focused images with different focus areas are directly captured for the same imaging scene. In this way, a focused image set is generated based on the at least two captured focused images. In this way, the target user can share the captured target focused image through the content sharing interface. When the shared object views the target focused image, it can switch to view the various focused images of the same imaging scene as the target focused object in the content sharing interface by controlling the terminal posture change, and can view various details in the image without multiple zooming in on various areas in the image to view the image details, thereby improving the efficiency of image interaction.

[0123] In some embodiments, in response to an image capturing operation, at least two focused images with different focusing areas are captured for the same imaging scene, including: when a posture detection device on the terminal is in an on state, in response to an image capturing operation, at least two focused images with different focusing areas are captured for the same imaging scene.

[0124] The posture detection device is used to detect the posture of the terminal. The posture detection device can be a gyroscope or other acceleration sensors, which are not specifically limited.

[0125] Optionally, when the terminal detects the image capture operation, it determines whether the posture detection device on the terminal is in an on state. When the posture detection device on the terminal is in an on state, the terminal responds to the image capture operation and captures at least two focused images with different focus areas for the same imaging scene.

[0126] Optionally, during the shooting process of at least two focused images, if the posture detection device on the terminal is in an on state, the posture information of the terminal when each focused image is shot can be obtained through the posture detection device, and the terminal can associate the captured focused image with the corresponding posture information to form a corresponding relationship between the image and the terminal posture information.

[0127] In one embodiment, when the posture detection device on the terminal is in an off state, in response to an image capturing operation, the terminal may display a prompt message that the posture detection device needs to be turned on, to prompt the user that only after the posture detection device is turned on can at least two focused images with different focus areas be captured for the same imaging scene.

[0128] Exemplarily, the terminal displays a terminal setting interface, which includes entrances to application setting interfaces of multiple applications, and displays the application setting interface of the selected application in response to a trigger operation on the entrance of the selected application. The application setting interface includes a trigger button of the posture detection device. The terminal turns on the posture detection device in response to a first trigger operation on the trigger button.

[0129] like Figure 4The figure shows a schematic diagram of the gyroscope startup operation in one embodiment. The terminal displays the terminal setting interface, and the terminal switches the terminal setting interface to the instant messaging application setting interface in response to the trigger operation on the instant messaging application. Among them, the instant messaging application setting interface includes a trigger button for the gyroscope, a trigger button for photo permissions, a trigger button for camera permissions, a trigger button for face permissions, a trigger button for microphone permissions, etc. In response to the first drag operation on the trigger button, the terminal allows the instant messaging application to interact with the gyroscope. At this time, the posture detection device on the terminal is in the turned-on state, and returns to the above-mentioned step of responding to the image shooting operation and shooting at least two focused images with different focus areas for the same imaging scene to continue.

[0130] In this embodiment, after determining that the posture detection device on the terminal is in the on state, different focus areas in the same imaging scene can be directly photographed, thereby obtaining each focus image corresponding to the same scene. That is, a user's one image shooting operation can automatically obtain multiple focus images of different focus areas, that is, on the premise of ensuring that more detailed information about the scene is obtained, multiple focus images can also be quickly generated. Furthermore, based on the on state of the posture detection device, it can automatically generate a corresponding relationship between the posture change amount and the focus image, which is beneficial to the subsequent image viewing stage. Based on the corresponding relationship, the focus image corresponding to the posture information can be quickly switched, thereby improving the image interaction efficiency.

[0131] In one embodiment, the above method may further include: when the posture detection device on the terminal is in a turned-off state, in response to an image capturing operation, capturing an image of the same imaging scene.

[0132] Optionally, when the terminal detects an image capturing operation, if a posture detection device on the terminal is in a closed state, the terminal only captures one image of the same imaging scene in response to the image capturing operation.

[0133] In some embodiments, in response to an image capture operation, at least two focused images with different focus areas are captured for the same imaging scene, including: displaying a content sharing interface of a target user; the content sharing interface is used to display content shared by the target user and the target user's contacts, the content sharing interface includes an image entrance; in response to a triggering operation on the image entrance, at least two focused images with different focus areas are captured for the same imaging scene.

[0134] As mentioned above, the content sharing interface is used to display the content shared by each user through their respective accounts. Furthermore, in the application logged in with the target account, the content sharing interface is used to display the content shared by the target user and the content shared by the contacts followed by the target user. The image entry is the entry for shooting operations.

[0135] Optionally, in the application logged in with the target account, the terminal displays the content sharing interface of the target user. In response to the triggering operation of the image entry in the content sharing interface, the terminal captures at least two focused images with different focus areas for the same imaging scene.

[0136] For example, Figure 5A FIG. 1 is a schematic diagram of a content sharing interface in an embodiment. Figure 5A The content sharing interface in the instant messaging application is shown in FIG. 1 . In this case, the target user is Xiao Ming. In Xiao Ming's content sharing interface, the shared content sent by Xiao Hong and Xiao Jun, the contacts Xiao Ming follows, is displayed. For example, Xiao Hong forwarded the first link, and Xiao Jun directly shared an image.

[0137] In an instant messaging application logged in with a target account, the terminal displays a content sharing interface. After the target user clicks on an image entry on the content sharing interface, the terminal displays a shooting pop-up window in response to the click operation on the image entry. The shooting pop-up window displays a shooting button, an import button, and a cancel button for canceling sharing. In response to the triggering operation on the shooting button, the terminal shoots at least two focused images with different focus areas for the same imaging scene. Figure 5B , which is a schematic diagram of a content sharing interface in another embodiment. Figure 5B In the menu, click "Take a photo or video" and the import button is "Select from Album".

[0138] In this embodiment, by displaying the content sharing interface of the target user, the same imaging scene can be captured based on the image entry in the content sharing interface, so that the captured target focused image can be shared in the content sharing interface. The user can switch to view the various focused images of the same imaging scene as the captured target focused object in the content sharing interface by controlling the terminal posture changes, and can view various details in the image without having to zoom in on various areas in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0139] In some embodiments, in response to an image capturing operation, at least two focused images with different focusing areas are captured for the same imaging scene, including: in response to the image capturing operation, a focused image capturing interface including a capturing icon is displayed; in response to a triggering operation on the capturing icon, at least two focused images with different focusing areas are captured after sequentially focusing on at least two objects in the imaging scene; in response to an image sharing operation, a target focused image among the at least two focused images is shared, including: in an image display area of ​​the focused image capturing interface, at least two captured focused images are displayed; in response to the image sharing operation, a target focused image among the at least two focused images is shared.

[0140] For example, in a specific embodiment, when the posture detection device on the terminal is in an on state, the terminal responds to a trigger operation on an image entry in the content sharing interface, switches the content sharing interface to a focused image shooting interface, and the focused image shooting interface includes a shooting icon. The terminal responds to a trigger operation on the shooting icon, sequentially focuses on at least two objects in the imaging scene, and shoots at least two focused images with different focus areas. The terminal displays the at least two focused images captured in the image display area of ​​the focused image shooting interface, and shares the target focused image of the at least two focused images to the content sharing interface.

[0141] Exemplarily, at least two focused images captured are displayed in the image display area of ​​the focused image shooting interface. The terminal determines the target focused image in response to a trigger operation on the target focused image among the at least two focused images displayed in the image display area, switches to the image publishing interface, and displays the target focused image in the image publishing interface. The terminal shares the target focused image in response to an image sharing operation for the target focused image.

[0142] In this embodiment, at least two focused images captured can be displayed in real time through the image display area of ​​the focused image shooting interface. Based on this, after determining the target focused image from at least two focused images, in response to the image sharing operation, the target focused image is directly shared, ensuring the timeliness of the sharing step and improving the user experience during the user sharing process. In this way, the target user can share the captured target focused image through the content sharing interface. When the shared object views the target focused image, it can switch to view the various focused images in the content sharing interface that are in the same imaging scene as the target focused object by controlling the terminal posture change, and can view various details in the image without multiple zooming in on various areas in the image to view the image details, thereby improving the efficiency of image interaction.

[0143] Furthermore, in response to an image sharing operation, a target focused image among at least two focused images is shared, including: in response to a triggering operation on a target focused image among at least two focused images, displaying the target focused image in an image preview area of ​​a focused image shooting interface; the image preview area is larger than the image display area; and in response to a confirmation sharing operation on the target focused image, the target focused image is shared.

[0144] The image preview area is an area for users to preview images. Only one focused image is displayed in the image preview area.

[0145] Optionally, the terminal displays at least two focused images in the image display area, and in response to a trigger operation on a target focused image among the at least two focused images, displays the target focused image in the image preview area of ​​the image shooting interface, and the terminal shares the target focused image in response to a confirmation operation on the target focused image.

[0146] like Figure 6 As shown in FIG. 1 , a schematic diagram of a focused image shooting interface in one embodiment is shown. The terminal displays multiple focused images in sequence in the image display area. In response to a trigger operation on a target focused image among at least two focused images, the target focused image is displayed in the image preview area of ​​the image shooting interface. In this example, the second focused image in the image display area is used as the target focused image. In response to a single click operation on the image preview area, the terminal switches the focused image shooting interface to the image publishing interface. The image publishing interface is shown in FIG. Figure 3 As shown. At this time, after switching to the image publishing interface, the target focused image is displayed in the image publishing interface. If the target user has no other images to be published, the terminal responds to the confirmation sharing operation of the target focused image and shares the target focused image. Optionally, if the target user has other images to be published, the terminal responds to the triggering operation of adding an image control, imports at least one image from the local, and displays at least one exported image in the image publishing interface. At this time, the terminal confirms the sharing operation of the target focused image again, and shares the target focused image and at least one image.

[0147] In this embodiment, in response to the triggering operation of the target focused image in at least two focused images, the target focused image is displayed in the image preview area of ​​the focused image shooting interface; the image preview area is larger than the image display area. In this way, the user can browse the target focused image more conveniently through the image browsing area in a larger range, and can browse other focused images that can be selected from the focused image set through the image display area, so that the user can select a focused image from them and share the image.

[0148] like Figure 6 As shown, the image display area may further include a sliding window, and the sliding window is used to indicate the selection of a focused image from multiple focused images in the image display area, and the selected focused image is the target focused image.

[0149] In some embodiments, in response to an image sharing operation, a target focused image among at least two focused images is shared, including: starting from the first focused image in the image display area, in response to each change in the posture of the terminal, selecting a focused image from the image display area in turn; if a confirmation sharing operation is triggered after the target focused image is selected, the target focused image is shared.

[0150] Optionally, starting from the first focused image in the image display area, the terminal selects a focused image from the image display area in turn as the target focused image to be shared in response to each change in the terminal's posture detected by the posture detection device. In response to the confirmation sharing operation of the target focused image, the terminal shares the target focused image.

[0151] In this embodiment, starting from the first focused image in the image display area, in response to each change in the terminal's posture, a focused image is selected from the image display area in turn; if the confirmation sharing operation is triggered after the target focused image is selected, the target focused image is automatically shared. In this way, the target user can share the captured target focused image through the content sharing interface, and when the shared object views the target focused image, it can switch to view the various focused images in the content sharing interface that are in the same imaging scene as the target focused object by controlling the terminal posture change, and can view various details in the image without having to zoom in on various areas in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0152] In one embodiment, the terminal selects a focused image from the image display area in response to each change in the posture of the terminal, including: the terminal slides the sliding window from the current position of the image display area to a preset position in response to each change in the posture of the terminal, the image display area includes multiple positions, and the number of positions is the same as the number of focused areas. A corresponding focused image is displayed at each position. The terminal slides the sliding window to the focused image at the preset position as the selected focused image.

[0153] In this embodiment, starting from the first focused image in the image display area, in response to each change in the posture of the terminal, a focused image is selected from the image display area in turn, that is, the focused image is automatically switched by changing the terminal posture. Based on this, the target user can flexibly and conveniently select the target focused image according to his or her needs by changing the terminal posture. Therefore, if the confirmation sharing operation is triggered after the target focused image is selected, the target focused image is directly shared, ensuring the efficiency of image sharing. In this way, the target user can share the captured target focused image through the content sharing interface. When the shared object views the target focused image, it can switch to view the various focused images in the content sharing interface that are in the same imaging scene as the target focused object by controlling the terminal posture change, and can view various details in the image without multiple zooming in on various areas in the image to view the image details, thereby improving the efficiency of image interaction.

[0154] In some embodiments, the method also includes: determining a focus area in each of at least two focus images; determining depth of field information of each focus area; associating a tilt angle with each focus image in turn according to the size relationship of the depth of field information; storing the tilt angle in correspondence with the corresponding focus image to obtain a focus image set.

[0155] The depth of field information of the focus area represents the distance between the focus area and the terminal. The smaller the depth of field information, the closer the focus area is to the terminal. The tilt angle represents the range of the terminal's angle change. The larger the tilt angle, the more obvious the terminal's posture has shifted.

[0156] Optionally, for each focused image, the terminal determines the focus area of ​​the focused image and determines the depth of field information of the focused area. The terminal sorts the depth of field information of each focused area in order from small to large to obtain the serial number of the depth of field information of each focused area. The terminal evenly divides the preset angle range according to the number of focused images to obtain the tilt angle corresponding to each focused image. For each focused image, the terminal associates the serial number of the depth of field information of the focused area of ​​the focused image with the corresponding tilt angle, stores the tilt angle in correspondence with the corresponding image, and obtains a focused image set.

[0157] Of course, the sequence number of the depth of field information may also be determined in descending order, without any specific limitation.

[0158] For example, if there are four objects in the imaging scene, namely, flowers, children, tables and trees, four focused images are finally generated, namely, focused image 1 (the object in the focused area is flowers), focused image 2 (the object in the focused area is children), focused image 3 (the object in the focused area is tables) and focused image 4 (the object in the focused area is trees). At this time, the depth of field information of each focused area is arranged from small to large as follows: the depth of field information of focused image 1, the depth of field information of focused image 2, the depth of field information of focused image 3, and the depth of field information of focused image 4. If the preset angle range is determined to be (-60°, 60°), the terminal switches images every time the tilt angle is 30°. The serial number of the depth of field information of the focused image 1 is associated with a tilt angle of 30° (i.e., changes from -60° to -30°), the serial number of the depth of field information of the focused image 2 is associated with a tilt angle of 60° (i.e., changes from -30° to 0°), the serial number of the depth of field information of the focused image 3 is associated with a tilt angle of 90° (i.e., changes from 0° to 30°), and the serial number of the depth of field information of the focused image 4 is associated with a tilt angle of 120° (i.e., changes from -30° to 60°).

[0159] In this embodiment, by determining the depth of field information of the focus area in each of the at least two focus images, the distance of the focus area from the shooting device can be reflected based on the depth of field information. According to the size relationship of the depth of field information, the tilt angle is associated with each focus image in turn; the tilt angle and the corresponding focus image are stored in correspondence to obtain a focus image set. In this way, the terminal can respond quickly to the posture change based on the corresponding relationship between the tilt angle and the corresponding focus image, thereby quickly and accurately switching the first focus image to the second focus image, thereby improving the efficiency of image interaction.

[0160] In some embodiments, the determining the depth of field information of each of the focus areas includes: for each focus area, using the distance between the focus area and the terminal as the depth of field information of the focus area.

[0161] Optionally, for each focus area, the terminal calculates a geometric distance between the focus area and a lens on the terminal used for photographing, and uses the geometric distance as depth of field information of the focus area.

[0162] Exemplarily, for each focus area, the terminal determines the position of the focus center of the focus area, and determines the position of the lens. The terminal calculates the geometric distance between the position of the focus center and the position of the lens, and uses the geometric distance as the depth of field information of the focus area.

[0163] In this embodiment, for each focus area, by calculating the distance between the focus area and the terminal, the depth of field information of the focus area can be accurately determined. In this way, based on the depth of field information, the geometric correlation between the focus area and the terminal can be fully reflected, that is, the smaller the depth of field information, the stronger the geometric correlation, indicating that the focus area is closer to the terminal.

[0164] In some embodiments, the terminal displays the target focused image, including: the terminal displays the target focused image in the content sharing interface; and superimposes and displays a focused image mark in the target focused image.

[0165] The focused image mark is used to inform the image receiver that the target focused image belongs to the focused image set. In addition, it can also be used to prompt the image receiver to switch images by changing the posture of the terminal.

[0166] Optionally, after the target user obtains a set of focused images by photographing the imaging scene through the terminal, after logging into the application with the target account, the terminal displays a content sharing interface, and displays the target focused image sent by the target account in the content sharing interface, and the terminal superimposes the focused image mark in the target focused image.

[0167] Optionally, after other users obtain a set of focused images by photographing the imaging scene through the terminal, after logging into the application with the target account, the terminal displays a content sharing interface, and displays the target focused image sent through the other user's account in the content sharing interface, and the terminal superimposes the focused image mark in the target focused image.

[0168] For example, Figure 7 As shown in FIG. 1 , it is a schematic diagram of a content sharing interface in another embodiment. The terminal is taken as an example to be both an image sending terminal and an image receiving terminal. The target user is Xiaohong. After Xiaohong shoots the imaging scene through the terminal to obtain a focused image set, the terminal displays an instant messaging application logged in with Xiaohong's account and displays Xiaohong's circle of friends. At this time, the terminal displays the content shared by Xiaohong and Xiaohong's contacts in the content sharing interface. Figure 7 As shown, the content sharing interface displays the target focus image shared by Xiaohong, and the terminal overlays and displays the focus image mark in the target focus image. The content sharing interface also displays the second link shared by Xiaojun, Xiaohong's contact.

[0169] In this embodiment, the terminal displays the target focused image in the content sharing interface, and superimposes a focused image mark in the target focused image, so as to promptly remind the user to switch images by changing the posture of the terminal. Based on this, once the posture change of the terminal is detected, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same but the focused areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, and there is no need to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0170] In some embodiments, the method further includes: the terminal further displays a non-focused image in the content sharing interface, the non-focused image does not include a focused image mark; and in response to a viewing operation on the non-focused image, displays an enlarged image of the non-focused image.

[0171] Optionally, after the target user obtains a focused image set by shooting the imaging scene through the terminal, and after logging into the application with the target account, the terminal displays a content sharing interface, and the non-focused image sent by the target account is also displayed in the content sharing interface, and the focused image mark is not superimposed on the non-focused image. In response to the viewing operation of the non-focused image, the terminal switches the content sharing interface to the image viewing interface, and displays an enlarged image of the non-focused image in the image viewing interface.

[0172] Optionally, after other users obtain a focused image set by shooting the imaging scene through the terminal, after logging into the application with the target account, the terminal displays a content sharing interface, and the non-focused image sent through the account of other users is also displayed in the content sharing interface, and the focused image mark is not superimposed on the non-focused image. In response to the viewing operation of the non-focused image, the terminal switches the content sharing interface to the image viewing interface, and displays the enlarged image of the non-focused image in the image viewing interface. At this time, the terminal is an image receiving terminal.

[0173] In this embodiment, the terminal also displays the non-focused image without the focused image mark in the content sharing interface, so that the target user can be informed in time that the non-focused image does not belong to the images in the focused image set. Therefore, in response to the viewing operation of the non-focused image, the enlarged image of the non-focused image is directly displayed.

[0174] In some embodiments, in response to a viewing operation on a target focused image, an image viewing interface about a focused image set is displayed, including: in response to a viewing operation on the target focused image, selecting a first focused image from the focused image set to which the target focused image belongs; and displaying the selected first focused image in an image preview area of ​​the image viewing interface.

[0175] Optionally, in response to the viewing operation of the target focused image, the terminal switches the content sharing interface to an image viewing interface for the focused image set, and selects a first focused image from the focused image set to which the target focused image belongs. The terminal displays the selected first focused image in an image preview area of ​​the image viewing interface.

[0176] Exemplarily, after switching to the image viewing interface, the terminal randomly selects a focused image from the focused image set as the first focused image. Alternatively, the terminal uses the first focused image as the first focused image based on the image order of each focused image in the focused image set. Alternatively, the terminal determines the current posture information based on the current posture of the terminal, and determines the corresponding focused image based on the correspondence between the image and the terminal posture information, and determines the corresponding focused image as the first focused image. After determining the first focused image, the terminal displays the selected first focused image in the image preview area of ​​the image viewing interface.

[0177] In this embodiment, in response to the viewing operation of the target focused image, the first focused image is selected from the focused image set to which the target focused image belongs. After the first focused image is determined, the selected first focused image is displayed in the image preview area of ​​the image viewing interface, thereby ensuring that the target user can quickly view the first focused image. In this way, once the posture of the terminal is detected to have changed, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same and the focused areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, without having to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0178] In some embodiments, the method further includes: displaying each focused image in the focused image set in an image display area of ​​the image viewing interface; and the image preview area is larger than the image display area.

[0179] Optionally, in the image display area of ​​the image viewing interface, each focused image in the focused image set is displayed in order. Exemplarily, in the image display area of ​​the image viewing interface, the terminal determines the image order of each focused image in the image display area based on the size of the depth of field information of each focused image, and displays each focused image in order according to the image order of each focused image.

[0180] like Figure 8 , which is a schematic diagram of an image viewing interface in an embodiment. There are 6 focused images with different focus areas in the focused image set. There are 6 display positions in the image display area, and each display position is used to display a focused image.

[0181] The image viewing interface also includes a prompt area, in which a focused image mark is superimposed. The focused image mark displayed in the prompt area is used to prompt the target user to automatically switch to view the image by changing the terminal posture.

[0182] In this embodiment, in the image display area of ​​the image viewing interface, by displaying each focused image in the focused image set, the number of focused areas involved in the focused image set can be intuitively reflected, which is conducive to the subsequent arbitrary selection of the second focused image from the multiple focused images in the focused image set.

[0183] In some embodiments, selecting the first focused image from the focused image set to which the target focused image belongs includes: selecting a focused image having minimum depth of field information of a focused area from the focused image set to which the target focused image belongs as the first focused image.

[0184] The depth of field information represents the distance between the focus area and the terminal in the focus image. The smaller the depth of field information is, the closer the distance between the focus area and the terminal is.

[0185] Optionally, the terminal determines the depth of field information of the focus area of ​​each focused image based on the focused image set, and uses the focused image with the smallest depth of field information as the first focused image.

[0186] As mentioned above, the image order can be determined according to the size of the depth of field information. Therefore, if the focused image with the smallest depth of field information is used as the first focused image, the switching from the near view to the far view is ensured in the subsequent process of switching the first focused image to the second focused image, thereby improving the sense of hierarchy in the process of switching the focused images.

[0187] In this embodiment, a focused image with the smallest depth of field information of the focused area is selected from the focused image set to which the target focused image belongs as the first focused image. In this way, in the subsequent process of switching the first focused image to the second focused image, not only can the image interaction efficiency be achieved, but also the image switching from the near view to the far view is achieved, enriching the visual layering of the image switching process.

[0188] In some embodiments, selecting a first focused image from a focused image set to which a target focused image belongs includes: determining a current tilt angle of the terminal; obtaining depth information of each focused image in the focused image set; and selecting a focused image having corresponding depth information and the current tilt angle from the focused image set according to a correspondence between a preset tilt angle and depth information as the first focused image.

[0189] Optionally, when it is verified that the posture detection device on the terminal is in an on state, the terminal determines the current tilt angle of the terminal based on the detection data sent by the posture detection device. The terminal obtains the depth of field information of each focused image, and determines the depth of field information corresponding to the current tilt angle according to the preset correspondence between the tilt angle and the depth of field information. Based on the depth of field information corresponding to the current tilt angle, the terminal uses the focused image of the depth of field information corresponding to the current tilt angle as the first focused image.

[0190] Exemplarily, the focused image set includes four focused images, namely focused image 1 (the object in the focused area is a flower), focused image 2 (the object in the focused area is a child), focused image 3 (the object in the focused area is a table), and focused image 4 (the object in the focused area is a tree). The correspondence between the tilt angle and the depth of field information is as follows: the serial number of the depth of field information of focused image 1 is associated with a tilt angle of 30° (i.e., changing from -60° to -30°), the serial number of the depth of field information of focused image 2 is associated with a tilt angle of 60° (i.e., changing from -30° to 0°), the serial number of the depth of field information of focused image 3 is associated with a tilt angle of 90° (i.e., changing from 0° to 30°), and the serial number of the depth of field information of focused image 4 is associated with a tilt angle of 120° (i.e., changing from -30° to 60°).

[0191] At this time, when it is verified that the posture detection device on the terminal is in the on state, the terminal determines that the current tilt angle is 30° based on the detection data sent by the posture detection device. Then the terminal uses the focused image 1 as the first focused image.

[0192] In this embodiment, after the current tilt angle of the terminal is determined, the depth information corresponding to the current tilt angle can be determined timely and accurately based on the correspondence between the depth information and the tilt angle. Based on this, based on the depth information of each focused image, the first focused image corresponding to the current tilt angle can be accurately screened out from multiple focused images.

[0193] In some embodiments, in response to a viewing operation on a target focused image, an image viewing interface about a focused image set is displayed, including: when a gesture detection device on the terminal is in an on state, in response to a viewing operation on a target focused image, an image viewing interface about a focused image set is displayed.

[0194] Optionally, when the gesture detection device on the terminal is turned on, the terminal switches to an image viewing interface for the focused image set in response to a viewing operation on the target focused image, and displays the first focused image in an image preview area in the image viewing interface.

[0195] Exemplarily, after switching to the image viewing interface for the focused image set, in response to the current posture of the terminal, a first focused image corresponding to the current posture is selected in the image display area of ​​the image viewing interface, and the first focused image is displayed in the image preview area.

[0196] In this embodiment, when the posture detection device on the terminal is in the on state, in response to the viewing operation of the target focused image, the interface is quickly switched to the image viewing interface. In this way, once the posture change of the terminal is detected, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same and the focused areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, without the need to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction. In some embodiments, the method also includes: when the posture detection device on the terminal is in the off state, in response to the viewing operation of the target focused image, an enlarged image of the target focused image is displayed.

[0197] Optionally, when the posture detection device on the terminal is in a closed state, in response to a viewing operation on the target focused image, only an enlarged image of the target focused image is displayed, and the image viewing interface is not displayed.

[0198] It should be noted that when the posture detection device on the terminal is in the off state, after the target user performs a viewing operation on the target focused image, it will not switch to the image viewing interface, nor will multiple focused images be displayed.

[0199] After displaying the enlarged image of the target focused image, if the target user wants to automatically view multiple focused images, the target user can turn on the gesture detection device. If the terminal verifies that the gesture detection device is in the turned-on state, in response to the re-viewing operation of the target focused image, an image viewing interface for the focused image set is displayed.

[0200] In this embodiment, when the gesture detection device on the terminal is in a closed state, in response to a viewing operation on the target focused image, an enlarged image of the target focused image is directly displayed so that the target user can directly view detailed information of the target focused image.

[0201] In some embodiments, in response to a change in the posture of the terminal, switching the first focused image to the second focused image in the focused image set includes: in response to the change in the posture of the terminal, detecting the tilt angle after the terminal posture changes; acquiring the depth of field information of each focused image in the focused image set; according to a preset correspondence between the tilt angle and the depth of field information, selecting from the focused image set a second focused image corresponding to the corresponding depth of field information and the tilt angle after the terminal posture changes; switching the first focused image to the second focused image in the focused image set.

[0202] Optionally, when the posture detection device of the terminal is turned on, the terminal responds to the change in the posture of the terminal and determines the tilt angle of the terminal after the posture changes. The terminal obtains the depth of field information of each focused image, and determines the depth of field information corresponding to the tilt angle after the posture of the terminal changes according to the correspondence between the preset tilt angle and the depth of field information, and uses the depth of field information corresponding to the tilt angle after the posture of the terminal changes as the target depth of field information. The terminal uses the focused image corresponding to the target depth of field information as the second focused image. The terminal switches the first focused image to the second focused image.

[0203] Exemplarily, the terminal displays an image viewing interface, and displays a first focused image in an image preview area in the image viewing interface. When the posture detection device of the terminal is in an on state, the terminal responds to a change in the posture of the terminal, and determines the inclination angle of the terminal after the posture change based on the detection data sent by the posture detection device. The terminal obtains the depth of field information of each focused image, and determines the depth of field information corresponding to the inclination angle after the posture change of the terminal according to the correspondence between the preset inclination angle and the depth of field information, and uses the depth of field information corresponding to the inclination angle after the posture change of the terminal as the target depth of field information. The terminal uses the focused image corresponding to the target depth of field information as the second focused image. The terminal cancels the display of the first focused image in the image preview area, and displays the second focused image in the image preview area.

[0204] In this embodiment, in response to the change in the posture of the terminal, the tilt angle of the terminal after the posture change is detected in real time. The depth of field information of each focused image in the focused image set is obtained; according to the correspondence between the preset tilt angle and the depth of field information, the second focused image corresponding to the corresponding depth of field information and the tilt angle after the terminal posture change is selected from the focused image set. In this way, once the posture change of the terminal is detected, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same and the focus area is different, multiple details in the same imaging scene can be viewed conveniently and efficiently, without the need to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0205] In some embodiments, in response to a change in the posture of the terminal, switching the first focused image to the second focused image in the focused image set includes: in response to the change in the posture of the terminal, superimposing the second focused image in the focused image set on the first focused image, and adjusting the transparency of the first focused image to a minimum transparency value and the transparency of the second focused image to a maximum transparency value.

[0206] It should be noted that the higher the transparency of the image, the higher the visibility of the image. The lower the perspective of the image, the lower the visibility of the image. When the transparency of the image is adjusted to the minimum transparency value, the target user cannot see the image.

[0207] Optionally, when the posture detection device of the terminal is turned on, the terminal responds to the change in the posture of the terminal and determines the second focused image corresponding to the change in the posture of the terminal. In the image preview area, the terminal superimposes the second focused image on the first focused image, and adjusts the transparency of the first focused image in the image preview area to the minimum transparency value. And adjusts the transparency of the second focused image in the image preview area to the maximum transparency value.

[0208] Exemplarily, the terminal displays an image viewing interface, and displays a first focused image in an image preview area in the image viewing interface. When the posture detection device of the terminal is in an on state, the terminal responds to a change in the posture of the terminal, and determines the inclination angle of the terminal after the posture change based on the detection data sent by the posture detection device. The terminal obtains the depth of field information of each focused image, and determines the depth of field information corresponding to the inclination angle after the posture change of the terminal according to the correspondence between the preset inclination angle and the depth of field information, and uses the depth of field information corresponding to the inclination angle after the posture change of the terminal as the target depth of field information. The terminal uses the focused image corresponding to the target depth of field information as the second focused image. In the image preview area, the terminal superimposes the second focused image on the first focused image, and reduces the transparency of the first focused image in the image preview area to the minimum transparency value, and increases the transparency of the second focused image in the image preview area to the maximum transparency value.

[0209] For example, after the second focused image is determined, the transparency of the first focused image is reduced from 100% to 0% and the transparency of the second focused image is increased from 0% to 100% in the image preview area. The maximum and minimum transparency values ​​are 100% and 0% respectively.

[0210] It should be noted that after the second focused image is determined, the transparency of the first focused image is reduced in the image preview area, and the transparency of the second focused image is increased, so as to achieve image switching in a superimposed manner. At the same time, by changing the transparency of the first focused image and the transparency of the second focused image in the image preview area, a natural transition effect can be achieved during image switching in the image preview area.

[0211] In this embodiment, in response to the change in the posture of the terminal, the second focused image in the focused image set is superimposed on the first focused image, and the transparency of the first focused image is adjusted to the minimum transparency value, and the transparency of the second focused image is the maximum transparency value. In this way, by superimposing and changing the transparency, not only can the image be switched quickly, but also the visual effect of natural transition can be achieved.

[0212] In some embodiments, the terminal displays a content sharing interface, and a group of image groups sent by other users are displayed in the content sharing interface, and the image group includes a target focused image and at least one unfocused image, and the imaging scenes of the target focused image and the unfocused image are different. In response to the viewing operation of the target focused image, the terminal switches the content sharing interface to the image viewing interface, and displays the image viewing interface about the focused image set; the image viewing interface includes the first focused image in the focused image set; in response to the change in the posture of the terminal, the first focused image is switched to the second focused image in the focused image set. If the number of switching times for the focused image reaches a preset number, in response to ending the focused image operation, the image viewing interface is switched to the content sharing interface. In response to the terminal's viewing operation on the unfocused image, an enlarged image of the unfocused image is displayed.

[0213] The preset number is the number of focused images in the focused image set.

[0214] Of course, the image group may include a plurality of target focused images corresponding to different imaging scenes.

[0215] Based on this, for each imaging scene, steps 201 to 206 are executed until it is determined that the number of switches for the focused image in the imaging scene reaches the preset number of times for the imaging scene. In response to ending the focused image operation, the image viewing interface is switched to the content sharing interface to view the image of the next scene or view the unfocused image.

[0216] Alternatively, for each imaging scene, steps 201 to 206 are executed until it is determined that the number of switching times for the focused image in the imaging scene reaches the preset number of times for the imaging scene, and in response to the posture of the terminal changing again, the last second focused image in the scene is switched to the first focused image in the next scene, and the process returns to step 206 to continue until the viewing operation of all imaging scenes is completed. In response to the end of the focused image operation, the image viewing interface is switched to the content sharing interface, and in response to the terminal's viewing operation of the non-focused image, an enlarged image of the non-focused image is displayed.

[0217] In this embodiment, the target focused image is displayed through the terminal, and after responding to the viewing operation of the target focused image, an image viewing interface about the focused image set is displayed, so that the first focused image in the focused image set to which the target focused image belongs can be viewed. Once the posture change of the terminal is detected, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same and the focused areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, and there is no need to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0218] In some embodiments, Fig. 9 As shown, an image-based interaction method is provided, which is described by taking the method applied to a terminal as an example, and includes the following steps:

[0219] Step 902, in response to an image capturing operation, capturing at least two focused images with different focus areas for the same imaging scene, the captured at least two focused images constituting a focused image set, each focused image in the focused image set having the same imaging scene and different focus areas.

[0220] Step 904, in response to the image sharing operation, share a target focused image among at least two focused images; the shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

[0221] Optionally, in response to the image capture operation, capturing at least two focused images with different focus areas for the same imaging scene, including: when the posture detection device on the terminal is in an on state, in response to the image capture operation, capturing at least two focused images with different focus areas for the same imaging scene; the method further includes: when the posture detection device on the terminal is in an off state, in response to the image capture operation, capturing an image for the same imaging scene. Wherein, the terminal is the terminal of the image sender.

[0222] Further, in response to the image shooting operation, at least two focused images with different focus areas are shot for the same imaging scene, including: the terminal displays a content sharing interface of the target object; the content sharing interface is used to display the content shared by the target object and the target object's contacts, and the content sharing interface includes an image entrance; the terminal responds to the triggering operation of the image entrance, and shoots at least two focused images with different focus areas for the same imaging scene. Wherein, the terminal is the terminal of the image sender.

[0223] Further, in response to the image shooting operation, at least two focused images with different focus areas are shot for the same imaging scene, including: the terminal displays a focused image shooting interface including a shooting icon in response to the image shooting operation; in response to the triggering operation of the shooting icon, at least two focused images with different focus areas are shot after focusing on at least two objects in the imaging scene in sequence; in response to the image publishing operation, a target focused image of at least two focused images is shared, including: in the image display area of ​​the focused image shooting interface, the terminal displays at least two focused images shot; in response to the image sharing operation, the target focused image of at least two focused images is shared. Wherein, the terminal is the terminal of the image sender.

[0224] Further, in response to the image sharing operation, sharing the target focused image of at least two focused images includes: the terminal displays the target focused image in the image preview area of ​​the focused image shooting interface in response to the triggering operation of the target focused image of at least two focused images; the image preview area is larger than the image display area; the terminal shares the target focused image in response to the confirmation sharing operation of the target focused image. The terminal is the terminal of the image sender.

[0225] Further, in response to the image sharing operation, sharing a target focused image of at least two focused images includes: the terminal starts from the first focused image in the image display area, and in response to each change in the posture of the terminal, sequentially selects a focused image from the image display area; if the confirmation sharing operation is triggered after the target focused image is selected, the target focused image is shared. The terminal here is the terminal of the image sender.

[0226] After the target focused image is shared, when the target focused image is viewed on the terminal, in response to the change in the terminal's posture, the focused images in the focused image set are switched for viewing. The terminal here can be the terminal of the image sender or the terminal of the image receiver.

[0227] In the above-mentioned image-based interaction method, in response to an image shooting operation, at least two focused images with different focusing areas are shot for the same imaging scene, and the at least two focused images shot constitute a focused image set, and the imaging scene of each focused image in the focused image set is the same, and the focusing areas are different; in response to an image sharing operation, a target focused image among the at least two focused images is shared; in this way, when the target focused image is viewed on the terminal, in response to a change in the posture of the terminal, the focused images in the focused image set are switched for viewing. Since the imaging scene of each focused image in the focused image set is the same, and the focusing areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, and there is no need to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0228] The present application also provides an application scenario, which applies the above-mentioned image-based interaction method. Specifically, the application of the image-based interaction method in the application scenario is, for example, as described below: in the image sharing scenario, in the instant messaging application logged in with the target account, the terminal displays the content sharing interface about the target account, in which images shared by one's own account or shared by others are displayed. In order to improve the efficiency of image interaction, the method provided by the embodiment of the present application can be adopted. Specifically, the terminal displays a target focused image, the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas; in response to the viewing operation of the target focused image, an image viewing interface about the focused image set is displayed; the image viewing interface includes the first focused image in the focused image set; in response to a change in the posture of the terminal, the first focused image is switched to the second focused image in the focused image set. That is, the image shared in the content sharing interface is a target focused image. When a user views the target focused image, an image viewing interface for a collection of focused images can be displayed. The image viewing interface provides for viewing multiple other focused images with the same imaging scene as the target focused image but different focus areas. These focused images reflect every detail in the imaging scene, without the need for the user to perform tedious operations such as dragging and zooming, thereby improving the user experience.

[0229] Of course, it is not limited to this. The image-based interaction method provided in the present application can also be applied in other application scenarios. For example, in an advertising scenario, the advertising pusher sends a target focused image of the promotion object to the terminal of the target account. The target user views the target focused image, and the terminal displays an image viewing interface of the promotion object to the target user. In the image viewing interface, the target user can view different focused images of each focus area of ​​the promotion object by changing the terminal posture. These focused images have the same imaging scene as the target focused image, but different focus areas, so that the target user can view detailed information of the promotion object in various aspects, thereby improving the efficiency of image interaction. For another example, in an item interaction scenario, in an e-commerce application logged in with a target account, the terminal can display a target focused image of the item on the item display page. The target user views the target focused image, and the terminal displays an image viewing interface of the item to the target user. In the image viewing interface, the target user can view different focused images of each focus area of ​​the item by changing the terminal posture. These focused images have the same imaging scene as the target focused image, but different focus areas, thereby improving the efficiency of image interaction.

[0230] In a specific embodiment, the embodiment involves a terminal of an image sender and a terminal of an image receiver. To facilitate the description of the following process, the terminal of the image sender is regarded as the first terminal, and the terminal of the image receiver is regarded as the second terminal. Fig.10 , which is a flow chart of an image-based interaction method in one embodiment.

[0231] Step 1: The first terminal displays a terminal setting interface, which includes entrances to application setting interfaces of multiple applications, and displays the application setting interface of the instant messaging application in response to a trigger operation on the entrance of the instant messaging application. The application setting interface includes a trigger button for the gyroscope. In response to a first trigger operation on the trigger button, the first terminal enables the gyroscope, and the first terminal allows the selected application to interact with the gyroscope.

[0232] Step 2: If the first terminal verifies that the gyroscope is enabled on the first terminal, a content sharing interface of the target object is displayed; the content sharing interface is used to display the content shared by the target object and the target object's contacts, and the content sharing interface includes an image entrance;

[0233] In response to a trigger operation on an image entry, a shooting pop-up window is displayed in a content sharing interface, and in response to a trigger operation on a shooting button, the first terminal switches the content sharing interface to a focused image shooting interface. The focused image shooting interface includes a shooting icon. In response to a trigger operation on the shooting icon, the first terminal generates an instruction to instruct a shooting device on the first terminal to sequentially focus on at least two objects in an imaging scene and shoot at least two focused images with different focus areas. In an image display area of ​​the focused image shooting interface, at least two focused images shot are displayed. In response to a trigger operation on a target focused image in at least two focused images, the first terminal determines a target focused image. In response to an image sharing operation for the target focused image, the first terminal shares the target focused image. In an image preview area of ​​the focused image shooting interface, the target focused image is displayed; the image preview area is larger than the image display area. Starting from the first focused image in the image display area, in response to each change in the posture of the first terminal, a focused image is sequentially selected from the image display area. If a confirmation sharing operation is triggered after the target focused image is selected, the target focused image is shared.

[0234] The step of determining the focused image set includes: determining the focused area in each focused image of at least two focused images; determining the depth of field information of each focused area; associating the tilt angle with each focused image in turn according to the magnitude relationship of the depth of field information; storing the tilt angle and the corresponding image in correspondence to obtain the focused image set. The step of determining the depth of field information of each focused area includes: for each focused area, taking the distance between the focused area and the first terminal as the depth of field information of the focused area.

[0235] Step 3: Display the terminal setting interface of the second terminal, the terminal setting interface includes the entrance of the application setting interface of multiple applications, and in response to the triggering operation of the entrance of the instant messaging application, the second terminal displays the application setting interface of the instant messaging application. The application setting interface includes a trigger button of the gyroscope. In response to the first triggering operation of the trigger button, the second terminal enables the gyroscope, and the second terminal allows the selected application to interact with the gyroscope.

[0236] In an instant messaging application logged in with a target account, when the gyroscope on the second terminal is in an on state, the second terminal displays a target focused image in a content sharing interface; a focused image mark is superimposed and displayed in the target focused image; the second terminal also displays a non-focused image in the content sharing interface, and the non-focused image does not include a focused image mark; in response to a viewing operation on the non-focused image, an enlarged image of the non-focused image is displayed.

[0237] In response to the viewing operation of the target focused image, the second terminal obtains a focused image set, and selects a first focused image from the focused image set to which the target focused image belongs; and displays the selected first focused image in the image preview area of ​​the image viewing interface. Exemplarily, in response to the viewing operation of the target focused image, the first focused image is selected from the focused image set to which the target focused image belongs, including: selecting a focused image with the smallest depth of field information of the focused area from the focused image set to which the target focused image belongs as the first focused image. Exemplarily, in response to the viewing operation of the target focused image, the first focused image is selected from the focused image set to which the target focused image belongs, including: determining the current tilt angle of the second terminal; obtaining the depth of field information of each focused image in the focused image set; and selecting a focused image with corresponding depth of field information and the current tilt angle from the focused image set according to the correspondence between the preset tilt angle and the depth of field information as the first focused image. When the gyroscope on the second terminal is in an off state, in response to the viewing operation of the target focused image, an enlarged image of the target focused image is displayed.

[0238] Step 4: The second terminal displays the image viewing interface and displays the first focused image in the image preview area in the image viewing interface. If the posture of the second state changes, the gyroscope of the second terminal detects the posture information. In response to the posture change of the second terminal, the tilt angle of the second terminal after the posture change is determined based on the posture information transmitted by the gyroscope of the second terminal. The second terminal obtains the depth of field information of each focused image, and determines the depth of field information corresponding to the tilt angle after the posture change of the second terminal according to the preset correspondence between the tilt angle and the depth of field information, and uses the depth of field information corresponding to the tilt angle after the posture change of the second terminal as the target depth of field information. The second terminal uses the focused image corresponding to the target depth of field information as the second focused image. In response to the posture change of the second terminal, the second terminal superimposes the second focused image in the focused image set on the first focused image, and adjusts the transparency of the first focused image to the minimum transparency value, and the transparency of the second focused image to the maximum transparency value.

[0239] In this embodiment, the target focused image is displayed through the terminal, and after responding to the viewing operation of the target focused image, an image viewing interface about the focused image set is displayed, so that the first focused image in the focused image set to which the target focused image belongs can be viewed. Once the posture change of the terminal is detected, the first focused image in the image viewing interface is automatically switched to the second focused image in the focused image set. Since the imaging scene of each focused image in the focused image set is the same and the focused areas are different, multiple details in the same imaging scene can be viewed conveniently and efficiently, and there is no need to zoom in on each area in the image multiple times to view the image details, thereby improving the efficiency of image interaction.

[0240] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0241] Based on the same inventive concept, the embodiment of the present application also provides an image-based interaction device for implementing the above-mentioned image-based interaction method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more image-based interaction device embodiments provided below can refer to the limitations of the image-based interaction method above, and will not be repeated here.

[0242] In one embodiment, Fig.11 As shown, an image-based interaction device 1100 is provided, comprising: an image display module 1102, an interface display module 1104 and a switching module 1106, wherein:

[0243] An image display module 1102 is used for the terminal to display a target focused image, where the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas;

[0244] The interface display module 1104 is used to display an image viewing interface about the focused image set in response to a viewing operation on the target focused image; the image viewing interface includes the first focused image in the focused image set;

[0245] The switching module 1106 is configured to switch the first focused image to a second focused image in the focused image set in response to a change in the posture of the terminal.

[0246] In some embodiments, the device also includes a second shooting module and a second sharing module. The second shooting module is used to respond to the image shooting operation and shoot at least two focused images with different focus areas for the same imaging scene, and the at least two focused images shot constitute a focused image set; the second sharing module is used to respond to the image sharing operation and share the target focused image among the at least two focused images.

[0247] In some embodiments, the second shooting module is used to shoot at least two focused images with different focus areas for the same imaging scene in response to an image shooting operation when the posture detection device on the terminal is in an on state; the second shooting module is also used to shoot an image for the same imaging scene in response to an image shooting operation when the posture detection device on the terminal is in a off state.

[0248] In some embodiments, the second shooting module is used to display the content sharing interface of the target user; the content sharing interface is used to display the content shared by the target user and the target user's contacts, and the content sharing interface includes an image entrance; in response to a triggering operation on the image entrance, at least two focused images with different focus areas are taken for the same imaging scene.

[0249] In some embodiments, the second shooting module is used to display a focused image shooting interface including a shooting icon in response to an image shooting operation; in response to a triggering operation on the shooting icon, focus on at least two objects in the imaging scene in sequence and then shoot at least two focused images with different focus areas; the second sharing module is also used to display at least two focused images captured in the image display area of ​​the focused image shooting interface; in response to an image sharing operation, share a target focused image among the at least two focused images.

[0250] In some embodiments, the second sharing module is also used to display the target focused image in the image preview area of ​​the focused image shooting interface in response to a trigger operation on the target focused image in at least two focused images; the image preview area is larger than the image display area; and the target focused image is shared in response to a confirmation sharing operation on the target focused image.

[0251] In some embodiments, the second sharing module is also used to start from the first focused image in the image display area, and select a focused image from the image display area in response to each change in the terminal's posture; if a confirmation sharing operation is triggered after the target focused image is selected, the target focused image is shared.

[0252] In some embodiments, the device also includes a determination module, which is used to determine the focus area in each focused image of at least two focused images; determine the depth of field information of each focused area; associate a tilt angle with each focused image in turn according to the size relationship of the depth of field information; store the tilt angle in correspondence with the corresponding focused image to obtain a focused image set.

[0253] In some embodiments, the image display module 1102 is used by the terminal to display the target focused image in the content sharing interface; to overlay and display a focused image mark in the target focused image; the image display module 1102 is also used by the terminal to display a non-focused image in the content sharing interface, and the non-focused image does not include a focused image mark; in response to a viewing operation on the non-focused image, to display an enlarged image of the non-focused image.

[0254] In some embodiments, the interface display module 1104 is used to select a first focused image from a focused image set to which the target focused image belongs in response to a viewing operation on the target focused image; the selected first focused image is displayed in an image preview area of ​​the image viewing interface; the interface display module 1104 is also used to display each focused image in the focused image set in an image display area of ​​the image viewing interface; the image preview area is larger than the image display area.

[0255] In some embodiments, the interface display module 1104 is further configured to select a focused image with the smallest depth of field information of the focused area from the focused image set to which the target focused image belongs, as the first focused image.

[0256] In some embodiments, the interface display module 1104 is also used to determine the current tilt angle of the terminal; obtain the depth of field information of each focused image in the focused image set; and select the focused image corresponding to the corresponding depth of field information and the current tilt angle from the focused image set according to the correspondence between the preset tilt angle and the depth of field information as the first focused image.

[0257] In some embodiments, the interface display module 1104 is used to display an image viewing interface about a set of focused images in response to a viewing operation on the target focused image when the posture detection device on the terminal is in an on state; the interface display module 1104 is also used to display an enlarged image of the target focused image in response to a viewing operation on the target focused image when the posture detection device on the terminal is in an off state.

[0258] In some embodiments, the switching module 1106 is used to detect the tilt angle of the terminal after the posture change in response to the change of the terminal's posture; obtain the depth of field information of each focused image in the focused image set; select a second focused image corresponding to the corresponding depth of field information and the tilt angle after the posture change of the terminal from the focused image set according to the correspondence between the preset tilt angle and the depth of field information; and switch the first focused image to the second focused image in the focused image set.

[0259] In some embodiments, the switching module 1108 is used to superimpose a second focused image in the focused image set on the first focused image in response to a change in the posture of the terminal, and adjust the transparency of the first focused image to a minimum transparency value and the transparency of the second focused image to a maximum transparency value.

[0260] Based on the same inventive concept, the embodiment of the present application also provides an image-based interaction device for implementing the above-mentioned image-based interaction method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more image-based interaction device embodiments provided below can refer to the limitations of the image-based interaction method above, and will not be repeated here.

[0261] In one embodiment, Fig.12 As shown, an image-based interaction device 1200 is provided, including: a first shooting module 1202 and a first sharing module 1204, wherein:

[0262] A first shooting module 1202 is used for shooting at least two focused images with different focus areas for the same imaging scene in response to an image shooting operation, wherein the at least two focused images shot constitute a focused image set, and each focused image in the focused image set has the same imaging scene and different focus areas;

[0263] The first sharing module 1204 is used to share a target focused image among at least two focused images in response to an image sharing operation; the shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

[0264] Each module in the above two image-based interactive devices can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0265] In one embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Fig.13 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above two image-based interaction methods are implemented.

[0266] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0267] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0268] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0269] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0270] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0271] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0272] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0273] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An image-based interaction method, characterized in that: The method comprises: The terminal displays a target focused image, the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas; In response to a viewing operation on the target focused image, an image viewing interface for the focused image set is displayed; the image viewing interface includes a first focused image in the focused image set; In response to a change in the posture of the terminal, the first focused image is switched to a second focused image in the focused image set.

2. The method according to claim 1, characterized in that Before the terminal displays the target focused image, the method further includes: In response to an image capturing operation, capturing at least two focused images with different focus areas for the same imaging scene, wherein the captured at least two focused images constitute the focused image set; In response to the image sharing operation, a target focused image among the at least two focused images is shared.

3. The method according to claim 2, characterized in that The method of capturing at least two focused images with different focus areas for the same imaging scene in response to the image capturing operation includes: When the posture detection device on the terminal is in an on state, in response to an image capturing operation, capturing at least two focused images with different focus areas for the same imaging scene; The method further comprises: When the posture detection device on the terminal is in a closed state, in response to an image capturing operation, an image is captured for the same imaging scene.

4. The method according to claim 2, characterized in that: The method of capturing at least two focused images with different focus areas for the same imaging scene in response to the image capturing operation includes: Displaying a content sharing interface of a target user; the content sharing interface is used to display content shared by the target user and the target user's contacts, and the content sharing interface includes an image entry; In response to a triggering operation on the image entry, at least two focused images with different focus areas are captured for the same imaging scene.

5. The method according to claim 2, characterized in that: The method of capturing at least two focused images with different focus areas for the same imaging scene in response to the image capturing operation includes: In response to the image capturing operation, displaying a focused image capturing interface including a capturing icon; In response to a triggering operation on the shooting icon, sequentially focusing on at least two objects in the imaging scene and then shooting at least two focused images with different focusing areas; The step of sharing the target focused image of the at least two focused images in response to the image sharing operation includes: Displaying at least two focused images captured in the image display area of ​​the focused image shooting interface; In response to the image sharing operation, a target focused image among the at least two focused images is shared.

6. The method according to claim 5, characterized in that The step of sharing the target focused image of the at least two focused images in response to the image sharing operation includes: In response to a triggering operation on a target focused image among the at least two focused images, displaying the target focused image in an image preview area of ​​the focused image shooting interface; the image preview area is larger than the image display area; In response to a confirmation sharing operation on the target focused image, the target focused image is shared.

7. The method according to claim 5, characterized in that The step of sharing the target focused image of the at least two focused images in response to the image sharing operation includes: Starting from the first focused image in the image display area, in response to each change in the posture of the terminal, sequentially selecting a focused image from the image display area; If the sharing operation is confirmed after the target focused image is selected, the target focused image is shared.

8. The method according to claim 1, characterized in that The method further comprises: Determining a focus area in each of the at least two focus images; Determining depth of field information of each of the focus areas; According to the magnitude relationship of the depth of field information, the tilt angles associated with the focused images are sequentially associated with the focused images; The tilt angles are stored corresponding to the corresponding focused images to obtain a focused image set.

9. The method according to claim 1, characterized in that: The terminal displays a target focused image, including: The terminal displays the target focused image in the content sharing interface; Overlaying and displaying a focused image mark in the target focused image; The method further comprises: The terminal further displays a non-focused image in the content sharing interface, wherein the non-focused image does not include a focused image mark; In response to a viewing operation on the non-focused image, an enlarged image of the non-focused image is displayed.

10. The method according to claim 1, characterized in that In response to the viewing operation on the target focused image, displaying an image viewing interface for the focused image set includes: In response to a viewing operation on the target focused image, selecting a first focused image from a focused image set to which the target focused image belongs; In the image preview area of ​​the image viewing interface, displaying the selected first focused image; The method further comprises: In the image display area of ​​the image viewing interface, each focused image in the focused image set is displayed; the image preview area is larger than the image display area.

11. The method according to claim 10, characterized in that The selecting a first focused image from the focused image set to which the target focused image belongs includes: From the focused image set to which the target focused image belongs, a focused image with the smallest depth of field information of the focused area is selected as the first focused image.

12. The method according to claim 10, characterized in that The selecting a first focused image from the focused image set to which the target focused image belongs includes: Determining a current tilt angle of the terminal; Acquiring depth of field information of each focused image in the focused image set; According to the preset correspondence between the tilt angle and the depth of field information, a focused image having corresponding depth of field information and the current tilt angle is selected from the focused image set as the first focused image.

13. The method according to claim 1, characterized in that In response to the viewing operation on the target focused image, displaying an image viewing interface for the focused image set includes: When the posture detection device on the terminal is in an on state, in response to a viewing operation on the target focused image, an image viewing interface for the focused image set is displayed; The method further comprises: When the posture detection device on the terminal is in a closed state, in response to a viewing operation on the target focused image, an enlarged image of the target focused image is displayed.

14. The method according to any one of claims 1 to 13, characterized in that: In response to the posture of the terminal changing, switching the first focused image to a second focused image in the focused image set includes: In response to a change in the posture of the terminal, detecting a tilt angle of the terminal after the posture change; Acquiring depth of field information of each focused image in the focused image set; According to a preset correspondence between the tilt angle and the depth of field information, selecting a second focused image corresponding to the depth of field information and the tilt angle after the terminal posture changes from the focused image set; The first focused image is switched to a second focused image in the focused image set.

15. The method according to any one of claims 1 to 13, characterized in that In response to the change in the posture of the terminal, switching the first focused image to a second focused image in the focused image set includes: In response to a change in the posture of the terminal, a second focused image in the focused image set is superimposed on the first focused image, and the transparency of the first focused image is adjusted to a minimum transparency value, and the transparency of the second focused image is adjusted to a maximum transparency value.

16. An image-based interaction method, characterized in that: The method comprises: In response to an image capturing operation, capturing at least two focused images with different focus areas for the same imaging scene, wherein the captured at least two focused images constitute a focused image set, wherein each focused image in the focused image set has the same imaging scene and different focus areas; In response to the image sharing operation, sharing a target focused image among the at least two focused images; The shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

17. An image-based interactive device, characterized in that: The device comprises: An image display module, used for displaying a target focused image on a terminal, wherein the target focused image belongs to a focused image set, and each focused image in the focused image set has the same imaging scene and different focused areas; An interface display module, configured to display an image viewing interface for the focused image set in response to a viewing operation on the target focused image; the image viewing interface includes a first focused image in the focused image set; A switching module is used to switch the first focused image to a second focused image in the focused image set in response to a change in the posture of the terminal.

18. An image-based interactive device, characterized in that: The device comprises: A first shooting module is used to shoot at least two focused images with different focus areas for the same imaging scene in response to an image shooting operation, wherein the at least two focused images shot constitute a focused image set, and each focused image in the focused image set has the same imaging scene and different focus areas; A first sharing module, configured to share a target focused image among the at least two focused images in response to an image sharing operation; The shared target focused image is used to switch to view each focused image in the focused image set in response to a change in the posture of the terminal when the target focused image is viewed on the terminal.

19. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 16 are implemented.

20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.

21. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.