Image processing method, image processing device and electronic device
By identifying and automatically processing image defects and similar information, and generating recommended renderings, the problem of cumbersome and time-consuming image editing operations is solved, the image processing efficiency and display effect are improved, and the user needs are met.
Patent Information
- Application Number
- CN202110460599.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-04-27
AI Technical Summary
When using images, users often need to manually edit them multiple times to achieve the ideal effect, which makes the operation cumbersome and time-consuming, especially for unskilled users, the editing process is more time-consuming.
An image processing method and device are provided, which automatically performs image processing by receiving images input by a user, recognizes image defect information or similar image information, generates recommended renderings, and allows the user to preview and further edit until they are satisfied.
It improves the efficiency of image processing, simplifies the editing process, reduces user manual operations, improves the image display effect, and meets user needs.
Smart Images

Figure CN113129210B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing, and specifically relates to an image processing method, an image processing device and an electronic device. Background Art
[0002] When a user needs to use an image, the display effect of the image is often not ideal. The user needs to manually edit the image many times to get a satisfactory image. The cumbersome operation will make image editing time-consuming and laborious. Moreover, if the user is not proficient in image editing operations, it will waste even more time. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide an image processing method, an image processing device and an electronic device, which can solve the problem that image post-editing in the related art is complicated, time-consuming and labor-intensive.
[0004] In a first aspect, an embodiment of the present application provides an image processing method, the method comprising:
[0005] receiving a first input of a user on a first image;
[0006] In response to the first input, identifying information to be processed, the information to be processed including image defect information of the first image or information that a similar image exists in the first image;
[0007] According to the information to be processed, first image processing is performed on the first image to generate a second image, and the second image is displayed.
[0008] In a second aspect, an embodiment of the present application provides an image processing device, the device comprising:
[0009] A receiving module, configured to receive a first input of a user on a first image;
[0010] an identification module, configured to identify information to be processed in response to a first input, wherein the information to be processed includes image defect information of the first image or information that a similar image exists in the first image;
[0011] A first processing module, used for performing first image processing on the first image according to the information to be processed to generate a second image;
[0012] The display module is used to display the second image.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the method of the first aspect when executed by the processor.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the method of the first aspect is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.
[0016] In an embodiment of the present application, when a user needs to browse images, or needs to select images in a chat interface or a friend circle posting interface, or in a scenario such as after taking an image, a first input of a first image from the user is received, and in response to the first input, image defect information of the first image is identified, or it is identified whether there is a similar image to the first image. Furthermore, according to the image defect information of the first image or according to similar images of the first image, the first image is processed to generate a second image, i.e., a recommended rendering, and is provided for user preview. In an embodiment of the present application, the current user's behavior is actively identified, and an image processing method is recommended to the user, so as to realize automatic processing of the information to be processed, generate a recommended rendering for user preview, improve the efficiency of image processing, enhance the image display effect, and provide users with images that meet their needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flowchart of an image processing method according to an embodiment of the present application;
[0018] Figure 2 This is one of the interface schematic diagrams of the image processing method of the embodiment of the present application;
[0019] Figure 3 This is the second interface schematic diagram of the image processing method of the embodiment of the present application;
[0020] Figure 4 This is the third interface schematic diagram of the image processing method of the embodiment of the present application;
[0021] Figure 5 This is the fourth interface schematic diagram of the image processing method of the embodiment of the present application;
[0022] Figure 6 This is the fifth interface schematic diagram of the image processing method of the embodiment of the present application;
[0023] Figure 7 This is the sixth interface schematic diagram of the image processing method of the embodiment of the present application;
[0024] Figure 8 This is the seventh interface schematic diagram of the image processing method of the embodiment of the present application;
[0025] Fig. 9This is the eighth interface schematic diagram of the image processing method of the embodiment of the present application;
[0026] Fig.10 is a schematic block diagram of an image processing device according to an embodiment of the present application;
[0027] Fig.11 It is one of the schematic block diagrams of the electronic device according to the embodiment of the present application;
[0028] Fig.12 This is the second schematic block diagram of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0031] The image processing method, image processing device, electronic device and readable storage medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0032] The present application embodiment provides an image processing method, such as Figure 1 As shown, the image processing method includes:
[0033] Step 102, receiving a first input of a first image from a user;
[0034] Step 104, in response to the first input, identifying information to be processed, where the information to be processed includes image defect information of the first image or information that a similar image exists in the first image;
[0035] Step 106: perform first image processing on the first image according to the information to be processed, generate a second image, and display the second image.
[0036] In this embodiment, when a user needs to browse images, or needs to select images in a chat interface or a friend circle posting interface, or after taking an image, a first input of a first image from a user is received, and in response to the first input, image defect information of the first image is identified, or whether there is a similar image to the first image is identified. Further, according to the image defect information of the first image or according to the similar images of the first image, the first image is processed to generate a second image, i.e., a recommended effect image, and is provided for preview by the user.
[0037] It should be noted that the user's first input is used to select the first image, and the first input includes but is not limited to the user's single-click input, double-click input, sliding input, and pressing input of the first image. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any feasible method.
[0038] For example, Figure 2 As shown, when the user opens the album to view the first image 202, there are three similar images of the first image 202 (similar image 1, similar image 2 and similar image 3), then the three similar images are automatically synthesized with the first image 202 to generate a second image for the user to preview.
[0039] The embodiment of the present application actively identifies the current user's behavior, recommends image processing methods to the user, realizes automatic processing of the information to be processed, generates recommended renderings for the user to preview, improves the efficiency of image processing, enhances the image display effect, and provides users with images that meet their needs.
[0040] Furthermore, in one embodiment of the present application, the image defect information includes at least one of the following: an image to be deleted, image quality information, and brightness information.
[0041] In this embodiment, the image defect information of the first image includes but is not limited to the image to be deleted, image quality information, and brightness information. Figure 3 As shown, there is a useless background object B in the object A in the first image 202, so for the first image, object B is the image to be deleted, and object B can be automatically deleted to generate a second image 204 including only object A. The image quality information includes parameters such as clarity, sharpness, color purity, and color balance, and identifies whether the above parameters in the first image or the brightness of the first image meet the preset threshold, and automatically adjusts if not.
[0042] Through the above-mentioned method, the purpose of improving the image defects of the first image is achieved, so as to improve the display effect of the image.
[0043] Furthermore, in one embodiment of the present application, after performing first image processing on the first image according to the information to be processed, generating a second image, and displaying the second image, it also includes: receiving a second input from the user on the second image; in response to the second input, performing second image processing on the second image, generating a third image, and displaying the third image.
[0044] In this embodiment, after the first image is automatically processed to generate and display the second image, if the user is not satisfied with the previewed second image, a second input can be made to the second image to perform image processing on the second image, and finally generate a third image that meets the user's needs.
[0045] The second input of the user is an operation to edit the second image. The second input includes but is not limited to a single-click input, a double-click input, a sliding input, and a pressing input of the first image by the user. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any feasible method.
[0046] For example, Figure 3 As shown, after deleting the object B in the first image 202 and generating and displaying the second image 204, if the user still wants to continue to perform cropping processing on the second image 204, the user can directly operate on the second image 204, for example, long press the second image 204 to enter the cropping editing mode, and then drag the border of the second image 204 to achieve cropping processing on the second image 204 to generate a third image. In the above manner, a function that can quickly edit an image is provided to the user, so that the user can quickly perform secondary processing on the image according to their own needs, which can greatly improve the display effect of the image and enable the user to quickly obtain an image that meets their needs.
[0047] Furthermore, in one embodiment of the present application, the image processing method also includes: upon receiving a third input from the user for the second image, storing the second image in response to the third input; or, upon receiving a fourth input from the user for the third image, storing the third image in response to the fourth input.
[0048] In this embodiment, in one case, after the second image or the third image is displayed, if a third input from the user to the second image is received, indicating that the user is satisfied with the second image, the second image is stored. In another case, after the third image is displayed, if a fourth input from the user to the third image is received, indicating that the user is satisfied with the third image, the third image is stored.
[0049] The user's third input to the second image may include input to a storage control corresponding to the second image or input to the second image itself, and the user's fourth input to the third image may include input to a storage control corresponding to the third image or input to the third image itself. The third input or the fourth input includes but is not limited to single-click input, double-click input, slide input, and press input. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any achievable method.
[0050] For example, Figure 3 As shown, after object B in the first image 202 is deleted and the second image 204 is generated and displayed, if the user is satisfied with the second image 204 , the user clicks the storage control in the menu bar 208 displayed on the preview interface to store the second image 204 .
[0051] Through the above method, the images that have met the user's needs are saved to facilitate the user's subsequent use.
[0052] Furthermore, in one embodiment of the present application, after performing first image processing on the first image according to the information to be processed, generating a second image, and displaying the second image, it also includes: receiving a fifth input from the user on the second image; in response to the fifth input, enlarging the second image and reducing the first image.
[0053] In this embodiment, the first image is displayed while the second image is displayed, and when the user's fifth input on the second image is received, the second image is enlarged and the first image is reduced.
[0054] Among them, the user's fifth input to the second image includes but is not limited to floating input, single-click input, double-click input, sliding input, and pressing input. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any feasible method.
[0055] For example, when the user needs to enlarge the second image 204 to see its details, the user moves the finger over the second image 204. Figure 4 As shown, the second image 204 is enlarged and the first image 202 is reduced.
[0056] Through the above method, when it is detected that the user's finger moves to the second image, it can be determined that the user needs to view the details of the second image. By automatically enlarging the second image, it is convenient for the user to view the details of the second image. The user does not need to manually enlarge the second image or reduce the first image, thereby reducing the user's manual operation.
[0057] Further, in one embodiment of the present application, in response to the second input, second image processing is performed on the second image, including: in response to the second input, extracting the first object image of the first target object in the second image; and updating the display position of the first object image on the second image.
[0058] In this embodiment, the user can cut out the first object image of the first target object on the second image, and adjust the display position of the first object image on the second image. It should be noted that the first target object on the second image can be one or more, that is, the user can cut out the object image of one or more target objects.
[0059] Specifically, in response to the second input, at least one first display object is automatically extracted from the selected area.
[0060] For example, Figure 5 As shown, the second input of the user is an operation of drawing a selected area 206 on the second image with the user's finger, and the selected area 206 includes the first target object, and the first object image of the first target object is automatically cut out. Further, the user's finger slides from the selected area 206 to a preset position on the second image, and the first object image of the first target object is moved to the preset position.
[0061] It should be noted that, in the embodiment of the present application, the step of extracting the first object image of the first target object specifically includes: (1) saving the pixels of the currently selected area into the memory array matrix; (2) subdividing the currently selected area into multiple n×n small two-dimensional array matrices (for example, 4×4 or 8×8 small two-dimensional array matrices); (3) calculating the grayscale value and difference of the current small two-dimensional array matrix to determine whether the current small two-dimensional array matrix has a boundary; (4) if the current small two-dimensional array matrix has a boundary, determining whether the boundary of the current small two-dimensional array matrix is horizontal, vertical or arc-shaped; (5) after connecting all the small two-dimensional array matrices in series, obtaining the boundary of the object displayed in the second image, thereby realizing the extraction of the first object image of the first target object.
[0062] Through the above method, the extraction process of the first object image of the first target object is convenient and fast, which greatly improves the efficiency of user image processing, and can adjust the display position of the first object image to meet the user's display requirements for the second image.
[0063] Furthermore, in one embodiment of the present application, after extracting the first object image of the first target object in the second image, it also includes: displaying the first object image in suspension on the second image; updating the display position of the first object image on the second image, including: upon receiving a sixth input from the user to the first object image, moving the first object image to the target display position on the second image in response to the sixth input.
[0064] Among them, the sixth input includes but is not limited to single-click input, double-click input, sliding input, and pressing input. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any feasible method.
[0065] In this embodiment, after at least one first object image is cut out, the first object image is displayed floating on the second image. If there are multiple first target objects, there are also multiple corresponding first object images, and the multiple first object images are displayed in layers.
[0066] For example, Figure 6 As shown, the first object image 1 and the first object image 2 extracted from the second image 204 are displayed in layers, and the user can drag the first object image 1 or the first object image 2 to move it to a desired position.
[0067] Through the above method, different object images on the second image are peeled off to different layers for floating display, so that the display method of the object image is more intuitive and convenient for users to operate the object image later.
[0068] Furthermore, in one embodiment of the present application, the image processing method also includes: receiving a seventh input from a user; displaying a fourth image in response to the seventh input; receiving an eighth input from the user for the fourth image; extracting a second object image of a second target object of the fourth image in response to the eighth input; wherein the second input is an input for the second image and the second object image; performing second image processing on the second image to generate a third image, including: performing image synthesis on the second image and the second object image to generate a third image.
[0069] In this embodiment, the user opens a new image, namely the fourth image, through the seventh input. Further, the user performs an eighth input on the fourth image, thereby extracting a second object image of the second target object on the fourth image, wherein the second target object may be one or more.
[0070] The step of performing second image processing on the second image to generate the third image specifically includes: synthesizing the cut-out second object image with the second image to generate the third image. Specifically, the second input of the user is an input of the second image and the second object image, and the cut-out second object image is synthesized with the second image through the second input of the user.
[0071] It should be noted that the seventh input is the user's operation input, used to open the fourth image, and the eighth input is used by the user to cut out the fourth image. The seventh input or the eighth input includes but is not limited to single-click input, double-click input, sliding input, and pressing input.
[0072] For example, Figures 3 to 7 As shown, in the process of displaying or editing the second image, a menu bar 208 is displayed on the preview interface of the electronic device, and the menu bar 208 may include controls such as restore, store, open, and paste, and the corresponding functions can be performed on the second image through the above controls. For example, when the user clicks the restore control, the image processing of the first image or the image processing of the second image can be undone to restore the first image or the second image. When the user clicks the store control, the second image or the third image can be stored. When the user clicks the paste control, the image copied in other interfaces can be pasted to the preview interface.
[0073] In some embodiments, the user's seventh input includes a long press operation on an open control, through which the photo album of the electronic device is opened. The user's seventh input also includes a click operation on a fourth image in the photo album, through which the fourth image is displayed on the preview interface.
[0074] The user performs an eighth input on the fourth image, such as Figure 7 As shown, a plurality of second object images of the second target object (ie, second object image 1, second object image 2, second object image 3 and second object image 4) are extracted from the fourth image.
[0075] Furthermore, the user may move the extracted one or more second object images 1, 2, 3, and 4 to the second image 204 to achieve image synthesis, thereby generating a third image.
[0076] Through the above method, the purpose of adding the object image on other images to the second image is achieved, the flexibility of image editing is improved, and the user's display demand for the second image is met.
[0077] Furthermore, in one embodiment of the present application, the preview interface also includes a target control, and the target control includes a thumbnail of at least one image; before receiving the user's seventh input, it also includes: receiving the user's ninth input to the target control; in response to the ninth input, updating the thumbnail displayed on the target control; receiving the user's seventh input, including: receiving the user's seventh input to the target thumbnail on the target control; wherein the fourth image is the image corresponding to the target thumbnail.
[0078] In this embodiment, a method of opening the fourth image is defined. Specifically, a target control is displayed on the preview interface, and the target control includes a thumbnail of at least one image. When the user performs a ninth input on the target control, the thumbnail displayed on the target control is updated. Furthermore, the seventh input of the user is an input of a target thumbnail displayed on the target control, and according to the input, the image corresponding to the target thumbnail, that is, the fourth image, is opened.
[0079] Among them, the ninth input includes but is not limited to single-click input, double-click input, sliding input, and pressing input. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any feasible method.
[0080] It should be noted that the thumbnails displayed on the target control correspond to the images in the photo album of the electronic device.
[0081] For example, Figure 8 As shown, a target control 210 is displayed on the preview interface, and the target control 210 includes a thumbnail of image 3 and a thumbnail of image 4. If the user slides the target control 210 to the left, a thumbnail of the previous image of image 3 is displayed according to the storage order of the images in the album. If the user slides the target control 210 to the right, a thumbnail of the next image of image 4 is displayed according to the storage order of the images in the album, thereby updating the thumbnails of the images.
[0082] Furthermore, after the user clicks on the thumbnail of image 4 on the target control, the thumbnail of image 4, ie, the fourth image, is enlarged and displayed on the preview interface.
[0083] In the embodiment of the present application, the images in the album can be switched through the above-mentioned target control without entering the album, thus avoiding jumping back and forth between different programs and saving time for image processing.
[0084] Furthermore, in one embodiment of the present application, the image processing method also includes: receiving a tenth input from a user; in response to the tenth input, displaying at least one element identifier, each element identifier indicating an image element; wherein the second input is an input of a target element identifier in the second image and at least one element identifier; performing second image processing on the second image to generate a third image, including: displaying a recommended position identifier on the second image, the recommended position identifier being used to indicate a recommended display position of a target image element, the target image element being an image element indicated by the target element identifier; displaying the target image element to the recommended display position, and performing image synthesis on the second image and the target image element to generate a third image.
[0085] In this embodiment, the user opens at least one new element identifier through the tenth input, where the element identifier is used to indicate an image element of an object.
[0086] The step of performing second image processing on the second image to generate the third image specifically includes: synthesizing the target image element indicated by the target element identifier selected by the user with the second image, thereby generating the third image. Specifically, the second input of the user is an input of the second image and the target element identifier, and the target image element indicated by the target element identifier is synthesized with the second image through the second input of the user.
[0087] Furthermore, before performing image synthesis, a display position of the target image element on the second image is automatically recommended, so that the target image element is displayed at the recommended display position on the second image.
[0088] Among them, the tenth input includes but is not limited to single-click input, double-click input, sliding input, and pressing input. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any feasible method.
[0089] For example, Fig. 9 As shown, a menu bar 208 is displayed on the preview interface of the electronic device, and the menu bar 208 includes an open control. The user's tenth input includes a double-click operation on the open control, and the element identifier corresponding to the image element in the folder storing the image element is displayed through the double-click operation (i.e., element identifier 1, element identifier 2, element identifier 3, and element identifier 4).
[0090] Furthermore, the user clicks and drags the element identifier 2, and uses it as the target element identifier. At this time, the recommended position identifier 212 is displayed on the second image 204, and the recommended position identifier 212 is used to indicate that the user is recommended to drag the element identifier 2 to the recommended display position. When the user drags the element identifier 2 to the recommended position identifier 212 and releases it, the image element corresponding to the element identifier 2 is automatically displayed at the recommended display position, and the image element is synthesized with the second image 204.
[0091] It should be noted that in the above scenario, after the user selects an element identifier, the image element corresponding to the element identifier is automatically updated to the recommended display position for display. In another scenario, when the user drags the element identifier 2 to the recommended position identifier 212 and releases it, a prompt message is displayed asking whether to place it. After the user confirms, the image element corresponding to the element identifier 2 is displayed to the recommended display position.
[0092] By means of the above method, the purpose of adding the pre-stored image element to the second image is achieved, and the flexibility of image editing is improved. In addition, the display position of the image element can be automatically recommended to ensure that the image element can be displayed at a suitable position, thereby improving the display effect of the image.
[0093] It should be noted that the image processing method provided in the embodiment of the present application can be executed by an image processing device, or a control module in the image processing device for executing the image processing method. In the embodiment of the present application, the image processing device provided in the embodiment of the present application is described by taking the image processing device executing the image processing method as an example.
[0094] The present application embodiment provides an image processing device, such as Fig.10 As shown, the image processing device 1000 includes:
[0095] The receiving module 1002 is used to receive a first input of a user on a first image;
[0096] An identification module 1004 is used to identify information to be processed in response to the first input, where the information to be processed includes image defect information of the first image or information that a similar image exists in the first image;
[0097] A first processing module 1006, configured to perform first image processing on the first image according to the information to be processed to generate a second image;
[0098] The display module 1008 is configured to display the second image.
[0099] In this embodiment, when the user needs to browse images, or needs to select images in a chat interface or a Moments posting interface, or after taking an image, a first input of a first image from the user is received, and in response to the first input, image defect information of the first image is identified, or it is identified whether there are similar images to the first image. Furthermore, according to the image defect information of the first image or according to similar images of the first image, the first image is processed to generate a second image, i.e., a recommended rendering, which is provided for preview by the user. In the embodiment of the present application, the current user's behavior is actively identified, and an image processing method is recommended to the user, so as to realize automatic processing of the information to be processed, generate a recommended rendering for the user to preview, improve the efficiency of image processing, enhance the display effect of the image, and provide the user with images that meet the needs.
[0100] Furthermore, in one embodiment of the present application, the image defect information includes at least one of the following: an image to be deleted, image quality information, and brightness information.
[0101] Furthermore, in one embodiment of the present application, the receiving module 1002 is also used to receive a second input from the user for the second image; the image processing device 1000 also includes: a second processing module, used to perform second image processing on the second image in response to the second input, generate a third image, and display the third image.
[0102] Furthermore, in one embodiment of the present application, the receiving module 1002 is also used to receive a third input from the user for the second image; the image processing device 1000 also includes: a storage module, used to store the second image in response to the third input; or, the receiving module 1002 is also used to receive a fourth input from the user for the third image; the storage module is also used to store the third image in response to the fourth input.
[0103] Furthermore, in one embodiment of the present application, the receiving module 1002 is further configured to receive a fifth input from the user regarding the second image; and the display module 1008 is further configured to enlarge the second image and reduce the first image in response to the fifth input.
[0104] Furthermore, in one embodiment of the present application, the second processing module is specifically used to extract the first object image of the first target object in the second image in response to the second input; the display module 1008 is also used to update the display position of the first object image on the second image.
[0105] Furthermore, in one embodiment of the present application, the display module 1008 is specifically used to display the first object image in suspension on the second image; the receiving module 1002 is also used to receive the user's sixth input for the first object image; the display module 1008 is also used to move the first object image to the target display position on the second image in response to the sixth input.
[0106] Furthermore, in one embodiment of the present application, the receiving module 1002 is also used to receive a seventh input from the user; the display module 1008 is also used to display the fourth image in response to the seventh input; the receiving module 1002 is also used to receive an eighth input from the user for the fourth image; the second processing module is also used to respond to the eighth input, extract the second object image of the second target object of the fourth image, perform image synthesis on the second image and the second object image, and generate a third image, wherein the second input is the input of the second image and the second object image.
[0107] Furthermore, in one embodiment of the present application, the receiving module 1002 is also used to receive the ninth input of the user to the target control; the display module 1008 is also used to update the thumbnail displayed on the target control in response to the ninth input; the receiving module 1002 is specifically used to receive the seventh input of the user to the target thumbnail on the target control; wherein the fourth image is the image corresponding to the target thumbnail.
[0108] Furthermore, in one embodiment of the present application, the receiving module 1002 is also used to receive the user's tenth input; the display module 1008 is also used to display at least one element identifier in response to the tenth input, each element identifier indicating an image element, wherein the second input is an input of the second image and a target element identifier in at least one element identifier, and on the second image, a recommended position identifier is displayed, the recommended position identifier is used to indicate a recommended display position of the target image element, the target image element is the image element indicated by the target element identifier, and the target image element is displayed to the recommended display position; the second processing module is specifically used to perform image synthesis on the second image and the target image element to generate a third image.
[0109] The image processing device 1000 in the embodiment of the present application can be a device, or a component, integrated circuit or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0110] The image processing device 1000 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0111] The image processing device 1000 provided in the embodiment of the present application can realize Figures 1 to 9 To avoid repetition, the various processes implemented in the image processing method embodiment will not be described again here.
[0112] Optional, such as Fig.11 As shown, an embodiment of the present application also provides an electronic device 1100, including a processor 1102, a memory 1104, and a program or instruction stored in the memory 1104 and executable on the processor 1102. When the program or instruction is executed by the processor 1102, each process of the above-mentioned image processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0113] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0114] Fig.12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0115] The electronic device 1200 includes but is not limited to components such as a radio frequency unit 1202, a network module 1204, an audio output unit 1206, an input unit 1208, a sensor 1210, a display unit 1212, a user input unit 1214, an interface unit 1216, a memory 1218, and a processor 1220.
[0116] Those skilled in the art will appreciate that the electronic device 1200 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1220 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0117] Among them, the user input unit 1214 is used to receive a first input from a user on a first image; the processor 1220 is used to identify information to be processed in response to the first input, the information to be processed including image defect information of the first image or information that a similar image exists in the first image, and to perform first image processing on the first image according to the information to be processed to generate a second image; the display unit 1212 is used to display the second image.
[0118] In this embodiment, when the user needs to browse images, or needs to select images in a chat interface or a Moments posting interface, or after taking an image, a first input of a first image from the user is received, and in response to the first input, image defect information of the first image is identified, or it is identified whether there are similar images to the first image. Furthermore, according to the image defect information of the first image or according to similar images of the first image, the first image is processed to generate a second image, i.e., a recommended rendering, which is provided for preview by the user. In the embodiment of the present application, the current user's behavior is actively identified, and an image processing method is recommended to the user, so as to realize automatic processing of the information to be processed, generate a recommended rendering for the user to preview, improve the efficiency of image processing, enhance the display effect of the image, and provide the user with images that meet the needs.
[0119] Furthermore, in one embodiment of the present application, the image defect information includes at least one of the following: an image to be deleted, image quality information, and brightness information.
[0120] Furthermore, in one embodiment of the present application, the user input unit 1214 is also used to receive a second input from the user for the second image; the processor 1220 is also used to perform second image processing on the second image in response to the second input, generate a third image, and display the third image.
[0121] Furthermore, in one embodiment of the present application, the user input unit 1214 is also used to receive a third input from the user for the second image; the memory 1218 is used to store the second image in response to the third input; or, the user input unit 1214 is also used to receive a fourth input from the user for the third image; the memory 1218 is also used to store the third image in response to the fourth input.
[0122] Furthermore, in one embodiment of the present application, the user input unit 1214 is further configured to receive a fifth input from the user regarding the second image; and the display unit 1212 is further configured to enlarge the second image and reduce the first image in response to the fifth input.
[0123] Furthermore, in one embodiment of the present application, the processor 1220 is specifically used to extract the first object image of the first target object in the second image in response to the second input; the display unit 1212 is also used to update the display position of the first object image on the second image.
[0124] Furthermore, in one embodiment of the present application, the display unit 1212 is specifically used to display the first object image in suspension on the second image; the user input unit 1214 is also used to receive a sixth input from the user for the first object image; the display unit 1212 is also used to move the first object image to a target display position on the second image in response to the sixth input.
[0125] Furthermore, in one embodiment of the present application, the user input unit 1214 is also used to receive a seventh input from the user; the display unit 1212 is also used to display the fourth image in response to the seventh input; the user input unit 1214 is also used to receive an eighth input from the user for the fourth image; the processor 1220 is also used to respond to the eighth input, extract the second object image of the second target object of the fourth image, perform image synthesis on the second image and the second object image, and generate a third image, wherein the second input is the input to the second image and the second object image.
[0126] Furthermore, in one embodiment of the present application, the user input unit 1214 is also used to receive the user's ninth input to the target control; the display unit 1212 is also used to update the thumbnail displayed on the target control in response to the ninth input; the user input unit 1214 is specifically used to receive the user's seventh input to the target thumbnail on the target control; wherein the fourth image is the image corresponding to the target thumbnail.
[0127] Furthermore, in one embodiment of the present application, the user input unit 1214 is also used to receive the user's tenth input; the display unit 1212 is also used to display at least one element identifier in response to the tenth input, each element identifier indicating an image element, wherein the second input is an input of the second image and a target element identifier in at least one element identifier, and on the second image, a recommended position identifier is displayed, the recommended position identifier is used to indicate a recommended display position of the target image element, the target image element is the image element indicated by the target element identifier, and the target image element is displayed to the recommended display position; the processor 1220 is specifically used to perform image synthesis on the second image and the target image element to generate a third image.
[0128] It should be understood that in the embodiment of the present application, the radio frequency unit 1202 can be used to send and receive information or send and receive signals during a call, specifically, receive downlink data from a base station or send uplink data to a base station. The radio frequency unit 1202 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
[0129] The network module 1204 provides users with wireless broadband Internet access, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0130] The audio output unit 1206 can convert the audio data received by the RF unit 1202 or the network module 1204 or stored in the memory 1218 into an audio signal and output it as sound. In addition, the audio output unit 1206 can also provide audio output related to a specific function performed by the electronic device 1200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1206 includes a speaker, a buzzer, a receiver, etc.
[0131] The input unit 1208 is used to receive audio or video signals. The input unit 1208 may include a graphics processing unit (GPU) 12082 and a microphone 12084. The graphics processor 12082 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 1212, or stored in the memory 1218 (or other storage medium), or sent via the radio frequency unit 1202 or the network module 1204. The microphone 12084 can receive sound and can process the sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 1202 in the case of a telephone call mode.
[0132] The electronic device 1200 also includes at least one sensor 1210, such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, a motion sensor, and other sensors.
[0133] The display unit 1212 is used to display information input by the user or information provided to the user. The display unit 1212 may include a display panel 12122, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
[0134] The user input unit 1214 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 1214 includes a touch panel 12142 and other input devices 12144. The touch panel 12142 is also called a touch screen, which can collect the user's touch operations on or near it. The touch panel 12142 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into contact coordinates, and then sends it to the processor 1220, receives the command sent by the processor 1220 and executes it. Other input devices 12144 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
[0135] Furthermore, the touch panel 12142 may be covered on the display panel 12122. When the touch panel 12142 detects a touch operation on or near it, it is transmitted to the processor 1220 to determine the type of the touch event. Then, the processor 1220 provides corresponding visual output on the display panel 12122 according to the type of the touch event. The touch panel 12142 and the display panel 12122 may be two independent components or integrated into one component.
[0136] The interface unit 1216 is an interface for connecting an external device to the electronic device 1200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 1216 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 1200 or may be used to transmit data between the electronic device 1200 and an external device.
[0137] The memory 1218 can be used to store software programs and various data. The memory 1218 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 1218 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0138] The processor 1220 performs various functions of the electronic device 1200 and processes data by running or executing software programs and / or modules stored in the memory 1218 and calling data stored in the memory 1218, thereby monitoring the electronic device 1200 as a whole. The processor 1220 may include one or more processing units; preferably, the processor 1220 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications.
[0139] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0140] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0141] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0142] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0143] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0145] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An image processing method, characterized in that: include: receiving a first input of a user on a first image; In response to the first input, identifying information to be processed, the information to be processed including image defect information of the first image or information that a similar image exists in the first image; According to the information to be processed, performing first image processing on the first image to generate a second image, and displaying the second image; After performing first image processing on the first image according to the information to be processed to generate a second image and displaying the second image, the method further includes: receiving a fifth input from a user regarding the second image; In response to the fifth input, the second image is enlarged, and the first image is reduced.
2. The image processing method according to claim 1, characterized in that: The image defect information includes at least one of the following: an image to be deleted, image quality information, and brightness information.
3. The image processing method according to claim 1, characterized in that: After performing first image processing on the first image according to the information to be processed to generate a second image and displaying the second image, the method further includes: receiving a second input of the user regarding the second image; In response to the second input, second image processing is performed on the second image to generate a third image, and the third image is displayed.
4. The image processing method according to claim 3, characterized in that: Also includes: In a case where a third input of the user on the second image is received, storing the second image in response to the third input; or, In a case where a fourth input of the user for the third image is received, the third image is stored in response to the fourth input.
5. The image processing method according to claim 3, characterized in that: The step of performing second image processing on the second image in response to the second input comprises: In response to the second input, extracting a first object image of a first target object in the second image; Update the display position of the first object image on the second image.
6. The image processing method according to claim 5, characterized in that: After extracting the first object image of the first target object in the second image, the method further includes: On the second image, the first object image is displayed in a floating manner; The updating of the display position of the first object image on the second image includes: In a case where a sixth input from the user to the first object image is received, the first object image is moved to a target display position on the second image in response to the sixth input.
7. The image processing method according to claim 3, characterized in that: Also includes: receiving a seventh input from the user; In response to the seventh input, displaying a fourth image; receiving an eighth input from a user regarding the fourth image; In response to the eighth input, extracting a second object image of the second target object of the fourth image; Wherein, the second input is an input of the second image and the second object image; The performing second image processing on the second image to generate a third image includes: The second image and the second object image are synthesized to generate the third image.
8. The image processing method according to claim 7, characterized in that: The preview interface also includes a target control, wherein the target control includes a thumbnail of at least one image; Before receiving the seventh input from the user, the method further includes: receiving a ninth input from the user to the target control; In response to the ninth input, updating the thumbnail displayed on the target control; The receiving a seventh input from the user comprises: receiving a seventh input from the user on a target thumbnail on the target control; The fourth image is the image corresponding to the target thumbnail.
9. The image processing method according to claim 3, characterized in that: Also includes: Receiving a tenth input from a user; In response to the tenth input, displaying at least one element identifier, each element identifier indicating an image element; The second input is an input of the second image and a target element identifier in the at least one element identifier; The performing second image processing on the second image to generate a third image includes: On the second image, display a recommended position identifier, wherein the recommended position identifier is used to indicate a recommended display position of a target image element, and the target image element is the image element indicated by the target element identifier; The target image element is displayed at the recommended display position, and the second image and the target image element are synthesized to generate the third image.
10. An image processing device, characterized in that: include: A receiving module, configured to receive a first input of a user on a first image; an identification module, configured to identify information to be processed in response to the first input, wherein the information to be processed includes image defect information of the first image or information that a similar image exists in the first image; A first processing module, configured to perform first image processing on the first image according to the information to be processed to generate a second image; A display module, configured to display the second image; The receiving module is further used to receive a fifth input of the user on the second image; The display module is further configured to magnify the second image and reduce the first image in response to the fifth input.
11. An electronic device, characterized in that: The invention comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the image processing method as claimed in any one of claims 1 to 9.
