Image processing method, device and electronic equipment
By determining the target color and area area to adjust the transparency, simplified double-exposure image generation is achieved, solving the problems of cumbersome and time-consuming operations in the existing technology, and improving the user experience.
Patent Information
- Application Number
- CN202011536496.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-22
AI Technical Summary
The double-exposure image production method in the prior art is cumbersome and time-consuming, which reduces the user's shooting experience.
By acquiring the first image and the second image, determine the target color, determine the target area based on the area of the target color in the subject area and the background area, adjust the transparency of the target area, and superimpose the first image on the second image to achieve double exposure. Effect.
It simplifies the user operation steps, increases the speed of image generation, and improves the user's shooting experience.
Smart Images

Figure CN112669229B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an image processing method, device and electronic equipment. Background Art
[0002] Double exposure refers to taking two exposures on a piece of film, with the two recorded contents overlapping into one picture.
[0003] Currently, the main ways to implement double exposure are: transparency overlay, brightening overlay, color filter overlay, etc. The effect produced by each overlay mode is determined by the overlay mode itself.
[0004] In the double exposure function that comes with many SLR cameras, two images taken on site are superimposed together in a certain pre-set blending mode, and both shooting and imaging require the photographer's control. If you want to take a good double exposure work, the photographer also needs a learning process. In the post-processing of double exposure, the designer usually first selects two images that have been taken, superimposes them in a certain superposition mode, or performs some operations such as cutting out and removing dirt, to produce a double exposure image that is as perfect as possible. The post-processing of double exposure has certain requirements for the designer himself. First of all, the image selection must be appropriate, and it is also necessary to import it into PS (Photoshop, image processing software) to try different blending modes, different transparencies, etc., and only after many attempts can an image be produced. This method is more cumbersome and time-consuming, which reduces the user's shooting experience. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an image processing method, device and electronic device, which can solve the problem that the method of producing double exposure images in the prior art is complicated and time-consuming, which reduces the user's shooting experience.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides an image processing method, the method comprising:
[0008] Acquire a first image and a second image;
[0009] determining a target color in the first image;
[0010] Determine a target area in the first image according to the areas of the main area and the background area of the target color in the first image, the target area being the main area or the background area;
[0011] The first image is superimposed on the second image, and the transparency of the target area is adjusted.
[0012] In a second aspect, an embodiment of the present application provides an image processing device, the device comprising:
[0013] An image acquisition module, used to acquire a first image and a second image;
[0014] A target color determination module, used to determine a target color in the first image;
[0015] A target region determination module, used to determine a target region in the first image according to the areas of the main region and the background region of the target color in the first image, wherein the target region is the main region or the background region;
[0016] An image overlay module is used to overlay the first image on the second image and adjust the transparency of the target area.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising 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 steps of the image processing method described in the first aspect.
[0018] 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 steps of the image processing method described in the first aspect are implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the image processing method as described in the first aspect.
[0020] In an embodiment of the present application, a first image and a second image are acquired to determine a target color in the first image, and a target area in the first image is determined according to the area of the main area and the background area of the target color in the first image, the target area is the main area or the background area, the first image is superimposed on the second image, and the transparency of the target area is adjusted. The embodiment of the present application achieves a double exposure effect by combining the area of the main area and the background area of the target color in the first image, without the user having to try different blending modes, different transparencies, etc. in the image processing software to generate a double exposure image, which can reduce the user's operation steps, and the image generation speed is fast, which improves the user's shooting experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of an image processing method provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of detecting color difference provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] 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, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0028] The image processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0029] Reference Figure 1 , shows a flowchart of the steps of an image processing method provided by an embodiment of the present application, such as Figure 1 As shown, the image processing method may specifically include the following steps:
[0030] Step 101: Acquire a first image and a second image.
[0031] The embodiments of the present application can be applied to scenarios in which images with double exposure effects are synthesized.
[0032] The first image and the second image refer to two images used for image synthesis. In this embodiment, the first image can be used as a main image and the second image can be used as an attached image.
[0033] In this embodiment, the first image and the second image may be images selected from a photo album of an electronic device, or may be images downloaded from the Internet, etc. The method for obtaining the first image and the second image may be determined according to business requirements, and this embodiment does not impose any restrictions on this.
[0034] When a double exposure image needs to be generated, a first image and a second image may be acquired, and then step 102 is performed.
[0035] Step 102: Determine a target color in the first image.
[0036] The target color refers to the color required for area comparison between the main area and the background area. In this example, the target color can be a color selected by the user from the first image, or a color pre-set by the system, etc. Specifically, it can be determined according to business needs, and this embodiment does not impose any restrictions on this.
[0037] After acquiring the first image, a target color in the first image may be acquired.
[0038] After the target color in the first image is acquired, step 103 is performed.
[0039] Step 103: determining a target region in the first image according to the areas of the main region and the background region of the target color in the first image, wherein the target region is the main region or the background region.
[0040] The subject area refers to an area in the first image that belongs to the photographed subject. For example, if the first image is an image of a person, the subject area may be an area where the portrait of the person in the first image is located.
[0041] The background area refers to the image area in the first image excluding the area where the subject is located. For example, taking a person image as an example, the area where the person is located in the first image is the subject area, and the other areas in the first image excluding the person area are the background area.
[0042] The target area refers to an area in the first image determined by combining the area sizes of the main area and the background area of the target color in the first image, and the target area can be used as an area that needs to be subsequently adjusted for transparency. The target area is the main area or the background area.
[0043] After determining the target color in the first image, the target area in the first image may be determined according to the areas of the main area and the background area of the target color in the first image. Specifically, it may be described in detail in combination with the following specific implementation manner.
[0044] In a specific implementation of the present application, the above step 103 may include:
[0045] Sub-step A1: Acquire a first area of the target color in the main area, and a second area of the target color in the background area.
[0046] In the embodiment of the present application, the first area refers to the area occupied by the target color in the main area of the first image.
[0047] The second area refers to the area occupied by the target color in the background area of the first image.
[0048] After the subject area and the background area in the first image are identified, a first area of the target color in the subject area in the first image and a second area of the target color in the background area may be acquired.
[0049] After obtaining the first area and the second area, sub-step A2 is performed.
[0050] Sub-step A2: determining the target area according to the size relationship between the first area and the second area.
[0051] After obtaining the first area and the second area, the target area can be determined according to the size relationship between the first area and the second area. Specifically, when the first area is greater than or equal to the second area, the main area in the first image can be used as the target area. When the first area is smaller than the second area, the background area in the first image can be used as the target area.
[0052] The embodiment of the present application selects the target area according to the area occupied by the target color in the background area and the main body area, so that the transparency of the target area can be adjusted in a subsequent process to obtain a double-exposed image.
[0053] After the target region in the first image is determined according to the areas of the main region and the background region of the target color in the first image, step 104 is performed.
[0054] Step 104: superimpose the first image on the second image, and adjust the transparency of the target area.
[0055] After determining the target area in the first image, the first image may be superimposed on the second image, and the transparency of the target area may be adjusted to achieve the purpose of double exposure.
[0056] The present application generates an image with a double exposure effect by means of color detection. The operation is relatively simple, the image generation speed is fast, and the user's shooting experience can be improved.
[0057] In the embodiment of the present application, the transparency of the target area can be adjusted in combination with the color difference between the first image and the second image. Specifically, it can be described in detail in combination with the following specific implementation method.
[0058] In another specific implementation of the present application, the above step 104 may include:
[0059] Sub-step B1: Obtaining the color difference between the first image and the second image.
[0060] In this embodiment, the process of obtaining the degree of color difference between two images can be as follows: by dividing the colors in the image into three dimensions, namely, hue, saturation and transparency, after obtaining the person image and the non-person image, the hue can be detected first, that is, whether the two images have the same or similar hue. At this time, the hue needs to be segmented and can be divided into these basic hues, and all of them are considered similar colors (according to the default classification method from cameraraw in Photoshop, or other rules can be formulated), such as Figure 2 As shown, by matching the color hues of the main image and the attached image one by one, the basic color difference between the two images can be obtained. If the hues overlap or the similarity is more than 50%, it is highly similar. If the hues overlap or the similarity is 0-50%, it is low similarity.
[0061] After the first image and the second image are acquired, a color difference between the first image and the second image may be acquired.
[0062] After the color difference between the first image and the second image is acquired, sub-step B2 is performed.
[0063] Sub-step B2: adjusting the transparency of the target area according to the color difference.
[0064] After obtaining the color difference between the first image and the second image, the transparency of the target area in the first image can be adjusted according to the color difference between the two images. Specifically, when the color difference is greater than the difference threshold, the transparency of the target area in the first image can be adjusted to a first set value. When the color difference is less than or equal to the difference threshold, the transparency of the target area in the first image can be adjusted to a second set value, wherein the first set value is less than the second set value.
[0065] It can be understood that the relationship between superimposed transparency and color similarity is: the higher the color difference, the lower the superimposed transparency, but the value range is 20% to 80%, so that the phenomenon of not being able to overlap completely will not occur. The color similarity index and the superimposed transparency are opposite to each other, but when the color difference index is 0% to 20%, the transparency of the target area of the main image is set to 80%. When the color difference index is 80% to 100%, the transparency of the target area of the main image is set to 20%. Therefore, in this embodiment, when the color difference between the first image and the second image is greater than the difference threshold, the transparency of the target area is adjusted to a first set value, and when the color difference between the two is less than or equal to the difference threshold, the transparency of the target area is adjusted to a second set value. The first set value can be a transparency value range of 20% to 50%, and the second set value can be a transparency value range of 50% to 80%. This setting and transparency adjustment method can obtain a better double exposure effect image.
[0066] The embodiment of the present application adjusts the transparency of the target area in the first image by means of color difference, so as to obtain an image with a better double exposure effect.
[0067] The image processing method provided in the embodiment of the present application determines the target color in the first image by acquiring the first image and the second image, determines the target area in the first image according to the area of the main area and the background area of the target color in the first image, the target area is the main area or the background area, superimposes the first image on the second image, and adjusts the transparency of the target area. The embodiment of the present application achieves the effect of double exposure by combining the area of the main area and the background area of the target color in the first image, and does not require the user to try different blending modes, different transparencies, etc. in the image processing software to generate a double exposure image, which can reduce the user's operation steps, and the image generation speed is fast, which improves the user's shooting experience.
[0068] 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 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.
[0069] Reference Figure 3 , which shows a schematic diagram of the structure of an image processing device provided in an embodiment of the present application, such as Figure 3 As shown, the image processing device 300 may specifically include the following modules:
[0070] An image acquisition module 310 is used to acquire a first image and a second image;
[0071] A target color determination module 320, configured to determine a target color in the first image;
[0072] A target region determining module 330, configured to determine a target region in the first image according to the areas of the main region and the background region of the target color in the first image, wherein the target region is the main region or the background region;
[0073] The image overlay module 340 is used to overlay the first image on the second image and adjust the transparency of the target area.
[0074] Optionally, the target area determination module 330 includes:
[0075] an area acquisition unit, used to acquire a first area of the target color in the main area, and a second area of the target color in the background area;
[0076] The target area determination unit is used to determine the target area according to the size relationship between the first area and the second area.
[0077] Optionally, the target area determination unit includes:
[0078] A first area acquisition subunit is used to use the main body area as the target area when the first area is greater than or equal to the second area;
[0079] The second area acquisition subunit is used to use the background area as the target area when the first area is smaller than the second area.
[0080] Optionally, the image overlay module 340 includes:
[0081] A color difference acquisition unit, used to acquire the color difference between the first image and the second image;
[0082] The transparency adjustment unit is used to adjust the transparency of the target area according to the color difference.
[0083] Optionally, the transparency adjustment unit includes:
[0084] A first transparency adjustment subunit, configured to adjust the transparency of the target area to a first set value when the color difference is greater than a difference threshold;
[0085] A second transparency adjustment subunit is used to adjust the transparency of the target area to a second set value when the color difference is less than or equal to the difference threshold;
[0086] The first setting value is smaller than the second setting value.
[0087] The image processing device provided in the embodiment of the present application obtains a first image and a second image, determines a target color in the first image, determines a target area in the first image according to the area of the main area and the background area of the target color in the first image, and the target area is superimposed on the second image, and the transparency of the target area is adjusted. The embodiment of the present application achieves a double exposure effect by combining the area of the main area and the background area of the target color in the first image, and does not require the user to try different blending modes, different transparencies, etc. in the image processing software to generate a double exposure image, which can reduce the user's operation steps, and the image generation speed is fast, which improves the user's shooting experience.
[0088] The image processing device 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 (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0089] The image processing device 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.
[0090] The image processing device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0091] Alternatively, if Figure 4As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a program or instruction stored in the memory 402 and executable on the processor 401. When the program or instruction is executed by the processor 401, 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.
[0092] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0093] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0094] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510.
[0095] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 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.
[0096] The radio frequency unit 501 is used to obtain human images and non-human images;
[0097] Processor 510 is used to acquire a first image and a second image; determine a target color in the first image; determine a target area in the first image based on the areas of a main area and a background area of the target color in the first image, wherein the target area is the main area or the background area; superimpose the first image on the second image, and adjust the transparency of the target area.
[0098] The embodiment of the present application achieves a double exposure effect by combining the areas of the main area and the background area of the target color in the first image. There is no need for the user to try different blending modes, different transparencies, etc. in the image processing software to generate a double exposure image. This can reduce the user's operation steps, increase the image generation speed, and improve the user's shooting experience.
[0099] Optionally, the processor 510 is further configured to obtain a first area of the target color in the main body area and a second area of the target color in the background area; and determine the target area according to a size relationship between the first area and the second area.
[0100] Optionally, the processor 510 is further configured to, when the first area is greater than or equal to the second area, use the main area as the target area; and when the first area is smaller than the second area, use the background area as the target area.
[0101] Optionally, the processor 510 is further configured to obtain a color difference between the first image and the second image; and adjust the transparency of the target area according to the color difference.
[0102] Optionally, the processor 510 is also used to adjust the transparency of the target area to a first set value when the color difference is greater than a difference threshold; and to adjust the transparency of the target area to a second set value when the color difference is less than or equal to the difference threshold; wherein the first set value is less than the second set value.
[0103] The embodiment of the present application can adjust the transparency of the target area in the main image in combination with the color difference between the two images, so as to obtain an image with a better double exposure effect.
[0104] It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 509 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 510 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 510.
[0105] 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, 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 repeated here.
[0106] The processor is a processor in the electronic device described 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.
[0107] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, 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.
[0108] 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.
[0109] 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.
[0110] 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 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, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0111] 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: Acquire a first image and a second image; Determine a target color in the first image, wherein the target color refers to a color for which area comparison between a main area and a background area is required; Determine a target area in the first image according to the areas of the main area and the background area of the target color in the first image, the target area being the main area or the background area; The first image is superimposed on the second image, and the transparency of the target area is adjusted.
2. The method according to claim 1, characterized in that The step of determining the target area in the first image according to the areas of the main area and the background area of the target color in the first image includes: Acquire a first area of the target color in the main area, and a second area of the target color in the background area; The target area is determined according to the size relationship between the first area and the second area.
3. The method according to claim 2, characterized in that The determining the target area according to the size relationship between the first area and the second area includes: When the first area is greater than or equal to the second area, taking the main body area as the target area; When the first area is smaller than the second area, the background area is used as the target area.
4. The method according to claim 1, characterized in that: The adjusting the transparency of the target area includes: Acquire a color difference between the first image and the second image; The transparency of the target area is adjusted according to the color difference.
5. The method according to claim 4, characterized in that The adjusting the transparency of the target area according to the color difference includes: When the color difference is greater than a difference threshold, adjusting the transparency of the target area to a first set value; When the color difference is less than or equal to the difference threshold, adjusting the transparency of the target area to a second set value; The first setting value is smaller than the second setting value.
6. An image processing device, characterized in that: include: An image acquisition module, used to acquire a first image and a second image; A target color determination module, used to determine a target color in the first image, wherein the target color refers to a color for which area comparison between a main area and a background area is required; A target region determination module, used to determine a target region in the first image according to the areas of the main region and the background region of the target color in the first image, wherein the target region is the main region or the background region; An image overlay module is used to overlay the first image on the second image and adjust the transparency of the target area.
7. The device according to claim 6, characterized in that The target area determination module comprises: an area acquisition unit, used to acquire a first area of the target color in the main area, and a second area of the target color in the background area; The target area determination unit is used to determine the target area according to the size relationship between the first area and the second area.
8. The device according to claim 7, characterized in that The target area determination unit comprises: A first area acquisition subunit is used to use the main body area as the target area when the first area is greater than or equal to the second area; The second area acquisition subunit is used to use the background area as the target area when the first area is smaller than the second area.
9. The device according to claim 6, characterized in that The image overlay module comprises: A color difference acquisition unit, used to acquire the color difference between the first image and the second image; The transparency adjustment unit is used to adjust the transparency of the target area according to the color difference.
10. An electronic device, characterized in that: The method 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 steps of the image processing method according to any one of claims 1 to 5.
