CN111953902A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN111953902A
CN111953902A CN202010808924.XA CN202010808924A CN111953902A CN 111953902 A CN111953902 A CN 111953902A CN 202010808924 A CN202010808924 A CN 202010808924A CN 111953902 A CN111953902 A CN 111953902A
Authority
CN
China
Prior art keywords
age
image
target
folding
determining
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
CN202010808924.XA
Other languages
Chinese (zh)
Other versions
CN111953902B (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 CN202010808924.XA priority Critical patent/CN111953902B/en
Publication of CN111953902A publication Critical patent/CN111953902A/en
Application granted granted Critical
Publication of CN111953902B publication Critical patent/CN111953902B/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/80Camera processing pipelines; Components thereof
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an image processing method and device, which belong to the technical field of communication, wherein the method is applied to electronic equipment comprising a folding screen, the folding screen at least comprises two display screens, and the method comprises the following steps: displaying a first image in a first display screen; determining a first folding angle and a first folding direction in response to a user's folding input to the folding screen; determining a target age adjustment value according to the first folding angle; determining a target age adjusting mode according to the first folding direction; processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image; and displaying the second image in the second display screen. According to the image processing method, the user can trigger the electronic equipment to convert the first image into the second image corresponding to the shooting object in different age groups by folding the folding screen, the user does not need to manually search the historical image, the operation is convenient, and the target image required by the user can be quickly and accurately generated.

Description

Image processing method and device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an image processing method and device.
Background
At present, the electronic equipment is used for photographing instead of a professional camera, the current face features of a user can be recorded only when the user self-photographs, and if the user wants to check historical self-photographs, the user can only manually turn over the electronic photo album to find target photographs one by one, so that the operation is complex. And because most of the photos with long history are paper photos, the target photo cannot be found in the electronic photo album, and the target photo can be found only by searching the entity photo album. The physical album is inconvenient to carry, and the user cannot carry the physical album, so that the target photo cannot be found in time.
Therefore, the existing method for obtaining the historical photos by searching the electronic photo album and the entity photo album has the defects of complex operation and incapability of quickly and accurately searching the target photos.
Disclosure of Invention
The embodiment of the application aims to provide an image processing method, which can solve the problems that in the prior art, when a historical photo is searched, the operation is complicated, and a target photo cannot be quickly and accurately searched.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present application provides an image processing method, which is applied to an electronic device including a foldable screen, where the foldable screen includes at least two display screens, where the method includes: displaying a first image in a first display screen; determining a first folding angle and a first folding direction in response to a user's folding input to the folding screen; determining a target age adjustment value according to the first folding angle; determining a target age adjustment mode according to the first folding direction, wherein the age adjustment mode comprises the following steps: increasing age, decreasing age; processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image; displaying the second image in a second display screen.
In a second aspect, an embodiment of the present application provides an image processing apparatus, which is applied to an electronic device including a foldable screen, where the foldable screen includes at least two display screens, where the image processing apparatus includes: the first display module is used for displaying a first image in a first display screen; the first determining module is used for responding to the folding input of a user to the folding screen, and determining a first folding angle and a first folding direction; the second determining module is used for determining a target age adjusting value according to the first folding angle; a third determining module, configured to determine a target age adjustment mode according to the first folding direction, where the age adjustment mode includes: increasing age, decreasing age; the first adjusting module is used for adjusting the first image according to the target age adjusting value and the target age adjusting mode to obtain a second image; and the second display module is used for displaying the second image in a second display screen.
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, a first image is displayed in a first display screen; determining a first folding angle and a first folding direction in response to a folding input of a user to the folding screen; determining a target age adjustment value according to the first folding angle; determining a target age adjusting mode according to the first folding direction; and processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image. According to the image processing method provided by the embodiment of the application, the user can trigger the electronic equipment to convert the first image into the second image corresponding to the shooting object in different age groups by folding the folding screen, the user does not need to manually search the historical image, and the operation is convenient and fast. In addition, because the user can accurately control the age of the person in the second image, the system can quickly and accurately generate the target image required by the user.
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 flow chart illustrating the steps of an image processing method according to an embodiment of the present application;
FIG. 2 is a schematic interface diagram of a first display screen and a second display screen;
fig. 3 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present application;
fig. 4 is a block diagram showing a configuration of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, 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 application.
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.
Referring to fig. 1, a flowchart illustrating steps of an image processing method according to an embodiment of the present application is shown.
The image processing method of the embodiment of the application comprises the following steps:
step 101: a first image is displayed in a first display screen.
The image processing method provided by the embodiment of the application is applied to electronic equipment comprising a folding screen, wherein the folding screen at least comprises two display screens. The two display screens included in the folding screen can be in a left-right folding relationship or in an up-down folding relationship.
The first image is a human image, and the first image may be a history image or a current image. The first image may be a self-portrait image of the user or an image of another person.
Step 102: in response to a user's fold input to the folding screen, a first fold angle and a first fold direction are determined.
The folding direction may include: inwards folded and outwards folded, and the folding angle is any angle from 0 to 180 degrees. The folding screen can be folded inwards by 0 to 180 degrees and can also be folded outwards by 0 to 180 degrees.
Step 103: a target age adjustment value is determined based on the first fold angle.
The specific manner of determining the first folding angle according to the folding input may refer to the related art, which is not specifically limited in the embodiment of the present application. For example, gravity sensors may be respectively provided in the first display screen and the second display screen, and the folding angle of the folding screen may be determined based on the measurement results of the gravity sensors.
One way to determine the target age adjustment value, optionally in dependence on the first fold angle, is to: and determining a target age adjusting value corresponding to the first folding angle according to the corresponding relation between the preset folding angle ranges and the age adjusting values.
The specific corresponding relationship between the folding angle range and the age adjustment value can be set by a person skilled in the art or a user according to actual needs. For example: the folding angle range can be set to 10 degrees, the folding angle range can also be set to 20 degrees, and the folding angle range can also be set to 30 degrees. The age adjustment gradient may be set to 3 years, 5 years, or 10 years, etc. The folding angle range and the age adjusting value can be in a direct proportion relation or an inverse proportion relation. Taking 10 degrees as a folding angle range, the gradient of the age adjustment value is 5 years old, and the folding angle range and the age adjustment value are in a proportional relationship as an example, the folding angle range is 0 to 10 degrees corresponding to the age adjustment value of 5 years old, the folding angle range is 10 to 20 degrees corresponding to the age adjustment value of 10 years old, and the like.
Compared with the mode of setting the corresponding relation between the folding angle and the age adjusting value, the mode of optionally setting the corresponding relation between the folding angle range and the age adjusting value has strong fault tolerance.
Step 104: and determining a target age adjustment mode according to the first folding direction.
Wherein, the age adjustment mode includes: increasing age, and reducing age.
In an actual implementation process, when the target age adjustment mode is determined according to the first folding direction, the target age adjustment mode corresponding to the first folding direction can be determined according to a corresponding relationship between a preset folding direction and the age adjustment mode.
In the specific implementation process, inward folding corresponding age increasing and outward folding corresponding age decreasing can be preset; it is also possible to preset an outward fold for increasing age and an inward fold for decreasing age.
Step 105: and processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image.
The processing of the first image may include, but is not limited to: the method comprises the following steps of processing the feature of a human figure, processing the dress of the human, processing the hairstyle of the human, processing the body shape of the human, processing accessories and the like. Taking as an example that the processing of the first image is the processing of the human face feature, for example, the target age adjustment value is 5 years old, the target age adjustment manner is decreasing, the human face feature in the first image indicates that the person is 20 years old, when the human face feature in the first image is processed, the human face feature is adjusted to be 15 years old, and the obtained human face feature in the second image indicates that the person is 15 years old.
For another example: the target age adjustment value is 5 years old, the target age adjustment mode is an increasing age, the character appearance feature in the first image indicates that the character is 20 years old, when the character appearance feature in the first image is adjusted, the character appearance feature is adjusted to be in a 25-year-old mode, and the obtained character appearance feature in the second image indicates that the character is 25 years old.
Step 106: and displaying the second image in the second display screen.
The image processing method shown in the embodiment of the present application is described below with reference to the schematic interface diagrams of the first display screen and the second display screen shown in fig. 2.
The electronic device in fig. 2 comprises a first display 201 and a second display 202, wherein a first image is displayed in the first display 201, and a character image 203 in the first image indicates that the character is 25 years old. The user triggers the system to adjust the first image to a second image displayed in the second display 202 by folding the screen 10 degrees inward, the character image 204 in the second image indicating that the character is 20 years old, the first image and the second image being characters of the same character at different ages.
In the embodiment of the present application, an example in which a folding operation is performed on a folding screen and a triggering system generates a second image according to a first image is described. In the actual implementation process, a user can fold the folding screen at different angles to trigger the system to generate second images containing characters of people of different ages according to the first image, and under the condition that a plurality of second images are generated, the first image and each second image can be made into time silhouettes of the characters in the images according to further operation of the user.
According to the image processing method provided by the embodiment of the application, a first image is displayed in a first display screen; determining a first folding angle and a first folding direction in response to a folding input of a user to the folding screen; determining a target age adjustment value according to the first folding angle; determining a target age adjusting mode according to the first folding direction; and processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image. The user can trigger the electronic equipment through folding screen and convert first image into the second image that the shooting object corresponds under different age brackets, need not the manual historical image of seeking of user, the simple operation. In addition, because the user can accurately control the age of the person in the second image, the system can quickly and accurately generate the target image required by the user.
In an optional embodiment, after the second image is displayed in the second display screen, a second input of the preset editing item by the user can be further received; and responding to the second input, processing the character image in the second image to obtain a third image.
The preset editing item is used for editing preset characteristics in the character image, and the preset editing item comprises at least one of the following items: a garment edit item, a hair style edit item, a body type edit item, and an accessory edit item. The preset editing item is displayed in the first display screen or the second display screen.
When the system adjusts the first image based on the target age adjustment value and the target age adjustment mode, the system may be set to only adaptively adjust the feature of the person in the first image, and the dress and the hair style of the person in the image do not change, so that the generated second image does not obviously change when compared with the first image, and the dress, the hair style and the like of the person in the second image may not accord with the adjusted age. The preset editing item is provided for the user to further edit the second image, and the user can dress according to the corresponding styles of different age groups, so that the figure image in the third image generated by editing is more fit to the reality.
As shown in fig. 2, after the system adjusts the feature of the person in the first image, the user can further facilitate the hairstyle and the clothes of the person, and the finally generated image is displayed on the second display screen.
In an alternative embodiment, after determining the target age adjustment manner according to the first folding direction, the following process may be further performed:
determining whether the target age adjustment value is greater than a preset age adjustment upper limit value or not under the condition that the target age adjustment mode is increasing age; and outputting prompt information when the target age adjustment value is larger than a preset age adjustment upper limit value.
Wherein, the prompt message is used for prompting the folding angle of the folding screen to be adjusted. The age adjustment upper limit value can be set by a user according to actual needs, and is not particularly limited in the embodiment of the application. For example: the upper limit value of the age adjustment may be set to 30 years, 40 years, or 50 years, etc. The age adjustment lower limit value may be adaptively changed according to the age indicated by the person in the first image so that the age indicated by the person in the first image is adjusted to 0 year according to the age adjustment lower limit value.
The mode of optionally setting the age adjusting upper limit value and the age adjusting lower limit value can effectively avoid the problems that the age adjusting span is too large, and the figure image in the adjusted second image is not consistent with the reality.
In an alternative embodiment, after the first image is displayed on the first display screen, in addition to the manner shown in steps 102 to 105 of determining the age of the person in the second image by adjusting the angle of the folding screen, the user may input an age adjustment gradient and an age adjustment interval to trigger the system to generate an album of the same person at different target ages according to the age adjustment gradient and the age adjustment interval. The specific implementation process is as follows:
receiving a second input of a user to a preset control in a first display screen;
the preset control is used for triggering the system to execute the automatic generation operation of the album, and the second input can be a click operation or a long-time press operation on the preset control.
Responding to a second input, and displaying a parameter input interface;
the parameter input interface at least comprises the following parameter setting items: an age adjustment interval setting item and an age adjustment gradient setting item.
Step three, receiving a third input of the user to the age adjustment interval in the parameter input interface;
step four, receiving fourth input of the user on the age adjustment gradient in the parameter input interface; wherein, the age adjustment mode still includes: sequentially determining each target age contained in the age adjustment interval according to the age adjustment gradient;
step five, responding to the third input and the fourth input, and determining each target age according to the age adjusting interval, the age adjusting gradient and the age corresponding to the figure image in the first image;
step six, aiming at each target age, regulating the character feature in the first image into character feature matched with the target age to obtain a fourth image;
and seventhly, arranging the fourth images according to the sequence of the corresponding target ages from big to small to generate a target video.
For example: the user wants to see the change of every 10 years of the self 0-100 years, then the age adjusting interval is set to be 0-100, the age adjusting gradient is set to be 10 years, when the album is automatically generated based on the first image displayed in the first display screen, 11 fourth images can be generated, the 11 fourth images respectively correspond to the people of which the ages are 0 years, 10 years, 20 years, 30 years, 40 years, 50 years, 60 years, 70 years, 80 years, 90 years and 100 years, a target video with the duration of 11 seconds is generated according to the 11 fourth images, each fourth image serves as a frame of video, the interval between adjacent frames of video is 1 second, and the change of the facial features of the user of 0-100 years can be shown through the whole target video.
According to the mode of optionally generating the target video, the user only needs to execute simple second input, third input and fourth input to trigger the system to generate a plurality of fourth images matched with different ages based on the first image, the image processing effect is high, and the user operation is convenient.
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.
Fig. 3 is a block diagram of an image processing apparatus implementing an embodiment of the present application. The image processing apparatus shown in fig. 3 is used to implement the image processing method shown in fig. 1-2.
The image processing apparatus 300 according to an embodiment of the present application is applied to an electronic device including a foldable screen, where the foldable screen includes at least two display screens, and the image processing apparatus 300 includes:
a first display module 301, configured to display a first image in a first display screen;
a first determining module 302, configured to determine a first folding angle and a first folding direction in response to a folding input of the folding screen by a user;
a second determining module 303, configured to determine a target age adjustment value according to the first folding angle;
a third determining module 304, configured to determine a target age adjustment manner according to the first folding direction, where the age adjustment manner includes: increasing age, decreasing age;
a first adjusting module 305, configured to process the first image according to the target age adjustment value and the target age adjustment manner, so as to obtain a second image;
a second display module 306, configured to display the second image in a second display screen.
Optionally, the second determining module is specifically configured to: determining a target age adjustment value corresponding to the first folding angle according to the corresponding relationship between each preset folding angle range and the age adjustment value; the third determining module is specifically configured to: and determining a target age adjusting mode corresponding to the first folding direction according to the corresponding relation between the preset folding direction and the age adjusting mode.
Optionally, the apparatus further comprises: the first receiving module is used for receiving a second input of the user to a preset editing item after the second image is displayed in a second display screen by the second display module, wherein the preset editing item is used for editing preset features in the character image; and the adjusting module is used for responding to the second input and processing the figure image in the second image to obtain a third image.
Optionally, the apparatus further comprises: a fourth determining module, configured to determine, after the second determining module determines the target age adjustment manner according to the first folding direction, whether the target age adjustment value is greater than a preset upper age adjustment value when the target age adjustment manner is increasing age; and the output module is used for outputting prompt information under the condition that the target age adjusting value is greater than the preset age adjusting upper limit value, wherein the prompt information is used for prompting to adjust the folding angle of the folding screen.
Optionally, the apparatus further comprises: the second receiving module is used for receiving a second input of the user to a preset control in the first display screen after the first image is displayed in the first display screen; a third display module for displaying a parameter input interface in response to the second input; the third receiving module is used for receiving third input of the user on an age adjusting interval in the parameter input interface; the fourth receiving module is used for receiving fourth input of the age adjustment gradient in the parameter input interface by the user; wherein, the age adjustment mode further comprises: sequentially determining each target age contained in the age adjusting interval according to the age adjusting gradient; (ii) a A fifth determining module, configured to determine, in response to the third input and the fourth input, each target age according to the age adjustment interval, the age adjustment gradient, and an age corresponding to the person image in the first image; the second adjusting module is used for adjusting the character appearance characteristics in the first image into character appearance characteristics matched with the target age according to each target age to obtain a fourth image; and the generating module is used for generating a target video after arranging the fourth images according to the sequence of the corresponding target ages from big to small.
The image processing apparatus shown in fig. 3 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 shown in fig. 3 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 shown in fig. 3 provided in the embodiment of the present application can implement each process implemented by the image processing method in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
The image processing apparatus provided by the embodiment of the application displays a first image in a first display screen; determining a first folding angle and a first folding direction in response to a folding input of a user to the folding screen; determining a target age adjustment value according to the first folding angle; determining a target age adjusting mode according to the first folding direction; and processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image. The user can trigger the image processing device to convert the first image into the second image corresponding to the shooting object under different age groups by folding the folding screen, and the user does not need to manually search the historical image, so that the operation is convenient and fast. In addition, because the user can accurately control the age of the person in the second image, the system can quickly and accurately generate the target image required by the user.
Optionally, an embodiment of the present application further provides an electronic device, fig. 4 is a block diagram of a structure of the electronic device, and as shown in fig. 4, the electronic device 400 includes: the processor 401, the memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the above-described embodiment of the image processing method, and can achieve the same technical effect, and are not described herein again to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like. The display screen of the electronic device 500 is a foldable screen, and the foldable screen includes at least two display screens.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 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.
The display unit 506 is used for displaying a first image in the first display screen;
a processor 510 for determining a first folding angle and a first folding direction in response to a user's folding input to the folding screen; determining a target age adjustment value according to the first folding angle; determining a target age adjustment mode according to the first folding direction, wherein the age adjustment mode comprises the following steps: increasing age, decreasing age; processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image;
the display unit 506 is further configured to display the second image in a second display screen.
According to the electronic equipment provided by the embodiment of the application, a first image is displayed in a first display screen; determining a first folding angle and a first folding direction in response to a folding input of a user to the folding screen; determining a target age adjustment value according to the first folding angle; determining a target age adjusting mode according to the first folding direction; and processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image. The user can trigger the electronic equipment through folding screen and convert first image into the second image that the shooting object corresponds under different age brackets, need not the manual historical image of seeking of user, the simple operation. In addition, because the user can accurately control the age of the person in the second image, the system can quickly and accurately generate the target image required by the user.
Optionally, when determining the target age adjustment value according to the first folding angle, the processor 510 is specifically configured to: determining a target age adjustment value corresponding to the first folding angle according to the corresponding relationship between each preset folding angle range and the age adjustment value;
when determining the target age adjustment mode according to the first folding direction, the processor 510 is specifically configured to: and determining a target age adjusting mode corresponding to the first folding direction according to the corresponding relation between the preset folding direction and the age adjusting mode.
Optionally, the user input unit 507 is configured to receive a second input of a preset editing item by the user after the display unit 506 displays the second image on the second display screen, where the preset editing item is used for editing a preset feature in the character image;
the processor 510 is further configured to process the human image in the second image in response to the second input to obtain a third image.
Optionally, the processor 510 is further configured to, after determining a target age adjustment manner according to the first folding direction, determine whether the target age adjustment value is greater than a preset upper age adjustment value if the target age adjustment manner is increasing age; and outputting prompt information under the condition that the target age adjusting value is greater than a preset age adjusting upper limit value, wherein the prompt information is used for prompting to adjust the folding angle of the folding screen.
Optionally, the user input unit 507 is further configured to receive, after the display unit 506 displays the first image in the first display screen, a second input of the user to a preset control in the first display screen;
a display unit 506, further configured to display a parameter input interface in response to the second input;
the user input unit 507 is further configured to receive a third input of the age adjustment interval from the user in the parameter input interface; receiving a fourth input of the age adjustment gradient in the parameter input interface by the user;
the processor 510 is further configured to determine, in response to the third input and the fourth input, each target age according to the age adjustment interval, the age adjustment gradient, and the age corresponding to the person image in the first image; for each target age, adjusting the character appearance characteristics in the first image into character appearance characteristics matched with the target age to obtain a fourth image; and generating a target video after arranging the fourth images according to the descending order of the corresponding target ages.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 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 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 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 further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
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 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 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 applied to an electronic device comprising a foldable screen, wherein the foldable screen comprises at least two display screens, the method comprising:
displaying a first image in a first display screen;
determining a first folding angle and a first folding direction in response to a user's folding input to the folding screen;
determining a target age adjustment value according to the first folding angle;
determining a target age adjustment mode according to the first folding direction, wherein the age adjustment mode comprises the following steps: increasing age, decreasing age;
processing the first image according to the target age adjustment value and the target age adjustment mode to obtain a second image;
displaying the second image in a second display screen.
2. The method of claim 1, wherein: the step of determining a target age adjustment value from the first fold angle comprises:
determining a target age adjustment value corresponding to the first folding angle according to the corresponding relationship between each preset folding angle range and the age adjustment value;
the step of determining a target age adjustment manner according to the first folding direction comprises:
and determining a target age adjusting mode corresponding to the first folding direction according to the corresponding relation between the preset folding direction and the age adjusting mode.
3. The method of claim 1, wherein after the step of displaying the second image in the second display screen, the method further comprises:
receiving a second input of the user to a preset editing item, wherein the preset editing item is used for editing preset features in the character image;
and responding to the second input, processing the figure image in the second image to obtain a third image.
4. The method according to claim 1, wherein after the step of determining a target age adjustment manner depending on the first folding direction, the method further comprises:
determining whether the target age adjustment value is greater than a preset age adjustment upper limit value or not under the condition that the target age adjustment mode is increasing age;
and outputting prompt information under the condition that the target age adjusting value is greater than a preset age adjusting upper limit value, wherein the prompt information is used for prompting to adjust the folding angle of the folding screen.
5. The method of claim 1, wherein after the step of displaying the first image in the first display screen, the method further comprises:
receiving a second input of the user to a preset control in the first display screen;
displaying a parameter input interface in response to the second input;
receiving a third input of the age adjustment interval by the user in the parameter input interface;
receiving a fourth input of the age adjustment gradient in the parameter input interface by the user; wherein, the age adjustment mode further comprises: sequentially determining each target age contained in the age adjusting interval according to the age adjusting gradient;
responding to the third input and the fourth input, and determining each target age according to the age adjusting interval, the age adjusting gradient and the age corresponding to the person image in the first image;
for each target age, adjusting the character appearance characteristics in the first image into character appearance characteristics matched with the target age to obtain a fourth image;
and generating a target video after arranging the fourth images according to the descending order of the corresponding target ages.
6. An image processing apparatus applied to an electronic device including a foldable screen, the foldable screen including at least two display screens, the image processing apparatus comprising:
the first display module is used for displaying a first image in a first display screen;
the first determining module is used for responding to the folding input of a user to the folding screen, and determining a first folding angle and a first folding direction;
the second determining module is used for determining a target age adjusting value according to the first folding angle;
a third determining module, configured to determine a target age adjustment mode according to the first folding direction, where the age adjustment mode includes: increasing age, decreasing age;
the first adjusting module is used for processing the first image according to the target age adjusting value and the target age adjusting mode to obtain a second image;
and the second display module is used for displaying the second image in a second display screen.
7. The apparatus of claim 6, wherein:
the second determining module is specifically configured to: determining a target age adjustment value corresponding to the first folding angle according to the corresponding relationship between each preset folding angle range and the age adjustment value;
the third determining module is specifically configured to: and determining a target age adjusting mode corresponding to the first folding direction according to the corresponding relation between the preset folding direction and the age adjusting mode.
8. The apparatus of claim 6, further comprising:
the first receiving module is used for receiving a second input of the user to a preset editing item after the second image is displayed in a second display screen by the second display module, wherein the preset editing item is used for editing preset features in the character image;
and the adjusting module is used for responding to the second input and processing the figure image in the second image to obtain a third image.
9. The apparatus of claim 6, further comprising:
a fourth determining module, configured to determine, after the second determining module determines the target age adjustment manner according to the first folding direction, whether the target age adjustment value is greater than a preset upper age adjustment value when the target age adjustment manner is increasing age;
and the output module is used for outputting prompt information under the condition that the target age adjusting value is greater than the preset age adjusting upper limit value, wherein the prompt information is used for prompting to adjust the folding angle of the folding screen.
10. The apparatus of claim 6, further comprising:
the second receiving module is used for receiving a second input of the user to a preset control in the first display screen after the first image is displayed in the first display screen;
a third display module for displaying a parameter input interface in response to the second input;
the third receiving module is used for receiving third input of the user on an age adjusting interval in the parameter input interface;
the fourth receiving module is used for receiving fourth input of the age adjustment gradient in the parameter input interface by the user; wherein, the age adjustment mode further comprises: sequentially determining each target age contained in the age adjusting interval according to the age adjusting gradient;
a fifth determining module, configured to determine, in response to the third input and the fourth input, each target age according to the age adjustment interval, the age adjustment gradient, and an age corresponding to the person image in the first image;
the second adjusting module is used for adjusting the character appearance characteristics in the first image into character appearance characteristics matched with the target age according to each target age to obtain a fourth image;
and the generating module is used for generating a target video after arranging the fourth images according to the sequence of the corresponding target ages from big to small.
CN202010808924.XA 2020-08-12 2020-08-12 Image processing method and device Active CN111953902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010808924.XA CN111953902B (en) 2020-08-12 2020-08-12 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010808924.XA CN111953902B (en) 2020-08-12 2020-08-12 Image processing method and device

Publications (2)

Publication Number Publication Date
CN111953902A true CN111953902A (en) 2020-11-17
CN111953902B CN111953902B (en) 2021-10-22

Family

ID=73333256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010808924.XA Active CN111953902B (en) 2020-08-12 2020-08-12 Image processing method and device

Country Status (1)

Country Link
CN (1) CN111953902B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965681A (en) * 2021-03-30 2021-06-15 维沃移动通信有限公司 Image processing method, apparatus, device, and storage medium
CN114827471A (en) * 2022-04-28 2022-07-29 维沃移动通信有限公司 Shooting method, display method, shooting device and display device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060050473A1 (en) * 2004-09-08 2006-03-09 Edward Zheng Foldable mobile video device
CN101150605A (en) * 2006-09-18 2008-03-26 乐金电子(中国)研究开发中心有限公司 Folding rotary screen interested mobile phone
CN109542314A (en) * 2018-11-22 2019-03-29 维沃移动通信有限公司 A kind of picture editing method and terminal device
CN110134300A (en) * 2019-04-30 2019-08-16 珠海格力电器股份有限公司 A kind of picture editing method and device
CN110290263A (en) * 2019-06-20 2019-09-27 维沃移动通信有限公司 A kind of image display method and mobile terminal
CN110381374A (en) * 2019-07-26 2019-10-25 上海掌门科技有限公司 Image processing method and device
US20190349645A1 (en) * 2013-03-15 2019-11-14 Dooreme Inc. System and method for engagement and distribution of media content
CN111355890A (en) * 2020-03-16 2020-06-30 广州立景创新科技有限公司 Image shooting and synthesizing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060050473A1 (en) * 2004-09-08 2006-03-09 Edward Zheng Foldable mobile video device
CN101150605A (en) * 2006-09-18 2008-03-26 乐金电子(中国)研究开发中心有限公司 Folding rotary screen interested mobile phone
US20190349645A1 (en) * 2013-03-15 2019-11-14 Dooreme Inc. System and method for engagement and distribution of media content
CN109542314A (en) * 2018-11-22 2019-03-29 维沃移动通信有限公司 A kind of picture editing method and terminal device
CN110134300A (en) * 2019-04-30 2019-08-16 珠海格力电器股份有限公司 A kind of picture editing method and device
CN110290263A (en) * 2019-06-20 2019-09-27 维沃移动通信有限公司 A kind of image display method and mobile terminal
CN110381374A (en) * 2019-07-26 2019-10-25 上海掌门科技有限公司 Image processing method and device
CN111355890A (en) * 2020-03-16 2020-06-30 广州立景创新科技有限公司 Image shooting and synthesizing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HTTPS://JINGYAN.BAIDU.COM/ARTICLE/5D368D1E3C639D7E61C0570D.HTML: "抖音年龄渐变特效怎么弄?年龄渐变视频怎么拍?", 《百度经验》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965681A (en) * 2021-03-30 2021-06-15 维沃移动通信有限公司 Image processing method, apparatus, device, and storage medium
CN112965681B (en) * 2021-03-30 2022-12-23 维沃移动通信有限公司 Image processing method, device, equipment and storage medium
CN114827471A (en) * 2022-04-28 2022-07-29 维沃移动通信有限公司 Shooting method, display method, shooting device and display device

Also Published As

Publication number Publication date
CN111953902B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN112135049B (en) Image processing method and device and electronic equipment
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
CN111857512A (en) Image editing method and device and electronic equipment
CN111953902B (en) Image processing method and device
CN111756995A (en) Image processing method and device
CN113794834B (en) Image processing method and device and electronic equipment
CN112532882B (en) Image display method and device
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
WO2023284632A1 (en) Image display method and apparatus, and electronic device
CN111800574B (en) Imaging method and device and electronic equipment
CN111885298B (en) Image processing method and device
CN112734661A (en) Image processing method and device
CN113194256A (en) Shooting method, shooting device, electronic equipment and storage medium
CN112685119A (en) Display control method and device and electronic equipment
CN112330728A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN113676665B (en) Image processing method and device and electronic equipment
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN112312021B (en) Shooting parameter adjusting method and device
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113873168A (en) Shooting method, shooting device, electronic equipment and medium
CN112019686A (en) Display method and device and electronic equipment
CN112653841A (en) Shooting method and device and electronic equipment
CN112202958A (en) Screenshot 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