CN114071016A - Image processing method, image processing device, electronic equipment and storage medium - Google Patents

Image processing method, image processing device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114071016A
CN114071016A CN202111335693.6A CN202111335693A CN114071016A CN 114071016 A CN114071016 A CN 114071016A CN 202111335693 A CN202111335693 A CN 202111335693A CN 114071016 A CN114071016 A CN 114071016A
Authority
CN
China
Prior art keywords
image
region
clothing
input
area
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.)
Granted
Application number
CN202111335693.6A
Other languages
Chinese (zh)
Other versions
CN114071016B (en
Inventor
韩桂敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111335693.6A priority Critical patent/CN114071016B/en
Publication of CN114071016A publication Critical patent/CN114071016A/en
Application granted granted Critical
Publication of CN114071016B publication Critical patent/CN114071016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

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 trigger condition is met, identifying a clothing area of a shooting object in the first image, and adjusting image parameters of the clothing area according to image parameters of a background area in the second image; wherein the preset trigger condition comprises 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

Image processing method, image processing device, electronic equipment and storage medium
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to an image processing method and apparatus, an electronic device, and a storage medium.
Background
With the development of mobile communication technology, capturing images using a capturing function of an electronic device has become an indispensable part of people's daily life. Generally, when people take images, the shooting background is randomly determined, so that the problem that the color style of the current clothes of the user is not consistent with the color style of the shooting background is often encountered.
In the related art, the user can look ahead at the scene of the shooting place to select the corresponding wearing, for example, red for going to beach and white for going to beach. However, if the scene of the tourist site is varied, it is difficult for the user to capture a photograph that fits the background at any time and any place, and therefore the operation complexity of the user for later-stage image correction is increased.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image processing method, an image processing apparatus, an electronic device, and a storage medium, which can solve the problem that a user cannot capture a photograph that is fit to a 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 trigger condition is met, identifying a clothing area of a shooting object in the first image, and adjusting image parameters of the clothing area according to image parameters of a background area in the second image; wherein the preset trigger condition comprises 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 the clothing region of the shooting object in the first image under the condition that a preset trigger condition is met, and adjusting the image parameters of the clothing region according to the image parameters of the background region in the second image; wherein the preset trigger condition comprises 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, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement 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 the processor is configured to execute a program or instructions to implement the 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 parameter of the clothing region is adjusted according to the image parameter 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 parameter of the clothing region of the target shooting object is adjustable, and therefore, no matter how the wearing color style of the shooting object is during shooting, an image with the color coordination between the clothing region and the background region can be obtained by adjusting the image parameter; 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 processing basis can be provided for the image processing process, and the complexity of user operation can be reduced.
Drawings
Fig. 1 is a schematic diagram of an image processing method provided in an embodiment of the present application;
FIG. 2 is a schematic interface operation diagram of an image processing method according to an embodiment of the present disclosure;
fig. 3 is a second schematic interface operation diagram of the image processing method according to the embodiment of the present application;
fig. 4 is a schematic structural diagram of an image processing apparatus provided in an embodiment of the present application;
FIG. 5 is a hardware diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a second hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The image processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In the image processing method provided in the embodiment of the present application, an execution subject of the image processing method may be an electronic device or a functional module or a functional entity capable of implementing the image processing method in the electronic device, the electronic device mentioned in the embodiment of the present application includes but is not limited to a mobile phone, a tablet computer, a camera, a wearable device, and the like, and the image processing method provided in the embodiment of the present application is described below with the electronic device as an example.
As shown in fig. 1, an embodiment of the present application provides an image processing method, which may include steps 101-102:
step 101, acquiring a first image.
Optionally, the first image may be an image instantly photographed by a user through an electronic device, may also be an image in an electronic device gallery, and may also be an image downloaded by the user from a network through the electronic device, which may be determined specifically according to actual use requirements, and this is not limited in this embodiment of the application.
And 102, under the condition that a preset trigger condition is met, identifying the clothing area of the shooting object in the first image, and adjusting the image parameters of the clothing area according to the image parameters of the background area in the second image.
Wherein, the preset trigger 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.
Take the first image as an example of an image instantly photographed by a user through an electronic device. As shown in fig. 2, if the user wants to capture an image, the electronic device may be triggered to display a capture preview interface of the camera, when the object to be captured appears in the capture preview interface, the electronic device may capture a first image including the object to be captured, and identify a clothing region 21 of the object to be captured from the first image if a preset trigger condition is met, and then the electronic device may adjust image parameters of the clothing region according to image parameters of a background region in a second image.
Optionally, the electronic device may first determine a color matching degree between the clothing region and the background region; under the condition that the color matching degree is smaller than the 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 of the first image obtained after adjustment and the background region is higher than the color matching degree between the clothing region of the first image before adjustment and the background region.
Optionally, the electronic device may display a change prompt message when the color matching degree is smaller than a preset threshold, and after receiving a first input change instruction, the electronic device may adjust the image parameter of the clothing region according to the image parameter of the background region.
Based on the scheme, whether the image parameters of the clothing region are adjusted or not 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 requirement of a user on changing the clothing can be met, and the image parameter adjusting process can be prevented from being operated under the condition of high color matching degree.
Optionally, the electronic device may identify at least one garment region from the first image, and when the number of the at least one garment region is greater than 1, the electronic device may determine a target garment region from the at least one garment 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 device can determine a target clothing region from the at least one clothing region according to a first preset rule, and adjust the image parameter of the target clothing region according to the image parameter of the background region; wherein, the first preset rule is as follows: determining a target clothing region according to a second input under the condition that the second input is received within the 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.
Illustratively, take the example that the at least one clothing region includes clothing region 1 and clothing region 2, the second input is a click input, the first time is 3s, and the priority of clothing region 2 is higher than that of clothing region 1. After the electronic device identifies the clothing region 1 and the clothing region 2, the clothing region 1 and the clothing region 2 can be highlighted, a 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, click input can be performed on the highlighted clothing region 1 within 3 seconds, after the electronic device receives the click input, the clothing region 1 can be determined as a target clothing region, and the image parameters of the clothing region 1 can be adjusted according to the image parameters of the background region. If the electronic equipment does not receive the click input of the user to the clothing region within 3s, the electronic equipment can respectively determine the priority of the clothing region 1 and the priority of 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 areas can be identified and the target clothing area can be determined, not only can the clothing of each shooting object in the first image be changed, but also different clothing areas of the same shooting object can be changed, and therefore, the flexibility of image processing is improved.
Optionally, the at least one clothing region may include a plurality of clothing regions of one photographic subject, and may also include a clothing region of each photographic subject in the plurality of photographic subjects. For example, in the case where the first image includes one photographic subject, if the photographic subject wears a coverall, the electronic device may recognize one clothing region, and if the photographic subject wears a jacket and a lower clothing, the electronic device may recognize two clothing regions; in the case where a plurality of photographic subjects are included in the first image, the electronic device may recognize at least one clothing region from each photographic subject.
Alternatively, the priority of the garment region may be determined according to the region area, and the larger the region area is, the higher the priority of the corresponding garment region is.
Alternatively, the second image may be a first image; alternatively, the second image may be a live capture image; alternatively, the second image may be any image that the user determines from a gallery.
Alternatively, the background region may be a region designated by the user from the second image, or may be a region 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 region may be a shooting background region 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 scheme, since the background region can be the shooting background region in the first image when the second image is the first image, the image parameter adjustment can be performed on the clothing region of the shooting object according to the shooting background region, so that the clothing of the shooting object and the shooting background are more coordinated.
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 in response to a third input, determining at least one center point; determining at least one image area according to the contour information of the at least one central point and the clothing area, wherein one central point corresponds to one image area; then, determining a background area from at least one image area according to a second preset rule; wherein, the second preset rule may be: determining a background area according to a fourth input under the condition that the fourth input is received within a second time; and in the case that the fourth input is not received within the second time, determining the image area with the highest priority 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 perform a long press input on 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 performs a fourth input on the image area 33 within 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 for any image area within the second time, the electronic device may determine an image area with a higher priority of the image areas 33 and 34 as the background area.
Based on the scheme, the background area can be determined according to the input of the user, so that the clothes of the replaced shooting object can meet the aesthetic requirements of the user.
Optionally, the electronic device may determine the priority of each of the at least one image region according to at least one of: integrity of the image area, type of color in the image area, number of colors, etc.
Optionally, the electronic device adjusting the image parameter of the clothing region according to the image parameter of the background region in the second image may include the following two implementation manners:
in implementation mode 1, the electronic device may adjust the image parameters of each pixel point in the clothing region to the image parameters of the background region 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 pixel points in the background area is greater than or equal to the number of the pixel points in the clothing area, and the contour range of the background area includes the contour range of the clothing area.
In implementation mode 2, the electronic device may determine a target image parameter corresponding to the image parameter of the background region according to the color matching rule, and adjust the image parameter in the clothing region to the target image parameter.
The electronic device may include a color collocation rule, and after determining the image parameter of the background region, the electronic device may determine the target image parameter corresponding to the image parameter of the background region according to the color collocation rule, for example, if the image parameter of the background region indicates that the background region is golden yellow, according to the color collocation rule, the matching degree of the golden yellow and the white is higher, and therefore, the electronic device may determine the image parameter corresponding to the white as the target image parameter.
Alternatively, if a plurality of image parameters corresponding to the image parameters of the background region can be determined according to the color collocation rule, the electronic device may determine the target image parameters according to user input, or determine the image parameters with the highest matching degree with the image parameters of the background region as the target image parameters. For example, the target image parameters are determined according to user input. 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 the electronic device can determine the target image parameter according to the selection input after receiving the selection input.
Based on the scheme, 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 mode, 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 the target image parameters, so that the diversity of image processing modes can be increased, and the interestingness of changing clothing of a user 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 parameter of the clothing region is adjusted according to the image parameter 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 parameter of the clothing region of the target shooting object is adjustable, and therefore, no matter how the wearing color style of the shooting object is during shooting, an image with the color coordination between the clothing region and the background region can be obtained by adjusting the image parameter; 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 processing basis can be provided for the 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 in the image processing apparatus for executing the image processing method. The image processing apparatus provided in the embodiment of the present application is described with an example in which an image processing apparatus executes an image processing method.
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 configured to acquire a first image; the processing module 402 may be configured to, when a preset trigger condition is met, identify a clothing region of a photographic object in the first image, and adjust an image parameter of the clothing region according to an image parameter of a background region in a second image; wherein the preset trigger condition comprises 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 be specifically configured to: identifying at least one clothing region of at least one photographic subject, wherein one photographic subject at least corresponds to one clothing region; determining a target clothing region from the at least one clothing region according to a first preset rule, and adjusting the image parameter of the target clothing region according to the image parameter of the background region; wherein the first preset rule is as follows: determining the target garment region according to a second input if the second input is received within a first time; determining the clothing region with the highest priority as the target clothing region if the second input is not received within the first time.
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 from 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 central point and the contour information of the clothing area, wherein one central 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 as follows: determining the background area according to a fourth input when the fourth input is received within a second time; determining an image area with the highest priority as the background area if the fourth input is not received within the second time.
Optionally, the processing module 402 may be specifically configured to: correspondingly adjusting the image parameters of each pixel point in the clothing region into the image parameters of the background region one by one; or determining a target image parameter corresponding to the image parameter of the background area according to a color collocation rule, and adjusting the image parameter in the clothing area to the target image parameter.
In the embodiment of the application, the clothing region of the shooting object in the first image can be identified, and the image parameter of the clothing region is adjusted according to the image parameter 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 parameter of the clothing region of the target shooting object is adjustable, and therefore, no matter how the wearing color style of the shooting object is during shooting, an image with the color coordination between the clothing region and the background region can be obtained by adjusting the image parameter; 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 processing basis can be provided for the image processing process, and the complexity of user operation can be reduced.
The image processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
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 (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The image processing apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and executable on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the above-mentioned embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
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: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through 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 those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 1010 may be configured to acquire a first image; under the condition that a preset trigger condition is met, identifying a clothing area of a shooting object in the first image, and adjusting image parameters of the clothing area according to image parameters of a background area in the second image; wherein the preset trigger condition comprises 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 parameter of the clothing region is adjusted according to the image parameter 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 parameter of the clothing region of the target shooting object is adjustable, and therefore, no matter how the wearing color style of the shooting object is during shooting, an image with the color coordination between the clothing region and the background region can be obtained by adjusting the image parameter; 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 processing basis can be provided for the 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, wherein one photographic subject at least corresponds to one clothing region; determining a target clothing region from the at least one clothing region according to a first preset rule, and adjusting the image parameter of the target clothing region according to the image parameter of the background region; wherein the first preset rule is as follows: determining the target garment region according to a second input if the second input is received within a first time; determining the clothing region with the highest priority as the target clothing region if the second input is not received within the first time.
In the embodiment of the application, because a plurality of clothing regions can be identified and the target clothing region can be determined, not only can the clothing of each shooting object in the first image be changed, but also different clothing regions of the same shooting object can be changed, and therefore, the flexibility of image processing is improved.
Optionally, the user input unit 1007 may be configured to receive a third input of the second image by 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 central point and the contour information of the clothing area, wherein one central 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 as follows: determining the background area according to a fourth input when the fourth input is received within a second time; determining an image area with the highest priority as the background area if the fourth input is not received within 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 clothes of the replaced shooting object can meet the aesthetic requirements of the user.
Optionally, the processor 1010 may be specifically configured to: correspondingly adjusting the image parameters of each pixel point in the clothing region into the image parameters of the background region one by one; or determining a target image parameter corresponding to the image parameter of the background area according to a color collocation rule, and adjusting the image parameter in the clothing area to the target image parameter.
In the embodiment of the application, 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, 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 the target image parameters, so that not only can the diversity of image processing modes be increased, but also the interestingness of user changing is increased.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as 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 may include two parts, 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, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the 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 (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the image processing method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An image processing method, comprising:
acquiring a first image;
under the condition that a preset trigger condition is met, identifying a clothing area of a shooting object in the first image, and adjusting image parameters of the clothing area according to image parameters of a background area in the second image;
wherein the preset trigger condition comprises 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.
2. The image processing method according to claim 1, wherein the identifying a clothing region of the target photographic subject in the first image and adjusting an image parameter of the clothing region according to an image parameter of a background region in the second image comprises:
identifying at least one clothing region of at least one photographic subject, wherein one photographic subject at least corresponds to one clothing region;
determining a target clothing region from the at least one clothing region according to a first preset rule, and adjusting the image parameter of the target clothing region according to the image parameter of the background region;
wherein the first preset rule is as follows: determining the target garment region according to a second input if the second input is received within a first time; determining the clothing region with the highest priority as the target clothing region if the second input is not received within the first time.
3. The image processing method according to claim 1 or 2, wherein before the adjusting the image parameter of the clothing region according to the image parameter of the background region in the second image, the method further comprises:
receiving a third input of the second image by a user in the case of displaying the second image;
determining at least one center point in response to the third input;
determining at least one image area according to the at least one central point and the contour information of the clothing area, wherein one central 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 as follows: determining the background area according to a fourth input when the fourth input is received within a second time; determining an image area with the highest priority as the background area if the fourth input is not received within the second time.
4. The image processing method according to claim 3, wherein the adjusting the image parameter of the clothing region according to the image parameter of the background region in the second image comprises:
correspondingly adjusting the image parameters of each pixel point in the clothing region into the image parameters of the background region one by one; alternatively, the first and second electrodes may be,
and determining target image parameters corresponding to the image parameters of the background area according to a color collocation rule, and adjusting the image parameters in the clothing area to the target image parameters.
5. An image processing apparatus characterized by 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 the clothing region of the shooting object in the first image under the condition that a preset trigger condition is met, and adjusting the image parameters of the clothing region according to the image parameters of the background region in the second image;
wherein the preset trigger condition comprises 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.
6. The image processing apparatus according to claim 5, wherein the processing module is specifically configured to:
identifying at least one clothing region of at least one photographic subject, wherein one photographic subject at least corresponds to one clothing region;
determining a target clothing region from the at least one clothing region according to a first preset rule, and adjusting the image parameter of the target clothing region according to the image parameter of the background region;
wherein the first preset rule is as follows: determining the target garment region according to a second input if the second input is received within a first time; determining the clothing region with the highest priority as the target clothing region if the second input is not received within the first time.
7. The image processing apparatus according to claim 5 or 6, characterized in that the apparatus further comprises a receiving module;
the receiving module is used for receiving a third input of the second image from a user 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 central point and the contour information of the clothing area, wherein one central 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 as follows: determining the background area according to a fourth input when the fourth input is received within a second time; determining an image area with the highest priority as the background area if the fourth input is not received within the second time.
8. The image processing apparatus according to claim 7, wherein the processing module is specifically configured to:
correspondingly adjusting the image parameters of each pixel point in the clothing region into the image parameters of the background region one by one; alternatively, the first and second electrodes may be,
and determining target image parameters corresponding to the image parameters of the background area according to a color collocation rule, and adjusting the image parameters in the clothing area to the target image parameters.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the image processing method according to any one of claims 1 to 4.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the image processing method according to any one of claims 1 to 4.
CN202111335693.6A 2021-11-11 2021-11-11 Image processing method, device, electronic equipment and storage medium Active CN114071016B (en)

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 true CN114071016A (en) 2022-02-18
CN114071016B 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 (8)

* Cited by examiner, † Cited by third party
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
US20160205273A1 (en) * 2013-08-22 2016-07-14 Toshihiro Suzuki Image processing system, image processing method, and computer program product
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
US20210166399A1 (en) * 2019-10-14 2021-06-03 EyeQ Imaging Inc. Background Balancing in a Collection of Digital Images
US20210342972A1 (en) * 2020-04-29 2021-11-04 Adobe Inc. Automatic Content-Aware Collage

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
US20160205273A1 (en) * 2013-08-22 2016-07-14 Toshihiro Suzuki Image processing system, image processing method, and computer program product
JP2018142352A (en) * 2018-04-23 2018-09-13 株式会社リコー 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
US20210342972A1 (en) * 2020-04-29 2021-11-04 Adobe Inc. Automatic Content-Aware Collage
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
CN114071016B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN111601066B (en) Information acquisition method and device, electronic equipment and storage medium
CN113794834B (en) Image processing method and device and electronic equipment
CN113794829B (en) Shooting method and device and electronic equipment
CN112911147B (en) Display control method, display control device and electronic equipment
CN113014803A (en) Filter adding method and device and electronic equipment
CN112333386A (en) Shooting method and device and electronic equipment
CN112532885A (en) Anti-shake method and device and electronic equipment
CN112702531B (en) Shooting method and device and electronic equipment
CN114025092A (en) Shooting control display method and device, electronic equipment and medium
CN112734661A (en) Image processing method and device
CN112419218A (en) Image processing method and device and electronic equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113286085B (en) Display control method and device and electronic equipment
CN112333389B (en) Image display control method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN114071016B (en) Image processing method, device, electronic equipment and storage medium
CN113989706A (en) Image processing method and device, server, electronic device and readable storage medium
CN113891002A (en) Shooting method and device
CN113487497A (en) Image processing method and device and electronic equipment
CN113542599A (en) Image shooting method and device
CN113473012A (en) Virtualization processing method and device and electronic equipment
CN113037996A (en) Image processing method and device and electronic equipment

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