CN113362426A - Image editing method and image editing device - Google Patents

Image editing method and image editing device Download PDF

Info

Publication number
CN113362426A
CN113362426A CN202110683737.8A CN202110683737A CN113362426A CN 113362426 A CN113362426 A CN 113362426A CN 202110683737 A CN202110683737 A CN 202110683737A CN 113362426 A CN113362426 A CN 113362426A
Authority
CN
China
Prior art keywords
target
image
editing
input
scheme
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
CN202110683737.8A
Other languages
Chinese (zh)
Other versions
CN113362426B (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 Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110683737.8A priority Critical patent/CN113362426B/en
Publication of CN113362426A publication Critical patent/CN113362426A/en
Application granted granted Critical
Publication of CN113362426B publication Critical patent/CN113362426B/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
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an image editing method and an image editing device, which belong to the technical field of image processing, wherein the image editing method comprises the following steps: receiving a first input of a target area in a target image; determining target image content in the target area in response to the first input; displaying N preset editing schemes corresponding to the target content, wherein N is a positive integer; receiving a second input for selecting a target editing scheme in the N preset editing schemes; and editing the target area through the target editing scheme in response to the second input.

Description

Image editing method and image editing device
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to an image editing method and an image editing apparatus.
Background
In the related art, a user obtains a picture by downloading or taking a picture, screenshot and the like, and the picture can be edited by some editing software, so that the expressive force and readability of the picture are improved.
However, in the current editing software, the preset editing mode is fixed, and a user needs to find a suitable editing mode from a large number of preset editing modes, so that the user experience is not good.
Disclosure of Invention
The embodiment of the application aims to provide an image editing method and an image editing device, which can automatically recommend an image editing scheme meeting requirements to a user.
In a first aspect, an embodiment of the present application provides an image editing method, including:
receiving a first input of a target area in a target image;
determining target image content in the target area in response to the first input;
displaying N preset editing schemes corresponding to the target content, wherein N is a positive integer;
receiving a second input for selecting a target editing scheme in the N preset editing schemes;
in response to the second input, the target area is edited according to the target editing scheme.
In a second aspect, an embodiment of the present application provides an image editing apparatus, including:
the receiving module is used for receiving a first input of a target area in the image;
a determination module for determining target image content in the target area in response to a first input;
the display module is used for displaying N preset editing schemes corresponding to the target content, wherein N is a positive integer;
the receiving module is used for receiving second input for selecting a target editing scheme in the N preset editing schemes;
and the editing module is used for responding to the second input and editing the target area according to the target editing scheme.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, 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, embodiments of the present application provide 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 steps of the method according to the first aspect.
In the embodiment of the application, when a user needs to edit an image, a position needing to be edited in the image can be selected through first input, for example, if the user wants to add characters in the image, a target area can be determined in the image in a mode that the user selects and inputs the characters by using two fingers.
After the target area is determined, the program automatically identifies the corresponding target image content in the target area. Specifically, the currently displayed image is, for example, a snow scene photograph of a starry sky taken by the user, which includes the starry sky, mountains, houses, and snow. And automatically identifying the image content in the target area by the program according to the target area selected by the user, wherein if the target area selected by the user is positioned in the star sky, the target image information in the target area is automatically identified as the star sky by the program.
Furthermore, according to the target image information ' starry sky ', a plurality of preset editing schemes corresponding to the starry sky are displayed in the display interface, the preset editing schemes can be pictures matched with the starry sky, such as moon, Santa Claus, rabbit, Chang ' e and the like, the preset editing schemes can also be artistic fonts conforming to the starry sky atmosphere, and a user can select a target editing scheme conforming to requirements from the displayed N preset editing schemes through secondary input.
After the user selects the target editing scheme, the program automatically edits the currently displayed image according to the target area and the target editing scheme selected by the user, and edits the image of the target area according to the target editing scheme, for example, adding a map of moon in starry sky or adding the first input text content of the user in starry sky according to the art font matched with the starry sky and selected by the user.
According to the image editing method and device, the image content in the image area selected by the user is automatically identified, so that the preset editing scheme which is consistent with the image content is automatically recommended to the user, the preset editing scheme displayed to the user is the editing scheme which is consistent with the current image content scene, the user can conveniently and quickly select the editing mode meeting the requirement from the preset editing scheme, the user does not need to find the appropriate editing mode in massive irrelevant schemes, and the image editing efficiency and the user experience are effectively improved.
Drawings
FIG. 1 shows a flow diagram of an image editing method according to an embodiment of the present application;
FIG. 2 shows one of the schematic diagrams of image editing according to an embodiment of the application;
FIG. 3 shows a second schematic diagram of image editing according to an embodiment of the present application;
FIG. 4 shows a third schematic diagram of image editing according to an embodiment of the present application;
fig. 5 is a block diagram showing a configuration of an image editing apparatus according to an embodiment of the present application;
FIG. 6 shows a block diagram of an electronic device according to an embodiment of the application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes an image editing method and an image editing apparatus provided in the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
In some embodiments of the present application, there is provided an image editing method, and fig. 1 shows a flowchart of an image editing method according to an embodiment of the present application, and as shown in fig. 1, the method includes:
102, receiving a first input of a target area in an image;
step 104, responding to a first input, determining target image content in a target area;
106, displaying N preset editing schemes corresponding to the target content, wherein N is a positive integer;
step 108, receiving a second input for selecting a target editing scheme in the N preset editing schemes;
and step 110, responding to the second input, and editing the target area according to the target editing scheme.
In the embodiment of the application, when a user needs to edit an image, a position needing to be edited in the image can be selected through first input, for example, if the user wants to add characters in the image, a target area can be determined in the image in a mode that the user selects and inputs the characters by using two fingers.
After the target area is determined, the program automatically identifies the corresponding target image content in the target area. Specifically, the currently displayed image is, for example, a snow scene photograph of a starry sky taken by the user, which includes the starry sky, mountains, houses, and snow. And automatically identifying the image content in the target area by the program according to the target area selected by the user, wherein if the target area selected by the user is positioned in the star sky, the target image information in the target area is automatically identified as the star sky by the program.
Furthermore, according to the target image information ' starry sky ', a plurality of preset editing schemes corresponding to the starry sky are displayed in the display interface, the preset editing schemes can be pictures matched with the starry sky, such as moon, Santa Claus, rabbit, Chang ' e and the like, the preset editing schemes can also be artistic fonts conforming to the starry sky atmosphere, and a user can select a target editing scheme conforming to requirements from the displayed N preset editing schemes through secondary input.
After the user selects the target editing scheme, the program automatically edits the currently displayed image according to the target area and the target editing scheme selected by the user, and edits the image of the target area according to the target editing scheme, for example, adding a map of moon in starry sky or adding the first input text content of the user in starry sky according to the art font matched with the starry sky and selected by the user.
According to the image editing method and device, the image content in the image area selected by the user is automatically identified, so that the preset editing scheme which is consistent with the image content is automatically recommended to the user, the preset editing scheme displayed to the user is the editing scheme which is consistent with the current image content scene, the user can conveniently and quickly select the editing mode meeting the requirement from the preset editing scheme, the user does not need to find the appropriate editing mode in massive irrelevant schemes, and the image editing efficiency and the user experience are effectively improved.
In some embodiments of the present application, the preset editing scheme includes a font scheme, and the editing of the target area by the target editing scheme includes:
receiving a third input;
responding to the third input, and generating corresponding first text information;
adjusting the font of the first character information according to a first font scheme corresponding to the target area to generate an adjusted first target character;
and adding a first target character in the target area.
In this embodiment of the present application, for a scene in which a user wishes to add a character to an image, when editing a target image according to a target editing scheme, first, a third input of the user is received, where the third input is specifically a character input, and the user may perform the third input in a manner of a virtual keyboard, touch handwriting, a peripheral keyboard, a voice input, or the like, which is not limited in this embodiment of the present application.
After receiving the third input, first text information is generated, wherein the first text information is the text input by the user, such as 'happy birthday'. Further, the font of the first text information is adjusted according to the first font scheme. Specifically, the first font scheme may be a common character font, such as a song font, a regular font, or an art font, such as a "cloud font" or a "star hollow font".
And adjusting the font of the first character information through the first font scheme. Specifically, fig. 2 shows one of the schematic diagrams of image editing according to the embodiment of the present application, as shown in fig. 2, a user inputs first text information "STAR" and selects a target area located in a starry sky range in an image, at this time, a plurality of fonts matching a "starry sky" theme are displayed in an idea on a screen, and at this time, the user may select one of the fonts, so that the font of the first text information is adjusted to the font and displayed in the target area.
According to the image editing method and device, through automatic identification of the image content, the fonts matched with the identified image content are displayed, a user can conveniently and quickly select the fonts meeting requirements, and the image editing efficiency and the user experience are improved.
In some embodiments of the present application, the image editing method further includes:
receiving a fourth input to zoom the target region;
and adjusting the display size of the first target character according to the fourth input.
In the embodiment of the application, after the first target character is displayed in the target area, the user can further adjust the display size of the first target character through fourth input. Specifically, before the editing is completed, an adjustment frame for framing a target area or a first target character may be displayed, fig. 3 shows a second schematic view of image editing according to an embodiment of the present application, as shown in fig. 3, a frame 302 is displayed around the first target character, a user may adjust the size of the frame 302 through dragging input, and after the size of the frame 302 is changed, the display size of the first character information therein is adjusted synchronously, so as to further improve the use experience of the picture editing.
In some embodiments of the present application, prior to receiving the first input to the target region in the image, the method further comprises:
identifying M image contents contained in a target image;
determining M regions to be edited corresponding to the M image contents;
m is a positive integer, M image contents comprise target contents, and M regions to be edited comprise target regions;
receiving a first input to a target region in an image, comprising:
a first input is received for a target area of the M areas to be edited.
In the embodiment of the present application, after an image to be edited specified by a user is determined, image recognition is performed on the image, a plurality of image contents are recognized in the image through an image recognition algorithm, specifically, fig. 4 shows a third schematic diagram of image editing according to the embodiment of the present application, as shown in fig. 4, the image includes a starry sky, a white cloud, a building and a snow, after image recognition, the image contents are recognized respectively, and an area to be edited corresponding to each image content is determined correspondingly, as shown in a square frame in fig. 4, each dashed frame is an area to be edited.
After each image content and corresponding region to be edited are determined, each identified region to be edited may be marked on the image. The user can perform first input on the area to be edited by selecting one area to be edited, so that information such as characters is added in the area to be edited.
It can be understood that a user may select one region to be edited as a target region, may select a part of one region to be edited as a target region, and may also select multiple regions to be edited as one target region, which is not limited in the present application.
According to the image editing method and device, the image to be edited is subjected to image recognition, so that all image contents included in the image to be edited and the corresponding area to be edited are determined, a user can quickly select a target area from the area to be edited for editing, and the convenience degree of image editing is improved.
In some embodiments of the present application, prior to receiving the first input to the target region in the image, the method further comprises:
receiving a fifth input;
responding to the fifth input, and generating corresponding second text information;
determining a second font scheme corresponding to the second text information;
determining P alternative areas in the M areas to be edited according to a second font scheme, wherein P is less than or equal to M;
receiving a first input to a target region in an image, comprising:
receiving a first input for a target region of the P candidate regions;
editing the target area through the target editing scheme, including:
according to the second font scheme, adjusting the font of the second character information to generate an adjusted second target character;
and adding a second target character in the target area.
In the embodiment of the application, the candidate area which is in accordance with the text information content can be selected from the image according to the second text information input by the user. Specifically, a fifth input of the user is received first, and corresponding second text information is generated, wherein the fifth input is a text input. Further, according to the content of the second character, a plurality of candidate areas related to the content of the second character are selected from the M areas to be edited in the image.
For example, if the second text information input by the user is "STAR", and the image content in one region to be edited in the image is "night sky", and the image content in the other region to be edited is "silver river", the two regions to be edited are determined as candidate regions, and the two candidate regions are highlighted for the user.
The user can select the target area which best meets the requirements of the user in the alternative area, and the target area is subjected to first input, at the moment, the system automatically adjusts the font of the second character information input by the user according to the second font scheme selected by the user, and the second character with the adjusted font is added into the target area, so that the image is edited.
According to the embodiment of the application, the image information matched with the text content and the corresponding alternative area are recommended for the user according to the specific content of the text information input by the user, so that the image editing efficiency is further improved, the automatic recommendation of the area to be edited and the editing scheme according to the user operation and the picture content is realized, and the user experience is improved.
In some embodiments of the present application, an image editing apparatus is provided, and fig. 5 shows a block diagram of an image editing apparatus according to an embodiment of the present application, and as shown in fig. 5, an image editing apparatus 500 includes:
a receiving module 506, configured to receive a first input of a target area in a target image;
a determination module 504 for determining target image content in the target area in response to a first input;
a display module 502, configured to display N preset editing schemes corresponding to target content, where N is a positive integer;
a receiving module 506, further configured to receive a second input for a target editing scheme of the N preset editing schemes;
and an editing module 508, configured to edit the target area through the target editing scheme in response to the second input.
In the embodiment of the application, when a user needs to edit an image, a position needing to be edited in the image can be selected through first input, for example, if the user wants to add characters in the image, a target area can be determined in the image in a mode that the user selects and inputs the characters by using two fingers.
After the target area is determined, the program automatically identifies the corresponding target image content in the target area. Specifically, the currently displayed image is, for example, a snow scene photograph of a starry sky taken by the user, which includes the starry sky, mountains, houses, and snow. And automatically identifying the image content in the target area by the program according to the target area selected by the user, wherein if the target area selected by the user is positioned in the star sky, the target image information in the target area is automatically identified as the star sky by the program.
Furthermore, according to the target image information ' starry sky ', a plurality of preset editing schemes corresponding to the starry sky are displayed in the display interface, the preset editing schemes can be pictures matched with the starry sky, such as moon, Santa Claus, rabbit, Chang ' e and the like, the preset editing schemes can also be artistic fonts conforming to the starry sky atmosphere, and a user can select a target editing scheme conforming to requirements from the displayed N preset editing schemes through secondary input.
After the user selects the target editing scheme, the program automatically edits the currently displayed image according to the target area and the target editing scheme selected by the user, and edits the image of the target area according to the target editing scheme, for example, adding a map of moon in starry sky or adding the first input text content of the user in starry sky according to the art font matched with the starry sky and selected by the user.
According to the image editing method and device, the image content in the image area selected by the user is automatically identified, so that the preset editing scheme which is consistent with the image content is automatically recommended to the user, the preset editing scheme displayed to the user is the editing scheme which is consistent with the current image content scene, the user can conveniently and quickly select the editing mode meeting the requirement from the preset editing scheme, the user does not need to find the appropriate editing mode in massive irrelevant schemes, and the image editing efficiency and the user experience are effectively improved.
In some embodiments of the present application, the receiving module 506 is further configured to receive a third input;
the determining module 504 is further configured to generate corresponding first text information in response to the third input;
the editing module 508 is further configured to adjust the font of the first text information according to the first font scheme corresponding to the target area, and generate an adjusted first target text; and adding a first target character in the target area.
In this embodiment of the present application, for a scene in which a user wishes to add a character to an image, when editing a target image according to a target editing scheme, first, a third input of the user is received, and the user may perform the third input in a manner of a virtual keyboard, touch handwriting, a peripheral keyboard, a voice input, or the like, which is not limited in this embodiment of the present application.
After receiving the third input, first text information is generated, wherein the first text information is the text input by the user, such as 'happy birthday'. Further, the font of the first text information is adjusted according to the first font scheme. Specifically, the first font scheme may be a common character font, such as a song font, a regular font, or an art font, such as a "cloud font" or a "star hollow font".
And adjusting the font of the first character information through the first font scheme. Specifically, fig. 2 shows one of the schematic diagrams of image editing according to the embodiment of the present application, as shown in fig. 2, a user inputs first text information "STAR" and selects a target area located in a starry sky range in an image, at this time, a plurality of fonts matching a "starry sky" theme are displayed in an idea on a screen, and at this time, the user may select one of the fonts, so that the font of the first text information is adjusted to the font and displayed in the target area.
According to the image editing method and device, through automatic identification of the image content, the fonts matched with the identified image content are displayed, a user can conveniently and quickly select the fonts meeting requirements, and the image editing efficiency and the user experience are improved.
In some embodiments of the present application, the receiving module 506 is further configured to receive a fourth input for scaling the target area;
the editing module 508 is further configured to adjust the display size of the target text according to the fourth input.
In the embodiment of the application, after the first target character is displayed in the target area, the user can further adjust the display size of the first target character through fourth input. Specifically, before the editing is completed, an adjustment frame for framing a target area or a first target character may be displayed, fig. 3 shows a second schematic view of image editing according to an embodiment of the present application, as shown in fig. 3, a frame 302 is displayed around the first target character, a user may adjust the size of the frame 302 through dragging input, and after the size of the frame 302 is changed, the display size of the first character information therein is adjusted synchronously, so as to further improve the use experience of the picture editing.
In some embodiments of the present application, the image editing apparatus 500 further includes:
an identifying module 510, configured to identify M image contents included in the target image;
the determining module 504 is further configured to determine M to-be-edited regions corresponding to the M image contents;
m is a positive integer, M image contents comprise target contents, and M regions to be edited comprise target regions;
the receiving module 506 is further configured to receive a first input for a target area of the M areas to be edited.
In the embodiment of the present application, after an image to be edited specified by a user is determined, image recognition is performed on the image, a plurality of image contents are recognized in the image through an image recognition algorithm, specifically, fig. 4 shows a third schematic diagram of image editing according to the embodiment of the present application, as shown in fig. 4, the image includes a sky, a mountain and a mountain, a building and a snow, after image recognition, the image contents are recognized respectively, and an area to be edited corresponding to each image content is determined correspondingly, as shown in a square in fig. 4, each square is an area to be edited.
After each image content and corresponding region to be edited are determined, each identified region to be edited may be marked on the image. The user can perform first input on the area to be edited by selecting one area to be edited, so that information such as characters is added in the area to be edited.
It can be understood that a user may select one region to be edited as a target region, may select a part of one region to be edited as a target region, and may also select multiple regions to be edited as one target region, which is not limited in the present application.
According to the image editing method and device, the image to be edited is subjected to image recognition, so that all image contents included in the image to be edited and the corresponding area to be edited are determined, a user can quickly select a target area from the area to be edited for editing, and the convenience degree of image editing is improved.
In some embodiments of the present application, the receiving module 506 is further configured to receive a fifth input;
the determining module 504 is further configured to generate corresponding second text information in response to the fifth input; determining a second font scheme corresponding to the second text information; determining P alternative areas in the M areas to be edited according to a second font scheme, wherein P is less than or equal to M;
the receiving module 506 is further configured to receive a first input for a target area of the P candidate areas;
the editing module 508 is further configured to adjust the font of the second text information according to the second font scheme, and generate an adjusted second target text; and adding a second target character in the target area.
In the embodiment of the application, the candidate area which is in accordance with the text information content can be selected from the image according to the second text information input by the user. Specifically, first, a fifth input of a user is received, corresponding second character information is generated, and further, according to the content of the second character, a plurality of candidate areas related to the content of the second character are selected from M to-be-edited areas in the image.
For example, if the second text information input by the user is "STAR", and the image content in one region to be edited in the image is "night sky", and the image content in the other region to be edited is "silver river", the two regions to be edited are determined as candidate regions, and the two candidate regions are highlighted for the user.
The user can select the target area which best meets the requirements of the user in the alternative area, and the target area is subjected to first input, at the moment, the system automatically adjusts the font of the second character information input by the user according to the second font scheme selected by the user, and the second character with the adjusted font is added into the target area, so that the image is edited.
According to the embodiment of the application, the image information matched with the text content and the corresponding alternative area are recommended for the user according to the specific content of the text information input by the user, so that the image editing efficiency is further improved, the automatic recommendation of the area to be edited and the editing scheme according to the user operation and the picture content is realized, and the user experience is improved.
The image editing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image editing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The image editing apparatus provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Optionally, an electronic device 600 is further provided in an embodiment of the present application, and fig. 6 shows a block diagram of a structure of the electronic device according to the embodiment of the present application, as shown in fig. 6, the electronic device includes a processor 602, a memory 604, and a program or an instruction stored in the memory 604 and executable on the processor 602, and when the program or the instruction is executed by the processor 602, the process of the embodiment of the method is implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 2000 includes, but is not limited to: a radio frequency unit 2001, a network module 2002, an audio output unit 2003, an input unit 2004, a sensor 2005, a display unit 2006, a user input unit 2007, an interface unit 2008, a memory 2009, and a processor 2010.
Those skilled in the art will appreciate that the electronic device 2000 may further include a power source 2011 (e.g., a battery) for supplying power to various components, and the power source 2011 may be logically connected to the processor 2010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the user input unit 2007 is used for receiving a first input to the target area in the image in the case of displaying the image;
processor 2010, in response to a first input, is configured to determine target image content in a target area;
the display unit 2006 is configured to display N preset editing schemes corresponding to the target content, where N is an integer greater than or equal to 1;
the user input unit 2007 is further configured to receive a second input for a target editing scheme of the N preset editing schemes;
processor 2010 is also configured to edit the target area via the target editing scheme in response to the second input.
Optionally, the user input unit 2007 is also used for receiving a third input;
responding to the third input, and generating corresponding first text information;
the processor 2010 is further configured to adjust a font of the first text information according to the first font scheme corresponding to the target area, and generate an adjusted first target text;
the display unit 2006 is further configured to add a first target text in the target area.
Optionally, the user input unit 2007 is further used for receiving a fourth input to the target area;
the display unit 2006 is further configured to adjust a display size of the first target character according to the fourth input.
Optionally, the processor 2010 is further configured to identify M image contents contained in the image; determining M regions to be edited corresponding to the M image contents; m is an integer greater than or equal to 1, M image contents comprise target contents, and M regions to be edited comprise target regions;
the user input unit 2007 is also used to receive a first input for a target area among the M areas to be edited.
Optionally, the user input unit 2007 is further configured to receive a fifth input;
processor 2010 is further configured to generate, in response to the fifth input, corresponding second textual information; determining a second font scheme corresponding to the second text information; determining P alternative areas in the M areas to be edited according to a second font scheme, wherein P is less than or equal to M;
the user input unit 2007 is also used to receive a first input for a target area among the P candidate areas;
the processor 2010 is further configured to adjust a font of the second text information according to the second font scheme, and generate an adjusted second target text;
the display unit 2006 is further configured to add a second target text in the target area.
According to the image editing method and device, the image content in the image area selected by the user is automatically identified, so that the preset editing scheme which is consistent with the image content is automatically recommended to the user, the preset editing scheme displayed to the user is the editing scheme which is consistent with the current image content scene, the user can conveniently and quickly select the editing mode meeting the requirement from the preset editing scheme, the user does not need to find the appropriate editing mode in massive irrelevant schemes, and the image editing efficiency and the user experience are effectively improved.
It should be understood that in the embodiment of the present application, the input Unit 2004 may include a Graphics Processing Unit (GPU) 5082 and a microphone 5084, and the Graphics processor 5082 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 2006 may include a display panel 5122, and the display panel 5122 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 2007 includes a touch panel 5142 and other input devices 5144. A touch panel 5142 is also referred to as a touch screen. The touch panel 5142 may include two parts of a touch detection device and a touch controller. Other input devices 5144 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 2009 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 2010 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc. and a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 2010.
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 the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
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 foregoing method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method of 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 editing method, comprising:
receiving a first input of a target area in a target image;
determining target image content in the target area in response to the first input;
displaying N preset editing schemes corresponding to the target content, wherein N is a positive integer;
receiving a second input for selecting a target editing scheme in the N preset editing schemes;
in response to the second input, editing the target area according to the target editing scheme.
2. The image editing method according to claim 1, wherein the preset editing scheme includes a font scheme, and the editing of the target area according to the target editing scheme includes:
receiving a third input;
responding to the third input, and generating corresponding first text information;
adjusting the font of the first character information according to a first font scheme corresponding to the target area to generate an adjusted first target character;
and adding the first target characters in the target area.
3. The image editing method according to claim 2, further comprising:
receiving a fourth input to zoom the target region;
and adjusting the display size of the first target character according to the fourth input.
4. The image editing method of claim 1, wherein prior to said receiving an editing input for a target region in the image, the method further comprises:
identifying M image contents contained in the target image;
determining M regions to be edited corresponding to the M image contents;
wherein M is a positive integer, the M image contents comprise the target content, and the M regions to be edited comprise the target region;
the receiving a first input to a target region in the image comprises:
receiving the first input for the target area of the M areas to be edited.
5. The image editing method of claim 4, wherein prior to said receiving a first input to a target region in the image, the method further comprises:
receiving a fifth input;
responding to the fifth input, and generating corresponding second text information;
determining a second font scheme corresponding to the second text information;
determining P candidate areas in the M areas to be edited according to the second font scheme, wherein P is smaller than or equal to M;
the receiving a first input to a target region in the image comprises:
receiving a first input for the target region of the P candidate regions;
the editing the target area through the target editing scheme includes:
according to the second font scheme, adjusting the font of the second character information to generate an adjusted second target character;
and adding the second target characters in the target area.
6. An image editing apparatus characterized by comprising:
the receiving module is used for receiving a first input of a target area in a target image;
a determination module to determine a target image content in the target region in response to the first input;
the display module is used for displaying N preset editing schemes corresponding to the target content, wherein N is a positive integer;
a receiving module, configured to receive a second input selecting a target editing scheme of the N preset editing schemes;
and the editing module is used for responding to the second input and editing the target area according to the target editing scheme.
7. The image editing apparatus according to claim 6, wherein the receiving module is further configured to receive a third input;
the determining module is further used for responding to the third input and generating corresponding first text information;
the editing module is further configured to adjust the font of the first text information according to a first font scheme corresponding to the target area, and generate an adjusted first target text; and adding the first target characters in the target area.
8. The image editing apparatus according to claim 7, wherein the receiving module is further configured to receive a fourth input for scaling the target region;
and the editing module is also used for adjusting the display size of the target character according to the fourth input.
9. The image editing apparatus according to claim 6, further comprising:
the identification module is used for identifying M image contents contained in the target image;
the determining module is further configured to determine M regions to be edited that correspond to the M image contents;
wherein M is a positive integer, the M image contents comprise the target content, and the M regions to be edited comprise the target region;
the receiving module is further configured to receive the first input for the target area of the M areas to be edited.
10. The image editing apparatus according to claim 9, wherein the receiving module is further configured to receive a fifth input;
the determining module is further used for responding to the fifth input and generating corresponding second text information; determining a second font scheme corresponding to the second text information; determining P candidate areas in the M areas to be edited according to the second font scheme, wherein P is smaller than or equal to M;
the receiving module is further configured to receive a first input for the target area of the P candidate areas;
the editing module is further configured to adjust the font of the second text information according to the second font scheme, and generate an adjusted second target text; and adding the second target characters in the target area.
CN202110683737.8A 2021-06-21 2021-06-21 Image editing method and image editing device Active CN113362426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110683737.8A CN113362426B (en) 2021-06-21 2021-06-21 Image editing method and image editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110683737.8A CN113362426B (en) 2021-06-21 2021-06-21 Image editing method and image editing device

Publications (2)

Publication Number Publication Date
CN113362426A true CN113362426A (en) 2021-09-07
CN113362426B CN113362426B (en) 2023-03-31

Family

ID=77535301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110683737.8A Active CN113362426B (en) 2021-06-21 2021-06-21 Image editing method and image editing device

Country Status (1)

Country Link
CN (1) CN113362426B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112745A (en) * 2023-04-07 2023-05-12 环球数科集团有限公司 Artificial intelligence video editing system for AIGC

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828581A (en) * 2006-04-14 2006-09-06 北京北大方正电子有限公司 Layout method for word content fitting rectangular words frame
CN104282031A (en) * 2014-09-19 2015-01-14 广州三星通信技术研究有限公司 Method and device for processing picture to be output and terminal
CN107102786A (en) * 2016-02-19 2017-08-29 腾讯科技(北京)有限公司 A kind of information processing method and client
US20180365813A1 (en) * 2017-06-19 2018-12-20 Adobe Systems Incorporated Editing dynamically selected portions of target images in a mask-based editing interface
WO2019056367A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Camera watermark editing method and apparatus
CN111144320A (en) * 2019-12-27 2020-05-12 腾讯科技(深圳)有限公司 Image processing method and device, computer equipment and storage medium
CN111310867A (en) * 2020-05-11 2020-06-19 北京金山数字娱乐科技有限公司 Text generation method and device based on picture
CN111488104A (en) * 2020-04-16 2020-08-04 维沃移动通信有限公司 Font editing method and electronic equipment
CN112860163A (en) * 2021-01-21 2021-05-28 维沃移动通信(深圳)有限公司 Image editing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828581A (en) * 2006-04-14 2006-09-06 北京北大方正电子有限公司 Layout method for word content fitting rectangular words frame
CN104282031A (en) * 2014-09-19 2015-01-14 广州三星通信技术研究有限公司 Method and device for processing picture to be output and terminal
CN107102786A (en) * 2016-02-19 2017-08-29 腾讯科技(北京)有限公司 A kind of information processing method and client
US20180365813A1 (en) * 2017-06-19 2018-12-20 Adobe Systems Incorporated Editing dynamically selected portions of target images in a mask-based editing interface
WO2019056367A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Camera watermark editing method and apparatus
CN111144320A (en) * 2019-12-27 2020-05-12 腾讯科技(深圳)有限公司 Image processing method and device, computer equipment and storage medium
CN111488104A (en) * 2020-04-16 2020-08-04 维沃移动通信有限公司 Font editing method and electronic equipment
CN111310867A (en) * 2020-05-11 2020-06-19 北京金山数字娱乐科技有限公司 Text generation method and device based on picture
CN112860163A (en) * 2021-01-21 2021-05-28 维沃移动通信(深圳)有限公司 Image editing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112745A (en) * 2023-04-07 2023-05-12 环球数科集团有限公司 Artificial intelligence video editing system for AIGC

Also Published As

Publication number Publication date
CN113362426B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN111612873B (en) GIF picture generation method and device and electronic equipment
WO2016197469A1 (en) Method and apparatus for generating unlocking interface, and electronic device
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN113467660A (en) Information sharing method and electronic equipment
CN111859856A (en) Information display method and device, electronic equipment and storage medium
CN112532882A (en) Image display method and device
CN113362426B (en) Image editing method and image editing device
CN112449110B (en) Image processing method and device and electronic equipment
CN112399010B (en) Page display method and device and electronic equipment
CN113849092A (en) Content sharing method and device and electronic equipment
CN113596574A (en) Video processing method, video processing apparatus, electronic device, and readable storage medium
CN115454365A (en) Picture processing method and device, electronic equipment and medium
CN113190365B (en) Information processing method and device and electronic equipment
CN113268961A (en) Travel note generation method and device
CN113805709A (en) Information input method and device
CN114390205B (en) Shooting method and device and electronic equipment
CN112667880B (en) Search result display method, device, equipment and storage medium
CN114500833B (en) Shooting method and device and electronic equipment
CN112087546B (en) Message display method and device, electronic equipment and readable storage medium
CN117311885A (en) Picture viewing method and device
CN115904095A (en) Information input method and device, electronic equipment and readable storage medium
CN113807059A (en) Text editing method and device
CN112463090A (en) Resolution adjustment method, device, equipment and medium
CN113835589A (en) Information storage method and device

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