Image processing method, image processing device, electronic device, and readable storage medium
By obtaining the filter parameters of the target image and applying them in shooting or image processing, the problem of users having difficulty finding or accurately using filters is solved, and efficient filter effect application is achieved.
Patent Information
- Application Number
- CN202210163568.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-02-22
AI Technical Summary
When using a camera or photo editing app, users may find it difficult to find or accurately apply filter effects similar to the target image, and may even need to pay for them.
By obtaining the filter parameters of the target image and applying them to shooting or image processing, an image with the same filter effect as the target image can be generated.
It reduces the number of steps users need to find filters, improves the efficiency of shooting or editing photos, and meets users' image needs.
Smart Images

Figure CN115205102B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of image processing, and particularly relates to an image processing method, an image processing device, an electronic device and a readable storage medium. BACKGROUND
[0002] After a user sees a picture, the user also wants to use a filter effect similar to the picture when taking a picture or retouching the picture. At this time, the user will search for a filter with a similar style in a camera program or a retouching program, but the filter may not be found or may not be accurately found, and even the filter needs to be paid for use. SUMMARY
[0003] Embodiments of the present application provide an image processing method, an image processing device, an electronic device and a readable storage medium, and can solve the problem that a user cannot implement filter processing of an image according to needs in related technologies.
[0004] In a first aspect, embodiments of the present application provide an image processing method, which includes:
[0005] obtaining a first filter parameter of a first image;
[0006] performing a target operation according to the first filter parameter to generate a second image;
[0007] The target operation includes image taking or image processing on a third image.
[0008] In a second aspect, embodiments of the present application provide an image processing device, which includes:
[0009] a first obtaining module configured to obtain a first filter parameter of a first image;
[0010] a processing module configured to perform a target operation according to the first filter parameter to generate a second image;
[0011] The target operation includes image taking or image processing on a third image.
[0012] In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory. The memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement steps of the method according to the first aspect.
[0013] In a fourth aspect, embodiments of the present application provide a readable storage medium, which stores programs or instructions. The programs or instructions are executed by the processor to implement steps of the method according to the first aspect.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, and the processor is configured to run programs or instructions to implement the method in the first aspect.
[0015] In a sixth aspect, an embodiment of the present application provides a computer program product stored in a storage medium, which is executed by at least one processor to implement the method in the first aspect.
[0016] In the embodiment of the present application, the first image is obtained, which can be an image downloaded from a network or shared by a friend. After obtaining the first image, if the user likes the filter effect of the first image and wants to use the filter effect, the first filter parameter of the first image is extracted. Further, the second image is obtained by shooting with the first filter parameter, or the third image already exists is processed by image processing with the first filter parameter to generate the second image. That is, the first filter parameter of the first image is applied to the second image, so that the second image has the same filter effect as the first image. The user does not need to repeatedly compare and search for a large number of similar filters, avoiding the problem that the user cannot find or find inaccurately, or even the filter needs to be paid to use, reducing the user's search operation, improving the efficiency of shooting or image processing, and meeting the user's demand for images. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 is one of the flow diagrams of the image processing method of the embodiment of the present application;
[0018] Figure 2 is the second flow diagram of the image processing method of the embodiment of the present application;
[0019] Figure 3 is a schematic diagram of a sub-image of the first image of the embodiment of the present application;
[0020] Figure 4 is a schematic block diagram of the image processing device of the embodiment of the present application;
[0021] Figure 5 is one of the schematic block diagrams of the electronic device of the embodiment of the present application;
[0022] Figure 6 is the second schematic block diagram of the electronic device of the embodiment of the present application. DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0024] 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 thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and are not limited in number, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the objects before and after are in an "or" relationship.
[0025] The image processing method, image processing device, electronic equipment and readable storage medium provided by the embodiments of the present application will be described in detail below in combination with the drawings and specific embodiments and application scenarios.
[0026] The embodiments of the present application provide an image processing method, as shown in the following figure: Figure 1 The image processing method comprises:
[0027] Step 102, obtaining a first filter parameter of a first image.
[0028] In this embodiment, the first image is obtained, which can be an image downloaded from the network or shared by a friend. After obtaining the first image, if the user likes the filter effect of the first image and wants to use the filter effect, the first filter parameter of the first image is extracted. The filter parameter includes filter style, exposure value, color temperature, color tone, contrast, definition, sharpening, etc.
[0029] Step 104, performing a target operation according to the first filter parameter to generate a second image.
[0030] The target operation includes image shooting or image processing on a third image.
[0031] In this embodiment, the first filter parameter is used for shooting to obtain the second image, or the first filter parameter is used for image processing on an existing third image to generate the second image. That is, the first filter parameter of the first image is applied to the second image, so that the second image has the same filter effect as the first image. The third image can be an image downloaded from the network or shared by a friend.
[0032] It should be noted that when doing filter processing on an existing image or on a picture captured by a camera, actually, RGB pixel replacement is done on each pixel of the image or picture, that is, mapping from one RGB combination to another RGB combination, which can be simply described as the following formula:
[0033] (R1,G1,B1) = M x (R,G,B)
[0034] Wherein, (R, G, B) is the pixel point RGB component of the original image or picture, (R1, G1, B1) is the RGB component after applying the filter effect.
[0035] In the embodiment of the application, the filter parameter of the first image acquired by the user is extracted, and when the user takes a new photo or retouches the third image, the filter parameter is applied to obtain an image (i.e. the second image) with a similar style to the first image. This avoids the problem that the user cannot find or cannot accurately find the filter, or even the filter needs to be paid for use, reduces the user's search operation, improves the efficiency of shooting or retouching, and meets the user's demand for images.
[0036] Further, in an embodiment of the application, the first filter parameter of the first image is acquired, including: determining N sub-images of the first image according to the image features of the first image; acquiring a second filter parameter of each sub-image respectively; generating the first filter parameter of the first image according to the second filter parameter; wherein N is a positive integer greater than 1.
[0037] In this embodiment, according to the image features of the first image, the image contour of the first image is first identified, the first image is divided into sub-images such as background and human body, and the image features of the related sub-images are obtained, as shown in the following table: Figure 3 As shown, the first image is divided into sub-image A, sub-image B and sub-image C. The image features include color features, texture features, etc.
[0038] Then, the filter parameter relationship mapping of each sub-image is performed, that is, the image features of each sub-image are taken as the search basis, and the second filter parameter closest to each sub-image is fitted in the filter library trained by big data, so as to obtain N second filter parameters. For example, the second filter parameter of sub-image A is M A , the second filter parameter of sub-image B is M B , and the second filter parameter of sub-image C is M C .
[0039] Finally, the first filter parameter of the first image is generated according to the N second filter parameters. For example, the average value of the N second filter parameters is taken as the first filter parameter of the first image.
[0040] By the above manner, the first filter parameter of the first image is extracted, so that when the user shoots a new photo or retouches the acquired third image, the filter parameter can be applied to obtain an image with a similar style to the first image, thereby improving the shooting or retouching efficiency and meeting the user's demand for the image.
[0041] Further, in an embodiment of the present application, the first filter parameter of the first image is generated according to the second filter parameter, comprising: determining the area proportion of each sub-image on the first image respectively; and generating the first filter parameter of the first image according to the area proportion and the second filter parameter.
[0042] In this embodiment, after the first image is divided into N sub-images, the area proportion of each sub-image on the first image is determined, that is, the ratio of the area of the sub-image to the area of the first image. The area proportion of the sub-image is equivalent to the weight value of the second filter parameter of the sub-image. The greater the area proportion, the greater the weight value, and the smaller the area proportion, the smaller the weight value. When the first filter parameter of the first image is determined, the second filter parameter and its weight value are combined to obtain the first filter parameter.
[0043] Exemplarily, as shown in Figure 3 , the trained convolutional neural network model is used to perform image feature extraction on the first image input by the user, the first image is divided into three sub-images: sub-image A, sub-image B and sub-image C based on color features and texture features, and the image features corresponding to each sub-image are recorded, and the area proportions P A , P B , P C of each sub-image are recorded. The image features of each sub-image are taken as the basis for searching to obtain the second filter parameter M A , M B , M C corresponding to each sub-image.
[0044] Using the mathematical vector operation concept, the area proportion of each sub-image is taken as the weight value (that is, the coefficient) of the filter parameter and multiplied by the respective filter parameter to obtain M A ’=M A ×P A , M B ’=M B ×P B , M C ’=M C ×P C , and finally M A ’, M B ’, M C ’ are convoluted to obtain the final first filter parameter M=M A ’×M B ’×MC '.
[0045] By using the above method, the area ratio of the sub-image is used as the weight value of its filter parameters, so that the final calculated first filter parameters are more consistent with the filter effect of the first image, improving the accuracy of the recognition of the filter effect of the first image, and thus making the second image processed by the filter more in line with the user's needs.
[0046] It should be noted that the first filter parameters can be written into the Exchangeable Image File format (EXIF) information of the first image, and a unique identifier is used as the basis for identification to build a filter store, allowing users to freely share or sell filters.
[0047] Furthermore, in one embodiment of this application, the image processing method further includes: receiving a first input from a user; and adjusting a first filter parameter in response to the first input.
[0048] In this embodiment, when the user is not satisfied with the first filter parameters, they can make a first input to adjust the first filter parameters.
[0049] For example, such as Figure 2 As shown, the image processing method includes:
[0050] Step 202: Input the first image into the camera application and extract the first filter parameters of the first image.
[0051] In this step, a first image is downloaded from the network or shared by a friend. If the user likes the filter effect of the first image and wants to use the filter effect, the first image is input into the camera application, and the first filter parameters of the first image are extracted. The filter parameters include filter style, exposure value, color temperature, hue, contrast, sharpness, and other parameters.
[0052] Step 204: The camera application loads the first filter parameters and displays the effect of applying the filter on the shooting interface.
[0053] In this step, the camera app's shooting interface displays the filter effect corresponding to the first filter parameter for the user to preview.
[0054] Step 206: Determine if the user is satisfied with the filter effect. If the user is satisfied, proceed to step 208; otherwise, proceed to step 210.
[0055] In this step, the photographing interface displays a confirmation control. If the user is satisfied with the filter effect, the user can click the confirmation control to take a photograph. The photographing interface can also display an adjustment control. If the user is not satisfied with the filter effect, the user can click the adjustment control to adjust the first filter parameter.
[0056] In step 208, a photograph is taken to obtain a second image.
[0057] In this step, the user is satisfied with the filter effect and takes a photograph to obtain a second image including the first filter parameter.
[0058] In step 210, the user receives an adjustment of the first filter parameter, and the method proceeds to step 204.
[0059] In this step, the user is not satisfied with the first filter parameter and can adjust the first filter parameter. After the adjustment, the photographing continues.
[0060] In this way, the first filter parameter is adjusted, that is, the filter effect is fine-tuned, so that the second image can achieve the best filter effect required by the user.
[0061] It should be noted that the user can perform the fine-tuning operation after the second image is generated. For example, after the photographing picture is processed by using the first filter parameter, before the user presses the photographing key, if the user is not satisfied with the filter effect, the user can perform manual fine-tuning, and after the adjustment, the photographing of the second image is performed. After the third image is processed by using the first filter parameter, before the user presses the save key, if the user is not satisfied with the filter effect, the user can perform manual fine-tuning, and after the adjustment, the second image is saved to be generated. Alternatively, after the second image is obtained by photographing or the second image is generated by processing the third image, the second image is previewed, and if the user is not satisfied with the filter effect, the user can perform manual fine-tuning.
[0062] The image processing method provided in the embodiment of the present application can be executed by an image processing device. In the embodiment of the present application, the image processing device is taken as an example to illustrate the image processing device provided in the embodiment of the present application.
[0063] As shown in FIG. 4, the image processing device 400 includes: Figure 4 The first acquisition module 402 is configured to acquire a first filter parameter of a first image.
[0064] The processing module 404 is configured to execute a target operation according to the first filter parameter to generate a second image.
[0065] The target operation includes image photographing or image processing on a third image.
[0066] The target operation includes image photographing or image processing on a third image.
[0067] In this embodiment, a first image is acquired, which can be an image downloaded from a network or shared by a friend. After the first image is acquired, if the user likes the filter effect of the first image and wants to use the filter effect, the first filter parameter of the first image is extracted. Further, a second image is obtained by shooting using the first filter parameter, or the third image already exists is processed using the first filter parameter to generate the second image. That is, the first filter parameter of the first image is applied to the second image, so that the second image has the same filter effect as the first image. The user does not need to repeatedly compare and search for a large number of similar filters, avoids the problem that the user cannot find or cannot accurately find the filter, or even the filter needs to be paid to use, reduces the search operation of the user, improves the efficiency of shooting or image processing, and meets the user's demand for images.
[0068] Further, in an embodiment of the present application, the image processing apparatus further comprises: a first determination module configured to determine N sub-images of the first image according to image features of the first image; and a first acquisition module 402 configured to acquire a second filter parameter of each sub-image respectively, and generate a first filter parameter of the first image according to the second filter parameter; wherein N is a positive integer greater than 1.
[0069] Further, in an embodiment of the present application, the image processing apparatus further comprises: a second determination module configured to determine an area ratio of each sub-image in the first image respectively; and the first acquisition module 402 is specifically configured to generate the first filter parameter of the first image according to the area ratio and the second filter parameter.
[0070] Further, in an embodiment of the present application, the image processing apparatus further comprises: a receiving module configured to receive a first input of the user; and the processing module 404 is further configured to adjust the first filter parameter in response to the first input.
[0071] The image processing apparatus 400 in the embodiments of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices than the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The electronic device can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a cash register, or a self-service machine, etc. The embodiments of the present application are not limited in this regard.
[0072] The image processing apparatus 400 in the embodiments of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems. The embodiments of the present application are not limited in this regard.
[0073] The image processing apparatus 400 provided by the embodiments of the present application can implement the image processing method embodiments of Figure 1 and Figure 2 , and each process of the image processing method embodiments is not repeated here to avoid repetition.
[0074] Optionally, as shown in Figure 5 , the embodiments of the present application further provide an electronic device 500, which includes a processor 502 and a memory 504. The memory 504 stores programs or instructions executable on the processor 502. When the programs or instructions are executed by the processor 502, each step of the above image processing method embodiments is implemented, and the same technical effects are achieved. Each step of the image processing method embodiments is not repeated here to avoid repetition.
[0075] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device.
[0076] Figure 6 To implement the hardware structure of an electronic device according to an embodiment of the present application.
[0077] The electronic device 600 includes, but is not limited to, a radio frequency unit 602, a network module 604, an audio output unit 606, an input unit 608, a sensor 610, a display unit 612, a user input unit 614, an interface unit 616, a memory 618, and a processor 620, etc.
[0078] Those skilled in the art can understand that the electronic device 600 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 620 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure is not a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.
[0079] The processor 620 is configured to obtain a first filter parameter of a first image, and perform a target operation according to the first filter parameter to generate a second image; wherein the target operation includes image shooting or image processing on a third image.
[0080] In this embodiment, the first image is obtained, which can be an image downloaded from a network or shared by a friend. After obtaining the first image, if the user likes the filter effect of the first image and wants to use the filter effect, the first filter parameter of the first image is extracted. Further, the second image is obtained by shooting with the first filter parameter, or the third image already exists is processed by image processing with the first filter parameter to generate the second image. That is, the first filter parameter of the first image is applied to the second image, so that the second image has the same filter effect as the first image. The user does not need to repeatedly compare and search for a large number of similar filters, avoiding the problem that the user cannot find or find inaccurately, or even the filter needs to be paid to use, reducing the user's search operation, improving the shooting or image processing efficiency, and meeting the user's demand for images.
[0081] Further, in an embodiment of the present application, the processor 620 is specifically configured to determine N sub-images of the first image according to the image features of the first image, obtain a second filter parameter of each sub-image respectively, and generate the first filter parameter of the first image according to the second filter parameter; wherein N is a positive integer greater than 1.
[0082] Further, in an embodiment of the present application, the processor 620 is specifically configured to determine an area ratio of each sub-image in the first image respectively, and generate the first filter parameter of the first image according to the area ratio and the second filter parameter.
[0083] Further, in an embodiment of the present application, the user input unit 614 is configured to receive a first input from the user; and the processor 620 is further configured to adjust the first filter parameter in response to the first input.
[0084] It should be understood that, in the embodiments of the present application, the input unit 608 can include a graphics processing unit (GPU) 6082 and a microphone 6084. The graphics processing unit 6082 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 612 can include a display panel 6122, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 614 includes at least one of a touch panel 6142 and other input devices 6144. The touch panel 6142 is also referred to as a touch screen. The touch panel 6142 can include two parts of a touch detection device and a touch controller. The other input devices 6144 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here in detail.
[0085] The memory 618 can be used to store software programs and various data. The memory 618 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 618 can include a volatile memory or a non-volatile memory, or the memory 618 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 618 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0086] The processor 620 can include one or more processing units; optionally, the processor 620 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 620.
[0087] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned image processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0088] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0089] The chip provided in the embodiments of the present application includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used to run programs or instructions to realize the processes of the above image processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0090] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip, etc.
[0091] The embodiments of the present application provide a computer program product stored in a storage medium, which is executed by at least one processor to realize the processes of the above image processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0092] It should be noted that in this document, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles, or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or include elements inherent to such processes, methods, articles, or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of additional 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 the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from the described order, and various steps can be added, omitted, or combined. In addition, the features described with reference to certain examples can be combined in other examples.
[0093] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, or optical disk), and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, or network device, etc.) execute the methods described in various embodiments of the present application.
[0094] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims.
Claims
1. An image processing method, characterized by, The method comprises: obtaining a first filter parameter of a first image; performing a target operation according to the first filter parameter to generate a second image; wherein the target operation comprises image shooting or image processing on a third image; performing image contour recognition on the first image according to image features of the first image, dividing the first image into N sub-images, and obtaining image features of each sub-image; fitting a second filter parameter of each sub-image according to the image features of each sub-image to obtain N second filter parameters; generating the first filter parameter of the first image according to the N second filter parameters.
2. The image processing method of claim 1, wherein, The method comprises: determining N sub-images of the first image according to image features of the first image; obtaining a second filter parameter of each sub-image respectively; generating the first filter parameter of the first image according to the second filter parameter; wherein N is a positive integer greater than 1.
3. The image processing method of claim 2, wherein, The method comprises: determining an area ratio of each sub-image on the first image respectively; generating the first filter parameter of the first image according to the area ratio and the second filter parameter.
4. The image processing method of any one of claims 1 to 3, characterized in that, The method further comprises: receiving a first input of a user; adjusting the first filter parameter in response to the first input.
5. An image processing apparatus characterized by comprising: The method comprises: a first obtaining module for obtaining a first filter parameter of a first image; a processing module for performing a target operation according to the first filter parameter to generate a second image; wherein the target operation comprises image shooting or image processing on a third image; performing image contour recognition on the first image according to image features of the first image, dividing the first image into N sub-images, and obtaining image features of each sub-image; fitting a second filter parameter of each sub-image according to the image features of each sub-image to obtain N second filter parameters; generating the first filter parameter of the first image according to the N second filter parameters.
6. The image processing apparatus according to claim 5, characterized by The method further comprises: a first determining module for determining N sub-images of the first image according to image features of the first image; the first obtaining module is specifically configured to obtain a second filter parameter of each sub-image respectively, and generate the first filter parameter of the first image according to the second filter parameter; wherein N is a positive integer greater than 1.
7. The image processing apparatus according to claim 6, characterized by The method further comprises: a second determining module for determining an area ratio of each sub-image on the first image respectively; the first obtaining module is specifically configured to generate the first filter parameter of the first image according to the area ratio and the second filter parameter.
8. The image processing apparatus according to any one of claims 5 to 7, characterized by, The method further comprises: a receiving module for receiving a first input of a user; the processing module is further configured to adjust the first filter parameter in response to the first input.
9. An electronic device, comprising: The method comprises a processor and a memory, the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the image processing method in any one of claims 1 to 4.
10. A readable storage medium, on which a program or instructions are stored, characterized in that, The program or the instruction realizes the steps of the image processing method as claimed in any one of claims 1 to 4 when executed by the processor.
Citation Information
Patent Citations
Image shooting method and electronic equipment
CN110225244A
Image processing method and device, and electronic equipment
CN113658066A