US-12621556-B2 - Image processing method and apparatus, and electronic device
Abstract
An image processing method includes receiving a photographing input by a user; performing, in response to the photographing input, photographing through a first application, to obtain at least one first image, and saving a target image parameter into a second application; and performing image processing on the at least one first image based on the target image parameter through the second application. The target image parameter is an image processing parameter set by the user in the first application for the at least one first image.
Inventors
- Yiting Wang
Assignees
- VIVO MOBILE COMMUNICATION CO., LTD.
Dates
- Publication Date
- 20260505
- Application Date
- 20240223
- Priority Date
- 20210825
Claims (17)
- 1 . An image processing method, wherein the method comprises: receiving a photographing input by a user; performing, in response to the photographing input, photographing through a first application, to obtain at least one first image, and saving a target image parameter into a second application; and performing image processing on the at least one first image based on the target image parameter through the second application; wherein the target image parameter is an image processing parameter set by the user in the first application for the at least one first image; wherein before the receiving the photographing input by the user, the method further comprises: receiving a third input by the user when a continuous photographing preview interface of the first application is displayed, wherein the continuous photographing preview interface comprises at least two second identifiers, each second identifier indicates an image in a continuous photographing mode, the third input is an input by the user for M identifiers in the at least two second identifiers sequentially, and M is a positive integer; and sequentially setting, in response to the third input, an image parameter for M second images respectively to obtain the target image parameter, wherein the M second images are images indicated by the M identifiers; and the performing image processing on the at least one first image based on the target image parameter through the second application comprises: sequentially performing image processing on each first image respectively by using the image parameter of each second image through the second application.
- 2 . The method according to claim 1 , wherein before the receiving the photographing input by the user, the method further comprises: receiving a first input by the user when a photographing preview interface of the first application is displayed, wherein the photographing preview interface comprises at least one control, each control corresponds to an image processing function, and the first input is an input by the user for a first control in the at least one control; displaying, in response to the first input, identifiers of a plurality of image parameters corresponding to a first image processing function, wherein the first image processing function is an image processing function corresponding to the first control; receiving a second input by the user for a first identifier, wherein the second input is used for determining an image parameter corresponding to the first identifier, and the first identifier is an identifier in the identifiers of the plurality of image parameters; and determining, in response to the second input, the image parameter corresponding to the first identifier as the target image parameter.
- 3 . The method according to claim 1 , wherein the third input comprises M first sub-inputs, and each first sub-input is an input by the user for one identifier in the M identifiers; and the sequentially setting, in response to the third input, the image parameter for the M second images respectively comprises: for each identifier in the M identifiers: displaying N third identifiers or at least one control in response to one first sub-input in the M first sub-inputs, wherein the N third identifiers are identifiers other than an identifier of a third image in the at least two second identifiers, the identifier of the third image is an identifier corresponding to the first sub-input, each control corresponds to an image processing function, and N is a positive integer; receiving a fourth input by the user, wherein the fourth input is an input by the user for a fourth identifier in the N third identifiers, or an input by the user for a second control in the at least one control; and setting, in response to the fourth input, an image parameter of the third image to be the same as an image parameter of an image indicated by the fourth identifier, or determining an image parameter of the third image based on an image processing function corresponding to the second control.
- 4 . The method according to claim 1 , wherein the saving the target image parameter into the second application comprises: saving, for each second image in the M second images each time a second image is photographed, an image parameter of the second image into the second application, to save the image parameters of the M second images into the second application.
- 5 . The method according to claim 1 , wherein before the receiving the photographing input by the user, the method further comprises: receiving a fifth input by the user when a continuous photographing preview interface of the first application is displayed, wherein the continuous photographing preview interface comprises at least two fifth identifiers, each fifth identifier indicates an image in a continuous photographing mode, the fifth input is an input by the user for P identifiers in the at least two fifth identifiers sequentially, and P is a positive integer; sequentially setting, in response to the fifth input, an image parameter for P fourth images respectively, wherein the P fourth images are images indicated by the P identifiers; receiving a sixth input by the user for a sixth identifier in the at least two fifth identifiers; and determining, in response to the sixth input, an image parameter of an image indicated by the sixth identifier as the target image parameter.
- 6 . An electronic device, comprising a processor, a memory, and a program or instructions stored in the memory and executable on the processor, the program or the instructions, when executed by the processor, cause the electronic device to perform: receiving a photographing input by a user; performing, in response to the photographing input, photographing through a first application, to obtain at least one first image, and saving a target image parameter into a second application; and performing image processing on the at least one first image based on the target image parameter through the second application; wherein the target image parameter is an image processing parameter set by the user in the first application for the at least one first image; wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a third input by the user when a continuous photographing preview interface of the first application is displayed, wherein the continuous photographing preview interface comprises at least two second identifiers, each second identifier indicates an image in a continuous photographing mode, the third input is an input by the user for M identifiers in the at least two second identifiers sequentially, and M is a positive integer; and sequentially setting, in response to the third input, an image parameter for M second images respectively to obtain the target image parameter, wherein the M second images are images indicated by the M identifiers; and the program or the instructions, when executed by the processor, cause the electronic device to perform: sequentially performing image processing on each first image respectively by using the image parameter of each second image through the second application.
- 7 . The electronic device according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a first input by the user when a photographing preview interface of the first application is displayed, wherein the photographing preview interface comprises at least one control, each control corresponds to an image processing function, and the first input is an input by the user for a first control in the at least one control; displaying, in response to the first input, identifiers of a plurality of image parameters corresponding to a first image processing function, wherein the first image processing function is an image processing function corresponding to the first control; receiving a second input by the user for a first identifier, wherein the second input is used for determining an image parameter corresponding to the first identifier, and the first identifier is an identifier in the identifiers of the plurality of image parameters; and determining, in response to the second input, the image parameter corresponding to the first identifier as the target image parameter.
- 8 . The electronic device according to claim 6 , wherein the third input comprises M first sub-inputs, and each first sub-input is an input by the user for one identifier in the M identifiers; and the program or the instructions, when executed by the processor, cause the electronic device to perform: for each identifier in the M identifiers: displaying N third identifiers or at least one control in response to one first sub-input in the M first sub-inputs, wherein the N third identifiers are identifiers other than an identifier of a third image in the at least two second identifiers, the identifier of the third image is an identifier corresponding to the first sub-input, each control corresponds to an image processing function, and N is a positive integer; receiving a fourth input by the user, wherein the fourth input is an input by the user for a fourth identifier in the N third identifiers, or an input by the user for a second control in the at least one control; and setting, in response to the fourth input, an image parameter of the third image to be the same as an image parameter of an image indicated by the fourth identifier, or determining an image parameter of the third image based on an image processing function corresponding to the second control.
- 9 . The electronic device according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to perform: saving, for each second image in the M second images each time a second image is photographed, an image parameter of the second image into the second application, to save the image parameters of the M second images into the second application.
- 10 . The method according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a fifth input by the user when a continuous photographing preview interface of the first application is displayed, wherein the continuous photographing preview interface comprises at least two fifth identifiers, each fifth identifier indicates an image in a continuous photographing mode, the fifth input is an input by the user for P identifiers in the at least two fifth identifiers sequentially, and P is a positive integer; sequentially setting, in response to the fifth input, an image parameter for P fourth images respectively, wherein the P fourth images are images indicated by the P identifiers; receiving a sixth input by the user for a sixth identifier in the at least two fifth identifiers; and determining, in response to the sixth input, an image parameter of an image indicated by the sixth identifier as the target image parameter.
- 11 . A non-transitory readable storage medium, storing a program or instructions, the program or the instructions, when executed by a processor of an electronic device, cause the electronic device to perform: receiving a photographing input by a user; performing, in response to the photographing input, photographing through a first application, to obtain at least one first image, and saving a target image parameter into a second application; and performing image processing on the at least one first image based on the target image parameter through the second application; wherein the target image parameter is an image processing parameter set by the user in the first application for the at least one first image; wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a third input by the user when a continuous photographing preview interface of the first application is displayed, wherein the continuous photographing preview interface comprises at least two second identifiers, each second identifier indicates an image in a continuous photographing mode, the third input is an input by the user for M identifiers in the at least two second identifiers sequentially, and M is a positive integer; and sequentially setting, in response to the third input, an image parameter for M second images respectively to obtain the target image parameter, wherein the M second images are images indicated by the M identifiers; and the program or the instructions, when executed by the processor, cause the electronic device to perform: sequentially performing image processing on each first image respectively by using the image parameter of each second image through the second application.
- 12 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a first input by the user when a photographing preview interface of the first application is displayed, wherein the photographing preview interface comprises at least one control, each control corresponds to an image processing function, and the first input is an input by the user for a first control in the at least one control; displaying, in response to the first input, identifiers of a plurality of image parameters corresponding to a first image processing function, wherein the first image processing function is an image processing function corresponding to the first control; receiving a second input by the user for a first identifier, wherein the second input is used for determining an image parameter corresponding to the first identifier, and the first identifier is an identifier in the identifiers of the plurality of image parameters; and determining, in response to the second input, the image parameter corresponding to the first identifier as the target image parameter.
- 13 . The non-transitory readable storage medium according to claim 11 , wherein the third input comprises M first sub-inputs, and each first sub-input is an input by the user for one identifier in the M identifiers; and the program or the instructions, when executed by the processor, cause the electronic device to perform: for each identifier in the M identifiers: displaying N third identifiers or at least one control in response to one first sub-input in the M first sub-inputs, wherein the N third identifiers are identifiers other than an identifier of a third image in the at least two second identifiers, the identifier of the third image is an identifier corresponding to the first sub-input, each control corresponds to an image processing function, and N is a positive integer; receiving a fourth input by the user, wherein the fourth input is an input by the user for a fourth identifier in the N third identifiers, or an input by the user for a second control in the at least one control; and setting, in response to the fourth input, an image parameter of the third image to be the same as an image parameter of an image indicated by the fourth identifier, or determining an image parameter of the third image based on an image processing function corresponding to the second control.
- 14 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to perform: saving, for each second image in the M second images each time a second image is photographed, an image parameter of the second image into the second application, to save the image parameters of the M second images into the second application.
- 15 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a fifth input by the user when a continuous photographing preview interface of the first application is displayed, wherein the continuous photographing preview interface comprises at least two fifth identifiers, each fifth identifier indicates an image in a continuous photographing mode, the fifth input is an input by the user for P identifiers in the at least two fifth identifiers sequentially, and P is a positive integer; sequentially setting, in response to the fifth input, an image parameter for P fourth images respectively, wherein the P fourth images are images indicated by the P identifiers; receiving a sixth input by the user for a sixth identifier in the at least two fifth identifiers; and determining, in response to the sixth input, an image parameter of an image indicated by the sixth identifier as the target image parameter.
- 16 . A chip, wherein the chip comprises a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or instructions to implement the image processing method according to claim 1 .
- 17 . A chip, wherein the chip comprises a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or instructions to implement the image processing method according to claim 2 .
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a Bypass Continuation Application of International Patent Application No. PCT/CN2022/114534 filed Aug. 24, 2022, and claims priority to Chinese Patent Application No. 202110984655.7 filed Aug. 25, 2021, the disclosures of which are hereby incorporated by reference in their entireties. BACKGROUND OF THE INVENTION Field of the Invention This application relates to the field of communication technologies, and specifically, to an image processing method and apparatus, and an electronic device. Description of Related Art Generally, when using an electronic device for photographing, a user may obtain a plurality of photos in a continuous photographing manner, and then manually optimize the plurality of photos to obtain a plurality of photos of consecutive moments with processing effects. However, when the foregoing manner is used for photographing, the electronic device does not perform any processing on the image during photographing, so that an effect of the final photo is poor, resulting in poor efficiency of the electronic device in photographing images. SUMMARY OF THE INVENTION The embodiments of this application provide an image processing method and apparatus, and an electronic device. According to a first aspect, an embodiment of this application provides an image processing method. The image processing method includes: receiving a photographing input by a user; performing, in response to the photographing input, photographing through a first application, to obtain at least one first image, and saving a target image parameter into a second application; and performing image processing on the at least one first image based on the target image parameter through the second application, where the target image parameter is an image processing parameter set by the user in the first application for the at least one first image. According to a second aspect, an embodiment of this application provides an image processing apparatus, where the image processing apparatus includes: a receiving module, a photographing module, a saving module, and a processing module. The receiving module is configured to receive a photographing input by a user; the photographing module is configured to perform, in response to the photographing input received by the receiving module, photographing through a first application, to obtain at least one first image; the saving module is configured to save a target image parameter into a second application, where the target image parameter is an image processing parameter set by the user in the first application for the at least one first image; and the processing module is configured to perform, through the second application based on the target image parameter saved by the saving module, image processing on the at least one first image obtained by the photographing module. According to a third aspect, an embodiment of this application provides an electronic device. The electronic device includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, the program or the instructions, when executed by the processor, implementing steps of the method according to the first aspect. According to a fourth aspect, an embodiment of this application provides a non-transitory readable storage medium, storing a program or instructions, the program or the instructions, when executed by a processor, implementing steps of the method according to the first aspect. According to a fifth aspect, an embodiment of this application provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run a program or instructions to implement the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a flowchart of an image processing method according to an embodiment of this application; FIG. 2A is a schematic diagram 1 of an example of an interface of a mobile phone according to an embodiment of this application; FIG. 2B is a schematic diagram 2 of an example of an interface of a mobile phone according to an embodiment of this application; FIG. 3A is a schematic diagram 3 of an example of an interface of a mobile phone according to an embodiment of this application; FIG. 3B is a schematic diagram 4 of an example of an interface of a mobile phone according to an embodiment of this application; FIG. 4 is a schematic diagram 5 of an example of an interface of a mobile phone according to an embodiment of this application; FIG. 5 is a schematic diagram 6 of an example of an interface of a mobile phone according to an embodiment of this application; FIG. 6 is a schematic diagram 7 of an example of an interface of a mobile phone according to an embodiment of this application; FIG. 7 is a schematic diagram 8 of an example of an interface of a mobile phone according to an embodiment of this