Image processing method, device, equipment and storage medium
By identifying and merging the images, the problem of dispersing information on screenshots of product details pages is solved, and information is centralized and classified, which improves user experience.
Patent Information
- Application Number
- CN202210804041.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-07
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-07-07
AI Technical Summary
During the information sharing process, the information contained in the screenshot of the product details page is scattered, which leads to difficulty in sharing and dissemination and poor user experience.
By recognizing the content of the image in the target application, the label information of the image is obtained, and the sub-image content of the same label information is merged to generate a merged image, and the merged image is sent in response to the confirmation sharing instruction.
It realizes centralized classification of information, avoids the spread of multiple images at one time, and improves the user experience.
Smart Images

Figure CN115187498B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an image processing method, apparatus, device, and storage medium. Background Art
[0002] During the information sharing process, users often share screenshots of product details pages with friends so that their friends can evaluate the product based on the screenshots and give purchase recommendations.
[0003] Currently, screenshots of product detail pages often contain a lot of information, such as product name, purchase price, how to use the product, etc., and the number of screenshots of details shared each time is also large, which makes sharing and dissemination difficult. In addition, the information is relatively scattered, and the user experience is poor. Summary of the Invention
[0004] In view of this, the embodiments of the present application provide an image processing method, apparatus, device and storage medium to solve the problem of poor user experience in the process of image sharing and dissemination in the prior art.
[0005] In a first aspect, an embodiment of the present application provides an image processing method, comprising:
[0006] In response to an image sharing instruction in a target application, performing content recognition on each of at least two images to be shared in the target application to obtain at least one tag information of each image and sub-image content corresponding to each tag information;
[0007] Merging sub-image contents corresponding to the same label information in the at least two images to obtain a merged image;
[0008] In response to a confirmation sharing instruction for the merged image, the merged image is sent.
[0009] In an optional embodiment, before responding to the image sharing instruction in the target application and performing content recognition on each of the at least two images to be shared in the target application to obtain at least one tag information of each image and the sub-image content corresponding to each tag information, the method further includes:
[0010] Determine whether the latest image written in the preset album is an image for the target application;
[0011] If the latest written image is an image for the target application, the preset album is monitored; if the latest written image is updated and the updated image is an image for the target application, the preset album is monitored cyclically until a preset monitoring stop condition is met;
[0012] Determine that the monitored images for the target application are the at least two images to be shared.
[0013] In an optional embodiment, if the latest written image is an image for the target application, the preset album is monitored; if the latest written image is updated and the updated image is an image for the target application, the preset album is cyclically monitored until a preset monitoring stop condition is met, including:
[0014] If the latest written image is updated and the updated image is an image for the target application, determining whether a writing time interval between the updated image and the latest written image exceeds a preset time interval;
[0015] If the writing time interval between the updated image and the latest written image does not exceed the preset time interval, the preset album is monitored cyclically until the preset monitoring stop condition is met.
[0016] In an optional embodiment, before responding to the image sharing instruction in the target application and performing content recognition on each of the at least two images to be shared in the target application to obtain at least one tag information of each image and the sub-image content corresponding to each tag information, the method further includes:
[0017] Filtering, from a preset album according to writing time tags of images in the preset album, a first image that meets a preset time range corresponding to the startup time of the target application;
[0018] determining whether the first image is an image for the target application;
[0019] If there are at least two second images in the first image that are images for the target application, and the at least two second images are consecutive images in the preset album, then the at least two second images are determined to be the at least two images to be shared.
[0020] In an optional embodiment, merging sub-image contents corresponding to the same label information in the at least two images to obtain a merged image includes:
[0021] Combining sub-image contents corresponding to the same tag information in the at least two images to obtain combined content corresponding to each tag information;
[0022] The combined contents corresponding to all the tag information are merged to obtain the merged image.
[0023] In an optional implementation, before merging the combined contents corresponding to each tag information to obtain the merged image, the method further includes:
[0024] Filtering the combined content corresponding to the target tag information with duplicate content to obtain the combined content after filtering the target tag information;
[0025] The merging of the combined contents corresponding to each tag information to obtain the merged image includes:
[0026] The combined content filtered by the target tag information and the combined content corresponding to other tag information in the entire tag information except the target tag information are merged to generate the merged image.
[0027] In an optional embodiment, after merging the combined contents corresponding to all tag information to obtain the merged image, the method further includes:
[0028] In response to an upload operation on the preset image content, the preset image content is combined with sub-image contents corresponding to the corresponding tag information in the at least two images, and the combined content corresponding to the corresponding tag information is updated.
[0029] In an optional embodiment, merging sub-image contents corresponding to the same label information in the at least two images to obtain a merged image includes:
[0030] sorting sub-image contents corresponding to the same tag information in the at least two images according to the writing time of the at least two images in the preset album;
[0031] The sorted sub-images corresponding to the same tag information are merged to obtain the merged image.
[0032] In an optional embodiment, after merging the sub-image contents corresponding to the same label information in the at least two images to obtain a merged image, the method further includes:
[0033] Displaying prompt information on a graphical user interface, wherein the prompt information is used to indicate that the merged image is displayed when a selection operation is inputted with respect to the prompt information;
[0034] In response to a selection operation on the prompt information, the merged image is displayed on the graphical user interface.
[0035] In an optional embodiment, the graphical user interface further displays a cancel control; and the method further comprises:
[0036] In response to a selection operation on the cancel control, the display of the merged image is canceled.
[0037] In a second aspect, an embodiment of the present application further provides an image processing device, comprising:
[0038] an identification module, configured to respond to an image sharing instruction in a target application, perform content identification on each of at least two images to be shared in the target application, and obtain at least one tag information of each image and sub-image content corresponding to each tag information;
[0039] a merging module, configured to merge sub-image contents corresponding to the same label information in the at least two images to obtain a merged image;
[0040] The sending module is configured to respond to a confirmation sharing instruction for the merged image and send the merged image.
[0041] In an optional embodiment, the device further comprises:
[0042] A judging module, configured to judge whether the latest image written into the preset album is an image for the target application;
[0043] a monitoring module configured to monitor the preset album if the most recently written image is an image for the target application, and to cyclically monitor the preset album if the most recently written image is updated and the updated image is an image for the target application until a preset monitoring stop condition is met;
[0044] Determine that the monitored images for the target application are the at least two images to be shared.
[0045] In an optional embodiment, the monitoring module is specifically configured to:
[0046] If the latest written image is updated and the updated image is an image for the target application, determining whether a writing time interval between the updated image and the latest written image exceeds a preset time interval;
[0047] If the writing time interval between the updated image and the latest written image does not exceed the preset time interval, the preset album is monitored cyclically until the preset monitoring stop condition is met.
[0048] In an optional embodiment, the device further comprises:
[0049] a screening module, configured to screen out, from a preset album, first images that meet a preset time range corresponding to a startup time of the target application, based on writing time tags of images in the preset album;
[0050] The judging module is further configured to judge whether the first image is an image for the target application;
[0051] A determination module is configured to determine that at least two second images are the at least two images if at least two second images in the first image are images for the target application and the at least two second images are continuous images in the preset album.
[0052] In an optional implementation manner, the merging module is specifically configured to:
[0053] Combining sub-image contents corresponding to the same tag information in the at least two images to obtain combined content corresponding to each tag information;
[0054] The combined contents corresponding to all the tag information are merged to obtain the merged image.
[0055] In an optional embodiment, the screening module is further used to:
[0056] Filtering the combined content corresponding to the target tag information with duplicate content to obtain the combined content after filtering the target tag information;
[0057] The merging module is specifically used for:
[0058] The combined content filtered by the target tag information and the combined content corresponding to other tag information in the entire tag information except the target tag information are merged to generate the merged image.
[0059] In an optional implementation manner, the merging module is further configured to:
[0060] In response to an upload operation on the preset image content, the preset image content is combined with sub-image contents corresponding to the corresponding tag information in the at least two images, and the combined content corresponding to the corresponding tag information is updated.
[0061] In an optional implementation manner, the merging module is specifically configured to:
[0062] sorting sub-image contents corresponding to the same tag information in the at least two images according to the writing time of the at least two images in the preset album;
[0063] The sorted sub-images corresponding to the same tag information are merged to obtain the merged image.
[0064] In an optional embodiment, the device further comprises:
[0065] A display module, configured to display prompt information on a graphical user interface, wherein the prompt information is used to indicate that the merged image is displayed when a selection operation is inputted with respect to the prompt information;
[0066] In response to a selection operation on the prompt information, the merged image is displayed on the graphical user interface.
[0067] In an optional embodiment, the graphical user interface further displays a save control; the device further comprises:
[0068] A saving module is configured to save the merged image to a preset path in response to a selection operation on the save control.
[0069] In an optional embodiment, the graphical user interface further displays a cancel control; and the display module is further configured to:
[0070] In response to a selection operation on the cancel control, the display of the merged image is canceled.
[0071] In a third aspect, an embodiment of the present application further provides an electronic device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory through the bus, and the processor executes the machine-readable instructions to perform the image processing method described in any one of the first aspects.
[0072] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the image processing method described in any one of the first aspects is executed.
[0073] The image processing method, apparatus, device, and storage medium provided in this embodiment include: responding to an image sharing instruction in a target application, performing content recognition on each of at least two images to be shared in the target application, obtaining at least one tag information of each image and the sub-image content corresponding to each tag information, merging the sub-image content corresponding to the same tag information in at least two images to obtain a merged image, and sending the merged image in response to a confirmation sharing instruction for the merged image. In this application, by performing content recognition on an image to obtain the tag information of the image, merging the sub-image content according to the tag information of the image, and then sending the merged image, centralized information classification is achieved. Compared with the existing technology, it avoids sharing and disseminating a large number of images at a time, which is conducive to image sharing and dissemination, and provides a good user experience.
[0074] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0076] Figure 1 Schematic diagram of the image processing method provided in this embodiment Figure 1 ;
[0077] Figure 2 Schematic diagram of the image merging process provided in the embodiment of the present application Figure 1 ;
[0078] Figure 3 Schematic diagram of the image processing method provided in this embodiment Figure 2 ;
[0079] Figure 4 Schematic diagram of the image processing method provided in this embodiment Figure 3 ;
[0080] Figure 5 Schematic diagram of the image processing method provided in this embodiment Figure 4 ;
[0081] Figure 6 Schematic diagram of the image processing method provided in this embodiment Figure 5 ;
[0082] Figure 7 Schematic diagram of the image merging process provided in the embodiment of the present application Figure 2 ;
[0083] Figure 8 Schematic diagram of the image processing method provided in this embodiment Figure 6 ;
[0084] Figure 9 A schematic diagram of a graphical user interface provided in this embodiment;
[0085] Figure 10 Schematic diagram of the image processing method provided in this embodiment Figure 7 ;
[0086] Figure 11 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;
[0087] Figure 12A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0088] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.
[0089] In the transaction scenario for game characters, since there are many complex classifications of game characters, the screenshots contain a lot of information, and there are often many screenshots of game characters, there are certain difficulties in sharing and disseminating these screenshots, and the information contained in these screenshots is relatively scattered, and the user experience is not good. Based on this, the present application provides an image processing method, which obtains the label information of the image by performing content recognition on the image, merges the sub-image content according to the label information of the image, and then sends the merged image, thereby realizing centralized classification of information. Compared with the existing technology, it avoids sharing and disseminating a large number of images at a time, which is conducive to image sharing and dissemination, and provides a good user experience.
[0090] The image processing method provided by this application is described in detail below with reference to several specific embodiments.
[0091] Figure 1 Schematic diagram of the image processing method provided in this embodiment Figure 1 The execution subject of this embodiment may be an electronic device, such as a mobile phone, a tablet computer, a laptop computer, a game console, etc., and this embodiment does not specifically limit this.
[0092] like Figure 1 As shown, the method includes:
[0093] S101 , in response to an image sharing instruction in a target application, performing content recognition on each of at least two images to be shared in the target application to obtain at least one tag information of each image and sub-image content corresponding to each tag information.
[0094] The application scenario of one of the embodiments of the present application may be a transaction image sharing scenario or a video image sharing scenario. Accordingly, the target application may be a transaction application or a video application. For example, the transaction application may be a game transaction application or a shopping transaction application.
[0095] Taking the game trading application as an example, download and install any game trading application on the electronic device. Through the game trading application, you can purchase game equipment, game accounts, game characters, etc. During the use of the game trading application, if the user wants to share some game trading images, such as images containing game equipment information, images containing game account information, and images containing game character information, the game trading images can be saved. Among them, the game trading application provides a quick save option. By clicking the quick save option, you can save the currently displayed game transaction image, and you can also take a screenshot and save the currently displayed game transaction image.
[0096] The target application may provide an image sharing control. If the user is browsing related content within the target application, in order to share the image, the user can enter an image sharing instruction for the image sharing control. The image sharing instruction can be implemented through a touch operation on the image sharing control, such as any one of a click operation, a long press operation, and a double-click operation.
[0097] The electronic device responds to an image sharing instruction in a target application, performs content recognition on each of at least two images to be shared in the target application, and obtains at least one tag information of each image and the sub-image content corresponding to each tag information, wherein the at least two images to be shared may be images for the target application that the user has saved to a preset album during browsing, such as game transaction images.
[0098] Among them, the label information of the image is used to indicate the type of image content contained in the image. The label information includes but is not limited to: basic information of the character, attribute strength, appearance, item props, etc. The specific information about at least one label can be determined according to the game application, and different game applications may have different label information.
[0099] It should be noted that for the target application, multiple label information can be pre-set, and each label information has a label feature. During the image content recognition process, feature recognition is performed on the image content to obtain the label feature of the image content, and then feature matching is performed based on the label feature of the image content and the label feature of each label information to determine the label information of the image content.
[0100] S102: Merge sub-image contents corresponding to the same label information in at least two images to obtain a merged image.
[0101] The sub-image contents corresponding to the same label information in at least two images are merged to obtain a merged image, wherein the merged image may include each label information and the sub-image content corresponding to each label information. That is, the sub-image contents belonging to the same label information in at least two images are merged together, wherein the label information of the image may be the title information of the title bar in the image.
[0102] In an optional embodiment, merging sub-image contents corresponding to the same label information in at least two images to obtain a merged image includes:
[0103] The sub-image contents corresponding to the same tag information in at least two images are combined to obtain the combined content corresponding to each tag information; and the combined contents corresponding to all the tag information are merged to obtain a merged image.
[0104] The sub-image contents corresponding to the same tag information in at least two images are combined to obtain the combined content corresponding to each tag information. The combined content corresponding to all tag information is then merged to obtain a merged image. In other words, the merged image includes the combined content corresponding to each tag information. The merged image may also include each tag information. Each tag information and the corresponding combined content may be displayed in a preset display mode. For example, each tag information may be displayed as a title above the corresponding combined content. This helps users clearly view the content of the merged image.
[0105] Figure 2 Schematic diagram of the image merging process provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, at least two images include: Figure 1 ,cut Figure 2 ,cut Figure 3 ...screenshot n, screenshot Figure 1 To screenshot n, content recognition is performed respectively to obtain the screenshot Figure 1 At least one tag information of screenshot n, screenshot Figure 1 To screenshot n, each of them includes sub-image contents corresponding to label information a, label information b, label information c, and label information d. Figure 1 Combine the sub-image contents corresponding to the label information a in the screenshot n, and Figure 1 Combine the sub-image contents corresponding to the label information b in the screenshot n and Figure 1 Combine the image content corresponding to the label information c in the screenshot n and Figure 1The image contents corresponding to the label information d in the screenshot n are combined to obtain set a, set b, set c, and set d, which respectively represent the combined contents corresponding to the label information a, the combined contents corresponding to the label information b, the combined contents corresponding to the label information c, and the combined contents corresponding to the label information d. Then, the combined contents corresponding to each label information are merged to obtain a merged image (i.e., the long image obtained after the merger). The merged image includes set a, set b, set c, and set d.
[0106] In an optional embodiment, after merging the combined contents corresponding to all the tag information to obtain a merged image, the method further includes:
[0107] In response to an upload operation on the preset image content, the preset image content is combined with sub-image contents corresponding to corresponding tag information in at least two images, and the combined content corresponding to the corresponding tag information is updated.
[0108] In some cases, after obtaining the merged image, if some content may be missing in the merged image, an upload operation of the preset image content can be input according to actual needs, wherein the graphical user interface can provide an upload control, and the upload operation can be, for example, a click operation, a long press operation, or a double-click operation on the upload control. The preset image content can be image content that has been pre-saved locally, and the content is not in the merged image.
[0109] The electronic device responds to an upload operation on preset image content, uploads the preset image content, and combines the preset image content with sub-image content corresponding to corresponding tag information in at least two images, and updates the combined content corresponding to the corresponding tag information, wherein the corresponding tag information can be tag information of the preset image content. In one implementation, content recognition is performed on the preset image content to obtain tag information of the preset image content, and then the preset image content is combined with sub-image content corresponding to the tag information in at least two images, and the combined content corresponding to the tag information is updated.
[0110] Then, the combined content corresponding to the updated tag information and the combined content corresponding to other tag information in all tag information except the tag information can be merged to obtain an updated merged image. The updated merged image has more preset image content than the original merged image.
[0111] S103 : Respond to the confirmation sharing instruction of the merged image and send the merged image.
[0112] The user can enter a confirmation sharing instruction for the merged image, which can be a recipient selection instruction. That is, after the user selects the recipient to receive the merged image, the electronic device responds to the confirmation sharing instruction and sends the merged image to the recipient. The recipient can be an electronic device with which the user has established a communication connection, and the merged image can be sent to the recipient via Bluetooth or a network.
[0113] In the image processing method of this embodiment, in response to an image sharing instruction in a target application, content recognition is performed on each of at least two images to be shared in the target application to obtain at least one tag information for each image and the sub-image content corresponding to each tag information. The sub-image content corresponding to the same tag information in the at least two images is merged to obtain a merged image. In response to a confirmation sharing instruction for the merged image, the merged image is sent. In this application, by performing content recognition on the image to obtain the image's tag information, merging the sub-image content based on the image's tag information, and then sending the merged image, centralized information classification is achieved. Compared with the existing technology, this avoids sharing and disseminating multiple images at once, facilitates image sharing and dissemination, and provides a good user experience.
[0114] In an optional embodiment, before step S101, Figure 3 The illustrated method determines at least two images to be shared for a target application.
[0115] Figure 3 Schematic diagram of the image processing method provided in this embodiment Figure 2 ,like Figure 3 As shown, in response to an image sharing instruction in a target application, before performing content recognition on each of at least two images to be shared in the target application and obtaining at least one tag information of each image and sub-image content corresponding to each tag information, the method further includes:
[0116] S201: Determine whether the latest image written into the preset album is an image for the target application.
[0117] The preset album may be a built-in album of the electronic device. If the user wants to share some images for the target application, the user may take screenshots of the images for the target application and save them in the preset album.
[0118] In actual practice, the electronic device can monitor the preset album in real time and determine whether the most recently written image in the preset album is an image for the target application. The image for the target application may have identification information of the target application. When judging the image, it can match whether the most recently written image in the preset album has the identification information. If it has the identification information, it means that the most recently written image is an image for the target application. If it does not have the identification information, it means that the most recently written image is not an image for the target application. For example, if the target application is a game transaction application, the identification information of the target application may include: game equipment information, game account information, game character information, etc.
[0119] Of course, the image for the target application may also have certain image features. Then, when judging the image, the feature matching of the latest image written in the preset album and the image for the target application may be performed to determine whether the latest image written is the image for the target application.
[0120] S202. If the latest written image is an image for the target application, the preset album is monitored; if the latest written image is updated and the updated image is an image for the target application, the preset album is monitored cyclically until the preset monitoring stop condition is met.
[0121] If it is determined that the most recently written image is an image for the target application, the preset album can also be monitored to determine whether the most recently written image has been updated, and to determine whether the updated image is an image for the target application. If the monitoring determines that the most recently written image is updated, and the updated image is an image for the target application, the preset album is monitored in a loop until the preset monitoring stop condition is met, wherein the preset monitoring stop condition may include: the most recently written image is not an image for the target application, and / or the number of monitored images for the target application reaches a preset threshold.
[0122] That is to say, if the most recently written image is updated, the updated image will be used as the most recently written image. If the updated image is an image for the target application, continue to determine whether the most recently written image is updated. Repeat this step until the most recently written image is not an image for the target application or the number of monitored images for the target application reaches a preset threshold, then stop monitoring.
[0123] S203: Determine that the monitored images for the target application are at least two images to be shared.
[0124] Before determining that the preset monitoring stop condition is met, the monitored images for the target application are at least two images to be shared, wherein the monitored images for the target application include but are not limited to two.
[0125] In the image processing method of this embodiment, a determination is made as to whether the most recently written image in a preset album is an image for a target application. If so, the preset album is monitored. If the most recently written image is updated and the updated image is an image for the target application, the preset album is monitored in a loop until a preset monitoring stop condition is met, and the monitored images are determined to be at least two images to be shared. Thus, when the most recently written image is an image for the target application, the preset album is monitored in a loop to determine the images for the target application to be merged, enabling convenient and efficient determination of the images to be merged.
[0126] In an optional embodiment, in the process of determining at least two images to be shared, the writing time interval between the images can also be taken into consideration. Figure 4 Provide explanation.
[0127] Figure 4 Schematic diagram of the image processing method provided in this embodiment Figure 3 ,like Figure 4 As shown, if the latest written image is an image for the target application, the preset album is monitored. If the latest written image is updated and the updated image is an image for the target application, the preset album is monitored cyclically until the preset monitoring stop condition is met, including:
[0128] S301: If the latest written image is updated and the updated image is an image for a target application, determine whether a writing time interval between the updated image and the latest written image exceeds a preset time interval.
[0129] If it is determined that the latest written image is updated and the updated image is an image for the target application, then determine whether the writing time interval between the updated image and the latest written image exceeds the preset time interval, wherein the time when the updated image is written to the preset album is the writing time of the updated image, and the time when the latest written image is written to the preset album is the writing time of the latest written image. Calculate the time difference between the writing time of the updated image and the writing time of the latest written image, that is, the writing time interval.
[0130] S302: If the writing time interval between the updated image and the most recently written image does not exceed the preset time interval, the preset album is cyclically monitored until a preset monitoring stop condition is met.
[0131] If the writing time interval does not exceed the preset time interval, it means that the user has continuously saved images for the target application, and the preset album is then monitored in a loop until the preset monitoring stop condition is met. When performing the loop monitoring, the updated image is used as the latest written image. The preset monitoring stop condition may include: the latest written image is not an image for the target application, the number of monitored images for the target application reaches a preset threshold, and the writing time interval exceeds at least one of the preset time intervals.
[0132] If the writing time interval exceeds the preset time interval, it means that the two images are not saved continuously, and the preset album will not be monitored any further. This is because the images saved continuously by the user may be images to be shared and disseminated simultaneously, and the images saved discontinuously may not be images to be shared and disseminated simultaneously. For example, continuously taking screenshots of image 1 and image 2 may mean that you want to share image 1 and image 2 with friend 1. In this case, image 1 and image 2 can be merged and shared; if you take a screenshot of image 1 at the first time, you want to share image 1 with friend 1, and take a screenshot of image 2 at the second time, you want to share image 2 with friend 2. Among them, the writing time interval between the first time and the second time is greater than the preset time interval, that is, the saving operation is discontinuous. In this case, there is no need to merge and share image 1 and image 2.
[0133] In the image processing method of this embodiment, if the most recently written image is updated and the updated image is for the target application, the method determines whether the writing interval between the updated image and the most recently written image is within a preset time range. If so, the preset album is monitored in a loop until a preset monitoring stop condition is met. By considering the writing interval between images based on the continuity of the save operation, it is possible to selectively merge consecutively saved images, thereby improving the user experience.
[0134] In an optional embodiment, before step S101, Figure 5 The illustrated method determines at least two images to be shared in the target application.
[0135] Figure 5 Schematic diagram of the image processing method provided in this embodiment Figure 4 ,like Figure 5 As shown, in response to an image sharing instruction in a target application, before performing content recognition on each of at least two images to be shared in the target application and obtaining at least one tag information of each image and sub-image content corresponding to each tag information, the method further includes:
[0136] S401 : Filtering out, from a preset album, first images that meet a preset time range corresponding to a startup time of a target application according to writing time tags of images in the preset album.
[0137] Among them, multiple images are stored in the preset album, each image has a writing time tag, and the writing time tag is used for the time when the image is written to the preset album. When the target application is in the startup state, the user can also save the image for the target application to the preset album.
[0138] When the target application is in the startup state, the first image that meets the preset time range corresponding to the startup time of the target application is filtered out from the preset album based on the write time tag of the image in the preset album, wherein the starting point of the preset time range can be less than or equal to the startup time of the target application, and the ending point of the preset time range can differ from the startup point by a preset time length.
[0139] S402: Determine whether the first image is an image for a target application.
[0140] S403: If there are at least two second images in the first image that are images for the target application, and the at least two second images are consecutive images in a preset album, determine that the at least two second images are at least two images to be shared.
[0141] According to the writing time tags of the images in the preset album, the first image in the preset time range corresponding to the startup time of the target application is filtered out from the preset album, and then it is determined whether the first image is an image for the target application. If there are at least two second images in the first image that are images for the target application, and at least two second images are continuous images in the preset album, then it is determined that the at least two second images are at least two images.
[0142] Among them, at least two second images are continuous images in the preset album, which means that the saving operations for at least two second images are continuous. This is because the images saved continuously by the user may be images to be shared and disseminated simultaneously, and non-continuous saving operations may not indicate images to be shared and disseminated simultaneously.
[0143] In this embodiment, the image processing method selects first images from a preset album that fall within a preset time range corresponding to the launch time of a target application based on the write time tags of the images in the preset album. A determination is then made as to whether the first images are images for the target application. If at least two second images within the first images are images for the target application, and if the at least two second images are consecutive images in the preset album, the at least two second images are determined to be at least two images. By selecting images based on the write time tags and the continuity of the save operations, consecutively saved images can be selectively merged, improving the user experience.
[0144] In an optional implementation, before merging the combined contents corresponding to each tag information, duplicate contents may be screened. Figure 6 Provide explanation.
[0145] Figure 6 Schematic diagram of the image processing method provided in this embodiment Figure 5 ,like Figure 6 As shown, before merging the combined contents corresponding to each tag information to obtain the merged image, the method further includes:
[0146] S501: Filter the combined content corresponding to the target tag information with duplicate content to obtain the combined content after the target tag information is filtered.
[0147] Among them, the target tag information is the tag information of the combined content with repeated content. In some cases, the user repeatedly saves the same image content to different screenshot images when taking screenshots, so the combined content corresponding to the target tag information with repeated content is filtered, and the repeated content in the combined content corresponding to the target tag information is removed to obtain the combined content after the target tag information is filtered. For example, if the combined content includes two identical a sets, one a set is deleted.
[0148] Accordingly, the combined content corresponding to each tag information is merged to obtain a merged image, including:
[0149] S502: Merge the combined content filtered by the target tag information and the combined content corresponding to other tag information except the target tag information in all the tag information to generate a merged image.
[0150] After filtering out duplicate content within the target tag's combined content, the combined content after the target tag's selection and the combined content corresponding to all tags other than the target tag are merged to generate a merged image. This merged image includes the combined content after the target tag's selection and the combined content corresponding to all other tags. This streamlined image improves user experience and communication quality for game transactions, thereby attracting new users, building word-of-mouth, and improving user retention.
[0151] Figure 7 Schematic diagram of the image merging process provided in the embodiment of the present application Figure 2 ,like Figure 7As shown, image 1 includes: sub-image content a1 corresponding to label information a, sub-image content b1 corresponding to label information b, and sub-image content c1 corresponding to label information c; image 2 includes: sub-image content c1 corresponding to label information c, and sub-image content a2 corresponding to label information a. The sub-image contents corresponding to the same label information in image 1 and image 2 are combined to obtain the combined content corresponding to each label information, that is, the combined content corresponding to label information a is a1 and a2, the combined content corresponding to label information b is b1 and b2, and the combined content corresponding to label information c is c1 and c1.
[0152] To simplify the merged image, the combination contents corresponding to the label information c are filtered, and one of them, c1, is removed. The combination content after filtering the label information c is c1. The generated merged image includes: the combination contents a1 and a2 corresponding to the label information a, the combination contents b1 and b2 corresponding to the label information b, and the combination content c1 corresponding to the label information c.
[0153] In an optional embodiment, after obtaining the merged image, a prompt message may be displayed to indicate that the merged image is displayed when a selection operation is input for the prompt message. Figure 8 Provide explanation.
[0154] Figure 8 Schematic diagram of the image processing method provided in this embodiment Figure 6 ,like Figure 8 As shown, after merging the sub-image contents corresponding to the same label information in the at least two images to obtain a merged image, the method further includes:
[0155] S601: Display prompt information on a graphical user interface.
[0156] S602: In response to a selection operation on the prompt information, display the merged image on the graphical user interface.
[0157] Among them, after obtaining the merged image, a prompt information can also be displayed on the graphical user interface. The prompt information is used to indicate that the merged image is displayed when a selection operation is input for the prompt information. The user can input a selection operation for the prompt information, and the electronic device responds to the selection operation for the prompt information and displays the merged image on the graphical user interface, such as displaying the merged image in the entire area, right area, and left area of the graphical user interface. This embodiment does not specifically limit the display area of the merged image.
[0158] In an optional embodiment, the graphical user interface further displays a save control; the method further comprises:
[0159] In response to a selection operation on a save control, the merged image is saved to a preset path.
[0160] The graphical user interface also displays a save control, which the user can select. The device responds to the selection operation on the save control and saves the merged image to a preset path. The selection operation can be, for example, a click operation.
[0161] In an optional embodiment, the graphical user interface further displays a cancel control; and the method further comprises:
[0162] In response to a selection operation on a cancel control, the merged image is canceled from being displayed.
[0163] The graphical user interface further displays a cancel control, which can be selected by the user. The device responds to the selection operation on the cancel control and cancels the display of the merged image. The selection operation can be, for example, a click operation.
[0164] Figure 9 A schematic diagram of a graphical user interface provided in this embodiment, such as Figure 9 As shown, the graphical user interface displays a prompt pop-up window, which includes: prompt information, such as "click to view", and a prompt picture is also displayed at the prompt information, wherein the user clicks the prompt information to display a merged image on the right side of the graphical user interface, and the merged image may include multiple label information and the combined content corresponding to each label information. Multiple label information may include, for example: basic character information, attribute strength, appearance, and item props.
[0165] The pop-up window also includes: a save control and a cancel control. Click the save control to save the merged image to a preset path, and click the cancel control to cancel the display of the merged image.
[0166] In addition, the pop-up window also displays a prompt for generating a merged image, such as "The platform has detected that you have multiple screenshots and has generated a long report image for you."
[0167] In the image processing method of this embodiment, a prompt message is displayed on a graphical user interface, and in response to a selection operation on the prompt message, a merged image is displayed on the graphical user interface. Displaying the merged image through the interface is streamlined and neat, providing a good user experience and facilitating image sharing and dissemination.
[0168] Figure 10 Schematic diagram of the image processing method provided in this embodiment Figure 7 ,like Figure 10 As shown, merging sub-image contents corresponding to the same label information in at least two images to obtain a merged image includes:
[0169] S701: Sort sub-image contents corresponding to identical tag information in at least two images according to the writing time of the at least two images in a preset album.
[0170] The writing time of each image in the preset album can be the saving time of each image. According to the writing time of at least two images in the preset album, the sub-image contents corresponding to the same tag information in at least two images are sorted, wherein, the earlier the image writing time is, the higher the sub-image contents corresponding to the same tag information can be sorted, and the later the image writing time is, the higher the sub-image contents corresponding to the same tag information can be sorted. In this way, the user can view the sub-image contents corresponding to the same tag information in order from early to late according to the image writing time. For example, if the writing time of image 1 is earlier than the writing time of image 2, the sub-image content corresponding to tag information a in image 1 is sorted before the sub-image content corresponding to tag information a in image 2.
[0171] Alternatively, the earlier the image is written, the later the sub-image content corresponding to the same label information can be sorted; the later the image is written, the earlier the sub-image content corresponding to the same label information can be sorted. In this way, users can prioritize viewing the sub-image content of the most recently written image. For example, if the writing time of image 1 is earlier than the writing time of image 2, the sub-image content corresponding to label information a in image 2 will be sorted before the sub-image content corresponding to label information a in image 1.
[0172] S702: Merge the sorted sub-images corresponding to the same tag information to obtain a merged image.
[0173] After sorting the sub-image contents corresponding to the same label information in at least two images, the sorted sub-image contents corresponding to the same label information in at least two images are merged to obtain a merged image, wherein the merged image includes the sorted sub-image contents corresponding to the same label information.
[0174] In this embodiment of the image processing method, the sub-images corresponding to the same tag information in at least two images are sorted based on the time at which the at least two images were written into a preset album. The sorted sub-images corresponding to the same tag information are then merged to produce a merged image. The sub-images in the merged image are arranged based on the time at which the images were written, optimizing the display of the merged image.
[0175] Figure 11 This is a structural schematic diagram of an image processing device provided in an embodiment of the present application, which can be integrated into an electronic device.
[0176] like Figure 11 As shown, the device includes:
[0177] The recognition module 801 is configured to respond to an image sharing instruction in a target application, perform content recognition on each of at least two images to be shared in the target application, and obtain at least one tag information of each image and sub-image content corresponding to each tag information;
[0178] A merging module 802 is configured to merge sub-image contents corresponding to the same label information in at least two images to obtain a merged image;
[0179] The sending module 803 is configured to respond to a confirmation sharing instruction for the merged image and send the merged image.
[0180] In an optional embodiment, the device further comprises:
[0181] A determination module 804 is configured to determine whether the latest image written into the preset album is an image for the target application;
[0182] Monitoring module 805, configured to monitor a preset album if the most recently written image is an image for the target application, and to cyclically monitor the preset album if the most recently written image is updated and the updated image is an image for the target application, until a preset monitoring stop condition is met;
[0183] It is determined that the monitored images for the target application are at least two images to be shared.
[0184] In an optional implementation, the monitoring module 805 is specifically configured to:
[0185] If the most recently written image is updated, and the updated image is an image for the target application, determining whether a writing time interval between the updated image and the most recently written image exceeds a preset time interval;
[0186] If the writing time interval between the updated image and the most recently written image does not exceed the preset time interval, the preset album is monitored cyclically until a preset monitoring stop condition is met.
[0187] In an optional embodiment, the device further comprises:
[0188] A screening module 806 is configured to screen out first images that meet a preset time range corresponding to the start time of the target application from the preset album based on the writing time tags of the images in the preset album;
[0189] The judging module 804 is further configured to judge whether the first image is an image for a target application;
[0190] The determination module 807 is configured to determine that at least two second images are at least two images to be shared if at least two second images in the first image are images for a target application and the at least two second images are consecutive images in a preset album.
[0191] In an optional implementation, the merging module 802 is specifically configured to:
[0192] Combining sub-image contents corresponding to the same label information in at least two images to obtain combined content corresponding to each label information;
[0193] The combined contents corresponding to all the label information are merged to obtain a merged image.
[0194] In an optional embodiment, the screening module 806 is further configured to:
[0195] Filtering the combined content corresponding to the target tag information with duplicate content to obtain the combined content after the target tag information is filtered;
[0196] The merging module 802 is specifically configured to:
[0197] The combined content after the target tag information is filtered and the combined content corresponding to other tag information except the target tag information in all the tag information are merged to generate a merged image.
[0198] In an optional implementation, the merging module 802 is further configured to:
[0199] In response to an upload operation on the preset image content, the preset image content is combined with sub-image contents corresponding to corresponding tag information in at least two images, and the combined content corresponding to the corresponding tag information is updated.
[0200] In an optional implementation, the merging module 802 is specifically configured to:
[0201] sorting sub-image contents corresponding to identical tag information in the at least two images according to the writing time of the at least two images in the preset album;
[0202] The sorted sub-images corresponding to the same label information are merged to obtain a merged image.
[0203] In an optional embodiment, the device further comprises:
[0204] A display module 808 is configured to display prompt information on a graphical user interface, where the prompt information is used to indicate that a merged image is displayed when a selection operation is inputted with respect to the prompt information;
[0205] In response to a selection operation on the prompt information, the merged image is displayed on the graphical user interface.
[0206] In an optional embodiment, the graphical user interface further displays a save control; the device further comprises:
[0207] The saving module 809 is configured to save the merged image to a preset path in response to a selection operation on the save control.
[0208] In an optional embodiment, the graphical user interface further displays: a cancel control; and the display module 808 is further configured to:
[0209] In response to a selection operation on a cancel control, the merged image is canceled from being displayed.
[0210] In the image processing device of this embodiment, the recognition module is configured to respond to an image sharing instruction in a target application by performing content recognition on each of at least two images to be shared in the target application, obtaining at least one tag information for each image and the sub-image content corresponding to each tag information. The merging module is configured to merge the sub-image content corresponding to the same tag information in at least two images to obtain a merged image. The sending module is configured to respond to a confirmation sharing instruction for the merged image and send the merged image. By performing content recognition on the images to obtain image tag information, merging the sub-image content based on the image tag information, and then sending the merged image, centralized information classification is achieved. Compared with existing technologies, this avoids sharing and disseminating multiple images at once, facilitates image sharing and dissemination, and provides a better user experience.
[0211] Figure 12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 12 As shown, the device includes:
[0212] Processor 901, memory 902, and bus 903. Memory 902 stores machine-readable instructions executable by processor 901. When the electronic device is running, processor 901 communicates with memory 902 via bus 903. Processor 901 executes the machine-readable instructions to perform the following steps:
[0213] In response to an image sharing instruction in a target application, performing content recognition on each of at least two images to be shared in the target application to obtain at least one tag information of each image and sub-image content corresponding to each tag information;
[0214] Merging sub-image contents corresponding to the same label information in at least two images to obtain a merged image;
[0215] In response to the confirmation sharing instruction for the merged image, the merged image is sent.
[0216] In an optional implementation, the processor 901 is further configured to:
[0217] Determine whether the latest image written in the preset album is an image for the target application;
[0218] If the latest written image is an image for the target application, the preset album is monitored; if the latest written image is updated and the updated image is an image for the target application, the preset album is monitored cyclically until the preset monitoring stop condition is met;
[0219] It is determined that the monitored images for the target application are at least two images to be shared.
[0220] In an optional embodiment, when the processor 901 executes: if the most recently written image is an image for the target application, the preset album is monitored; if the most recently written image is updated and the updated image is an image for the target application, the preset album is cyclically monitored until a preset monitoring stop condition is met, specifically for:
[0221] If the most recently written image is updated, and the updated image is an image for the target application, determining whether a writing time interval between the updated image and the most recently written image exceeds a preset time interval;
[0222] If the writing time interval between the updated image and the most recently written image does not exceed the preset time interval, the preset album is monitored cyclically until a preset monitoring stop condition is met.
[0223] In an optional implementation, the processor 901 is further configured to:
[0224] Filtering, from the preset album according to the writing time tags of the images in the preset album, the first image that meets the preset time range corresponding to the startup time of the target application;
[0225] determining whether the first image is an image for a target application;
[0226] If there are at least two second images in the first image that are images for the target application, and the at least two second images are consecutive images in a preset album, then the at least two second images are determined to be at least two images to be shared.
[0227] In an optional embodiment, when the processor 901 merges the sub-image contents corresponding to the same label information in at least two images to obtain a merged image, it is specifically configured to:
[0228] Combining sub-image contents corresponding to the same label information in at least two images to obtain combined content corresponding to each label information;
[0229] The combined contents corresponding to all the label information are merged to obtain a merged image.
[0230] In an optional implementation, the processor 901 is further configured to:
[0231] Filtering the combined content corresponding to the target tag information with duplicate content to obtain the combined content after the target tag information is filtered;
[0232] Merge the combined content corresponding to each tag information to obtain a merged image, including:
[0233] The combined content after the target tag information is filtered and the combined content corresponding to other tag information except the target tag information in all the tag information are merged to generate a merged image.
[0234] In an optional implementation, the processor 901 is further configured to:
[0235] In response to an upload operation on the preset image content, the preset image content is combined with sub-image contents corresponding to corresponding tag information in at least two images, and the combined content corresponding to the corresponding tag information is updated.
[0236] In an optional embodiment, when the processor 901 merges the sub-image contents corresponding to the same label information in at least two images to obtain a merged image, it is specifically configured to:
[0237] sorting sub-image contents corresponding to identical tag information in the at least two images according to the writing time of the at least two images in the preset album;
[0238] The sorted sub-images corresponding to the same label information are merged to obtain a merged image.
[0239] In an optional implementation, the processor 901 is further configured to:
[0240] Displaying a prompt message on the graphical user interface, where the prompt message is used to indicate that a merged image is displayed when a selection operation is inputted for the prompt message;
[0241] In response to a selection operation on the prompt information, the merged image is displayed on the graphical user interface.
[0242] In an optional embodiment, the graphical user interface further displays a cancel control; and the processor 901 is further configured to:
[0243] In response to a selection operation on a cancel control, the merged image is canceled from being displayed.
[0244] In the electronic device of this embodiment, in response to an image sharing instruction in a target application, content recognition is performed on each of at least two images to be shared in the target application to obtain at least one tag information for each image and the sub-image content corresponding to each tag information. The sub-image content corresponding to the same tag information in the at least two images is merged to obtain a merged image. In response to a confirmation sharing instruction for the merged image, the merged image is sent. By performing content recognition on the images to obtain image tag information, merging the sub-image content based on the image tag information, and then sending the merged image, information is centralized and categorized. Compared with existing technologies, this avoids the sharing and dissemination of multiple images at once, facilitates image sharing and dissemination, and provides a better user experience.
[0245] An embodiment of the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the processor performs the following steps:
[0246] In response to an image sharing instruction in a target application, performing content recognition on each of at least two images to be shared in the target application to obtain at least one tag information of each image and sub-image content corresponding to each tag information;
[0247] Merging sub-image contents corresponding to the same label information in at least two images to obtain a merged image;
[0248] In response to the confirmation sharing instruction for the merged image, the merged image is sent.
[0249] In an optional embodiment, the processor is further configured to:
[0250] Determine whether the latest image written in the preset album is an image for the target application;
[0251] If the latest written image is an image for the target application, the preset album is monitored; if the latest written image is updated and the updated image is an image for the target application, the preset album is monitored cyclically until the preset monitoring stop condition is met;
[0252] It is determined that the monitored images for the target application are at least two images to be shared.
[0253] In an optional embodiment, the processor monitors the preset album if the latest written image is an image for the target application; if the latest written image is updated and the updated image is an image for the target application, the preset album is cyclically monitored until a preset monitoring stop condition is met, specifically for:
[0254] If the most recently written image is updated, and the updated image is an image for the target application, determining whether a writing time interval between the updated image and the most recently written image exceeds a preset time interval;
[0255] If the writing time interval between the updated image and the most recently written image does not exceed the preset time interval, the preset album is monitored cyclically until a preset monitoring stop condition is met.
[0256] In an optional embodiment, the processor is further configured to:
[0257] Filtering, from the preset album according to the writing time tags of the images in the preset album, the first image that meets the preset time range corresponding to the startup time of the target application;
[0258] determining whether the first image is an image for a target application;
[0259] If there are at least two second images in the first image that are images for the target application, and the at least two second images are consecutive images in a preset album, then the at least two second images are determined to be at least two images to be shared.
[0260] In an optional embodiment, when the processor merges the sub-image contents corresponding to the same label information in at least two images to obtain a merged image, the processor is specifically configured to:
[0261] Combining sub-image contents corresponding to the same label information in at least two images to obtain combined content corresponding to each label information;
[0262] The combined contents corresponding to all the label information are merged to obtain a merged image.
[0263] In an optional embodiment, the processor is further configured to:
[0264] Filtering the combined content corresponding to the target tag information with duplicate content to obtain the combined content after the target tag information is filtered;
[0265] Merge the combined content corresponding to each tag information to obtain a merged image, including:
[0266] The combined content after the target tag information is filtered and the combined content corresponding to other tag information except the target tag information in all the tag information are merged to generate a merged image.
[0267] In an optional embodiment, the processor is further configured to:
[0268] In response to an upload operation on the preset image content, the preset image content is combined with sub-image contents corresponding to corresponding tag information in at least two images, and the combined content corresponding to the corresponding tag information is updated.
[0269] In an optional embodiment, when the processor merges the sub-image contents corresponding to the same label information in at least two images to obtain a merged image, the processor is specifically configured to:
[0270] sorting sub-image contents corresponding to identical tag information in the at least two images according to the writing time of the at least two images in the preset album;
[0271] The sorted sub-images corresponding to the same label information are merged to obtain a merged image.
[0272] In an optional embodiment, the processor is further configured to:
[0273] Displaying a prompt message on the graphical user interface, where the prompt message is used to indicate that a merged image is displayed when a selection operation is inputted for the prompt message;
[0274] In response to a selection operation on the prompt information, the merged image is displayed on the graphical user interface.
[0275] In an optional embodiment, the graphical user interface further displays: a cancel control; and the processor is further configured to:
[0276] In response to a selection operation on a cancel control, the merged image is canceled from being displayed.
[0277] In the above manner, the computer program is executed by the processor at runtime, responding to an image sharing instruction in the target application, performing content recognition on each of the at least two images to be shared in the target application, obtaining at least one tag information of each image and the sub-image content corresponding to each tag information, merging the sub-image content corresponding to the same tag information in the at least two images to obtain a merged image, and sending the merged image in response to a confirmation sharing instruction for the merged image. In the present application, by performing content recognition on the image to obtain the tag information of the image, merging the sub-image content according to the tag information of the image, and then sending the merged image, centralized information classification is achieved. Compared with the existing technology, this avoids sharing and disseminating multiple images at one time, facilitates image sharing and dissemination, and provides a good user experience.
[0278] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment and will not be repeated here.
[0279] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0280] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0281] In addition, each functional unit in the embodiments provided in the present application 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.
[0282] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0283] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0284] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present application, or make equivalent replacements for some of the technical features thereof. However, these modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. An image processing method, characterized in that: include: In response to an image sharing instruction in a target application, performing content recognition on each of at least two images to be shared in the target application to obtain at least one tag information of each image and sub-image content corresponding to each tag information; Merging sub-image contents corresponding to the same label information in the at least two images to obtain a merged image; In response to a confirmation sharing instruction for the merged image, sending the merged image; Before responding to the image sharing instruction in the target application and performing content recognition on each of the at least two images to be shared in the target application to obtain at least one tag information of each image and sub-image content corresponding to each tag information, the method further includes: Determine whether the latest image written in the preset album is an image for the target application; If the latest written image is an image for the target application, the preset album is monitored; if the latest written image is updated and the updated image is an image for the target application, the preset album is monitored cyclically until a preset monitoring stop condition is met; It is determined that the monitored images for the target application are the at least two images.
2. The method according to claim 1, characterized in that If the latest written image is an image for the target application, the preset album is monitored; if the latest written image is updated and the updated image is an image for the target application, the preset album is cyclically monitored until a preset monitoring stop condition is met, including: If the latest written image is updated and the updated image is an image for the target application, determining whether a writing time interval between the updated image and the latest written image exceeds a preset time interval; If the writing time interval between the updated image and the latest written image does not exceed the preset time interval, the preset album is monitored cyclically until the preset monitoring stop condition is met.
3. The method according to claim 1, characterized in that Merging the sub-image contents corresponding to the same label information in the at least two images to obtain a merged image includes: Combining sub-image contents corresponding to the same tag information in the at least two images to obtain combined content corresponding to each tag information; Merge the combined content corresponding to each tag information to obtain the merged image.
4. The method according to claim 3, characterized in that Before merging the combined contents corresponding to each tag information to obtain the merged image, the method further includes: Filtering the combined content corresponding to the target tag information with duplicate content to obtain the combined content after filtering the target tag information; The merging of the combined contents corresponding to each tag information to obtain the merged image includes: The combined content filtered by the target tag information and the combined content corresponding to other tag information except the target tag information in all the tag information are merged to generate the merged image.
5. The method according to claim 3, characterized in that After merging the combined contents corresponding to each tag information to obtain the merged image, the method further includes: In response to an upload operation on the preset image content, the preset image content is combined with sub-image contents corresponding to the corresponding tag information in the at least two images, and the combined content corresponding to the corresponding tag information is updated.
6. The method according to claim 1, characterized in that Merging the sub-image contents corresponding to the same label information in the at least two images to obtain a merged image includes: sorting sub-image contents corresponding to the same tag information in the at least two images according to the writing time of the at least two images in the preset album; The sorted sub-images corresponding to the same tag information are merged to obtain the merged image.
7. The method according to claim 1, characterized in that After merging the sub-image contents corresponding to the same label information in the at least two images to obtain a merged image, the method further includes: Displaying prompt information on a graphical user interface, wherein the prompt information is used to indicate that the merged image is displayed when a selection operation is inputted with respect to the prompt information; In response to a selection operation on the prompt information, the merged image is displayed on the graphical user interface.
8. The method according to claim 7, characterized in that The graphical user interface further displays a cancel control; the method further comprises: In response to a selection operation on the cancel control, the display of the merged image is canceled.
9. An image processing method, characterized in that: include: In response to an image sharing instruction in a target application, performing content recognition on each of at least two images to be shared in the target application to obtain at least one tag information of each image and sub-image content corresponding to each tag information; Merging sub-image contents corresponding to the same label information in the at least two images to obtain a merged image; In response to a confirmation sharing instruction for the merged image, sending the merged image; Before responding to the image sharing instruction in the target application and performing content recognition on each of the at least two images to be shared in the target application to obtain at least one tag information of each image and sub-image content corresponding to each tag information, the method further includes: Filtering, from a preset album according to writing time tags of images in the preset album, a first image that meets a preset time range corresponding to the startup time of the target application; determining whether the first image is an image for the target application; If there are at least two second images in the first image that are images for the target application, and the at least two second images are consecutive images in the preset album, then the at least two second images are determined to be the at least two images.
10. The method according to claim 9, characterized in that Merging the sub-image contents corresponding to the same label information in the at least two images to obtain a merged image includes: Combining sub-image contents corresponding to the same tag information in the at least two images to obtain combined content corresponding to each tag information; Merge the combined content corresponding to each tag information to obtain the merged image.
11. The method according to claim 10, characterized in that Before merging the combined contents corresponding to each tag information to obtain the merged image, the method further includes: Filtering the combined content corresponding to the target tag information with duplicate content to obtain the combined content after filtering the target tag information; The merging of the combined contents corresponding to each tag information to obtain the merged image includes: The combined content filtered by the target tag information and the combined content corresponding to other tag information except the target tag information in all the tag information are merged to generate the merged image.
12. The method according to claim 10, characterized in that After merging the combined contents corresponding to each tag information to obtain the merged image, the method further includes: In response to an upload operation on the preset image content, the preset image content is combined with sub-image contents corresponding to the corresponding tag information in the at least two images, and the combined content corresponding to the corresponding tag information is updated.
13. The method according to claim 9, characterized in that Merging the sub-image contents corresponding to the same label information in the at least two images to obtain a merged image includes: sorting sub-image contents corresponding to the same tag information in the at least two images according to the writing time of the at least two images in the preset album; The sorted sub-images corresponding to the same tag information are merged to obtain the merged image.
14. The method according to claim 9, characterized in that After merging the sub-image contents corresponding to the same label information in the at least two images to obtain a merged image, the method further includes: Displaying prompt information on a graphical user interface, wherein the prompt information is used to indicate that the merged image is displayed when a selection operation is inputted with respect to the prompt information; In response to a selection operation on the prompt information, the merged image is displayed on the graphical user interface.
15. The method according to claim 14, characterized in that The graphical user interface further displays a cancel control; the method further comprises: In response to a selection operation on the cancel control, the display of the merged image is canceled.
16. An image processing device, characterized in that: include: an identification module, configured to respond to an image sharing instruction in a target application, perform content identification on each of at least two images to be shared in the target application, and obtain at least one tag information of each image and sub-image content corresponding to each tag information; a merging module, configured to merge sub-image contents corresponding to the same label information in the at least two images to obtain a merged image; a sending module, configured to respond to a confirmation sharing instruction for the merged image and send the merged image; A judging module, configured to judge whether the latest image written into the preset album is an image for the target application; a monitoring module configured to monitor the preset album if the most recently written image is an image for the target application, and to cyclically monitor the preset album if the most recently written image is updated and the updated image is an image for the target application until a preset monitoring stop condition is met; A determination module is configured to determine that the monitored images for the target application are the at least two images.
17. An image processing device, characterized in that: include: an identification module, configured to respond to an image sharing instruction in a target application, perform content identification on each of at least two images to be shared in the target application, and obtain at least one tag information of each image and sub-image content corresponding to each tag information; a merging module, configured to merge sub-image contents corresponding to the same label information in the at least two images to obtain a merged image; a sending module, configured to respond to a confirmation sharing instruction for the merged image and send the merged image; a screening module, configured to screen out, from a preset album, first images that meet a preset time range corresponding to a startup time of the target application, based on writing time tags of images in the preset album; The judging module is further configured to judge whether the first image is an image for the target application; A determination module is configured to determine that at least two second images are the at least two images if at least two second images in the first image are images for the target application and the at least two second images are continuous images in the preset album.
18. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and the processor executes the machine-readable instructions to perform the image processing method according to any one of claims 1 to 15.
19. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the image processing method according to any one of claims 1 to 15 is executed.
Citation Information
Patent Citations
Live video data processing method and device, equipment and readable medium
CN114390368A