CN111292224A - Image processing method and electronic equipment - Google Patents

Image processing method and electronic equipment Download PDF

Info

Publication number
CN111292224A
CN111292224A CN202010100137.XA CN202010100137A CN111292224A CN 111292224 A CN111292224 A CN 111292224A CN 202010100137 A CN202010100137 A CN 202010100137A CN 111292224 A CN111292224 A CN 111292224A
Authority
CN
China
Prior art keywords
electronic device
portrait area
portrait
key
image
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
CN202010100137.XA
Other languages
Chinese (zh)
Other versions
CN111292224B (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 CN202010100137.XA priority Critical patent/CN111292224B/en
Publication of CN111292224A publication Critical patent/CN111292224A/en
Application granted granted Critical
Publication of CN111292224B publication Critical patent/CN111292224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/14Transformations for image registration, e.g. adjusting or mapping for alignment of images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides an image processing method and electronic equipment, wherein the method comprises the following steps: determining each first portrait area in a first image to be processed; respectively generating an identifier and a key for each first portrait area; respectively sending the key and the identification of each first portrait area and the first image to corresponding second electronic equipment; receiving second portrait areas uploaded by the second electronic devices; and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image. According to the image processing method provided by the embodiment of the invention, the first electronic equipment can cooperate with the plurality of second electronic equipment to instruct the users of the second electronic equipment to synchronously perform the beautifying processing on the first image, the time consumption is short, and the users of the second electronic equipment do not interfere with each other when performing the beautifying processing on the first image.

Description

Image processing method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an image processing method and an electronic device.
Background
People often have the requirements of shooting group photo and sharing the group photo to a social platform in daily life and work. In order to improve the display effect of the group photo, the user often shares the group photo to the social platform after beautifying before sharing the group photo to the social platform.
At present, when the shadow is subjected to the beautifying treatment, the following two methods are mainly adopted: one person is responsible for beautifying each portrait area in the group photo, and although the operation is simple, the beautifying effect cannot be satisfied by all persons in the group photo; in the second mode, each person in the group photo only beautifies the image area of the person. The specific operation mode is that, assuming that the group photo includes A, B and C, a performs face beautifying on the portrait area of a in the group photo, and then sends the group photo after face beautifying to B, B performs face beautifying on the portrait area of B in the group photo sent by a, and then sends the group photo after face beautifying to C, C performs face beautifying on the portrait area of C in the group photo sent by B, A, B and C cooperate to complete face beautifying of the group photo by transmitting the group photo. Because each person in the group photo needs to process the group photo in sequence in the group photo processing, the time consumption is long, and each person interferes with each other when performing the face beautifying processing.
Disclosure of Invention
The embodiment of the invention provides an image processing method and electronic equipment, and aims to solve the problems that in the prior art, time consumption is long and mutual interference is caused when a plurality of people are combined and beautified.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides an image processing method, which is applied to a first electronic device, and the method includes: determining each first portrait area in a first image to be processed, wherein each first portrait area corresponds to a second electronic device; respectively generating an identifier and a key for each first portrait area; the key is used for unlocking the corresponding first portrait area, and the unlocked first portrait area has a processed authority; respectively sending the key and the identification of each first portrait area and the first image to corresponding second electronic equipment; receiving second portrait areas uploaded by the second electronic devices, wherein the second portrait areas are first portrait areas processed by users of the second electronic devices; and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image.
In a second aspect, an embodiment of the present invention provides an electronic device, which is used as a first electronic device, where the first electronic device includes: the device comprises a determining module, a processing module and a processing module, wherein the determining module is used for determining each first portrait area in a first image to be processed, and each first portrait area corresponds to one second electronic device; a generation module, configured to generate an identifier and a key for each first portrait area; the key is used for unlocking the corresponding first portrait area, and the unlocked first portrait area has a processed authority; the first sending module is used for respectively sending the key and the identification of each first portrait area and the first image to corresponding second electronic equipment; the first receiving module is used for receiving second portrait areas uploaded by the second electronic devices, wherein the second portrait areas are first portrait areas adjusted and processed by users of the second electronic devices; and the replacing module is used for replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the image processing method.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the steps of the image processing method.
In the embodiment of the invention, the identification and the key are respectively generated for each first portrait area in the first image to be processed; sending the key, the identification and the first image of each first portrait area to corresponding second electronic equipment; receiving second portrait areas uploaded by the second electronic devices; and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image. The first electronic equipment can cooperate with a plurality of second electronic equipment to instruct each second electronic equipment user to synchronously carry out the beautifying processing on the first image, and because each second electronic equipment user synchronously carries out the beautifying processing on the first image, the time consumption is short, and the second electronic equipment users do not mutually interfere with each other when carrying out the beautifying processing on the first image.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of an image processing method according to an embodiment of the present invention;
FIG. 2 is a schematic view of a first image;
FIG. 3 is a schematic diagram of a key generation interface;
FIG. 4 is a schematic diagram of a key delivery interface;
FIG. 5 is a flowchart illustrating steps of another image processing method according to an embodiment of the present invention;
FIG. 6 is a second portrait area submission interface schematic;
FIG. 7 is a schematic view of a key sharing instruction submission interface;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of an image processing method according to a first embodiment of the present invention is shown.
The image processing method provided by the embodiment of the invention is applied to first electronic equipment and comprises the following steps:
step 101: respective first portrait areas in a first image to be processed are determined.
The first image is a group photo of a plurality of people, the first image comprises a plurality of first portrait areas, and each first portrait area corresponds to one second electronic device.
Fig. 2 is a schematic diagram of a first image, where fig. 2 includes two characters, namely, a small red character and a small bright character, each of the characters corresponds to a first portrait area, and the first portrait area may be only an area occupied by an image of a character, or may be an area including a specific shape of an image of a character, for example: circular or rectangular areas, etc. The first portrait area corresponding to the small red corresponds to the second electronic equipment to which the small red belongs, and the first portrait area corresponding to the small bright corresponds to the second electronic equipment to which the small bright belongs.
The first electronic equipment user can initiate a cooperative beautifying instruction for the first image, and the cooperative beautifying instruction interacts and cooperates with the second electronic equipment to which each person belongs in the first image to finish beautifying processing of the first image. The first electronic device may be any one of the second electronic devices, or may be an electronic device other than the second electronic device, that is, the initiator of the cooperative beauty instruction may be any one of the persons in the first image, or may be a person not included in the first image.
Step 102: an identification and a key are generated for each first portrait area, respectively.
The key is used for unlocking the corresponding first portrait area, and the unlocked first portrait area is adjustable.
Fig. 3 is an interface schematic diagram of key generation for first portrait areas corresponding to small red and small bright, respectively, after the two first portrait areas are determined, a control for indicating key generation, such as a "key generation" button, is displayed in the upper left corner of the interface, and a user touches the control to trigger the first electronic device to generate a key for each first portrait area, where the keys corresponding to each first portrait area are different. The identification of each first portrait area may be set automatically by the first electronic device or may be set by a user of the first electronic device, the identification being used to distinguish between different first portrait areas.
Step 103: and respectively sending the key, the identification and the first image of each first portrait area to the corresponding second electronic equipment.
As shown in fig. 4, a user of the first electronic device may select a first portrait area to be sent in a key sending interface, a control for indicating to send a key, such as a "send key" button, is displayed in an upper left corner of the key sending interface, and the user touches the control to trigger the first electronic device to send a key, an identifier, and a first image of the selected first portrait area to the corresponding second electronic device. As shown in fig. 4, after the first electronic device user selects the first portrait area corresponding to the small red, the first electronic device is triggered to send the identifier, the key, and the first image of the first portrait area corresponding to the small red to the second electronic device corresponding to the small red. Similarly, the user of the first electronic device can repeat the above operations to respectively send the identifier and the key of each first portrait area in the first image to the corresponding second electronic device.
Step 104: and receiving the second portrait areas uploaded by the second electronic devices.
And the second portrait area is the first portrait area processed by the second equipment user.
After each second electronic device receives the first image, the first portrait area identifier and the key sent by the first electronic device, the to-be-processed portrait area is determined from the first image according to the first portrait area identifier, and the portrait area is processed after the portrait area is unlocked according to the key, where the processing of the portrait area may include but is not limited to: a beauty process, a display brightness process, a process for a display style, and the like.
Step 105: and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image.
Taking the first image shown in fig. 1 as an example, the first electronic device receives the second portrait area uploaded by the second electronic device corresponding to the small red and the second portrait area uploaded by the second electronic device corresponding to the small red, respectively, in the first image, the first portrait area corresponding to the small red is replaced by the second portrait area uploaded by the second electronic device corresponding to the small red, and the first portrait area corresponding to the small red is replaced by the second portrait area uploaded by the second electronic device corresponding to the small red, so as to finally generate the target image.
The image processing method provided by the embodiment of the invention generates the identifier and the key for each first portrait area in the first image to be processed respectively; sending the key, the identification and the first image of each first portrait area to corresponding second electronic equipment; receiving second portrait areas uploaded by the second electronic devices; and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image. The first electronic equipment can cooperate with a plurality of second electronic equipment to instruct each second electronic equipment user to synchronously carry out the beautifying processing on the first image, and because each second electronic equipment user synchronously carries out the beautifying processing on the first image, the time consumption is short, and the second electronic equipment users do not mutually interfere with each other when carrying out the beautifying processing on the first image.
Example two
Referring to fig. 5, a flowchart illustrating steps of an image processing method according to a second embodiment of the present invention is shown.
The image processing method provided by the embodiment of the invention is applied to first electronic equipment and comprises the following steps:
step 201: respective first portrait areas in a first image to be processed are determined.
And each first portrait area corresponds to one second electronic device.
After receiving the beauty cooperation instruction of the first image, the first electronic device determines each first portrait area in the first image, and generates an identifier and a key for each first portrait area. The identification is used for uniquely calibrating a first portrait area, the key is used for unlocking the corresponding first portrait area, and the unlocked first portrait area has the processed authority.
The key may be a primary key, or may be a primary key and a secondary key. In the embodiment of the present invention, an example in which the key generated for the first portrait area includes a first key and a second key is described.
Step 202: and respectively generating an identifier, a primary key and a secondary key for each first portrait area.
The primary key and the secondary key are used for unlocking the first portrait area, but the operation authority of the unlocked first portrait area is different. And after the first portrait area unlocked by the primary key is processed, a second portrait area generated is uploaded to the first electronic equipment, and then the corresponding first portrait area is directly replaced. After the first portrait area unlocked by the secondary key is processed, a generated third portrait area is uploaded to the first electronic device, the first electronic device forwards the third portrait area to the second electronic device having the primary key corresponding to the first portrait area, a user of the second electronic device confirms whether the received third portrait area is submitted, and if the third portrait area is submitted, the third portrait area is used as the second portrait area uploaded by the second electronic device.
Step 203: and respectively sending the key, the identification and the first image of each first portrait area to the corresponding second electronic equipment.
And for each second electronic device, after receiving the key, the identifier and the first image of the first portrait area sent by the first electronic device, the user of the second electronic device can process the first portrait area corresponding to the identifier. Specifically, the first portrait area corresponding to the received primary key unlocking identifier is processed in the first image and then submitted to the first electronic device. After the second electronic device receives the key, the identifier and the first image of the first portrait area sent by the first electronic device, the second electronic device can also send the second key to other second electronic devices participating in the current collaborative beauty through the first electronic device, and requests other second electronic device users to assist in processing the first portrait area corresponding to the second key.
FIG. 6 is a schematic view of a second portrait area submission interface. As shown in fig. 6, after receiving a first portrait area key, an identifier, and a first image sent by a first electronic device, a user of a second electronic device determines a first portrait area to be processed, that is, a first portrait area corresponding to a small red, on the second electronic device, unlocks the first portrait area corresponding to the small red through the first key, processes the first portrait area corresponding to the small red, and after the processing is completed, triggers the second electronic device to submit the second portrait area corresponding to the processed small red to the first electronic device through a "submit" key in a touch submission interface.
Fig. 7 is a schematic view of a key sharing interface. As shown in fig. 7, after receiving a first portrait area key, an identifier, and a first image sent by a first electronic device, a second electronic device user requests other second electronic device users to assist in processing a first portrait area corresponding to a second key, and triggers the second electronic device to send a key sharing instruction to a requested target second electronic device through a "send key" button in a touch key sharing interface, where the first electronic device receives the key sharing instruction sent by the second electronic device; determining a target second electronic device according to the requested second electronic device identification; and sending the secondary key to be shared carried in the key sharing instruction and the identifier of the first portrait area to be processed to the target second electronic equipment. The key sharing instruction carries a secondary key to be shared, an identifier of the first portrait area to be processed and an identifier of the requested second electronic device.
In a specific implementation process, the target second electronic device can be preset by a requester; the requested party list can also be displayed after the second electronic device user sending the key sharing instruction touches a key sending key in the key sharing interface, and the second electronic device user sending the key sharing instruction selects and determines from the requested party list.
The target second electronic device processes the first portrait area corresponding to the second secret key according to the second secret key sent by the first electronic device and the identification of the first portrait area to be processed to generate a third portrait area, the third portrait area is uploaded to the first electronic device, the first electronic device receives the third portrait area uploaded by the target second electronic device, and the third portrait area is obtained by processing the first portrait area after the target second electronic device unlocks the first portrait area according to the second secret key; sharing the third portrait area to the second electronic device sending the key sharing instruction, so that the second electronic device sending the key sharing instruction operates the third portrait area, wherein the operation includes: any one of a commit operation, an adjust operation, and a delete operation.
The method for processing the first portrait area by sending the secondary key to the target second electronic device and requesting the target second electronic device to assist in processing the first portrait area can increase the interest of image cooperation processing and provide convenience for users of the second electronic devices who lack the experience of portrait area processing.
Step 204: and receiving the second portrait areas uploaded by the second electronic devices.
The second portrait area is a first portrait area processed by a second electronic device user, and each first portrait area corresponds to one primary key, one secondary key and one second electronic device. .
Step 205: and sending the received second portrait areas and the replacement instruction to the second electronic devices.
And the replacing instruction is used for instructing the second electronic equipment to replace the corresponding first portrait area with the second portrait area.
And sending the second portrait area and the replacement instruction to each second electronic device in real time, so that the first images previewed by the user of each second electronic device are the processed latest images.
Step 206: and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image.
The image processing method provided by the embodiment of the invention generates the identifier and the key for each first portrait area in the first image to be processed respectively; sending the key, the identification and the first image of each first portrait area to corresponding second electronic equipment; receiving second portrait areas uploaded by the second electronic devices; and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image. The first electronic equipment can cooperate with a plurality of second electronic equipment to instruct each second electronic equipment user to synchronously carry out the beautifying processing on the first image, and because each second electronic equipment user synchronously carries out the beautifying processing on the first image, the time consumption is short, and the second electronic equipment users do not mutually interfere with each other when carrying out the beautifying processing on the first image. In addition, in the embodiment of the invention, the secondary key is sent to the target second electronic device to request the target second electronic device to assist in processing the first portrait area, so that the interestingness of image cooperation processing can be increased, and convenience can be provided for users of the second electronic devices who lack the experience of portrait area processing.
EXAMPLE III
Referring to fig. 8, a block diagram of an electronic device according to a third embodiment of the present invention is shown.
The electronic device 300 according to an embodiment of the present invention is used as a first electronic device, where the electronic device 300 includes:
a determining module 301, configured to determine first portrait areas in a first image to be processed, where each first portrait area corresponds to a second electronic device;
a generating module 302, configured to generate an identifier and a key for each first portrait area respectively; the key is used for unlocking the corresponding first portrait area, and the unlocked first portrait area has a processed authority;
a first sending module 303, configured to send the key and the identifier of each first portrait area and the first image to a corresponding second electronic device respectively;
a first receiving module 304, configured to receive a second portrait area uploaded by each second electronic device, where the second portrait area is a first portrait area adjusted and processed by a second device user;
a replacing module 305, configured to replace each first portrait area in the first image with a corresponding second portrait area, so as to generate a target image.
Optionally, the generating module is specifically configured to: and respectively generating an identifier, a primary key and a secondary key for each first portrait area.
Optionally, the electronic device further includes: the sharing instruction receiving module is configured to receive a key sharing instruction sent by a second electronic device after the first sending module sends the key, the identifier of each first portrait area and the first image to the corresponding second electronic device, where the key sharing instruction carries a secondary key to be shared, an identifier of a first portrait area to be processed, and a requested identifier of the second electronic device; the target determining module is used for determining target second electronic equipment according to the requested second electronic equipment identifier; and the second sending module is used for sending the secondary key to be shared and the identifier of the first portrait area to be processed, which are carried in the key sharing instruction, to the target second electronic device.
Optionally, the electronic device further includes: a second receiving module, configured to receive a third portrait area uploaded by the target second electronic device after the second sending module sends the secondary key to be shared and the identifier of the first portrait area to be processed, where the secondary key is carried in the key sharing instruction, to the target second electronic device, and the third portrait area is obtained by processing the first portrait area after the target second electronic device unlocks the first portrait area according to the secondary key; the sharing module is configured to share the third portrait area with a second electronic device that sends the key sharing instruction, so that the second electronic device that sends the key sharing instruction operates the third portrait area, where the operation includes: any one of a commit operation, an adjust operation, and a delete operation.
Optionally, the electronic device includes: and the third sending module is configured to send each received second portrait area and a replacement instruction to each second electronic device after the first receiving module receives the second portrait area uploaded by each second electronic device, where the replacement instruction is used to instruct the second electronic device to replace the corresponding first portrait area with the second portrait area.
The electronic device provided by the embodiment of the invention can realize each process of the image processing method in each method embodiment, and is not repeated here to avoid repetition.
According to the electronic equipment provided by the embodiment of the invention, the identification and the key are respectively generated for each first portrait area in the first image to be processed; sending the key, the identification and the first image of each first portrait area to corresponding second electronic equipment; receiving second portrait areas uploaded by the second electronic devices; and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image. The first electronic equipment can cooperate with a plurality of second electronic equipment to instruct each second electronic equipment user to synchronously carry out the beautifying processing on the first image, and because each second electronic equipment user synchronously carries out the beautifying processing on the first image, the time consumption is short, and the second electronic equipment users do not mutually interfere with each other when carrying out the beautifying processing on the first image.
Example four
Referring to fig. 9, a block diagram of an electronic device according to a fourth embodiment of the present invention is shown.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device 400 for implementing various embodiments of the present invention, where the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like. The electronic equipment provided by the embodiment of the invention is used as first electronic equipment to interact with each second electronic equipment, and processes the image.
The processor 410 is configured to determine first portrait areas in a first image to be processed, where each first portrait area corresponds to a second electronic device; respectively generating an identifier and a key for each first portrait area; the key is used for unlocking the corresponding first portrait area, and the unlocked first portrait area has a processed authority;
the radio frequency unit 401 may be configured to send the key and the identifier of each first portrait area and the first image to a corresponding second electronic device; receiving second portrait areas uploaded by the second electronic devices, wherein the second portrait areas are first portrait areas processed by users of the second electronic devices;
the processor 410 is further configured to replace each first portrait area in the first image with a corresponding second portrait area, so as to generate a target image.
According to the electronic equipment provided by the embodiment of the invention, the identification and the key are respectively generated for each first portrait area in the first image to be processed; sending the key, the identification and the first image of each first portrait area to corresponding second electronic equipment; receiving second portrait areas uploaded by the second electronic devices; and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image. The first electronic equipment can cooperate with a plurality of second electronic equipment to instruct each second electronic equipment user to synchronously carry out the beautifying processing on the first image, and because each second electronic equipment user synchronously carries out the beautifying processing on the first image, the time consumption is short, and the second electronic equipment users do not mutually interfere with each other when carrying out the beautifying processing on the first image.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. Display panel 401 is the flexible display screen, and the flexible display screen is including the screen base, liftable module array and the flexible screen that superpose the setting in proper order. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 9, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and this is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements 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 described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program 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 computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An image processing method applied to a first electronic device, the method comprising:
determining each first portrait area in a first image to be processed, wherein each first portrait area corresponds to a second electronic device;
respectively generating an identifier and a key for each first portrait area; the key is used for unlocking the corresponding first portrait area, and the unlocked first portrait area has a processed authority;
respectively sending the key and the identification of each first portrait area and the first image to corresponding second electronic equipment;
receiving second portrait areas uploaded by the second electronic devices, wherein the second portrait areas are first portrait areas processed by users of the second electronic devices;
and replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image.
2. The method of claim 1, wherein the step of generating an identifier and a key for each of the first portrait areas comprises:
and respectively generating an identifier, a primary key and a secondary key for each first portrait area.
3. The method of claim 2, wherein after the step of separately sending the key, the identification, and the first image of each of the first portrait areas to the corresponding second electronic device, the method further comprises:
receiving a key sharing instruction sent by second electronic equipment, wherein the key sharing instruction carries a secondary key to be shared, an identifier of a first portrait area to be processed and an identifier of requested second electronic equipment;
determining a target second electronic device according to the requested second electronic device identifier;
and sending the secondary key to be shared and the mark of the first portrait area to be processed, which are carried in the key sharing instruction, to the target second electronic device.
4. The method according to claim 3, wherein after the step of sending the secondary key to be shared and the identifier of the first portrait area to be processed, which are carried in the key sharing instruction, to the requested second electronic device, the method further comprises:
receiving a third portrait area uploaded by the target second electronic device, wherein the third portrait area is obtained by processing the first portrait area after the target second electronic device unlocks the first portrait area according to the secondary key;
sharing the third portrait area to a second electronic device sending the key sharing instruction, so that the second electronic device sending the key sharing instruction operates the third portrait area, wherein the operation includes: any one of a commit operation, an adjust operation, and a delete operation.
5. The method of claim 1, wherein after the step of receiving the second portrait area uploaded by each of the second electronic devices, the method comprises:
and sending the received second portrait areas and a replacement instruction to the second electronic devices, wherein the replacement instruction is used for instructing the second electronic devices to replace the corresponding first portrait areas with the second portrait areas.
6. An electronic device as a first electronic device, the first electronic device comprising:
the device comprises a determining module, a processing module and a processing module, wherein the determining module is used for determining each first portrait area in a first image to be processed, and each first portrait area corresponds to one second electronic device;
a generation module, configured to generate an identifier and a key for each first portrait area; the key is used for unlocking the corresponding first portrait area, and the unlocked first portrait area has a processed authority;
the first sending module is used for respectively sending the key and the identification of each first portrait area and the first image to corresponding second electronic equipment;
the first receiving module is used for receiving second portrait areas uploaded by the second electronic devices, wherein the second portrait areas are first portrait areas processed by users of the second electronic devices;
and the replacing module is used for replacing each first portrait area in the first image with a corresponding second portrait area to generate a target image.
7. The electronic device of claim 6, wherein the generation module is specifically configured to:
and respectively generating an identifier, a primary key and a secondary key for each first portrait area.
8. The electronic device of claim 7, further comprising:
the sharing instruction receiving module is configured to receive a key sharing instruction sent by a second electronic device after the first sending module sends the key, the identifier of each first portrait area and the first image to the corresponding second electronic device, where the key sharing instruction carries a secondary key to be shared, an identifier of a first portrait area to be processed, and a requested identifier of the second electronic device;
the target determining module is used for determining target second electronic equipment according to the requested second electronic equipment identifier;
and the second sending module is used for sending the secondary key to be shared and the identifier of the first portrait area to be processed, which are carried in the key sharing instruction, to the target second electronic device.
9. The electronic device of claim 8, further comprising:
a second receiving module, configured to receive a third portrait area uploaded by the target second electronic device after the second sending module sends the secondary key to be shared and the identifier of the first portrait area to be processed, where the secondary key is carried in the key sharing instruction, to the target second electronic device, and the third portrait area is obtained by processing the first portrait area after the target second electronic device unlocks the first portrait area according to the secondary key;
a sharing module, configured to share the third portrait area with a second electronic device that sends the key sharing instruction, so that the second electronic device that sends the key sharing instruction operates the third portrait area, where the operation includes: any one of a commit operation, an adjust operation, and a delete operation.
10. The electronic device of claim 6, wherein the electronic device comprises:
and a third sending module, configured to send, after the first receiving module receives the second portrait areas uploaded by the second electronic devices, the received second portrait areas and a replacement instruction to the second electronic devices, where the replacement instruction is used to instruct the second electronic devices to replace the corresponding first portrait areas with the second portrait areas.
CN202010100137.XA 2020-02-18 2020-02-18 Image processing method and electronic equipment Active CN111292224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010100137.XA CN111292224B (en) 2020-02-18 2020-02-18 Image processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010100137.XA CN111292224B (en) 2020-02-18 2020-02-18 Image processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111292224A true CN111292224A (en) 2020-06-16
CN111292224B CN111292224B (en) 2024-01-16

Family

ID=71022345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010100137.XA Active CN111292224B (en) 2020-02-18 2020-02-18 Image processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111292224B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488965A (en) * 2020-12-23 2021-03-12 联想(北京)有限公司 Image processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354501A (en) * 2015-10-28 2016-02-24 广东欧珀移动通信有限公司 Photo processing method and processing system
WO2017006749A1 (en) * 2015-07-03 2017-01-12 株式会社日立国際電気 Image processing device and image processing system
CN107274354A (en) * 2017-05-22 2017-10-20 奇酷互联网络科技(深圳)有限公司 image processing method, device and mobile terminal
CN109712082A (en) * 2018-12-05 2019-05-03 厦门美图之家科技有限公司 The method and device of figure is repaired in cooperation
CN110222567A (en) * 2019-04-30 2019-09-10 维沃移动通信有限公司 A kind of image processing method and equipment
CN110377574A (en) * 2019-07-15 2019-10-25 腾讯科技(深圳)有限公司 Collaboration processing method and device, storage medium, the electronic device of picture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017006749A1 (en) * 2015-07-03 2017-01-12 株式会社日立国際電気 Image processing device and image processing system
CN105354501A (en) * 2015-10-28 2016-02-24 广东欧珀移动通信有限公司 Photo processing method and processing system
CN107274354A (en) * 2017-05-22 2017-10-20 奇酷互联网络科技(深圳)有限公司 image processing method, device and mobile terminal
CN109712082A (en) * 2018-12-05 2019-05-03 厦门美图之家科技有限公司 The method and device of figure is repaired in cooperation
CN110222567A (en) * 2019-04-30 2019-09-10 维沃移动通信有限公司 A kind of image processing method and equipment
CN110377574A (en) * 2019-07-15 2019-10-25 腾讯科技(深圳)有限公司 Collaboration processing method and device, storage medium, the electronic device of picture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488965A (en) * 2020-12-23 2021-03-12 联想(北京)有限公司 Image processing method and device

Also Published As

Publication number Publication date
CN111292224B (en) 2024-01-16

Similar Documents

Publication Publication Date Title
CN111143005B (en) Application sharing method, electronic equipment and computer readable storage medium
CN109461117B (en) Image processing method and mobile terminal
CN111130989B (en) Information display and sending method and electronic equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN110941501A (en) Application sharing method and electronic equipment
CN108881782B (en) Video call method and terminal equipment
CN111124706A (en) Application program sharing method and electronic equipment
CN111522613B (en) Screen capturing method and electronic equipment
CN111756696A (en) Login method of application program, first electronic device and second electronic device
CN110898424B (en) Display control method and electronic equipment
CN110290263B (en) Image display method and mobile terminal
CN109597546B (en) Icon processing method and terminal equipment
CN109343811B (en) Display adjustment method and terminal equipment
CN108536513B (en) Picture display direction adjusting method and mobile terminal
CN111328132B (en) Method for adjusting transmitting power and electronic equipment
CN111443796B (en) Information processing method and device
CN111131930B (en) Device resource control method, first electronic device, and computer-readable storage medium
CN110740265B (en) Image processing method and terminal equipment
CN110795746B (en) Information processing method and electronic equipment
WO2020011071A1 (en) Locking method and unlocking method for application program, and terminal device
CN110113486B (en) Application icon moving method and terminal
CN111292224B (en) Image processing method and electronic equipment
CN109062483B (en) Image processing method and terminal 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