Image display method and device
By obtaining the pressure detected by the mapping list and pressure sensor, and determining the target index to display different states of the product, the problem that the prior art cannot realize the interaction between the user and the product picture is solved, and the user's purchasing experience is improved.
Patent Information
- Application Number
- CN201811460005.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-30
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2038-11-30
AI Technical Summary
The prior art cannot meet the interaction scenarios between the user and the product picture. For example, the user wants to view the pictures when the ball or pillow is pressed, but cannot realize the picture display when the product is pressed.
By receiving the user-triggered image viewing request, a mapping list is obtained. This list represents the correspondence between the index and pressure of each image in the product's picture set, and uses the pressure sensor to obtain the pressure applied by the user. The target index is determined based on the mapping list and pressure. Display the corresponding target picture so that users can understand the changes in product forms at different pressures.
The interactive scenario between the user and the product picture is realized. Users can view the shape changes of the product by applying different pressures to gain a more comprehensive understanding of the product to be purchased.
Smart Images

Figure CN111260425B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of commodity display, and in particular to a picture display method and device. Background Art
[0002] With the continuous development of Internet technology, the functions that the Internet can achieve are becoming more and more abundant. For example: online social networking, online shopping, and online video watching. Among them, online shopping meets the needs of users to browse the goods sold in various stores without leaving home. After selecting the goods they like and placing an order, the merchant will send the goods to the address specified by the user, saving the user's time and energy. For merchants, fully expressing the characteristics of the goods and displaying the goods to users in all aspects can help buyers fully understand the goods, thereby increasing the number of orders for the goods.
[0003] In the prior art, after a user clicks on the details page of a product, the shopping platform will return the product image to the terminal, and the terminal will further display the image for the user to view. However, this method of the prior art cannot meet the interaction scenario between the user and the product image. For example, when a user views a product such as a ball or a pillow, he or she hopes to see the image of the product when it is pressed. Summary of the invention
[0004] The present invention provides a picture display method and device, which are used to solve the problem that the prior art cannot satisfy the interaction scenario between users and product pictures.
[0005] In a first aspect, the present invention provides a method for displaying an image, comprising:
[0006] After receiving the image viewing request triggered by the user, a mapping list is obtained according to the product identifier carried in the image viewing request, wherein the mapping list is used to represent the corresponding relationship between the index and pressure of each image in the image set of the product;
[0007] Acquiring the pressure applied by the user;
[0008] Determining a target index according to the mapping list and the pressure applied by the user;
[0009] According to the target index, a target image corresponding to the target index is acquired and displayed.
[0010] Optionally, a mapping list is obtained according to the product identifier carried in the image viewing request, including:
[0011] Sending the commodity identification to a server, so that the server retrieves the mapping list according to the commodity identification;
[0012] Receive the mapping list sent by the server.
[0013] Optionally, acquiring and displaying a target image corresponding to the target index according to the target index includes:
[0014] Sending the commodity identification and the target index to the server, so that the server retrieves a target image corresponding to the target index from a picture set of the commodity according to the commodity identification and the target index;
[0015] Receive and display the target image sent by the server.
[0016] Optionally, the receiving the mapping list sent by the server includes:
[0017] receiving the mapping list and the picture set of the product sent by the server;
[0018] Correspondingly, acquiring and displaying a target image corresponding to the target index according to the target index includes:
[0019] According to the target index, retrieve a target image corresponding to the target index from the image set of the product;
[0020] The target image is displayed.
[0021] Optionally, obtaining the pressure applied by the user includes:
[0022] Start the pressure sensor;
[0023] The pressure applied by the user is acquired through the pressure sensor.
[0024] Optionally, obtaining the pressure applied by the user through the pressure sensor includes:
[0025] Acquiring the pressure applied by the user on the pressure sensor;
[0026] Acquire a force-bearing area of the pressure sensor when the user applies pressure on the pressure sensor;
[0027] The pressure applied by the user is determined according to the pressure applied by the user on the pressure sensor and the force-bearing area.
[0028] Optionally, the pressure applied by the user on the pressure sensor is greater than a preset threshold, and the duration for which the user applies pressure on the pressure sensor is greater than a preset duration.
[0029] Optionally, determining the target index according to the mapping list and the pressure applied by the user includes:
[0030] Obtaining the absolute value of the difference between each pressure in the mapping list and the pressure applied by the user;
[0031] The index corresponding to the pressure with the smallest absolute value is determined as the target index.
[0032] Optionally, the pressure sensor includes: a pressure sensor integrated on the terminal screen, a grip sensor integrated inside the terminal, or a tension sensor integrated inside the terminal.
[0033] In a second aspect, the present invention provides a picture display device, comprising:
[0034] A first acquisition module is used to, after receiving a picture viewing request triggered by a user, acquire a mapping list according to a product identifier carried in the picture viewing request, wherein the mapping list is used to represent a correspondence between an index and a pressure of each picture in a picture set of the product;
[0035] A second acquisition module, used to acquire the pressure applied by the user;
[0036] a determination module, configured to determine a target index according to the mapping list and the pressure applied by the user;
[0037] The display module is used to obtain and display the target image corresponding to the target index according to the target index.
[0038] Optionally, the first acquisition module is specifically configured to send the commodity identification to a server, so that the server retrieves the mapping list according to the commodity identification;
[0039] Receive the mapping list sent by the server.
[0040] Optionally, the display module is specifically configured to send the commodity identification and the target index to the server, so that the server retrieves a target image corresponding to the target index from a picture set of the commodity according to the commodity identification and the target index;
[0041] Receive and display the target image sent by the server.
[0042] Optionally, the first acquisition module is further used to receive the mapping list and the picture set of the product sent by the server;
[0043] Correspondingly, the display module is further used to retrieve the target image corresponding to the target index from the image set of the commodity according to the target index;
[0044] The target image is displayed.
[0045] Optionally, the second acquisition module is specifically used to start the pressure sensor;
[0046] The pressure applied by the user is acquired through the pressure sensor.
[0047] Optionally, the second acquisition module is specifically used to acquire the pressure applied by the user on the pressure sensor;
[0048] Acquire a force-bearing area of the pressure sensor when the user applies pressure on the pressure sensor;
[0049] The pressure applied by the user is determined according to the pressure applied by the user on the pressure sensor and the force-bearing area.
[0050] Optionally, the pressure applied by the user on the pressure sensor is greater than a preset threshold, and the duration for which the user applies pressure on the pressure sensor is greater than a preset duration.
[0051] Optionally, the determination module is specifically used to obtain the absolute value of the difference between each pressure in the mapping list and the pressure applied by the user;
[0052] The index corresponding to the pressure with the smallest absolute value is determined as the target index.
[0053] Optionally, the pressure sensor includes: a pressure sensor integrated on the terminal screen, a grip sensor integrated inside the terminal, or a tension sensor integrated inside the terminal.
[0054] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned image realization method when executed by a processor.
[0055] In a fourth aspect, the present invention provides a terminal, comprising:
[0056] Processor; and
[0057] A memory, configured to store executable instructions of the processor;
[0058] The processor is configured to implement the above-mentioned image realization method by executing the executable instructions.
[0059] The image display method and device provided by the present invention, after receiving the image viewing request triggered by the user, the terminal, on the one hand, obtains a mapping list according to the commodity identification carried in the image viewing request, the mapping list is used to represent the corresponding relationship between the index and pressure of each image in the image set of the commodity; on the other hand, obtains the pressure applied by the user; then determines the target index according to the mapping list and the pressure applied by the user; and obtains and displays the target image corresponding to the target index according to the target index. When the user applies different pressures, the terminal displays different images, so that the user can understand the changes in the commodity form when different pressures are applied, and has a more comprehensive understanding of the commodity to be purchased. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 This is an application scenario diagram of the image display method provided by the present invention;
[0061] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for displaying images provided by the present invention;
[0062] Figure 3 A schematic diagram of a mapping list provided by the present invention;
[0063] Figure 4 A schematic diagram of a flow chart of a second embodiment of the image display method provided by the present invention;
[0064] Figure 5 A schematic diagram of determining a target image according to the pressure applied by a user provided by the present invention;
[0065] Figure 6 Another principle diagram of determining a target image according to the pressure applied by a user provided by the present invention;
[0066] Figure 7 A schematic structural diagram of a first embodiment of a picture display device provided by the present invention;
[0067] Figure 8 This is a schematic diagram of the hardware structure of the terminal provided by the present invention. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] When shopping online, users can click on the product details page to learn more about the product when they see a satisfactory product. In the prior art, after a user clicks on the product details page, the shopping platform directly returns the product picture to the terminal for the user to view. This method cannot meet the interaction scenarios between users and product pictures. For example, when users view products such as balls or pillows, they hope to see pictures of the products being pressed, and the degree of squeezing of the products can be controlled by the users.
[0070] In order to solve the above technical problems, the present invention provides a method and device for displaying pictures. After receiving a picture viewing request triggered by a user, on the one hand, a mapping list is obtained according to the product identifier carried in the request, and the mapping list indicates the corresponding relationship between the index and pressure of each picture in the picture set of the product; on the other hand, the pressure applied by the user on the pressure sensor is obtained; when the mapping list and the pressure applied by the user are obtained, the pressure applied by the user is compared with the pressure in the mapping list to determine the picture index corresponding to the pressure applied by the user, and then the picture to be displayed to the user is determined according to the index, so that when the user applies different pressures, the pictures displayed by the terminal are also different, so that the user can understand the changes in the form of the product when different pressures are applied, and have a more comprehensive understanding of the product to be purchased, which meets the needs of the interaction scene between the user and the product picture.
[0071] Figure 1 This is an application scenario diagram of the image display method provided by the present invention. Figure 1 The application scenario shown in the figure includes: a terminal, a pressure sensor and a server; the terminal and the server can be connected through wireless communication technology. The pressure sensor can be integrated into the terminal as a part of the terminal, or it can be separately set outside the terminal. For example: the pressure sensor can be a pressure sensor integrated on the terminal screen, a grip sensor integrated inside the terminal, or a tension sensor integrated inside the terminal. Figure 1 A pressure sensor integrated on a terminal screen is used as an illustration, and a user can apply pressure through the pressure sensor.
[0072] Among them, the terminal can be used to interact with the user. The user can browse the goods through the shopping platform installed on the terminal. When seeing a satisfactory product, the terminal can trigger a picture viewing request. After receiving the picture viewing request triggered by the user, the terminal can send the product identification contained in the picture viewing request to the server, so that the server can feedback the corresponding mapping list and picture set according to the product identification. The terminal can further determine the target picture corresponding to the pressure applied by the user based on the mapping list and parameters such as the pressure detected by the pressure sensor.
[0073] The server pre-stores mapping lists and picture sets corresponding to all commodities.
[0074] The terminal may be a desktop computer, a notebook, a personal digital assistant (PDA), a smart phone, a tablet computer and other devices.
[0075] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0076] Figure 2 This is a flow chart of the first embodiment of the picture display method provided by the present invention. The picture display method provided by this embodiment can be Figure 1 Terminal execution in the scene graph shown.
[0077] like Figure 2 As shown, the picture display method provided in this embodiment includes:
[0078] S201. After receiving a picture viewing request triggered by a user, a mapping list is obtained according to a product identifier carried in the picture viewing request. The mapping list is used to represent the corresponding relationship between the index and pressure of each picture in the picture set of the product.
[0079] The mapping list represents the corresponding relationship between the index and pressure of each image in the product image set. For example, if the user triggers a request to view the image of product A, the image viewing request carries the product ID of product A. The mapping list of product A can be as follows: Figure 3 As shown in , assume that the picture set of product A includes 4 pictures, and the indexes of the 4 pictures are: id1, id2, id3 and id4 respectively; Figure 3 It can be seen that the pressure corresponding to index id1 is 50Pa, the pressure corresponding to index id2 is 100Pa, the pressure corresponding to index id3 is 150Pa, and the pressure corresponding to index id4 is 200Pa.
[0080] Optionally, the mapping list of each product can be pre-stored locally in the terminal, and the mapping list can be marked with the corresponding product ID. After receiving the image viewing request triggered by the user, the terminal can directly retrieve the corresponding mapping list from the local according to the product ID carried in the image viewing request.
[0081] S202: Obtain the pressure applied by the user.
[0082] Among them, the feasible way to obtain the pressure applied by the user is: obtain the pressure applied by the user on the pressure sensor; obtain the force area of the pressure sensor when the user applies pressure on the pressure sensor; determine the pressure applied by the user based on the pressure applied by the user on the pressure sensor and the force area.
[0083] S203: Determine a target index according to the mapping list and the pressure applied by the user.
[0084] The user may obtain the pressure applied by the user through a pressure sensor provided on the terminal.
[0085] Among them, the achievable method of determining the target index based on the mapping list and the pressure applied by the user is: obtaining the absolute value of the difference between each pressure in the mapping list and the pressure applied by the user; and determining the index corresponding to the pressure with the smallest absolute value as the target index.
[0086] Continuing with the above example, assuming that the pressure applied by the user through the pressure sensor is 20Pa, calculate the pressure and Figure 3 The absolute value of the difference between the pressures in the mapping list shown is calculated according to Figure 3 The order of pressures shown, the pressure applied by the user and Figure 3 The absolute values of the pressure differences are: 30, 80, 130 and 180 respectively. It can be seen that the pressure applied by the user and Figure 3 The absolute value of the difference of the pressure of 50Pa in the mapping list shown is the smallest, so the image index corresponding to 50Pa can be used as the target index.
[0087] Optionally, when the absolute values of the differences between the pressure applied by the user and multiple pressures in the mapping list are both minimum values, for example, the pressure applied by the user is 75Pa, then the pressure and Figure 3 In the mapping list shown, the absolute value of the difference between 50Pa and 100Pa is the minimum value 25, so Figure 3 The image indexes corresponding to 50Pa and 100Pa in the mapping list shown are both used as target indexes.
[0088] S204: According to the target index, obtain and display the target image corresponding to the target index.
[0089] Optionally, the picture set of each product may be pre-stored locally in the terminal, and after the target index is obtained, the target picture may be retrieved locally in the terminal according to the target index.
[0090] The picture display method provided in this embodiment is that after receiving the picture viewing request triggered by the user, the terminal obtains a mapping list based on the product identification carried in the picture viewing request, and the mapping list is used to represent the corresponding relationship between the index and pressure of each picture in the picture set of the product; on the other hand, the pressure applied by the user is obtained; then, according to the mapping list and the pressure applied by the user, the target index is determined; and according to the target index, the target picture corresponding to the target index is obtained and displayed. When the user applies different pressures, the pictures displayed by the terminal are also different, so that the user can understand the changes in the form of the product when different pressures are applied, and have a more comprehensive understanding of the product to be purchased.
[0091] Generally, if Figure 1 In the scene diagram shown, the mapping list and picture set of each product are stored in the server. The following describes how the terminal and the server implement the picture display method provided by the present invention in this case in conjunction with specific embodiments.
[0092] Figure 4 FIG. 2 is a flow chart of the second embodiment of the image display method provided by the present invention. Figure 4 As shown, after the terminal receives the picture viewing request triggered by the user, the picture display method provided in this embodiment includes:
[0093] S401. The terminal sends the product identification carried in the picture viewing request to the server.
[0094] S402: The server retrieves a mapping list from a corresponding database according to the product identifier.
[0095] S403: The server sends the mapping list to the terminal.
[0096] The mapping list is stored in the server, and the mapping list can mark the corresponding product ID. After receiving the image viewing request triggered by the user, the terminal can directly send the product ID to the server, and the server can retrieve the mapping list from the corresponding database according to the product ID.
[0097] S404: The terminal starts the pressure sensor.
[0098] It should be noted that S401 and S404 can be performed simultaneously, that is, after the terminal receives the image viewing request triggered by the user, it can send the product identification to the server to obtain a mapping list, and start the pressure sensor to put it in working state.
[0099] The pressure sensor includes: a pressure sensor integrated on the terminal screen, a grip sensor integrated inside the terminal, or a tension sensor integrated inside the terminal.
[0100] S405: The terminal obtains the pressure applied by the user through the pressure sensor.
[0101] The implementation principle of this step is similar to that of S202 in the above embodiment.
[0102] It should be noted that after the pressure sensor is activated, the user may apply pressure to the pressure sensor due to misoperation. To avoid this, the pressure applied by the user on the pressure sensor must be greater than the preset threshold, and the duration of the user applying pressure on the pressure sensor must be greater than the preset duration. Only in this case will the terminal include the calculated pressure applied by the user in the calculation of the following steps.
[0103] S406: The terminal determines a target index according to the mapping list and the pressure applied by the user.
[0104] The implementation principle of this step is similar to that of S203 in the above embodiment.
[0105] S407: The terminal sends the commodity identifier and the target index to the server.
[0106] S408: The server retrieves a target image corresponding to the target index from the image set of the product according to the product identifier and the target index.
[0107] S409: The server sends the target image to the terminal.
[0108] The picture set of each product is also stored in the server. After the terminal determines the target index, it sends the product identification and the target index to the server. The server directly retrieves the target picture from the stored picture set according to the product identification and the target index.
[0109] Optionally, when the server sends the mapping list to the terminal in S403, it may also send the corresponding product picture set to the terminal, and then S407-S409 may be replaced by: the terminal directly retrieves the target picture from the product picture set according to the determined target index.
[0110] S4010. The terminal displays the target image.
[0111] For example, suppose a user triggers a request to view an image of a pillow. After receiving the request, the terminal obtains a mapping list of the pillow. Suppose the mapping list is Figure 3 On the other hand, the pressure sensor can be activated by the user. The user can apply pressure to the pressure sensor at any time. Assume that Figure 5As shown, the pressure applied by the user for the first time is xPa. After S401-S406, the target index corresponding to the pressure xPa is id1, and the picture 1 corresponding to the target index id1 is displayed to the user; Figure 6 As shown, the pressure applied by the user for the second time is yPa, and after S401-S406, the target index corresponding to the pressure yPa is id3, and the picture 3 corresponding to the target index id3 is displayed to the user. The user can intuitively see the pictures of the pillow being pressed when different pressures are applied, thereby enabling the user to have a more comprehensive understanding of the product.
[0112] The image display method provided in this embodiment describes the process of displaying the target image by the terminal through interaction with the server, so that when the user applies different pressures, the image displayed by the terminal is also different, so that the user can intuitively see the image of the product being pressed when different pressures are applied, thereby improving the user's purchasing experience.
[0113] Figure 7 This is a schematic diagram of the structure of the first embodiment of the picture display device provided by the present invention. Figure 7 As shown, the picture display device provided in this embodiment includes:
[0114] The first acquisition module 701 is used to, after receiving a picture viewing request triggered by a user, obtain a mapping list according to the product identifier carried in the picture viewing request, wherein the mapping list is used to represent the corresponding relationship between the index and pressure of each picture in the picture set of the product;
[0115] A second acquisition module 702, used to acquire the pressure applied by the user;
[0116] A determination module 703, configured to determine a target index according to the mapping list and the pressure applied by the user;
[0117] The display module 704 is used to obtain and display the target image corresponding to the target index according to the target index.
[0118] Optionally, the first acquisition module 701 is specifically configured to send the commodity identification to a server, so that the server retrieves the mapping list according to the commodity identification;
[0119] Receive the mapping list sent by the server.
[0120] Optionally, the display module 704 is specifically configured to send the commodity identification and the target index to the server, so that the server retrieves a target image corresponding to the target index from the image set of the commodity according to the commodity identification and the target index;
[0121] Receive and display the target image sent by the server.
[0122] Optionally, the first acquisition module 701 is further configured to receive the mapping list and the picture set of the product sent by the server;
[0123] Correspondingly, the display module 704 is further used to retrieve the target image corresponding to the target index from the image set of the commodity according to the target index;
[0124] The target image is displayed.
[0125] Optionally, the second acquisition module 702 is specifically used to start the pressure sensor;
[0126] The pressure applied by the user is acquired through the pressure sensor.
[0127] Optionally, the second acquisition module 702 is specifically configured to acquire the pressure applied by the user on the pressure sensor;
[0128] Acquire a force-bearing area of the pressure sensor when the user applies pressure on the pressure sensor;
[0129] The pressure applied by the user is determined according to the pressure applied by the user on the pressure sensor and the force-bearing area.
[0130] Optionally, the pressure applied by the user on the pressure sensor is greater than a preset threshold, and the duration for which the user applies pressure on the pressure sensor is greater than a preset duration.
[0131] Optionally, the determination module 703 is specifically configured to obtain an absolute value of a difference between each pressure in the mapping list and the pressure applied by the user;
[0132] The index corresponding to the pressure with the smallest absolute value is determined as the target index.
[0133] Optionally, the pressure sensor includes: a pressure sensor integrated on the terminal screen, a grip sensor integrated inside the terminal, or a tension sensor integrated inside the terminal.
[0134] The image display device provided in this embodiment can be used to execute the steps in any of the above method embodiments. Its implementation principles and technical effects are similar and will not be repeated here.
[0135] Figure 8 The hardware structure diagram of the terminal provided by the present invention is shown in FIG. Figure 8 As shown, the terminal of this embodiment may include:
[0136] The memory 801 is used to store program instructions.
[0137] The processor 802 is used to implement the method described in any of the above embodiments when the program instructions are executed. The specific implementation principle can be found in the above embodiments, and this embodiment will not be repeated here.
[0138] The present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the image display method described in any of the above embodiments is implemented.
[0139] The present invention also provides a program product, which includes a computer program, which is stored in a readable storage medium. At least one processor can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the terminal implements the image display method described in any of the above embodiments.
[0140] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0142] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0143] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0144] In the embodiment of the terminal device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for displaying an image, characterized in that: include: After receiving the image viewing request triggered by the user, a mapping list is obtained according to the product identifier carried in the image viewing request, wherein the mapping list is used to represent the corresponding relationship between the index and pressure of each image in the image set of the product; Acquiring the pressure applied by the user; Determining a target index according to the mapping list and the pressure applied by the user; According to the target index, a target image corresponding to the target index is acquired and displayed; each target index corresponds to an image of a shape change of the product when the product is pressed with different pressures; The determining the target index according to the mapping list and the pressure applied by the user includes: Obtaining the absolute value of the difference between each pressure in the mapping list and the pressure applied by the user; Determine the index corresponding to the pressure with the smallest absolute value as the target index; The obtaining of the pressure applied by the user includes: Start the pressure sensor; Acquiring the pressure applied by the user on the pressure sensor; Acquire a force-bearing area of the pressure sensor when the user applies pressure on the pressure sensor; Determining the pressure applied by the user according to the pressure applied by the user on the pressure sensor and the force-bearing area; The pressure applied by the user on the pressure sensor is greater than a preset threshold, and the duration for which the user applies pressure on the pressure sensor is greater than a preset duration.
2. The method according to claim 1, characterized in that According to the product identifier carried in the image viewing request, a mapping list is obtained, including: Sending the commodity identification to a server, so that the server retrieves the mapping list according to the commodity identification; Receive the mapping list sent by the server.
3. The method according to claim 2, characterized in that The acquiring and displaying the target image corresponding to the target index according to the target index includes: Sending the commodity identification and the target index to the server, so that the server retrieves a target image corresponding to the target index from a picture set of the commodity according to the commodity identification and the target index; Receive and display the target image sent by the server.
4. The method according to claim 2, characterized in that: The receiving the mapping list sent by the server comprises: receiving the mapping list and the picture set of the product sent by the server; Correspondingly, acquiring and displaying a target image corresponding to the target index according to the target index includes: According to the target index, retrieve a target image corresponding to the target index from the image set of the product; The target image is displayed.
5. The method according to any one of claims 1 to 4, characterized in that: The pressure sensor includes: a pressure sensor integrated on the terminal screen, a grip sensor integrated inside the terminal, or a tension sensor integrated inside the terminal.
6. A picture display device, characterized in that: include: A first acquisition module is used to, after receiving a picture viewing request triggered by a user, acquire a mapping list according to a product identifier carried in the picture viewing request, wherein the mapping list is used to represent a correspondence between an index and a pressure of each picture in a picture set of the product; A second acquisition module, used to acquire the pressure applied by the user; a determination module, configured to determine a target index according to the mapping list and the pressure applied by the user; A display module is used to obtain and display a target image corresponding to the target index according to the target index; each target index corresponds to an image of the shape change of the product when the product is pressed with different pressures; The determination module is specifically used to obtain the absolute value of the difference between each pressure in the mapping list and the pressure applied by the user; Determine the index corresponding to the pressure with the smallest absolute value as the target index; The second acquisition module is specifically used to start the pressure sensor; Acquiring the pressure applied by the user on the pressure sensor; Acquire a force-bearing area of the pressure sensor when the user applies pressure on the pressure sensor; Determining the pressure applied by the user according to the pressure applied by the user on the pressure sensor and the force-bearing area; The pressure applied by the user on the pressure sensor is greater than a preset threshold, and the duration for which the user applies pressure on the pressure sensor is greater than a preset duration.
7. The device according to claim 6, characterized in that The first acquisition module is specifically configured to send the commodity identification to a server, so that the server retrieves the mapping list according to the commodity identification; Receive the mapping list sent by the server.
8. The device according to claim 7, characterized in that The display module is specifically configured to send the commodity identification and the target index to the server, so that the server retrieves a target image corresponding to the target index from the image set of the commodity according to the commodity identification and the target index; Receive and display the target image sent by the server.
9. The device according to claim 7, characterized in that The first acquisition module is further used to receive the mapping list and the picture set of the product sent by the server; Correspondingly, the display module is further used to retrieve the target image corresponding to the target index from the image set of the commodity according to the target index; The target image is displayed.
10. The device according to any one of claims 6 to 9, characterized in that: The pressure sensor includes: a pressure sensor integrated on the terminal screen, a grip sensor integrated inside the terminal, or a tension sensor integrated inside the terminal.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
12. A terminal, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to implement the method according to any one of claims 1 to 5 by executing the executable instructions.