CN114071016B - Image processing method, device, electronic equipment and storage medium - Google Patents
Image processing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114071016B CN114071016B CN202111335693.6A CN202111335693A CN114071016B CN 114071016 B CN114071016 B CN 114071016B CN 202111335693 A CN202111335693 A CN 202111335693A CN 114071016 B CN114071016 B CN 114071016B
- Authority
- CN
- China
- Prior art keywords
- image
- region
- clothing
- input
- clothing region
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 24
- 238000000034 method Methods 0.000 claims description 26
- 230000004044 response Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 6
- 239000003086 colorant Substances 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- FFRBMBIXVSCUFS-UHFFFAOYSA-N 2,4-dinitro-1-naphthol Chemical compound C1=CC=C2C(O)=C([N+]([O-])=O)C=C([N+]([O-])=O)C2=C1 FFRBMBIXVSCUFS-UHFFFAOYSA-N 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The application discloses an image processing method, an image processing device, electronic equipment and a storage medium, and belongs to the technical field of image processing. The specific scheme comprises the following steps: acquiring a first image; under the condition that a preset triggering condition is met, identifying a clothing region of a shooting object in the first image, and adjusting image parameters of the clothing region according to image parameters of a background region in the second image; wherein the preset trigger condition includes at least one of the following: the color matching degree between the clothing region and the background region is smaller than a preset threshold value; a first input is received.
Description
Technical Field
The application belongs to the technical field of image processing, and particularly relates to an image processing method, an image processing device, electronic equipment and a storage medium.
Background
With the development of mobile communication technology, capturing images using a photographing function of an electronic device has become an indispensable part of people's daily life. In general, when people shoot images, shooting backgrounds are randomly determined, so that the problem that the color style of the current clothes of a user is not coordinated with the color style of the shooting backgrounds is often encountered.
In the related art, a user may look at a landscape of a photographing place in advance to select a corresponding wearing, for example, red when photographing to beach and white when photographing to beach. However, if the scenery of the going-out place is various, it is difficult for the user to take a picture of the wearing of the device in contact with the background at any time and any place, and thus the complexity of the user's post-repair is increased.
Disclosure of Invention
The embodiment of the application aims to provide an image processing method, an image processing device, electronic equipment and a storage medium, which can solve the problem that a user cannot shoot photos which are engaged with the background at any time and any place.
In a first aspect, an embodiment of the present application provides an image processing method, including: acquiring a first image; under the condition that a preset triggering condition is met, identifying a clothing region of a shooting object in the first image, and adjusting image parameters of the clothing region according to image parameters of a background region in the second image; wherein the preset trigger condition includes at least one of the following: the color matching degree between the clothing region and the background region is smaller than a preset threshold value; a first input is received.
In a second aspect, an embodiment of the present application provides an image processing apparatus including: the device comprises an acquisition module and a processing module; the acquisition module is used for acquiring a first image; the processing module is used for identifying a clothing region of a shooting object in the first image under the condition that a preset trigger condition is met, and adjusting image parameters of the clothing region according to image parameters of a background region in the second image; wherein the preset trigger condition includes at least one of the following: the color matching degree between the clothing region and the background region is smaller than a preset threshold value; a first input is received.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, the clothing region of the shooting object in the first image can be identified, and the image parameters of the clothing region are adjusted according to the image parameters of the background region in the second image under the condition that the preset trigger condition is met, so that on one hand, the image parameters of the clothing region of the target shooting object are adjustable, and therefore, no matter how the wearing color style of the shooting object is when shooting, the image with the coordinated colors of the clothing region and the background region can be obtained by adjusting the image parameters; on the other hand, the image parameters of the clothing region can be adjusted according to the image parameters of the background region in the second image, so that a processing basis can be provided for an image processing process, and the complexity of user operation can be reduced.
Drawings
Fig. 1 is a schematic diagram of an image processing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an interface operation of an image processing method according to an embodiment of the present application;
FIG. 3 is a second schematic diagram of an interface operation of the image processing method according to the embodiment of the present application;
fig. 4 is a schematic structural view of an image processing apparatus according to an embodiment of the present application;
FIG. 5 is a schematic diagram of hardware of an electronic device according to an embodiment of the present application;
fig. 6 is a second hardware schematic of the electronic device according to the embodiment of the application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The image processing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The execution subject of the image processing method provided by the embodiment of the application may be an electronic device or a functional module or a functional entity capable of implementing the image processing method in the electronic device, and the electronic device in the embodiment of the application includes, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device, etc., and the image processing method provided by the embodiment of the application is described below by taking the electronic device as an execution subject.
As shown in fig. 1, an embodiment of the present application provides an image processing method, which may include steps 101 to 102:
step 101, acquiring a first image.
Optionally, the first image may be an image immediately shot by the user through the electronic device, an image in a gallery of the electronic device, or an image downloaded by the user from a network through the electronic device, which may be specifically determined according to an actual use requirement.
Step 102, under the condition that the preset triggering condition is met, identifying a clothing region of the shooting object in the first image, and adjusting image parameters of the clothing region according to image parameters of a background region in the second image.
The preset triggering condition may include at least one of the following: the color matching degree between the clothing region and the background region is smaller than a preset threshold value; a first input is received.
Taking a first image as an image instantly shot by a user through electronic equipment as an example. As shown in fig. 2, if a user wants to capture an image, the electronic device may be triggered to display a capturing preview interface of the camera, and when an object to be captured appears in the capturing preview interface, the electronic device may collect a first image including the object to be captured, identify a clothing region 21 of the object to be captured from the first image if a preset trigger condition is met, and then, adjust image parameters of the clothing region according to image parameters of a background region in the second image.
Optionally, the electronic device may first determine a color matching degree between the clothing region and the background region; and under the condition that the color matching degree is smaller than a preset threshold value, the electronic equipment can adjust the image parameters of the clothing region according to the image parameters of the background region. The color matching degree between the clothing region and the background region of the first image obtained after adjustment is higher than that between the clothing region and the background region in the first image before adjustment.
Optionally, the electronic device may display a reloading prompt message when the color matching degree is smaller than a preset threshold, and after receiving the reloading instruction of the first input, the electronic device may adjust the image parameters of the clothing region according to the image parameters of the background region.
Based on the scheme, whether to adjust the image parameters of the clothing region can be determined according to the color matching degree between the clothing region and the background region, so that the color matching degree between the clothing region and the background region can be improved, the variable-loading requirement of a user is met, and the image parameter adjustment process can be prevented from running under the condition of higher color matching degree.
Alternatively, the electronic device may identify at least one clothing region from the first image, and when the number of at least one clothing region is greater than 1, the electronic device may determine a target clothing region from the at least one clothing region.
Specifically, the electronic device may identify at least one clothing region of at least one photographic subject from the first image, where one photographic subject corresponds to at least one clothing region. Then, the electronic equipment can determine a target clothing region from at least one clothing region according to a first preset rule, and adjust image parameters of the target clothing region according to image parameters of a background region; the first preset rule is as follows: determining a target clothing area according to the second input under the condition that the second input is received in the first time; and in the case that the second input is not received within the first time, determining the clothing region with the highest priority as the target clothing region.
Illustratively, taking at least one clothing region including clothing region 1 and clothing region 2, the second input being a click input, the first time being 3s, the clothing region 2 having a higher priority than the clothing region 1 as an example. After the electronic device recognizes the clothing region 1 and the clothing region 2, the clothing region 1 and the clothing region 2 can be highlighted, the user can select one clothing region from the two clothing regions to adjust image parameters, if the user wants to adjust the clothing region 1 first, the highlighted clothing region 1 can be clicked and input within 3 seconds, after receiving the clicked and input, the electronic device can determine the clothing region 1 as a target clothing region, and adjust the image parameters of the clothing region 1 according to the image parameters of the background region. If the electronic device does not receive the click input of the user on the clothing region within 3s, the electronic device can respectively determine the priorities of the clothing region 1 and the clothing region 2, then determine the clothing region 2 with higher priority as the target clothing region, and adjust the image parameters of the clothing region 2 according to the image parameters of the background region.
Based on the scheme, because a plurality of clothing regions can be identified and the target clothing region can be determined, not only can each shooting object in the first image be reloaded, but also different clothing regions of the same shooting object can be reloaded, and therefore the flexibility of image processing is improved.
Alternatively, the at least one clothing region may include a plurality of clothing regions of one subject, and may also include clothing regions of each of the plurality of subjects. For example, in the case where one photographic subject is included in the first image, if the photographic subject wears a one-piece garment, the electronic device may recognize one clothing region, and if the photographic subject wears a coat and a lower coat, the electronic device may recognize two clothing regions; in the case where a plurality of subjects are included in the first image, the electronic device may recognize at least one clothing region from each subject.
Alternatively, the priority of the clothing region may be determined according to the area of the region, the larger the area of the region, the higher the priority of the corresponding clothing region.
Alternatively, the second image may be the first image; alternatively, the second image may be an instant acquisition image; alternatively, the second image may be any image determined by the user from a gallery.
Alternatively, the background area may be an area designated by the user from the second image, or may be an area automatically determined by the electronic device. The following is a detailed description by way of two examples.
Example 1: the background area is an area automatically determined by the electronic device.
In the case where the second image is the first image, the background area may be a photographed background area in the first image. That is, in the case of displaying the first image, the electronic device may recognize a photographing background of the photographing object and perform image parameter adjustment on a clothing region of the photographing object according to the photographing background region.
Based on the above-mentioned scheme, since the background area may be the shooting background area in the first image when the second image is the first image, the image parameter adjustment may be performed on the clothing area of the shooting object according to the shooting background area, so that the clothing of the shooting object is more coordinated with the shooting background.
Example 2: the background area is an area designated by the user from the second image.
In the case of displaying the second image, the electronic device may receive a third input of the second image by the user; and determining at least one center point in response to the third input; determining at least one image area according to the contour information of the at least one center point and the clothing area, wherein one center point corresponds to one image area; then, determining a background area from at least one image area according to a second preset rule; the second preset rule may be: determining a background area according to the fourth input when the fourth input is received in the second time; in the case where the fourth input is not received within the second time, the image area with the highest priority is determined as the background area.
Illustratively, the second image is taken as the first image. As shown in (a) of fig. 3, in the case of displaying the first image, the user may make a long press input to an arbitrary region of the first image, the electronic device may determine the center point 31 and the center point 32 according to the long press input, and thereafter, the electronic device may determine the image region 33 corresponding to the center point 31 and the image region 34 corresponding to the center point 32 according to the contour information of the clothing region 21. Finally, if the user makes a fourth input to the image area 33 in the second time, the electronic device may determine the image area 33 as a background area; if the user does not make a fourth input to any of the image areas within the second time, the electronic device may determine the higher priority image area among the image areas 33 and 34 as the background area.
Based on the above scheme, since the background area can be determined according to the user input, the clothing of the shooting object after the replacement can be made to meet the aesthetic requirements of the user.
Optionally, the electronic device may determine the priority of each of the at least one image area according to at least one of: the integrity of the image area, the color type, number of colors in the image area, etc.
Optionally, the electronic device adjusting the image parameters of the clothing region according to the image parameters of the background region in the second image may include the following two implementations:
in implementation mode 1, the electronic device may adjust the image parameter of each pixel point in the clothing area to the image parameter of the background area in a one-to-one correspondence manner. That is, the electronic device may directly replace the image in the clothing region with the image in the background region.
It should be noted that, the number of the pixels in the background area is greater than or equal to the number of the pixels in the clothing area, and the contour range of the background area includes the contour range of the clothing area.
In implementation 2, the electronic device may determine, according to a color matching rule, a target image parameter corresponding to an image parameter of the background area, and adjust the image parameter in the clothing area to the target image parameter.
The electronic device may include a color matching rule, after determining the image parameter of the background area, the electronic device may determine a target image parameter corresponding to the image parameter of the background area according to the color matching rule, for example, if the image parameter of the background area indicates that the background area is golden yellow, and according to the color matching rule, the matching degree between the golden yellow and the white is higher, so the electronic device may determine the image parameter corresponding to the white as the target image parameter.
Optionally, if a plurality of image parameters corresponding to the image parameters of the background area can be determined according to the color matching rule, the electronic device may determine the target image parameter according to the user input, or determine the image parameter with the highest matching degree with the image parameter of the background area as the target image parameter. For example, the determination of the target image parameter based on the user input is taken as an example. The electronic device can display the image display effect corresponding to each image parameter, a user can perform a selection input according to the image display effect corresponding to each image parameter, and after receiving the selection input, the electronic device can determine the target image parameter according to the selection input.
Based on the above scheme, not only the image parameters of each pixel point in the clothing region can be adjusted to the image parameters of the background region in a one-to-one correspondence manner, but also the target image parameters corresponding to the image parameters of the background region can be determined according to the color matching rule, and the image parameters in the clothing region are adjusted to the target image parameters, so that not only can the diversity of image processing modes be increased, but also the interestingness of user replacement can be increased.
In the embodiment of the application, the clothing region of the shooting object in the first image can be identified, and the image parameters of the clothing region are adjusted according to the image parameters of the background region in the second image under the condition that the preset trigger condition is met, so that on one hand, the image parameters of the clothing region of the target shooting object are adjustable, and therefore, no matter how the wearing color style of the shooting object is when shooting, the image with the coordinated colors of the clothing region and the background region can be obtained by adjusting the image parameters; on the other hand, the image parameters of the clothing region can be adjusted according to the image parameters of the background region in the second image, so that a processing basis can be provided for an image processing process, and the complexity of user operation can be reduced.
It should be noted that, in the image processing method provided in the embodiment of the present application, the execution subject may be an image processing apparatus, or a control module for executing the image processing method in the image processing apparatus. In the embodiment of the present application, an image processing apparatus is described by taking an example of an image processing method performed by the image processing apparatus.
As shown in fig. 4, an embodiment of the present application further provides an image processing apparatus 400, including: an acquisition module 401 and a processing module 402. An acquisition module 401, which may be used to acquire the first image; the processing module 402 may be configured to identify a clothing region of the subject in the first image and adjust image parameters of the clothing region according to image parameters of a background region in the second image when a preset trigger condition is satisfied; wherein the preset trigger condition includes at least one of the following: the color matching degree between the clothing region and the background region is smaller than a preset threshold value; a first input is received.
Optionally, the processing module 402 may specifically be configured to: identifying at least one clothing region of at least one photographic subject, one photographic subject corresponding to at least one clothing region; determining a target clothing region from the at least one clothing region according to a first preset rule, and adjusting image parameters of the target clothing region according to the image parameters of the background region; the first preset rule is as follows: determining the target clothing region according to a second input when the second input is received in a first time; and under the condition that the second input is not received within the first time, determining the clothing region with the highest priority as the target clothing region.
Optionally, with continued reference to fig. 4, the apparatus 400 may further include a receiving module 403; the receiving module 403 may be configured to receive a third input of the second image by the user in a case where the second image is displayed; the processing module 402 may be further configured to determine at least one center point in response to the third input; determining at least one image area according to the at least one center point and the outline information of the clothing area, wherein one center point corresponds to one image area; determining the background area from the at least one image area according to a second preset rule; wherein, the second preset rule is: determining the background area according to the fourth input when the fourth input is received in the second time; and determining an image area with the highest priority as the background area in the case that the fourth input is not received in the second time.
Optionally, the processing module 402 may specifically be configured to: adjusting the image parameters of each pixel point in the clothing region into the image parameters of the background region in a one-to-one correspondence manner; or determining target image parameters corresponding to the image parameters of the background area according to the color collocation rule, and adjusting the image parameters in the clothing area to the target image parameters.
In the embodiment of the application, the clothing region of the shooting object in the first image can be identified, and the image parameters of the clothing region are adjusted according to the image parameters of the background region in the second image under the condition that the preset trigger condition is met, so that on one hand, the image parameters of the clothing region of the target shooting object are adjustable, and therefore, no matter how the wearing color style of the shooting object is when shooting, the image with the coordinated colors of the clothing region and the background region can be obtained by adjusting the image parameters; on the other hand, the image parameters of the clothing region can be adjusted according to the image parameters of the background region in the second image, so that a processing basis can be provided for an image processing process, and the complexity of user operation can be reduced.
The image processing device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The image processing device provided in the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 3, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 5, an electronic device 500 according to an embodiment of the present application further includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of being executed on the processor 501, where the program or the instruction implements each process of the above-mentioned image processing method embodiment when executed by the processor 501, and the process can achieve the same technical effect, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 1010 may be configured to acquire a first image; under the condition that a preset triggering condition is met, identifying a clothing region of a shooting object in the first image, and adjusting image parameters of the clothing region according to image parameters of a background region in the second image; wherein the preset trigger condition includes at least one of the following: the color matching degree between the clothing region and the background region is smaller than a preset threshold value; a first input is received.
In the embodiment of the application, the clothing region of the shooting object in the first image can be identified, and the image parameters of the clothing region are adjusted according to the image parameters of the background region in the second image under the condition that the preset trigger condition is met, so that on one hand, the image parameters of the clothing region of the target shooting object are adjustable, and therefore, no matter how the wearing color style of the shooting object is when shooting, the image with the coordinated colors of the clothing region and the background region can be obtained by adjusting the image parameters; on the other hand, the image parameters of the clothing region can be adjusted according to the image parameters of the background region in the second image, so that a processing basis can be provided for an image processing process, and the complexity of user operation can be reduced.
Optionally, the processor 1010 may be specifically configured to: identifying at least one clothing region of at least one photographic subject, one photographic subject corresponding to at least one clothing region; determining a target clothing region from the at least one clothing region according to a first preset rule, and adjusting image parameters of the target clothing region according to the image parameters of the background region; the first preset rule is as follows: determining the target clothing region according to a second input when the second input is received in a first time; and under the condition that the second input is not received within the first time, determining the clothing region with the highest priority as the target clothing region.
In the embodiment of the application, as a plurality of clothing regions can be identified and the target clothing region can be determined, not only can each shooting object in the first image be reloaded, but also different clothing regions of the same shooting object can be reloaded, thereby improving the flexibility of image processing.
Alternatively, the user input unit 1007 may be configured to receive a third input of the second image from the user in a case where the second image is displayed; a processor 1010 further operable to determine at least one center point in response to the third input; determining at least one image area according to the at least one center point and the outline information of the clothing area, wherein one center point corresponds to one image area; determining the background area from the at least one image area according to a second preset rule; wherein, the second preset rule is: determining the background area according to the fourth input when the fourth input is received in the second time; and determining an image area with the highest priority as the background area in the case that the fourth input is not received in the second time.
In the embodiment of the application, the background area can be determined according to the input of the user, so that the clothing of the shooting object after the replacement can meet the aesthetic requirement of the user.
Optionally, the processor 1010 may be specifically configured to: adjusting the image parameters of each pixel point in the clothing region into the image parameters of the background region in a one-to-one correspondence manner; or determining target image parameters corresponding to the image parameters of the background area according to the color collocation rule, and adjusting the image parameters in the clothing area to the target image parameters.
In the embodiment of the application, the image parameters of each pixel point in the clothing region can be adjusted to be the image parameters of the background region in a one-to-one correspondence manner, the target image parameters corresponding to the image parameters of the background region can be determined according to the color collocation rule, and the image parameters in the clothing region are adjusted to be the target image parameters, so that the diversity of image processing modes can be increased, and the interestingness of user replacement can be increased.
It should be appreciated that in an embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two portions, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 1009 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 1010 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above image processing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, a detailed description is omitted here.
Wherein 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 Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the image processing method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the related art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (6)
1. An image processing method, comprising:
acquiring a first image;
under the condition that a preset triggering condition is met, identifying a clothing region of a shooting object in the first image, determining a target image parameter corresponding to an image parameter of a background region in the second image according to a color matching rule, and adjusting the image parameter in the clothing region to be the target image parameter;
wherein the preset trigger condition includes at least one of the following: the color matching degree between the clothing region and the background region is smaller than a preset threshold value; receiving a first input;
before adjusting the image parameters in the clothing region to the target image parameters, the method further comprises:
receiving a third input of a user to the second image while the second image is displayed;
determining at least one center point in response to the third input;
determining at least one image area according to the at least one center point and the outline information of the clothing area, wherein one center point corresponds to one image area;
determining the background area from the at least one image area according to a second preset rule;
wherein, the second preset rule is: determining the background area according to the fourth input when the fourth input is received in the second time; and determining an image area with the highest priority as the background area in the case that the fourth input is not received in the second time.
2. The image processing method according to claim 1, wherein the identifying the clothing region of the target shooting object in the first image, determining the target image parameter corresponding to the image parameter of the background region in the second image according to the color matching rule, and adjusting the image parameter in the clothing region to the target image parameter includes:
identifying at least one clothing region of at least one photographic subject, one photographic subject corresponding to at least one clothing region;
determining a target clothing region from the at least one clothing region according to a first preset rule, and adjusting image parameters of the target clothing region according to the image parameters of the background region;
the first preset rule is as follows: determining the target clothing region according to a second input when the second input is received in a first time; and under the condition that the second input is not received within the first time, determining the clothing region with the highest priority as the target clothing region.
3. An image processing apparatus, comprising: the device comprises an acquisition module and a processing module;
the acquisition module is used for acquiring a first image;
the processing module is used for identifying a clothing region of a shooting object in the first image under the condition that a preset trigger condition is met, determining a target image parameter corresponding to an image parameter of a background region in the second image according to a color matching rule, and adjusting the image parameter in the clothing region into the target image parameter;
wherein the preset trigger condition includes at least one of the following: the color matching degree between the clothing region and the background region is smaller than a preset threshold value; receiving a first input;
the apparatus further comprises a receiving module;
the receiving module is used for receiving a third input of a user to the second image under the condition that the second image is displayed;
the processing module is further configured to determine at least one center point in response to the third input; determining at least one image area according to the at least one center point and the outline information of the clothing area, wherein one center point corresponds to one image area; determining the background area from the at least one image area according to a second preset rule;
wherein, the second preset rule is: determining the background area according to the fourth input when the fourth input is received in the second time; and determining an image area with the highest priority as the background area in the case that the fourth input is not received in the second time.
4. An image processing device according to claim 3, characterized in that the processing module is specifically configured to:
identifying at least one clothing region of at least one photographic subject, one photographic subject corresponding to at least one clothing region;
determining a target clothing region from the at least one clothing region according to a first preset rule, and adjusting image parameters of the target clothing region according to the image parameters of the background region;
the first preset rule is as follows: determining the target clothing region according to a second input when the second input is received in a first time; and under the condition that the second input is not received within the first time, determining the clothing region with the highest priority as the target clothing region.
5. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the image processing method according to any of claims 1-2.
6. A computer readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the image processing method according to any of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111335693.6A CN114071016B (en) | 2021-11-11 | 2021-11-11 | Image processing method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111335693.6A CN114071016B (en) | 2021-11-11 | 2021-11-11 | Image processing method, device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114071016A CN114071016A (en) | 2022-02-18 |
CN114071016B true CN114071016B (en) | 2023-10-27 |
Family
ID=80275150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111335693.6A Active CN114071016B (en) | 2021-11-11 | 2021-11-11 | Image processing method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114071016B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917158A (en) * | 2012-09-07 | 2013-02-06 | 中兴通讯股份有限公司 | Dynamic color replacing device and method as well as cellphone |
JP2018142352A (en) * | 2018-04-23 | 2018-09-13 | 株式会社リコー | Image processing system, image processing method, and program |
CN111654635A (en) * | 2020-06-30 | 2020-09-11 | 维沃移动通信有限公司 | Shooting parameter adjusting method and device and electronic equipment |
CN112422828A (en) * | 2020-11-17 | 2021-02-26 | 维沃移动通信有限公司 | Image processing method, image processing apparatus, electronic device, and readable storage medium |
CN112532891A (en) * | 2020-11-25 | 2021-03-19 | 维沃移动通信有限公司 | Photographing method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6337430B2 (en) * | 2013-08-22 | 2018-06-06 | 株式会社リコー | Image processing system, image processing method, and program |
US20210166399A1 (en) * | 2019-10-14 | 2021-06-03 | EyeQ Imaging Inc. | Background Balancing in a Collection of Digital Images |
US11615507B2 (en) * | 2020-04-29 | 2023-03-28 | Adobe Inc. | Automatic content-aware collage |
-
2021
- 2021-11-11 CN CN202111335693.6A patent/CN114071016B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917158A (en) * | 2012-09-07 | 2013-02-06 | 中兴通讯股份有限公司 | Dynamic color replacing device and method as well as cellphone |
JP2018142352A (en) * | 2018-04-23 | 2018-09-13 | 株式会社リコー | Image processing system, image processing method, and program |
CN111654635A (en) * | 2020-06-30 | 2020-09-11 | 维沃移动通信有限公司 | Shooting parameter adjusting method and device and electronic equipment |
CN112422828A (en) * | 2020-11-17 | 2021-02-26 | 维沃移动通信有限公司 | Image processing method, image processing apparatus, electronic device, and readable storage medium |
CN112532891A (en) * | 2020-11-25 | 2021-03-19 | 维沃移动通信有限公司 | Photographing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114071016A (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112135046B (en) | Video shooting method, video shooting device and electronic equipment | |
CN113794834B (en) | Image processing method and device and electronic equipment | |
CN112637500B (en) | Image processing method and device | |
CN112333382B (en) | Shooting method and device and electronic equipment | |
CN112911147B (en) | Display control method, display control device and electronic equipment | |
CN112422798A (en) | Photographing method and device, electronic equipment and storage medium | |
CN112532881A (en) | Image processing method and device and electronic equipment | |
CN112532885A (en) | Anti-shake method and device and electronic equipment | |
CN112312019A (en) | Light supplementing method and device and electronic equipment | |
CN113794831B (en) | Video shooting method, device, electronic equipment and medium | |
CN112511743B (en) | Video shooting method and device | |
CN114071016B (en) | Image processing method, device, electronic equipment and storage medium | |
CN113923368B (en) | Shooting method and device | |
CN113794833B (en) | Shooting method and device and electronic equipment | |
CN113286085B (en) | Display control method and device and electronic equipment | |
CN112653841B (en) | Shooting method and device and electronic equipment | |
CN112153291B (en) | Photographing method and electronic equipment | |
CN113962840A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN113891002A (en) | Shooting method and device | |
CN114125226A (en) | Image shooting method and device, electronic equipment and readable storage medium | |
CN114245017A (en) | Shooting method and device and electronic equipment | |
CN113542599A (en) | Image shooting method and device | |
CN112492216B (en) | Shooting control method and shooting control device | |
CN114302057B (en) | Image parameter determining method, device, electronic equipment and storage medium | |
CN113489901B (en) | Shooting method and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |