Image processing method and device
By analyzing the user's zoom and move operation data on the image, calculating the attention of each area of the image and optimizing the page display, it solves the problem of being unable to accurately obtain the user's attention in the existing technology, and achieves more accurate recommendations and page optimization.
Patent Information
- Application Number
- CN202011127439.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-20
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-10-20
AI Technical Summary
Existing recommendation methods cannot accurately capture the user's attention to each area of the image and cannot understand user needs, resulting in recommendation distortion and difficulty in page optimization.
By obtaining the user's zoom and move operation data on the image, analyze the size and location of the area that the user pays attention to, use buried point data to calculate the degree of attention of each area of the image, and optimize the page display through heat maps.
Accurately obtain users' attention to various areas of the image, optimize page display, and improve recommendation accuracy and user experience.
Smart Images

Figure CN113760153B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an image processing method and device. Background Art
[0002] At present, existing recommendation methods mostly use key recommendation methods. Taking item images as an example, the same images are recommended to users who like similar images, or item details are displayed. However, existing recommendation methods cannot accurately obtain the attention of each user to each area of the image, and cannot understand user needs. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides an image processing method and device, which can solve the problem that the existing recommendation method cannot accurately obtain the user's attention to each area of the image.
[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing an image is provided.
[0005] The image processing method of the embodiment of the present invention includes:
[0006] Acquire an original image and buried point data corresponding to the original image, wherein the buried point data is used to represent the size and / or position data of the area of interest to the user in the original image, and the buried point data is determined according to a zoom operation and / or a move operation triggered by the user on the original image;
[0007] The user's attention to each area of the original image is analyzed based on the original image and the buried point data.
[0008] Optionally, before the step of obtaining the original image and the buried point data corresponding to the original image, the method further includes:
[0009] In response to a zoom operation and / or a move operation triggered by a user on the original image, if the user triggers a pop-up operation on the original image within a preset time after the zoom operation and / or the move operation is triggered, the size and / or position of the image in the display frame of each zoom operation and / or the move operation in the original image is determined as the buried point data of the original image;
[0010] Alternatively, in response to a zoom operation and / or move operation triggered by the user on the original image, if the user does not trigger the zoom operation and / or move operation on the original image again after the preset time, the size and / or position of the image in the display frame of each zoom operation and / or move operation on the original image is determined at every preset time interval as the buried point data of the original image.
[0011] Optionally, analyzing the user's attention to each area of the original image according to the original image and the buried point data includes:
[0012] Cut out a regional image of the original image according to the buried point data;
[0013] Superimposing the original image and the regional image;
[0014] The number of superimposed layers of the regional images is used as the user's attention to each region of the original image.
[0015] Optionally, analyzing the user's attention to each area of the original image according to the original image and the buried point data includes:
[0016] Cut out corresponding regional images of the original image and images of the same type as the original image according to corresponding buried point data;
[0017] Superimposing the original image with the regional image of the original image, the image of the same type, and the regional image of the image of the same type respectively;
[0018] The ratio of the sum of the number of superimposed layers of the regional image of the original image and the regional image of the same type of image to the total number of layers is used as the user's attention to each area of the original image; the total number of layers is used to represent the sum of the number of layers of the original image, the regional image of the original image, the same type of image, and the regional image of the same type of image.
[0019] Optionally, before the step of respectively clipping the original image and images of the same type as the original image according to corresponding buried point data, the method further includes:
[0020] Classifying a preset number of original images to form at least one set;
[0021] The original images of each of the sets are respectively aggregated to determine similar images in different sets whose similarity with the original images is within a preset range.
[0022] Optionally, after the step of analyzing the user's attention to each area of the original image according to the original image and the buried point data, the method further includes:
[0023] According to the heat map or the selection operation triggered by the user on the heat map, the region image to be displayed is intercepted from the original image and the display position of the region image on the page is determined; the heat map is used to indicate the user's attention to each region of the original image;
[0024] The area image to be displayed is displayed at the display position on the page.
[0025] Optionally, before the step of intercepting a region image to be displayed from the original image and determining a display position of the region image on the page according to the heat map or a selection operation triggered by a user on the heat map, the method further includes:
[0026] Obtaining an area in the heat map where the attention degree is greater than a preset threshold;
[0027] Generate at least one set of thermal position coordinates according to the area in the thermal map whose attention degree is greater than a preset threshold;
[0028] The thermal position coordinates are associated with the original image.
[0029] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for processing an image is provided.
[0030] The image processing device of the embodiment of the present invention includes:
[0031] An acquisition module, used to acquire an original image and buried point data corresponding to the original image, wherein the buried point data is used to represent the size and / or position data of the area of interest to the user in the original image, and the buried point data is determined according to a zoom operation and / or a move operation triggered by the user on the original image;
[0032] The analysis module is used to analyze the user's attention to each area of the original image based on the original image and the buried point data.
[0033] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0034] The electronic device according to the embodiment of the present invention comprises:
[0035] one or more processors;
[0036] a storage device for storing one or more programs,
[0037] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0038] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0039] The computer-readable medium of the embodiment of the present invention stores a computer program, and when the program is executed by a processor, the method described above is implemented.
[0040] One embodiment of the above invention has the following advantages or beneficial effects:
[0041] In an embodiment of the present invention, the user's attention to each area of the original image is obtained based on the analysis of the buried data of the original image, the buried data is used to represent the size and / or position data of the area of the original image that the user pays attention to, and the buried data is determined according to the zoom operation and / or movement operation triggered by the user on the original image. This implementation can accurately obtain the attention of each user to each area of the image.
[0042] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0044] Figure 1 is a flowchart of an image processing method according to a first embodiment of the present invention;
[0045] Figure 2 is a flow chart of step 12 of an embodiment of the present invention;
[0046] Figure 3 It is a schematic diagram of a process for determining buried point data according to an embodiment of the present invention;
[0047] Figure 4 is a flowchart of an image processing method according to a second embodiment of the present invention;
[0048] Figure 5 is a module schematic diagram of an image processing device according to an embodiment of the present invention;
[0049] Figure 6 is a module schematic diagram of an image processing system according to an embodiment of the present invention;
[0050] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0051] Figure 8 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0053] Generally, the association recommendation method requires clustering users to obtain users who like similar images. This clustering itself is vague and lacks specific evaluation criteria, resulting in inaccurate clustering results, which leads to distorted recommendations. In addition, the association recommendation method cannot know which specific details of the image the user may be interested in, and cannot achieve the purpose of operational optimization. Therefore, the existing recommendation method has the following problems:
[0054] 1) It is impossible to accurately know each user’s focus on image details, so it is impossible to know the needs of individual users.
[0055] 2) It is impossible to accurately know the details that the group of users are concerned about, so it is impossible to provide feedback and optimize the images to be displayed on the page.
[0056] 3) It is not possible to automatically optimize the images displayed on the page to highlight the key points of group attention.
[0057] In order to solve the above problems, an embodiment of the present invention provides an image processing method, which can accurately analyze the user's attention to each area of the image, and can recommend the analysis results to operators or merchants to optimize the image to be displayed on the page. Figure 1 FIG. 1 is a flow chart of an image processing method according to a first embodiment of the present invention. Figure 1 As shown, the image processing method may include the following steps 11 to 12.
[0058] Step 11: Obtain the original image and the buried point data corresponding to the original image.
[0059] In step 11, the original image may be a frame image in a picture or video, etc. The buried point data is used to represent the size and / or position of the area of interest to the user in the original image, and the buried point data is determined according to the zoom operation and / or move operation triggered by the user on the original image. It can be understood that the area of interest to the user can be determined according to the zoom operation and / or move operation of the user on the original image, and then the size and / or position of the area of interest can be used as the buried point data.
[0060] Before step 11, the buried point data corresponding to the original image may be determined according to the zoom operation and / or move operation triggered by the user on the original image. The specific process of determining the buried point data includes the following situations:
[0061] Scenario 1:
[0062] In response to a zoom operation and / or move operation triggered by the user on the original image, if the user triggers a pop-up operation on the original image within a preset time after the zoom operation and / or move operation is triggered, the size and / or position of the image in the display frame of each zoom operation and / or move operation is determined in the original image as the buried point data of the original image.
[0063] Scenario 2:
[0064] In response to a zoom operation and / or move operation triggered by the user on the original image, if the user does not trigger the zoom operation and / or move operation on the original image again after the preset time, the size and / or position of the image in the display frame of each zoom operation and / or move operation on the original image is determined at every preset time interval as the buried point data of the original image.
[0065] It should be noted that if the user triggers a zoom operation and / or a move operation on the original image again within a preset time after the zoom operation and / or the move operation is triggered, the buried point data of the original image will not be recorded.
[0066] After determining the buried point data, the original image, the object information corresponding to the original image and the buried point data can be sent to a cloud database, so as to obtain the original image and the buried point data corresponding to the original image through step 11.
[0067] Step 12: Analyze the user's attention to each area of the original image based on the original image and the buried point data.
[0068] In step 12, the attention degree can be understood as the proportion of the user's attention to each area of the original image. When determining the user's attention degree to each area of the original image, the following methods can be included:
[0069] Method 1: Determine the user's attention to each area of the original image based on the original image and the buried point data of the original image.
[0070] In the first method, the original image may be firstly intercepted with a regional image according to the buried point data, and the original image and the regional image may be superimposed, and finally the number of superimposed layers of the regional image may be used as the user's attention to each region of the original image.
[0071] Method 2: Determine the user's attention to each area of the original image based on the original image, the buried point data of the original image, images of the same type as the original image, and the buried point data of the images of the same type.
[0072] See also Figure 2 When determining the user's attention to each area of the original image based on the original image, the buried point data of the original image, the same type of images of the original image, and the buried point data of the same type of images, the analysis process of the user's attention to each area of the original image may include the following steps 121 to 125.
[0073] Step 121: Classify a preset number of original images to form at least one set.
[0074] In step 121, the original image may be classified according to the item information of the original image. For example, the item information may be information such as the item category and brand corresponding to the original image.
[0075] It should be noted that the preset number can be determined according to actual needs. When the preset number is very large, if the aggregation operation (or clustering operation) is directly performed on the original image through step 122, there will be a problem of low aggregation efficiency. In order to solve this problem, the original image can be first classified through step 121, and then the aggregation operation is performed through step 122, which can improve the aggregation efficiency.
[0076] Step 122: performing aggregation operations on the original images of each of the sets respectively, so as to determine similar images in different sets whose similarity with the original images is within a preset range.
[0077] In step 122, the classified original images are aggregated according to their similarity, and similar images of the original images can be determined through the aggregation operation. The original images can be pictures of items from different merchants, and similar images of the original images can be understood as images whose similarity to the original images is within a preset range.
[0078] Step 123: The original image and the same type of image of the original image are respectively intercepted into corresponding regional images according to the corresponding buried point data.
[0079] In step 123, the image captured based on the buried point data can be understood as the area of the original image that the user is concerned about.
[0080] Step 124: superimposing the original image with the region image of the original image, the same type image, and the region image of the same type image respectively.
[0081] In step 124, the original image may be superimposed with the region image of the original image, the same type image, and the region image of the same type image respectively based on the similarity of pixel positions.
[0082] Step 125: The ratio of the sum of the number of superimposed layers of the regional image of the original image and the regional image of the same type of image to the total number of layers is used as the user's attention to each area of the original image; the total number of layers is used to represent the sum of the number of layers of the original image, the regional image of the original image, the same type of image, and the regional image of the same type of image.
[0083] Among them, compared with method 1, method 2 adds the buried point data of similar images in the process of determining the attention degree, which can improve the calculation accuracy of the attention degree and thus more accurately understand the user's needs.
[0084] It should be noted that the user's definition of the attention degree of each area of the original image is different, and the determination method is also different. The above two preferred methods are only examples and are not limiting.
[0085] In an embodiment of the present invention, the user's attention to each area of the original image is obtained based on the analysis of the buried data of the original image, the buried data is used to represent the size and / or position data of the area of the original image that the user pays attention to, and the buried data is determined according to the zoom operation and / or movement operation triggered by the user on the original image. This implementation can accurately obtain the attention of each user to each area of the image.
[0086] After determining the user's attention to each area of the original image, the user's attention to each area of the original image can be displayed in the form of a heat map, and then the image to be displayed on the page can be optimized according to the heat map. The optimization process can specifically include the following methods:
[0087] Method 1: Automatically optimize the image to be displayed on the page according to the heat map, that is, according to the heat map, cut out the area image to be displayed from the original image and determine the display position of the area image on the page; display the area image to be displayed at the display position on the page.
[0088] In method 1, first, at least one area image is intercepted from the original image according to the heat map. Then, the area images corresponding to the original image are sorted according to the degree of attention. Then, according to the sorting of the area images, the area images to be displayed and the display positions on the page are selected. Finally, the area images to be displayed are displayed at the display positions on the page. Through method 1, the area images can be pushed into the item gallery, and the item images used online can be automatically replaced based on the sorting of the degree of attention.
[0089] It should be noted that the display position can be understood as the position of the regional image on the page, and the display position includes at least: the main image position or the secondary image position. For example, the regional image with a higher attention ranking can be placed in the main image position, and the regional image with a lower attention ranking can be placed in the secondary image position. In addition, the display position of the regional image on the page can also be determined according to the user's selection operation.
[0090] Method 2: Optimize the images displayed on the page based on the user's selection on the heat map.
[0091] In the second method, according to the selection operation triggered by the user on the heat map, the area image to be displayed is intercepted from the original image and the display position of the area image on the page is determined, and the area image to be displayed is displayed at the display position on the page. Through the second method, the image to be displayed on the page can be automatically optimized according to the user's selection operation.
[0092] It is understandable that, in order to facilitate merchants to obtain users' attention information in a timely manner, a heat map is generated on the original image and sent to the merchant, so that the merchant can more intuitively determine the attention of each area. Based on the merchant's selection operation, the area image to be displayed can be intercepted in the original image, and the display position of the area image to be displayed can be determined, and finally the area image to be displayed can be displayed at the corresponding display position.
[0093] Before intercepting the area image to be displayed from the original image and determining the display position of the area image on the page, the area in the heat map with a degree of attention greater than a preset threshold can be first obtained. Then, at least one set of thermal position coordinates is generated based on the area in the heat map with a degree of attention greater than the preset threshold. Finally, the thermal position coordinates are associated with the original image, so as to intercept the area image to be displayed in the original image according to the heat map or according to the selection operation triggered by the user on the heat map.
[0094] In addition, in order to obtain the buried point data of the original image, see Figure 2 Before step 11, the original image processing method further includes the following steps 14 to 20.
[0095] Step 14: In response to a click operation on the original image triggered by the user, the backend database pulls the original image and renders it for display on the frontend.
[0096] In step 14, taking the original image as an example, the user clicks the item picture area of the client to open the item picture for browsing, and the backend database pulls the item picture and renders it on the front end for display.
[0097] Step 15: In response to a zooming operation and / or a moving operation on the original image triggered by a user, re-render the original image according to the zooming operation and / or the moving operation.
[0098] In step 15, the user performs a scaling operation and / or a moving operation on the original image, the front end reads the operation information of the scaling operation and / or the moving operation, and scales and re-renders the pixels of the original image according to the operation information of the scaling operation and / or the moving operation.
[0099] Step 16: Determine whether the user triggers the zoom operation and / or move operation on the original image again within a preset time after the zoom operation and / or move operation is triggered; if so, execute step 17; otherwise, execute step 18.
[0100] Step 17: Determine whether the user triggers a jump operation; if so, execute step 18; otherwise, execute step 15.
[0101] Step 18: Determine the size and / or position of the image in the display frame of each zoom operation and / or move operation in the original image as the buried point data of the original image.
[0102] For example: the preset time is 2s (seconds), and it is regularly determined whether the user has any new operation on the picture within 2 seconds since the last zoom operation and / or move operation. If it is a jump operation, the size and position of the image in the current display frame in the original image are calculated as the buried point data of the current original image. If the zoom operation and / or move operation is performed again within 2s, the buried point data of the original image is not recorded. If no operation is performed for more than 2s, the size and position of the image in the current display frame in the original image are calculated as the buried point data of the current original image. If it stays for a long time, it is recorded repeatedly every 2s to enhance the positional characteristics of the original image.
[0103] Step 19: Obtain the object information of the original image.
[0104] In step 19, the item information of the original image may be obtained from the item library, and the item information of the original image may include at least item category or brand type information.
[0105] Step 20: Send the original image, the object information corresponding to the original image, and the buried point data to the cloud database.
[0106] In an embodiment of the present invention, the buried point data of the original image can be determined according to the zooming operation and / or moving operation triggered by the user on the original image, and then the user's attention to each area of the original image can be analyzed through the buried point data. This implementation can accurately obtain the attention of each user to each area of the original image.
[0107] Figure 4 FIG. 1 is a flowchart of an image processing method according to a second embodiment of the present invention. Figure 4 , the image processing method may include the following steps:
[0108] Step 401: Obtain an original image and buried point data corresponding to the original image.
[0109] In step 401, the original image may be a frame image in a picture or video, etc. The buried point data is used to indicate the size and / or position of the area of interest to the user in the original image, and the buried point data is determined according to the zoom operation and / or move operation triggered by the user on the original image. It is understandable that the area of interest to the user can be determined according to the zoom operation and / or move operation of the user on the original image, and then the size and / or position of the area of interest is used as the buried point data.
[0110] Before step 401, the buried point data corresponding to the original image may be determined according to the zoom operation and / or move operation triggered by the user on the original image. The specific process of determining the buried point data may include the following situations:
[0111] Scenario 1:
[0112] In response to a zoom operation and / or move operation triggered by the user on the original image, if the user triggers a pop-up operation on the original image within a preset time after the zoom operation and / or move operation is triggered, the size and / or position of the image in the display frame of each zoom operation and / or move operation is determined in the original image as the buried point data of the original image.
[0113] Scenario 2:
[0114] In response to a zoom operation and / or move operation triggered by the user on the original image, if the user does not trigger the zoom operation and / or move operation on the original image again after the preset time, the size and / or position of the image in the display frame of each zoom operation and / or move operation on the original image is determined at every preset time interval as the buried point data of the original image.
[0115] It should be noted that if the user triggers a zoom operation and / or a move operation on the original image again within a preset time after the zoom operation and / or the move operation is triggered, the buried point data of the original image will not be recorded.
[0116] Step 402: Classify a preset number of original images to form at least one set.
[0117] In step 402, the original image may be classified according to the item information of the original image. For example, the item information may be information such as the item category and brand corresponding to the original image.
[0118] Step 403: performing aggregation operations on the original images of each of the sets respectively, so as to determine similar images in different sets whose similarity with the original images is within a preset range.
[0119] In step 403, the classified original images of the same type are aggregated (or clustered) according to their similarity, and images of the same type as the original image can be determined through the aggregation operation. The original image can be an item image of different merchants, and images of the same type as the original image can be understood as images whose similarity to the original image is within a preset range.
[0120] Step 404: intercept corresponding regional images of the original image and images of the same type as the original image according to corresponding buried point data.
[0121] In step 404, the captured image may be understood as the area in the original image that the user is interested in.
[0122] Step 405: superimposing the original image with the region image of the original image, the same type image, and the region image of the same type image respectively.
[0123] In step 405, the original image may be superimposed with the region image of the original image, the same type image, and the region image of the same type image respectively based on the similarity of pixel positions.
[0124] Step 406: The ratio of the sum of the number of superimposed layers of the regional image of the original image and the regional image of the same type of image to the total number of layers is used as the user's attention to each area of the original image; the total number of layers is used to represent the sum of the number of layers of the original image, the regional image of the original image, the same type of image, and the regional image of the same type of image.
[0125] Step 407: Generate a heat map of the original image according to the user's attention to each area of the original image.
[0126] Step 408: Acquire the area in the heat map where the attention degree is greater than a preset threshold.
[0127] Step 409: Generate at least one set of thermal position coordinates based on the areas in the thermal map whose attention degree is greater than a preset threshold.
[0128] In step 409, by focusing on the thermal analysis data, multiple groups of thermal position coordinates are generated by selecting areas with a focus greater than a preset threshold. The preset threshold is configurable and can be configured by the user. For example, the preset threshold can usually be set to 90%. The selection principles of at least one group of thermal position coordinates include:
[0129] 1) A selection box of a preset shape may be used to frame the coordinates of multiple regions in the heat map that are above a preset threshold, wherein the preset shape may be a regular shape such as a rectangle or a circle, or an irregular shape.
[0130] 2) Each of the multiple regions with the same preset threshold is individually intercepted as a region coordinate.
[0131] Taking the preset shape of a rectangle as an example, when selecting at least one set of thermal position coordinates, use a single rectangle to frame multiple area coordinates above the threshold in the image as much as possible; and each rectangular area with the same preset threshold is separately intercepted as an area coordinate.
[0132] Step 410: Associating the thermal position coordinates with the original image. After step 410, step 411 or step 414 may be performed.
[0133] Step 411: intercepting at least one regional image in the original image according to the thermal map.
[0134] After step 411, the captured regional image may be pushed into a gallery.
[0135] Step 412: sorting the regional images corresponding to the original image according to the degree of attention.
[0136] Step 413: According to the order of the regional images, select the regional images to be displayed and the display positions on the page, and then execute step 415.
[0137] In step 413, the display position can be understood as the position of the regional image on the page, and the display position includes at least: the main image position or the secondary image position, for example: the regional image with a higher attention ranking can be placed in the main image position, and the regional image with a lower attention ranking can be placed in the secondary image position. In addition, the display position of the regional image can also be determined according to the user's selection operation.
[0138] Step 414: According to the selection operation triggered by the user on the heat map, the area image to be displayed is intercepted from the original image and the display position of the area image on the page is determined, and then step 415 is executed.
[0139] Before step 414, the heat map of the original image can be sent to the terminal corresponding to the merchant, and the heat map of the original image can be displayed through the terminal. The merchant can trigger a selection operation on the terminal, and according to the selection operation, capture the area image to be displayed on the original image and the display position of the area image on the page.
[0140] Step 415: Display the area image to be displayed at the display position on the page.
[0141] In an embodiment of the present invention, the user's attention to each area of the original image is obtained based on the analysis of the buried data of the original image, and the buried data is used to represent the size and / or position data of the area of the original image that the user pays attention to, and the buried data is determined according to the zoom operation and / or move operation triggered by the user on the original image. This implementation can accurately obtain the attention of each user to each area of the image, and then optimize the image to be displayed on the page according to the user's attention to each area on the original image.
[0142] Figure 5 is a schematic diagram of a module of an image processing device according to an embodiment of the present invention, see Figure 5 , the image processing device 500 comprises:
[0143] An acquisition module 501 is used to acquire an original image and buried point data corresponding to the original image, wherein the buried point data is used to represent the size and / or position data of the area of interest to the user in the original image, and the buried point data is determined according to a zoom operation and / or a move operation triggered by the user on the original image;
[0144] The analysis module 502 is used to analyze the user's attention to each area of the original image based on the original image and the buried point data.
[0145] Optionally, the image processing device 500 further includes:
[0146] A determination module is used to respond to a zoom operation and / or move operation triggered by a user on the original image. If the user triggers a pop-up operation on the original image within a preset time after the zoom operation and / or move operation is triggered, the size and / or position of the image in the display frame of each zoom operation and / or move operation in the original image is determined as the buried point data of the original image; or, in response to a zoom operation and / or move operation triggered by a user on the original image, if the user does not trigger the zoom operation and / or move operation on the original image again after the preset time, the size and / or position of the image in the display frame of each zoom operation and / or move operation in the original image is determined at every preset time interval as the buried point data of the original image.
[0147] Optionally, the analysis module 502 is further configured to:
[0148] Cut out a regional image of the original image according to the buried point data;
[0149] Superimposing the original image and the regional image;
[0150] The number of superimposed layers of the regional images is used as the user's attention to each region of the original image.
[0151] Optionally, the analysis module 502 is further configured to:
[0152] Cut out corresponding regional images of the original image and images of the same type as the original image according to corresponding buried point data;
[0153] Superimposing the original image with the regional image of the original image, the image of the same type, and the regional image of the image of the same type respectively;
[0154] The ratio of the sum of the number of superimposed layers of the regional image of the original image and the regional image of the same type of image to the total number of layers is used as the user's attention to each area of the original image; the total number of layers is used to represent the sum of the number of layers of the original image, the regional image of the original image, the same type of image, and the regional image of the same type of image.
[0155] Optionally, the image processing device 500 further includes:
[0156] The aggregation module is used to classify a preset number of original images to form at least one set; and perform aggregation operations on the original images of each set respectively to determine similar images in different sets whose similarity with the original images is within a preset range.
[0157] Optionally, the image processing device 500 further includes:
[0158] An optimization module, used for intercepting a region image to be displayed from the original image according to a heat map and determining a display position of the region image on the page; the heat map is used to indicate the user's attention to each region of the original image;
[0159] The area image to be displayed is displayed at the display position on the page.
[0160] Optionally, the image processing device 500 further includes:
[0161] A recommendation module, used for intercepting a region image to be displayed from the original image and determining a display position of the region image on the page according to a selection operation triggered by the user on the heat map; the heat map is used to indicate the user's attention to each region of the original image;
[0162] The area image to be displayed is displayed at the display position on the page.
[0163] Optionally, the image processing device 500 further includes:
[0164] The association module is used to obtain the area in the thermal map where the attention degree is greater than a preset threshold; generate at least one set of thermal position coordinates based on the area in the thermal map where the attention degree is greater than the preset threshold; and associate the thermal position coordinates with the original image.
[0165] In an embodiment of the present invention, the user's attention to each area of the original image is obtained based on the analysis of the buried data of the original image, and the buried data is used to represent the size and / or position data of the area of the original image that the user pays attention to, and the buried data is determined according to the zoom operation and / or move operation triggered by the user on the original image. This implementation can accurately obtain the attention of each user to each area of the image, and then optimize the image to be displayed on the page according to the user's attention to each area on the original image.
[0166] Figure 6 is a schematic diagram of a module of an image processing system according to an embodiment of the present invention, see Figure 6, the image processing system includes: an attention point system 601, an attention analysis system 602 and an optimization recommendation system 603. Among them, the attention point system 601 is used to obtain the attention point data of the user's attention to the original image. The original image, the object information of the original image and the attention point data can be reported through the attention point system 601. The attention analysis system 602 is used to analyze the attention point data of the original image and generate a heat map of attention. The attention analysis system 602 can analyze the attention details of specific object images. The optimization recommendation system 603 is used to recommend the area image to be displayed on the page according to the attention obtained by the analysis, which is convenient for the later design of new object images, and can automatically update and optimize the existing image display page.
[0167] Furthermore, the attention embedding system 601 includes: an information embedding system and a browsing size embedding system. The information embedding system is used to respond to a zoom operation and / or a move operation on the original image triggered by a user, and determine the item information of the original image according to the zoom operation and / or the move operation. The browsing size embedding system is used to respond to a zoom operation and / or a move operation on the original image triggered by a user, and determine the embedding data of the original image according to the zoom operation and / or the move operation.
[0168] Furthermore, the attention analysis system 602 includes: a synthesis submodule, an aggregation submodule and an analysis submodule. The aggregation submodule is used to classify a preset number of original images to form at least one set, and perform aggregation operations on the original images of each set respectively to determine similar images in different sets whose similarity with the original image is within a preset range. The synthesis submodule is used to intercept the corresponding regional images of the original image and the similar images of the original image according to the corresponding buried point data; superimpose the original image with the regional image of the original image, the similar image and the regional image of the similar image respectively; take the ratio of the sum of the number of superimposed layers of the regional image of the original image and the regional image of the similar image to the total number of layers as the user's attention to each area of the original image; the total number of layers is used to represent the sum of the number of layers of the original image, the regional image of the original image, the similar image and the regional image of the similar image. The analysis submodule is used to generate a heat map of the original image according to the user's attention to each area of the original image.
[0169] Furthermore, the optimization recommendation system 603 includes: a recommendation submodule and an optimization submodule. The recommendation submodule is used to generate a heat map on the original image according to the user's attention to each area of the original image, and then, according to the selection operation triggered by the user on the heat map, intercept the area image to be displayed from the original image and determine the display position of the area image on the page, and finally display the area image to be displayed at the display position on the page. The optimization submodule is used to intercept at least one area image in the original image according to the heat map, and then sort the area images corresponding to the original image according to the attention, and then select the area image to be displayed and the display position on the page according to the sorting of the area images, and finally display the area image to be displayed at the display position on the page.
[0170] When the user uses the software to browse the client interface, he will open the item picture and zoom and / or move the screen. The purpose of the zoom and / or move operation is to magnify the detailed information of the area that the user is concerned about. Through the attention point embedding system, the picture interface after the user zooms and moves can be obtained, and its coordinate size information is reported in combination with the item information. Through the attention analysis system 602, similar images of the original image are integrated and superimposed to obtain the attention of each area of the original image. Finally, the analysis results are output to the optimization recommendation system 603 for merchants to adjust image strategies and automatically optimize the images to be displayed on the current page.
[0171] Figure 7 An exemplary system architecture 700 is shown to which the image processing method or image processing apparatus according to the embodiment of the present invention can be applied.
[0172] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0173] Users can use terminal devices 701, 702, and 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0174] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0175] The server 705 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 701 , 702 , and 703 .
[0176] It should be noted that the image processing method provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the image processing device is generally disposed in the server 705 .
[0177] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0178] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device suitable for implementing an embodiment of the present invention. Figure 8 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0179] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0180] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0181] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.
[0182] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0183] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0184] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: obtaining an original image and the buried point data corresponding to the original image, the buried point data is used to represent the size and / or position data of the area of interest to the user in the original image, and the buried point data is determined according to the zoom operation and / or movement operation triggered by the user on the original image; based on the original image and the buried point data, analyzing the user's attention to each area of the original image.
[0185] In an embodiment of the present invention, the user's attention to each area of the original image is obtained based on the analysis of the buried data of the original image, and the buried data is used to represent the size and / or position data of the area of the original image that the user pays attention to, and the buried data is determined according to the zoom operation and / or move operation triggered by the user on the original image. This implementation can accurately obtain the attention of each user to each area of the image, and then optimize the image to be displayed on the page according to the user's attention to each area on the original image.
[0186] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing an image, characterized in that: include: Acquire an original image and buried point data corresponding to the original image, wherein the buried point data is used to represent the size and / or position data of the area of interest to the user in the original image, and the buried point data is determined according to a zoom operation and / or a move operation triggered by the user on the original image; Analyzing the user's attention to each area of the original image according to the original image and the buried point data; Analyzing the user's attention to each area of the original image according to the original image and the buried point data includes any of the following methods: Cut out a regional image from the original image according to the buried point data; superimpose the original image with the regional image; and use the number of superimposed layers of the regional image as the user's attention to each region of the original image; or, The corresponding regional images are respectively intercepted from the original image and the similar images of the original image according to the corresponding buried point data; the original image is respectively superimposed with the regional image of the original image, the similar image and the regional image of the similar image; the ratio of the sum of the number of superimposed layers of the regional image of the original image and the regional image of the similar image to the total number of superimposed layers is used as the user's attention to each area of the original image; The total number of layers is used to represent the sum of the number of layers of the original image, the regional image of the original image, the same type of image, and the regional image of the same type of image.
2. The method according to claim 1, characterized in that: Before the step of obtaining the original image and the buried point data corresponding to the original image, the method further includes: In response to a zoom operation and / or a move operation triggered by a user on the original image, if the user triggers a pop-up operation on the original image within a preset time after the zoom operation and / or the move operation is triggered, the size and / or position of the image in the display frame of each zoom operation and / or the move operation in the original image is determined as the buried point data of the original image; Alternatively, in response to a zoom operation and / or move operation triggered by the user on the original image, if the user does not trigger the zoom operation and / or move operation on the original image again after the preset time, the size and / or position of the image in the display frame of each zoom operation and / or move operation on the original image is determined at every preset time interval as the buried point data of the original image.
3. The method according to claim 1, characterized in that: Before the step of respectively cutting the original image and images of the same type as the original image according to the corresponding buried point data, the method further includes: Classifying a preset number of original images to form at least one set; The original images of each of the sets are respectively aggregated to determine similar images in different sets whose similarity with the original images is within a preset range.
4. The method according to claim 1, characterized in that: After the step of analyzing the user's attention to each area of the original image according to the original image and the buried point data, the method further includes: According to the heat map or the selection operation triggered by the user on the heat map, the region image to be displayed is intercepted from the original image and the display position of the region image on the page is determined; the heat map is used to indicate the user's attention to each region of the original image; The area image to be displayed is displayed at the display position on the page.
5. The method according to claim 4, characterized in that: Before the step of intercepting a region image to be displayed from the original image and determining a display position of the region image on the page according to the heat map or a selection operation triggered by a user on the heat map, the method further includes: Obtaining an area in the heat map where the attention degree is greater than a preset threshold; Generate at least one set of thermal position coordinates according to the area in the thermal map whose attention degree is greater than a preset threshold; The thermal position coordinates are associated with the original image.
6. A picture processing device, characterized in that: include: An acquisition module, used to acquire an original image and buried point data corresponding to the original image, wherein the buried point data is used to represent the size and / or position data of the area of interest to the user in the original image, and the buried point data is determined according to a zoom operation and / or a move operation triggered by the user on the original image; An analysis module, used for analyzing the user's attention to each area of the original image according to the original image and the buried point data; Analyzing the user's attention to each area of the original image according to the original image and the buried point data includes any of the following methods: Cut out a regional image from the original image according to the buried point data; superimpose the original image with the regional image; and use the number of superimposed layers of the regional image as the user's attention to each region of the original image; or, The corresponding regional images are respectively intercepted from the original image and the similar images of the original image according to the corresponding buried point data; the original image is respectively superimposed with the regional image of the original image, the similar image and the regional image of the similar image; the ratio of the sum of the number of superimposed layers of the regional image of the original image and the regional image of the similar image to the total number of superimposed layers is used as the user's attention to each area of the original image; The total number of layers is used to represent the sum of the number of layers of the original image, the regional image of the original image, the same type of image, and the regional image of the same type of image.
7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
