WO2021121253A1 - Image processing method and electronic device - Google Patents

Image processing method and electronic device Download PDF

Info

Publication number
WO2021121253A1
WO2021121253A1 PCT/CN2020/136731 CN2020136731W WO2021121253A1 WO 2021121253 A1 WO2021121253 A1 WO 2021121253A1 CN 2020136731 W CN2020136731 W CN 2020136731W WO 2021121253 A1 WO2021121253 A1 WO 2021121253A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
images
target
electronic device
input
Prior art date
Application number
PCT/CN2020/136731
Other languages
French (fr)
Chinese (zh)
Inventor
杨蕾
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021121253A1 publication Critical patent/WO2021121253A1/en

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to an image processing method and electronic equipment.
  • image sharing ie image sharing
  • beautiful image layout and image style have become the pursuit of more and more users.
  • the user may need to adjust the arrangement order of one or more images in the layout arrangement in the communication application before sharing the one or more images in the communication application, resulting in a cumbersome process of sharing the image with the electronic device.
  • the embodiments of the present invention provide an image processing method and an electronic device, so as to solve the problem that the process of sharing images by the electronic device is relatively complicated.
  • an embodiment of the present invention provides an image processing method applied to an electronic device.
  • the method includes: displaying a first editing interface, the first editing interface includes M image regions indicated by a target arrangement template, and the first editing interface N first images are displayed on the N image areas in the image area; receiving a first input; in response to the first input, editing at least one of the N first images to obtain a target image array; receiving a second input; responding to The second input is to send the target image array; where N is a positive integer less than or equal to M.
  • an embodiment of the present invention also provides an electronic device, the electronic device includes: a display module, a receiving module, an editing module, and a sending module; the display module is used to display a first editing interface, the first editing interface includes a target Arrange the M image areas indicated by the template, and N first images are displayed on the N image areas in the first editing interface; the receiving module is used for receiving the first input; the editing module is used for responding to the receiving module The first input is to edit at least one of the N first images displayed by the display module to obtain the target image array; the receiving module is also used to receive the second input; the sending module is used to respond to the second received by the receiving module Input and send the target image array obtained by the editing module; where N is a positive integer less than or equal to M.
  • an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor.
  • the computer program is executed by the processor to achieve the following On the one hand, the steps of the image processing method.
  • an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the image processing method as described in the first aspect are implemented. .
  • the first editing interface including the M image regions indicated by the target arrangement template may be displayed, and N first images are displayed on the N image regions of the M image regions. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface.
  • the images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently.
  • the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images.
  • the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
  • FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an image processing method provided by an embodiment of the present invention.
  • FIG. 3 is one of schematic diagrams of displaying content of an electronic device according to an embodiment of the present invention.
  • FIG. 4 is the second schematic diagram of displaying content of an electronic device according to an embodiment of the present invention.
  • FIG. 5 is the third schematic diagram of displaying content of an electronic device according to an embodiment of the present invention.
  • FIG. 6 is a fourth schematic diagram of displaying content of an electronic device according to an embodiment of the present invention.
  • FIG. 7 is a fifth schematic diagram of displaying content of an electronic device according to an embodiment of the present invention.
  • FIG. 8 is a sixth schematic diagram of displaying content of an electronic device according to an embodiment of the present invention.
  • FIG. 9 is a seventh schematic diagram of displaying content of an electronic device according to an embodiment of the present invention.
  • FIG. 10 is the eighth schematic diagram of displaying content of an electronic device according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a possible electronic device provided by an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention.
  • A/B can mean A or B
  • the "and/or” in this article is only an association relationship describing associated objects, indicating that there may be three A relationship, for example, A and/or B, can mean that: A alone exists, A and B exist at the same time, and B exists alone.
  • Multiple means two or more than two.
  • first and second in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects.
  • first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
  • the image processing method provided by the embodiment of the present invention can display a first editing interface including M image regions indicated by the target arrangement template, and N first images are displayed on the N image regions of the M image regions. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface.
  • the images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently.
  • the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images.
  • the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
  • the electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device.
  • Mobile electronic devices can be mobile phones, tablet computers, notebook computers, handheld computers, vehicle terminals, wearable devices, ultra-mobile personal computers (UMPC), netbooks, or personal digital assistants (personal digital assistants, PDAs), etc.
  • the non-mobile electronic device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc.; the embodiment of the present invention does not specifically limit it.
  • the execution subject may be an electronic device, or the central processing unit (CPU) of the electronic device, or the electronic device for performing image processing The control module of the method.
  • an image processing method executed by an electronic device is taken as an example to illustrate the image processing method provided in the embodiment of the present invention.
  • the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • the following takes the Android operating system as an example to introduce the software environment to which the image processing method provided by the embodiment of the present invention is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework. For example, applications such as system setting applications, system chat applications, and system camera applications. Applications such as third-party settings applications, third-party camera applications, and third-party chat applications.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop a software program that implements the image processing method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG.
  • the processing method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the image processing method provided by the embodiment of the present invention by running the software program in the Android operating system.
  • the image processing method provided by the embodiment of the present invention will be described in detail below in conjunction with the flowchart of the image processing method shown in FIG. 2.
  • the logical sequence of the image processing method provided by the embodiment of the present invention is shown in the method flowchart, in some cases, the steps shown or described may be performed in a different order than here.
  • the image processing method shown in FIG. 2 may include S201-S205:
  • the electronic device displays a first editing interface.
  • the first editing interface includes M image areas indicated by the target arrangement template, and N first images are displayed on the N image areas in the first editing interface.
  • each of the N image areas displays a first image, and the first images displayed on different image areas are different.
  • N is a positive integer less than or equal to M.
  • the first editing interface may be an interface in a gallery application in an electronic device.
  • the N image areas in the first editing interface are N image areas among the M image areas.
  • the electronic device when the electronic device automatically fills the image in the M image areas, the electronic device can first fill the image in the image area before the display position in the M image areas, and then fill the image area in the rear of the display position. Fill the image.
  • the electronic device fills an image in an image area, that is, displays the image on the image area.
  • image area displays the image on the image area.
  • different descriptions are used in different positions.
  • the target arrangement template may be a three-square grid, a six-square grid, or a nine-square grid.
  • it can also be other templates, which are not specifically limited in the embodiment of the present invention.
  • the target layout is specifically used to indicate the display positions and display sizes of the M image regions.
  • the target arrangement template in the case where the target arrangement template is a three-square grid, the target arrangement template includes 3 image regions.
  • the target layout is used to indicate that the three image areas are arranged in a row and three columns in order from left to right on the screen of the electronic device, and the display sizes of the three image areas are the same.
  • the target arrangement template when the target arrangement template is a six-square grid, the target arrangement template includes 6 image regions.
  • the target layout is used to indicate that these 6 image areas are arranged on the screen of the electronic device in two rows and three columns from left to right and top to bottom, and the display sizes of these 6 image areas are the same. .
  • the target arrangement template when the target arrangement template is a nine-square grid, the target arrangement template includes 9 image regions.
  • the target layout is used to indicate that these 9 image areas are arranged in three rows and three columns on the screen of the electronic device in order from left to right and top to bottom, and the display sizes of these 9 image areas are the same. .
  • the target arrangement template is a nine-square grid as an example to illustrate the image processing method provided by the embodiment of the present invention.
  • the electronic device receives the first input.
  • the first input is used to trigger editing of images on the M image regions indicated by the target arrangement template.
  • the first input may be the user's input on M image areas.
  • the screen of the electronic device may be a touch screen, and the touch screen may be used to receive input from a user and display content corresponding to the input to the user in response to the input.
  • the above-mentioned first input may be touch screen input, fingerprint input, gravity input, key input, etc.
  • the touch screen input is the user's input on the touch screen of the electronic device such as pressing input, long press input, sliding input, click input, hovering input (input by the user near the touch screen).
  • Fingerprint input is the input of the user's sliding fingerprint, long-press fingerprint, single-click fingerprint, and double-click fingerprint to the fingerprint reader of the electronic device.
  • Gravity input is the user's input of shaking the electronic device in a specific direction or a certain number of times.
  • the key input corresponds to the user's input such as single-click input, double-click input, long-press input, and combination key input of the power button, volume button, and home button of the electronic device.
  • the embodiment of the present invention does not specifically limit the first input manner, and may be any achievable manner.
  • the first input is a user's drag input of images on M image areas.
  • the electronic device edits at least one image among the N first images to obtain a target image array.
  • the electronic device can edit part or all of the N first images.
  • the images in the target image array are images arranged according to the target arrangement template.
  • the target image array includes the above N first images.
  • the electronic device receives the second input.
  • the second input may be an input for the user to trigger the communication application to send the target image array.
  • the above-mentioned first editing interface may include a sharing control for triggering the electronic device to send the target image array through the communication application.
  • the second input may be an input to the sharing control in the first editing interface.
  • the second input is a click input to the share control in the target editing interface.
  • the electronic device In response to the second input, the electronic device sends the target image array.
  • the electronic device may send the target image array through the communication application therein.
  • the image processing method provided in the embodiment of the present invention may further include S206 after the foregoing S205:
  • S206 The electronic device displays the target image array on the sending interface according to the target arrangement template.
  • the foregoing sending interface is used to display images to be sent or sent by the electronic device.
  • the electronic device can intuitively display the images in the sent target image array to the user, for example, intuitively display the order of the images in the target image array arranged according to the target arrangement template.
  • the electronic device may display multiple sharing identifiers on the screen, and each sharing identifier is used to indicate an application or plug-in of an image to be shared.
  • the electronic device may display the sending interface of the communication application, and automatically fill the target image array into the sending interface, which is then triggered by the user The communication application sends the target image array.
  • the second input may include an input that the user triggers the electronic device to select a communication application (for example, an input that triggers the electronic device to display a sending interface of the communication application), and an input that triggers the electronic device to send the target image array through the communication application.
  • a communication application for example, an input that triggers the electronic device to display a sending interface of the communication application
  • an input that triggers the electronic device to send the target image array through the communication application for example, an input that triggers the electronic device to send the target image array through the communication application.
  • the electronic device sends the target image array through the communication application, which can be the electronic device sending the target image array to the social platform through the communication application, or sending the target image to the corresponding communication object (that is, one or more contacts in the communication application) Array.
  • the editing interface of the gallery application displayed by the electronic device includes the image area P1 to the image area P9, that is, the target arrangement template is a nine-square grid.
  • the image 1 to 9 are displayed on the image area P1 to the image area P9, respectively.
  • image area P1 to image area P9 are arranged in the order of three rows and three columns
  • image 1 to image 9 are arranged in the order of three rows and three columns in image area P1 to image area P9
  • image area P1 to image area P9 The sizes (that is, the display sizes) in the image area P1 to the image area P9 are the same.
  • the target image array is image 1 to image 9 arranged in three rows and three columns.
  • images 1 to 9 may all be custom images selected by the user-controlled electronic device, or images 1 to 9 include some custom images selected by the user-controlled electronic device, and also include some preset filling images. That is, the N first images are all or part of the images 1 to 9.
  • image 2, image 4, image 5, image 6, and image 8 in image 1 to image 9 may be the aforementioned N first images, that is, N is equal to 5.
  • the first input is the user's input to image 2, image 4, image 5, image 6, and image 8.
  • the editing interface shown in Figure 3 (a) also includes a sharing control S1.
  • the sharing control S1 denoted as input 1
  • the electronic device The sending interface of the communication application can be displayed, and the sending interface includes images 1 to 9 arranged in three rows and three columns.
  • the sending interface also includes a sending control Y.
  • the electronic device can send the images 1 to 9 arranged in the order of three rows and three columns on the social platform through the communication application.
  • the second input includes input 1 and input 2.
  • the image processing method provided by the embodiment of the present invention can display the first editing interface including the M image regions indicated by the target arrangement template, and N image regions of the M image regions are displayed.
  • the first image Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface.
  • the images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently.
  • the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images.
  • the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
  • the image processing method provided in the embodiment of the present invention may further include S207 before the foregoing S203, and the corresponding foregoing S203 may be implemented through S203a:
  • the electronic device displays K preset filling images on the K image areas in the first editing interface.
  • each of the K image areas displays a preset filling image
  • the preset filling images displayed on different image areas are different.
  • the electronic device may display K preset filling images on the K image areas provided in the gallery application.
  • the electronic device edits at least one image among the N first images, and edits at least one image among the K preset filling images, to obtain a target image array.
  • K is a positive integer
  • the sum of K and N is M. That is, N is less than M.
  • the above K preset filled images may include image 1, image 3, image 7, and image 9, that is, K, etc. 4.
  • the aforementioned preset filling image may be user-defined or preset.
  • the preset filled image may be a blank image or an image including a preset pattern (such as a star pattern).
  • the above-mentioned first editing interface may include a "filling" control for triggering the electronic device to fill the preset filling image in the target arrangement template.
  • the “fill” control is used to trigger the electronic device to display one or more different preset filling images in the target editing interface, so that the user can select from the one or more different preset filling images to be filled to The preset fill image in the target arrangement template.
  • the user may need the images obtained by the arrangement to have a certain interest.
  • the four corners in the Jiugongge are all blank images to make the images in the Jiugongge
  • the image takes on the shape of a cross.
  • the electronic device arranges images in the target arrangement template
  • the number of images selected by the user is too small to make up the number of images in the target arrangement template. Therefore, the user requires the electronic device to be unfilled in the target arrangement template.
  • the free image area of the image is filled with a preset filling image, such as filling a preset filling image on the last free image area in the target arrangement template.
  • the electronic device can provide a preset filling image for the target arrangement template, the user does not need to find a specific image (such as a blank image) among a large number of images in a gallery application, and then fill the specific image To the image area in the target arrangement template, so that the user can quickly and conveniently trigger the electronic device to fill the target arrangement template with the preset filling image.
  • a specific image such as a blank image
  • the user can trigger the electronic device to edit the image through one or more images in the gallery application.
  • the image processing method provided in the embodiment of the present invention further includes S208-S211 before the foregoing S201:
  • the electronic device receives a third input when displaying P second images.
  • each of the P image areas displays a second image
  • the second images displayed on different image areas are different
  • P is a positive integer less than or equal to N.
  • the electronic device can display P second images in the gallery application.
  • P is equal to 1.
  • the electronic device displays the image in the gallery application, that is, the image preview interface is displayed
  • the user can perform a long-press input (that is, the third input) on an image in the gallery application.
  • the electronic device may display a “delete” control and a “add multiple images to the template” control on the screen.
  • the "delete” control is used to trigger the electronic device to delete the image selected by the electronic device.
  • the “add multiple images to the template” control is used to trigger the electronic device to display the above-mentioned target editing interface, so as to trigger the electronic device to edit the image selected by the electronic device through a certain arrangement template.
  • the electronic device displays at least one arrangement template identification, one arrangement template identification is used to indicate one image arrangement template, and one image arrangement template includes a plurality of image regions.
  • the electronic device may provide a variety of arrangement templates, such as the above-mentioned three-square grid, six-square grid, or nine-square grid.
  • at least one arrangement template identifier can be a logo of three-square grid, six-square grid, or nine-square grid, respectively.
  • the electronic device receives a fourth input of the target arrangement template identification in the at least one arrangement template identification.
  • the target arrangement template identifier is used to indicate the target arrangement template.
  • the fourth input is the user's input of the logo of Jiugongge.
  • the electronic device displays a second editing interface.
  • the second editing interface includes M image regions pointed to by the target arrangement template, and P second images are displayed on the P image regions in the second editing interface. .
  • the second editing interface and the first editing interface are the same editing interface displayed by the electronic device at different times, that is, the second editing interface is an editing interface in a gallery application.
  • P second images are images in N first images, and P is a positive integer less than or equal to N.
  • a plus sign may be displayed on an idle image area on the target arrangement template in the second editing interface, which is used to indicate that no image is displayed on the image area and trigger the electronic device to fill the image area. image.
  • FIG 4(a) it is the image preview interface of the gallery application displayed by the electronic device.
  • the electronic device can display the "delete” control S3 and the "add multiple images to the template” control S4 on the image preview interface.
  • the electronic device can display a template selection interface, which includes "three "Gongge” control S5, “Sixgongge” control S6, "Jiugongge” control S7 and extended control S8.
  • the "three square grid” control S5, the “six square grid” control S6, and the “jiugong grid” control S7 are respectively used to indicate the three square grid arrangement template, the six square grid arrangement template and the nine square grid arrangement template.
  • the extended control S8 is used to trigger the electronic device to select other arrangement templates provided by the electronic device, and to save some arrangement templates customized by the user.
  • the fourth input may include input 3 and input 4.
  • the editing interface displayed by the electronic device includes image area P1 to image area P9 ,
  • the image area P1 includes the image 1, and the image area P2 to the image area P9 do not display images.
  • the image area P1 is the aforementioned P areas
  • the image 1 is the aforementioned P images, that is, the number of P image areas is one.
  • the electronic device may provide at least one arrangement template identifier, so that the user can trigger the electronic device to start editing according to the target arrangement template in the second editing interface by inputting the target arrangement template identifier in the at least one arrangement template identifier.
  • First image since the electronic device can provide multiple arrangement template identifiers, the electronic device can edit the image selected by the user in different arrangement templates, which improves the diversity of the electronic device's arrangement and editing of images.
  • the image processing method provided in the embodiment of the present invention may further include S212 after S211 and before S201, and the corresponding S201 may be implemented through S201a:
  • the electronic device receives Q fifth inputs.
  • each of the foregoing Q fifth inputs is used to trigger the electronic device to fill an idle image area in the second arrangement template with a user-defined image.
  • the user inputs an idle image area in the second arrangement template (for example, inputting a plus sign in the idle image area) (denoted as input 5)
  • the electronic device can display an image selection list.
  • the user selects an image input (denoted as input 6) from the image selection list, so that the electronic device determines the image as the image to be filled in the idle image area.
  • the image selection list may be a list that normally displays images in a gallery application, such as an image selection list that displays a group of images recently taken in a gallery application.
  • a fifth input may include the two inputs of input 5 and input 6 described above.
  • the electronic device displays a first editing interface, and Q third images are displayed on the Q image areas in the first editing interface.
  • Q image areas are image areas other than P image areas among N image areas
  • Q third images are images other than P second images among N first images.
  • each of the Q image areas displays a third image
  • the third images displayed on different image areas are different.
  • the electronic device can display an image selection list, and the image selection list includes image 2 to image 9. Subsequently, after the user inputs the image 2 shown in Fig. 5(b) (that is, the aforementioned input 6), as shown in Fig. 5(c), the electronic device can be placed on the image area P2 in the editing interface Image 2 is displayed, but no image is displayed in image area P3 to image area P9.
  • the electronic device may display (a) in FIG. 3 The editing interface shown.
  • the user after the user triggers the electronic device to start displaying the image on the image area indicated by the target arrangement template, the user can also trigger the electronic device to add an image to the free image area indicated by the target arrangement template, thereby improving the electronic device
  • the electronic device when it displays images in the target arrangement template, it can also display a list of images in the gallery application to support the user to view the images in the gallery application in real time, for example, to facilitate the user to add images in the gallery application To the image area in the target arrangement template.
  • the target editing interface also includes a list of target images.
  • the target image list includes Q third images
  • a fifth input is an input for dragging a third image from the target image list to an image area.
  • the target image list may be a list of thumbnails of images in a gallery application.
  • the user's left and right sliding input on the target image list can trigger the electronic device to update the image thumbnails displayed in the target image list, such as updating the thumbnails displayed as the most recently taken images.
  • the target image list may be located below the image area in the target arrangement template, such as located below the Jiugongge template.
  • the electronic device displays a target image list 61 below the image area P1 to the image area P9 in the editing interface, and the image list 61 includes the image 2 Thumbnail. Subsequently, the user drags the thumbnail of image 2 from the target image list 61 to the input of the image area P2 (that is, a fifth input), triggering the electronic device to display the editing interface as shown in (c) in FIG. 5, namely The image 2 is displayed on the image area P2.
  • the electronic device can display the target image list in the editing interface (such as the first editing interface or the second editing interface), so that when the electronic device arranges images in the target arrangement template, the user can use the target image list conveniently and intuitively View images in the Gallery app.
  • the user can quickly and conveniently trigger the electronic device to fill the image in the target arrangement template by dragging the image thumbnails in the target image list to the image position in the target arrangement template, thereby improving the selection and selection of the electronic device.
  • the speed and convenience of arranging images are examples of images.
  • the user may need to set the image filled in the target arrangement template, such as setting the size and color tone of the image.
  • the foregoing S203b may also include S213, and the corresponding S203b may be implemented through S203c:
  • the electronic device receives the sixth input.
  • the electronic device edits at least one of the N first images and edits at least one of the K preset filling images by performing a target operation to obtain a target image array.
  • the target operation includes any one of the following operations 1 to 4:
  • Operation 1 Combine the images of different image areas in the target arrangement template.
  • the sixth input may be the user's input to image areas of different image areas, such as continuous sliding input of images on different image areas.
  • the electronic device may merge the image 3 and the image 6 into the image 10. .
  • the diversity of the images arranged by the electronic device in the target arrangement template can be improved, and the user experience can be improved.
  • Operation 2 Split the image of the target image area in the target arrangement template.
  • the sixth input may be the user's input to the image area of the image area, such as long-press input for images on different image areas.
  • the pressing duration of the sixth input corresponds to the number of image regions divided into the image region.
  • the sixth input is used to trigger the electronic device to divide the image on one image area into two images;
  • the pressing duration of the six inputs is in a certain duration range (for example, a duration between 1.5 seconds and 2.5 seconds)
  • the sixth input is used to trigger the electronic device to divide the image on one image area into three images.
  • the electronic device may divide the image 3 into two images arranged up and down. .
  • Operation 3 Adjust the image area where the image in the target arrangement template is located.
  • the sixth input may be an input of the user dragging an image on a different image area.
  • the user can drag the image 3 shown in (a) of FIG. 3 from the image area P3 onto the image area P6 to trigger the electronic device to display the image 6 on the image area P3, and display the image on the image area P3.
  • Image 3 is displayed on area P6.
  • Operation 4 The operation indicated by the target function.
  • the target function is used to set part or all of the images in the target arrangement template.
  • the electronic device may display one or more functional controls on the editing interface (such as the first editing interface and the second editing interface) to support the user to trigger the electronic device to execute the corresponding Target function.
  • a function control corresponds to a target function.
  • the electronic device may display the above-mentioned one or more functional controls in a one-level menu, or display the above-mentioned one or more functional controls in a multi-level menu.
  • the electronic device may display an extended control in the upper right corner of the editing interface in a gallery application, and the next level of the extended control is one or more functional controls, that is, the extended control is used to expand one or more functional controls.
  • the target function is any one of the following: crop image, rotate image, image tone adjustment, image sharpening, image color temperature adjustment, image saturation adjustment, image brightness adjustment, image contrast adjustment, image
  • the filter is added, and the image is filled in the free image area among the M image areas indicated by the target arrangement template.
  • the image filter may be a style filter, such as a character filter, a landscape filter, and a gourmet filter.
  • the image filter can also include image special effects, such as displaying a specific pattern in the image display area, such as rainbow, love, apple, etc.
  • the electronic device may perform an operation indicated by the target function on the part of the image, such as adding a filter to the part of the image.
  • the electronic device can perform the operation indicated by the target function on all the images, such as adding a filter to the entire image, such as adding a filter including a rainbow pattern to the entire image. mirror.
  • the editing interface displayed by the electronic device includes an editing control K1, a filter control K2, a filling control K3, a sharing control K4, and an extended control K5.
  • the editing control K1 is used to provide cropping images, rotating images, image tone adjustment, image sharpening, image color temperature adjustment, image saturation adjustment, image brightness adjustment, and image contrast adjustment.
  • the filter control K2 is used to provide filter addition function.
  • the filling control K3 is used to trigger the electronic device to fill the preset filling image on the free image area in the target arrangement template.
  • the sharing control K4 is used to trigger the electronic device to send the target image array through the communication application.
  • the extended control K5 is used to provide other functions for setting the image, such as the function of switching the current arrangement template.
  • the electronic device may display one or more filter template identifiers under the target arrangement template. For example, the rainbow filter template logo 91, and the filter extension control 92 (used to display more filters) is displayed. Subsequently, after the user inputs the rainbow filter template identifier 91, as shown in (b) of FIG. 9, the electronic device may display that a rainbow filter is added to the entire image 1 to image 9. In addition, the convenience of setting the same filter for multiple images by the electronic device is improved.
  • the electronic device may display one or more filling effect identifiers under the target arrangement template, such as filling
  • the effect mark 10a that is, the filling effect used to indicate the preset filling image in which the image at the four corners of the Jiugong grid is added as a star pattern
  • the filling effect extension control 10b used to display more filling effects
  • the electronic device can display the image area P1, the image area P3, the image area P7, and the image area P9, respectively, which are filled with star patterns.
  • a filling pattern is preset, and image 2, image 4, image 5, image 6, and image 8 are displayed in image area P2, image area P4 to image area P6, and image area P8, respectively.
  • the electronic device can provide multiple ways to edit the image in the target arrangement template, such as triggering different operations on the image through the function controls of different functions, it is beneficial to provide the user with the diversity of triggering the electronic device to edit the image according to the target arrangement template.
  • the image processing method provided in the embodiment of the present invention may further include S214 after the foregoing S203:
  • the electronic device stores at least one of the following: a target image array, and a target filter of the target image array.
  • the target filter includes at least one of the hue value, sharpening value, color temperature value, saturation value, brightness value, and contrast value of the target image array.
  • the electronic device can save the target image array and the target filter of the target image array, subsequent users can easily obtain the saved target image array and target filter, which is beneficial for subsequent users to view or use the target image array and target filter. mirror.
  • the electronic device 11 includes: a display module 11a, a receiving module 11b, an editing module 11c, and a sending module 11d;
  • the display module 11a is used to display a first editing interface, the first editing interface including the target arrangement template indicated M image areas in the first editing interface, N first images are displayed on the N image areas in the first editing interface;
  • the receiving module 11b is used to receive the first input;
  • the editing module 11c is used to respond to the first input received by the receiving module 11b
  • One input is to edit at least one of the N first images displayed by the display module 11a to obtain the target image array;
  • the receiving module 11b is also used to receive the second input;
  • the sending module 11d is used to respond to the receiving module 11b receiving The second input of is to send the target image array obtained by the editing module 11c; where N is a positive integer less than or equal to M.
  • the display module 11a is further configured to display the target image array on the sending interface according to the target arrangement template after the sending module 11d sends the target image array; wherein the sending interface is used to display the image to be sent or already sent by the electronic device.
  • the display module 11a is also used for the editing module 11c to edit at least one image of the N first images, and before obtaining the target image array, display K preset fillings on the K image areas in the first editing interface Image; editing module 11c, specifically used to edit at least one image of the N first images, and edit at least one image of K preset filling images, to obtain a target image array; where K is a positive integer, and K and The sum of N is M.
  • the receiving module 11b is further configured to receive a third input when P second images are displayed before the display module 11a displays the first editing interface; the display module 11a is also configured to receive in response to the receiving module 11b
  • the third input for displaying at least one arrangement template identification, one arrangement template identification is used to indicate an image arrangement template, and one image arrangement template is used to indicate a plurality of image areas; the receiving module 11b is also used to receive the identification of at least one arrangement template
  • the fourth input of the target arrangement template identification in the display module 11a which is further configured to display a second editing interface in response to the fourth input received by the receiving module 11b, the second editing interface including the M image regions pointed to by the target arrangement template , P second images are displayed on the P image areas in the second editing interface; among them, the target arrangement template identifier is used to indicate the target arrangement template, the P second images are the images in the N first images, and P is A positive integer less than or equal to N.
  • the receiving module 11b is further configured to edit at least one of the N first images, and edit at least one of the K preset filling images, and receive the sixth input before obtaining the target image array.
  • the editing module 11c is specifically configured to edit at least one of the N first images and edit at least one of the K preset filled images by performing a target operation in response to the sixth input received by the receiving module 11b, Obtain the target image array; where the target operation includes any of the following: merge the images of different image areas in the M image areas, split the image of the target image area in the M image areas, and adjust the location of the image in the M image areas The image area of, and the operation indicated by the target function; the target function is used to edit the image in part or all of the M image areas, and the target image area is any one of the M image areas.
  • the target function is any one of the following: crop image, rotate image, image tone adjustment, image sharpening, image color temperature adjustment, image saturation adjustment, image brightness adjustment, image contrast adjustment, image filter addition, in M
  • the free image area in each image area is filled with an image.
  • the electronic device 11 further includes: a saving module; a saving module for editing at least one of the N first images by the editing module 11c, and editing at least one of the K preset filling images to obtain the target image After the array, save at least one of the following: the target image array, the target filter of the target image array; where the target filter includes the hue value, sharpening value, color temperature value, saturation value, brightness value, and contrast value of the target image array At least one of.
  • the electronic device 11 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment, and to avoid repetition, details are not described herein again.
  • the electronic device provided by the embodiment of the present invention can display a first editing interface including M image areas indicated by the target arrangement template, and N first images are displayed on the N image areas of the M image areas. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface.
  • the images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently.
  • the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images.
  • the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components.
  • a radio frequency unit 101 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
  • the processor 110 is configured to control the display unit 106 to display a first editing interface.
  • the first editing interface includes M image areas indicated by the target arrangement template, and N image areas are displayed on the N image areas in the first editing interface. One image.
  • the processor 110 is also used to control the user input unit 107 to receive the first input.
  • the processor 110 is further configured to edit at least one of the N first images displayed by the display unit 106 in response to the first input received by the user input unit 107 to obtain a target image array.
  • the processor 110 is also configured to control the user input unit 107 to receive the second input.
  • the processor 110 is further configured to control the radio frequency unit 101 to send the target image array in response to the second input received by the user input unit 107; where N is a positive integer less than or equal to M.
  • the electronic device provided by the embodiment of the present invention can display a first editing interface including M image areas indicated by the target arrangement template, and N first images are displayed on the N image areas of the M image areas. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface.
  • the images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently.
  • the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images.
  • the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042.
  • the graphics processing unit 1041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides an electronic device, including a processor 110, a memory 109, a computer program stored on the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110
  • an electronic device including a processor 110, a memory 109, a computer program stored on the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • the computer-readable storage medium such as read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present application.

Abstract

An image processing method and an electronic device. The method comprises: displaying a first editing interface, the first editing interface comprising M image regions indicated by a target arrangement template, and N first images being displayed on the N image regions in the first editing interface (S201); receiving a first input (S202); editing at least one image in the N first images in response to the first input to obtain a target image array (S203); receiving a second input (S204); sending the target image array in response to the second input (S205); wherein N is a positive integer smaller than or equal to M.

Description

图像处理方法及电子设备Image processing method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年12月19日提交国家知识产权局、申请号为201911319652.0申请名称为“图像处理方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on December 19, 2019, with the application number of 201911319652.0 and the application titled "Image Processing Method and Electronic Equipment", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种图像处理方法及电子设备。The embodiments of the present invention relate to the field of communication technologies, and in particular, to an image processing method and electronic equipment.
背景技术Background technique
目前社交网络盛行,图像分享(即图像分享)已经成为了大家的生活常态,而美观的图像排版与图像风格,已经成为越来越多用户的追求。At present, social networks are prevalent, and image sharing (ie image sharing) has become the norm in everyone's life, and beautiful image layout and image style have become the pursuit of more and more users.
其中,在用户使用手机或平板电脑等电子设备分享图像的过程中,当用户想要适当修图、排版并发送图像到社交平台的时候,一般需要控制电子设备先打开图库应用选择需求的图像,并通过特定的修图应用编辑这些图像,再保存编辑后的图像。随后,用户可以通过通信应用分享按照三宫格、六宫格或九宫格等图像排版排列的图像。Among them, in the process of users sharing images using electronic devices such as mobile phones or tablet computers, when users want to properly edit, typeset and send images to social platforms, they generally need to control the electronic device to first open the gallery application to select the desired image. And edit these images through a specific retouching application, and then save the edited image. Subsequently, the user can share the images arranged according to the image layout of the three-square grid, the six-square grid, or the nine-square grid through the communication application.
然而,用户可能需求在通信应用中调整一张或多张图像在排版排列中的排列顺序之后,才能在通信应用中分享该一张或多张图像,导致电子设备分享图像的过程较为繁琐。However, the user may need to adjust the arrangement order of one or more images in the layout arrangement in the communication application before sharing the one or more images in the communication application, resulting in a cumbersome process of sharing the image with the electronic device.
发明内容Summary of the invention
本发明实施例提供一种图像处理方法及电子设备,以解决电子设备分享图像的过程较为繁琐的问题。The embodiments of the present invention provide an image processing method and an electronic device, so as to solve the problem that the process of sharing images by the electronic device is relatively complicated.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供一种图像处理方法,应用于电子设备,该方法包括:显示第一编辑界面,第一编辑界面包括目标排列模板所指示的M个图像区域,第一编辑界面中的N个图像区域上显示有N个第一图像;接收第一输入;响应于第一输入,编辑N个第一图像中的至少一个图像,得到目标图像阵列;接收第二输入;响应于第二输入,发送目标图像阵列;其中,N为小于或等于M的正整数。In a first aspect, an embodiment of the present invention provides an image processing method applied to an electronic device. The method includes: displaying a first editing interface, the first editing interface includes M image regions indicated by a target arrangement template, and the first editing interface N first images are displayed on the N image areas in the image area; receiving a first input; in response to the first input, editing at least one of the N first images to obtain a target image array; receiving a second input; responding to The second input is to send the target image array; where N is a positive integer less than or equal to M.
第二方面,本发明实施例还提供了一种电子设备,该电子设备包括:显示模块、接收模块、编辑模块和发送模块;显示模块,用于显示第一编辑界面,第一编辑界面包括目标排列模板所指示的M个图像区域,第一编辑界面中的N个图像区域上显示有N个第一图像;接收模块,用于接收第一输入;编辑模块,用于响应于接收模块接收的第一输入,编辑由显示模块显示的N个第一图像中的至少一个图像,得到目标图像阵列;接收模块,还用于接收第二输入;发送模块,用于响应于接收模块接收的第二输入,发送编辑模块得到的目标图像阵列;其中,N为小于或等于M的正整数。In a second aspect, an embodiment of the present invention also provides an electronic device, the electronic device includes: a display module, a receiving module, an editing module, and a sending module; the display module is used to display a first editing interface, the first editing interface includes a target Arrange the M image areas indicated by the template, and N first images are displayed on the N image areas in the first editing interface; the receiving module is used for receiving the first input; the editing module is used for responding to the receiving module The first input is to edit at least one of the N first images displayed by the display module to obtain the target image array; the receiving module is also used to receive the second input; the sending module is used to respond to the second received by the receiving module Input and send the target image array obtained by the editing module; where N is a positive integer less than or equal to M.
第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的图像处理方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. The computer program is executed by the processor to achieve the following On the one hand, the steps of the image processing method.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的图像处理方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the image processing method as described in the first aspect are implemented. .
在本发明实施例中,可以显示包括目标排列模板所指示的M个图像区域的第一编辑界面,该M个图像区域中的N个图像区域上显示有N个第一图像。随后,通过第一输入,可以编辑N个第一图像中的至少一个图像,得到目标图像阵列。进而,通过第二输入,可以发送目标图像阵列。如此,在用户需求分享目标图像阵列中的图像的情况下,不需要用户一张张的选择这些图像,并实时编辑这些图像进而发送这些图像;而可以将在第一图像编辑界面中按照目标排列模板编辑得到的目标图像阵列中的图像作为整体,快速、便捷的整体选中并发送目标图像阵列中的图像。示例性的,电子设备可以在图库应用的第一编辑界面中按照目标排列模板编辑N个第一图像,而不需要通过专门的第三方修图应用编辑N个第一图像,使得用户无需打开多个应用,而是在图库应用中便可以快速、便捷的控制电子设备编辑N个第一图像。另外,由于电子设备可以通过通信应用发送图库应用中的目标图像阵列,而无需控制通信应用从图库应用中一张张地调出图像以实时编辑并发送这些图像。即,用户可以通过对图库应用和通信应用的整合式操作,触发电子设备快速、便捷的编辑并分享图像。In the embodiment of the present invention, the first editing interface including the M image regions indicated by the target arrangement template may be displayed, and N first images are displayed on the N image regions of the M image regions. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface. The images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently. Exemplarily, the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images. In addition, since the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
附图说明Description of the drawings
图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种图像处理方法的流程示意图;2 is a schematic flowchart of an image processing method provided by an embodiment of the present invention;
图3为本发明实施例提供的电子设备显示内容的示意图之一;FIG. 3 is one of schematic diagrams of displaying content of an electronic device according to an embodiment of the present invention;
图4为本发明实施例提供的电子设备显示内容的示意图之二;4 is the second schematic diagram of displaying content of an electronic device according to an embodiment of the present invention;
图5为本发明实施例提供的电子设备显示内容的示意图之三;FIG. 5 is the third schematic diagram of displaying content of an electronic device according to an embodiment of the present invention;
图6为本发明实施例提供的电子设备显示内容的示意图之四;6 is a fourth schematic diagram of displaying content of an electronic device according to an embodiment of the present invention;
图7为本发明实施例提供的电子设备显示内容的示意图之五;FIG. 7 is a fifth schematic diagram of displaying content of an electronic device according to an embodiment of the present invention;
图8为本发明实施例提供的电子设备显示内容的示意图之六;FIG. 8 is a sixth schematic diagram of displaying content of an electronic device according to an embodiment of the present invention;
图9为本发明实施例提供的电子设备显示内容的示意图之七;FIG. 9 is a seventh schematic diagram of displaying content of an electronic device according to an embodiment of the present invention;
图10为本发明实施例提供的电子设备显示内容的示意图之八;FIG. 10 is the eighth schematic diagram of displaying content of an electronic device according to an embodiment of the present invention;
图11为本发明实施例提供的一种可能的电子设备的结构示意图;FIG. 11 is a schematic structural diagram of a possible electronic device provided by an embodiment of the present invention;
图12为本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 12 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“多个”是指两个或多于两个。It should be noted that the "/" in this article means or, for example, A/B can mean A or B; the "and/or" in this article is only an association relationship describing associated objects, indicating that there may be three A relationship, for example, A and/or B, can mean that: A alone exists, A and B exist at the same time, and B exists alone. "Multiple" means two or more than two.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、 例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first" and "second" in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
本发明实施例提供的图像处理方法,可以显示包括目标排列模板所指示的M个图像区域的第一编辑界面,该M个图像区域中的N个图像区域上显示有N个第一图像。随后,通过第一输入,可以编辑N个第一图像中的至少一个图像,得到目标图像阵列。进而,通过第二输入,可以发送目标图像阵列。如此,在用户需求分享目标图像阵列中的图像的情况下,不需要用户一张张的选择这些图像,并实时编辑这些图像进而发送这些图像;而可以将在第一图像编辑界面中按照目标排列模板编辑得到的目标图像阵列中的图像作为整体,快速、便捷的整体选中并发送目标图像阵列中的图像。示例性的,电子设备可以在图库应用的第一编辑界面中按照目标排列模板编辑N个第一图像,而不需要通过专门的第三方修图应用编辑N个第一图像,使得用户无需打开多个应用,而是在图库应用中便可以快速、便捷的控制电子设备编辑N个第一图像。另外,由于电子设备可以通过通信应用发送图库应用中的目标图像阵列,而无需控制通信应用从图库应用中一张张地调出图像以实时编辑并发送这些图像。即,用户可以通过对图库应用和通信应用的整合式操作,触发电子设备快速、便捷的编辑并分享图像。The image processing method provided by the embodiment of the present invention can display a first editing interface including M image regions indicated by the target arrangement template, and N first images are displayed on the N image regions of the M image regions. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface. The images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently. Exemplarily, the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images. In addition, since the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
本发明实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device. Mobile electronic devices can be mobile phones, tablet computers, notebook computers, handheld computers, vehicle terminals, wearable devices, ultra-mobile personal computers (UMPC), netbooks, or personal digital assistants (personal digital assistants, PDAs), etc. ; The non-mobile electronic device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc.; the embodiment of the present invention does not specifically limit it.
需要说明的是,本发明实施例提供的图像处理方法,执行主体可以为电子设备,或者,该电子设备的中央处理器(Central Processing Unit,CPU),或者该电子设备中的用于执行图像处理方法的控制模块。本发明实施例中以电子设备执行图像处理方法为例,说明本发明实施例提供的图像处理方法。It should be noted that, in the image processing method provided by the embodiment of the present invention, the execution subject may be an electronic device, or the central processing unit (CPU) of the electronic device, or the electronic device for performing image processing The control module of the method. In the embodiment of the present invention, an image processing method executed by an electronic device is taken as an example to illustrate the image processing method provided in the embodiment of the present invention.
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的图像处理方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the image processing method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In Figure 1, the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发 原则的情况下,基于应用程序框架层开发一些应用程序。例如,系统设置应用、系统聊天应用和系统相机应用等应用程序。第三方设置应用、第三方相机应用和第三方聊天应用等应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework. For example, applications such as system setting applications, system chat applications, and system camera applications. Applications such as third-party settings applications, third-party camera applications, and third-party chat applications.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的图像处理方法的软件程序,从而使得该图像处理方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的图像处理方法。Taking the Android operating system as an example, in the embodiment of the present invention, developers can develop a software program that implements the image processing method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The processing method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the image processing method provided by the embodiment of the present invention by running the software program in the Android operating system.
下面结合图2所示的图像处理方法的流程图对本发明实施例提供的图像处理方法进行详细描述。其中,虽然在方法流程图中示出了本发明实施例提供的图像处理方法的逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。例如,图2中示出的图像处理方法可以包括S201-S205:The image processing method provided by the embodiment of the present invention will be described in detail below in conjunction with the flowchart of the image processing method shown in FIG. 2. Wherein, although the logical sequence of the image processing method provided by the embodiment of the present invention is shown in the method flowchart, in some cases, the steps shown or described may be performed in a different order than here. For example, the image processing method shown in FIG. 2 may include S201-S205:
S201、电子设备显示第一编辑界面,第一编辑界面包括目标排列模板所指示的M个图像区域,第一编辑界面中的N个图像区域上显示有N个第一图像。S201. The electronic device displays a first editing interface. The first editing interface includes M image areas indicated by the target arrangement template, and N first images are displayed on the N image areas in the first editing interface.
其中,N个图像区域中的每个图像区域上显示一个第一图像,不同图像区域上显示的第一图像不同。具体的,N为小于或等于M的正整数。Wherein, each of the N image areas displays a first image, and the first images displayed on different image areas are different. Specifically, N is a positive integer less than or equal to M.
可选地,本发明实施例中,第一编辑界面可以为电子设备中的图库应用中的界面。Optionally, in this embodiment of the present invention, the first editing interface may be an interface in a gallery application in an electronic device.
可选地,第一编辑界面中的N个图像区域,即为M个图像区域中的N个图像区域。Optionally, the N image areas in the first editing interface are N image areas among the M image areas.
可以理解的是,在电子设备向M个图像区域自动填充图像的情况下,电子设备可以先向M个图像区域中显示位置靠前的图像区域中填充图像,再向显示位置靠后的图像区域中填充图像。It is understandable that when the electronic device automatically fills the image in the M image areas, the electronic device can first fill the image in the image area before the display position in the M image areas, and then fill the image area in the rear of the display position. Fill the image.
需要说明的是,电子设备在一个图像区域中填充图像,即在该图像区域上显示图像。本发明实施例中,为了清楚说明图像区域和图像之间的关系,在不同的位置采用不同的描述。It should be noted that the electronic device fills an image in an image area, that is, displays the image on the image area. In the embodiment of the present invention, in order to clearly illustrate the relationship between the image area and the image, different descriptions are used in different positions.
示例性的,目标排列模板可以为三宫格、六宫格或九宫格等,当然,还可以为其他模板,本发明实施例对此不作具体限定。Exemplarily, the target arrangement template may be a three-square grid, a six-square grid, or a nine-square grid. Of course, it can also be other templates, which are not specifically limited in the embodiment of the present invention.
可以理解的是,目标排版具体用于指示M个图像区域的显示位置和显示尺寸。It can be understood that the target layout is specifically used to indicate the display positions and display sizes of the M image regions.
例如,在目标排列模板为三宫格的情况下,目标排列模板中包括3个图像区域。此时,目标排版用于指示这3个图像区域在电子设备的屏幕上按照一行三列依次从左到右排列的显示位置排列,且这3个图像区域的显示尺寸相同。For example, in the case where the target arrangement template is a three-square grid, the target arrangement template includes 3 image regions. At this time, the target layout is used to indicate that the three image areas are arranged in a row and three columns in order from left to right on the screen of the electronic device, and the display sizes of the three image areas are the same.
再如,在目标排列模板为六宫格的情况下,目标排列模板中包括6个图像区域。此时,目标排版用于指示这6个图像区域在电子设备的屏幕上按照两行三列依次从左到右、从上到下排列的显示位置排列,且这6个图像区域的显示尺寸相同。For another example, when the target arrangement template is a six-square grid, the target arrangement template includes 6 image regions. At this time, the target layout is used to indicate that these 6 image areas are arranged on the screen of the electronic device in two rows and three columns from left to right and top to bottom, and the display sizes of these 6 image areas are the same. .
再如,在目标排列模板为九宫格的情况下,目标排列模板中包括9个图像区域。此时,目标排版用于指示这9个图像区域在电子设备的屏幕上按照三行三列依次从左到右、从上到下排列的显示位置排列,且这9个图像区域的显示尺寸相同。For another example, when the target arrangement template is a nine-square grid, the target arrangement template includes 9 image regions. At this time, the target layout is used to indicate that these 9 image areas are arranged in three rows and three columns on the screen of the electronic device in order from left to right and top to bottom, and the display sizes of these 9 image areas are the same. .
以下实施例中,以目标排列模板为九宫格为例,说明本发明实施例提供的图像处理方法。In the following embodiments, the target arrangement template is a nine-square grid as an example to illustrate the image processing method provided by the embodiment of the present invention.
S202、电子设备接收第一输入。S202. The electronic device receives the first input.
示例性的,第一输入用于触发编辑目标排列模板指示的M个图像区域上的图像。其中,第一输入可以为用户在M个图像区域上的输入。Exemplarily, the first input is used to trigger editing of images on the M image regions indicated by the target arrangement template. Among them, the first input may be the user's input on M image areas.
需要说明的是,本发明实施例提供的电子设备的屏幕可以为触控屏,该触控屏可以用于接收用户的输入,并响应于该输入向该用户显示该输入对应的内容。其中,上述第一输入可以为触屏输入、指纹输入、重力输入、按键输入等。其中,触屏输入为用户对电子设备的触控屏的按压输入、长按输入、滑动输入、点击输入、悬浮输入(用户在触控屏附近的输入)等输入。指纹输入为用户对电子设备的指纹识别器的滑动指纹、长按指纹、单击指纹和双击指纹等输入。重力输入为用户对电子设备特定方向的晃动、特定次数的晃动等输入。按键输入对应于用户对电子设备的电源键、音量键、Home键等按键的单击输入、双击输入、长按输入、组合按键输入等输入。具体的,本发明实施例对第一输入的方式不作具体限定,可以为任一可实现的方式。如,第一输入为用户对M个图像区域上的图像的拖动输入。It should be noted that the screen of the electronic device provided by the embodiment of the present invention may be a touch screen, and the touch screen may be used to receive input from a user and display content corresponding to the input to the user in response to the input. Wherein, the above-mentioned first input may be touch screen input, fingerprint input, gravity input, key input, etc. Among them, the touch screen input is the user's input on the touch screen of the electronic device such as pressing input, long press input, sliding input, click input, hovering input (input by the user near the touch screen). Fingerprint input is the input of the user's sliding fingerprint, long-press fingerprint, single-click fingerprint, and double-click fingerprint to the fingerprint reader of the electronic device. Gravity input is the user's input of shaking the electronic device in a specific direction or a certain number of times. The key input corresponds to the user's input such as single-click input, double-click input, long-press input, and combination key input of the power button, volume button, and home button of the electronic device. Specifically, the embodiment of the present invention does not specifically limit the first input manner, and may be any achievable manner. For example, the first input is a user's drag input of images on M image areas.
S203、响应于第一输入,电子设备编辑N个第一图像中的至少一个图像,得到目标图像阵列。S203. In response to the first input, the electronic device edits at least one image among the N first images to obtain a target image array.
可选地,电子设备可以编辑N个第一图像中的部分或全部图像。Optionally, the electronic device can edit part or all of the N first images.
需要说明的是,目标图像阵列中的图像为按照目标排列模板排列的图像。It should be noted that the images in the target image array are images arranged according to the target arrangement template.
显然,目标图像阵列中包括上述N个第一图像。Obviously, the target image array includes the above N first images.
S204、电子设备接收第二输入。S204. The electronic device receives the second input.
具体的,第二输入可以为用户触发通信应用发送目标图像阵列的输入。Specifically, the second input may be an input for the user to trigger the communication application to send the target image array.
可选地,上述第一编辑界面可以包括一个分享控件,用于触发电子设备通过通信应用发送目标图像阵列。其中,第二输入可以为对第一编辑界面中的分享控件的输入。Optionally, the above-mentioned first editing interface may include a sharing control for triggering the electronic device to send the target image array through the communication application. Wherein, the second input may be an input to the sharing control in the first editing interface.
类似的,对第二输入的输入方式的描述,可以参照上述实施例中对第一输入的输入方式的相关描述,这里不再赘述。如,第二输入为对目标编辑界面中的分享控件的点击输入。Similarly, for the description of the input mode of the second input, reference may be made to the related description of the input mode of the first input in the foregoing embodiment, which will not be repeated here. For example, the second input is a click input to the share control in the target editing interface.
S205、响应于第二输入,电子设备发送目标图像阵列。S205. In response to the second input, the electronic device sends the target image array.
具体的,电子设备可以通过其中的通信应用发送目标图像阵列。Specifically, the electronic device may send the target image array through the communication application therein.
可选地,本发明实施例提供的图像处理方法,在上述S205之后还可以包括S206:Optionally, the image processing method provided in the embodiment of the present invention may further include S206 after the foregoing S205:
S206、电子设备依据目标排列模板在发送界面显示目标图像阵列。S206: The electronic device displays the target image array on the sending interface according to the target arrangement template.
其中,上述发送界面用于显示电子设备待发送或已发送的图像。Wherein, the foregoing sending interface is used to display images to be sent or sent by the electronic device.
如此,电子设备可以直观的向用户展示发送的目标图像阵列中的图像,如直观的展示目标图像阵列中的图像按照目标排列模板排列的图像的顺序。In this way, the electronic device can intuitively display the images in the sent target image array to the user, for example, intuitively display the order of the images in the target image array arranged according to the target arrangement template.
可选地,电子设备响应于第二输入,可以在屏幕上显示多个分享标识,每个分享标识用于指示一个待分享图像的应用或插件。具体的,在用户对多个分享标识中用于 指示上述通信应用的分享标识进行输入之后,电子设备可以显示通信应用的发送界面,并将目标图像阵列自动填充至该发送界面,进而由用户触发通信应用发送目标图像阵列。Optionally, in response to the second input, the electronic device may display multiple sharing identifiers on the screen, and each sharing identifier is used to indicate an application or plug-in of an image to be shared. Specifically, after the user inputs the sharing identification used to indicate the communication application among the multiple sharing identifications, the electronic device may display the sending interface of the communication application, and automatically fill the target image array into the sending interface, which is then triggered by the user The communication application sends the target image array.
可选地,第二输入可以包括用户触发电子设备选择通信应用的输入(如触发电子设备显示通信应用的发送界面的输入),和触发电子设备通过通信应用发送目标图像阵列的输入。Optionally, the second input may include an input that the user triggers the electronic device to select a communication application (for example, an input that triggers the electronic device to display a sending interface of the communication application), and an input that triggers the electronic device to send the target image array through the communication application.
其中,电子设备通过通信应用发送目标图像阵列,可以为电子设备通过通信应用向社交平台发送目标图像阵列,或向相应的通信对象(即该通信应用中的一个或多个联系人)发送目标图像阵列。Among them, the electronic device sends the target image array through the communication application, which can be the electronic device sending the target image array to the social platform through the communication application, or sending the target image to the corresponding communication object (that is, one or more contacts in the communication application) Array.
示例性的,如图3中(a)所示,电子设备显示的图库应用的编辑界面中包括图像区域P1~图像区域P9,即目标排列模板为九宫格。其中,图像区域P1~图像区域P9上分别显示有图像1~图像9。具体的,图像区域P1~图像区域P9按照三行三列的顺序排列,图像1~图像9按照三行三列的顺序在图像区域P1~图像区域P9中排列,且图像区域P1~图像区域P9在图像区域P1~图像区域P9中的尺寸(即显示尺寸)相同。此时,目标图像阵列为按照三行三列的排列的图像1~图像9。此时,M等9。Exemplarily, as shown in FIG. 3(a), the editing interface of the gallery application displayed by the electronic device includes the image area P1 to the image area P9, that is, the target arrangement template is a nine-square grid. Among them, the image 1 to 9 are displayed on the image area P1 to the image area P9, respectively. Specifically, image area P1 to image area P9 are arranged in the order of three rows and three columns, image 1 to image 9 are arranged in the order of three rows and three columns in image area P1 to image area P9, and image area P1 to image area P9 The sizes (that is, the display sizes) in the image area P1 to the image area P9 are the same. At this time, the target image array is image 1 to image 9 arranged in three rows and three columns. At this time, M waited for 9.
其中,图像1~图像9可以全部为用户控制电子设备选择的自定义图像,或者,图像1~图像9包括部分用户控制电子设备选择的自定义图像,还包括部分预设填充图像。即,N个第一图像为图像1~图像9中的全部或部分图像。Wherein, images 1 to 9 may all be custom images selected by the user-controlled electronic device, or images 1 to 9 include some custom images selected by the user-controlled electronic device, and also include some preset filling images. That is, the N first images are all or part of the images 1 to 9.
例如,图像1~图像9中的图像2、图像4、图像5、图像6和图像8可以为上述N个第一图像,即N等于5。此时,第一输入为用户对图像2、图像4、图像5、图像6和图像8的输入。For example, image 2, image 4, image 5, image 6, and image 8 in image 1 to image 9 may be the aforementioned N first images, that is, N is equal to 5. At this time, the first input is the user's input to image 2, image 4, image 5, image 6, and image 8.
具体的,图3中(a)示出的编辑界面中还包括分享控件S1,在用户对分享控件S1进行输入(记为输入1)之后,如图3中的(b)所示,电子设备可以显示通信应用的发送界面,该发送界面中包括按照三行三列排列的图像1~图像9。具体的,该发送界面中还包括发送控件Y。随后,在用户对发送控件Y进行输入(记为输入2)之后,电子设备可以通过通信应用在社交平台发送按照三行三列的顺序排列的图像1~图像9。此时,第二输入包括输入1和输入2。Specifically, the editing interface shown in Figure 3 (a) also includes a sharing control S1. After the user inputs the sharing control S1 (denoted as input 1), as shown in Figure 3 (b), the electronic device The sending interface of the communication application can be displayed, and the sending interface includes images 1 to 9 arranged in three rows and three columns. Specifically, the sending interface also includes a sending control Y. Subsequently, after the user inputs the sending control Y (denoted as input 2), the electronic device can send the images 1 to 9 arranged in the order of three rows and three columns on the social platform through the communication application. At this time, the second input includes input 1 and input 2.
需要说明的是,本发明实施例提供的图像处理方法,可以显示包括目标排列模板所指示的M个图像区域的第一编辑界面,该M个图像区域中的N个图像区域上显示有N个第一图像。随后,通过第一输入,可以编辑N个第一图像中的至少一个图像,得到目标图像阵列。进而,通过第二输入,可以发送目标图像阵列。如此,在用户需求分享目标图像阵列中的图像的情况下,不需要用户一张张的选择这些图像,并实时编辑这些图像进而发送这些图像;而可以将在第一图像编辑界面中按照目标排列模板编辑得到的目标图像阵列中的图像作为整体,快速、便捷的整体选中并发送目标图像阵列中的图像。示例性的,电子设备可以在图库应用的第一编辑界面中按照目标排列模板编辑N个第一图像,而不需要通过专门的第三方修图应用编辑N个第一图像,使得用户无需打开多个应用,而是在图库应用中便可以快速、便捷的控制电子设备编辑N个第一图像。另外,由于电子设备可以通过通信应用发送图库应用中的目标图像阵列,而无需控制通信应用从图库应用中一张张地调出图像以实时编辑并发送这些图像。 即,用户可以通过对图库应用和通信应用的整合式操作,触发电子设备快速、便捷的编辑并分享图像。It should be noted that the image processing method provided by the embodiment of the present invention can display the first editing interface including the M image regions indicated by the target arrangement template, and N image regions of the M image regions are displayed. The first image. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface. The images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently. Exemplarily, the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images. In addition, since the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
可选地,本发明实施例提供的图像处理方法,在上述S203之前还可以包括S207,相应的上述S203可以通过S203a实现:Optionally, the image processing method provided in the embodiment of the present invention may further include S207 before the foregoing S203, and the corresponding foregoing S203 may be implemented through S203a:
S207、电子设备在第一编辑界面中的K个图像区域上显示K个预设填充图像。S207. The electronic device displays K preset filling images on the K image areas in the first editing interface.
其中,K个图像区域中的每个图像区域上显示一个预设填充图像,不同图像区域上显示的预设填充图像不同。Wherein, each of the K image areas displays a preset filling image, and the preset filling images displayed on different image areas are different.
具体的,电子设备可以在图库应用中提供的K个图像区域上显示K个预设填充图像。Specifically, the electronic device may display K preset filling images on the K image areas provided in the gallery application.
S203a、电子设备编辑N个第一图像中的至少一个图像,并编辑K个预设填充图像中的至少一个图像,得到目标图像阵列。S203a. The electronic device edits at least one image among the N first images, and edits at least one image among the K preset filling images, to obtain a target image array.
其中,K为正整数,且K与N之和为M。即N小于M。Among them, K is a positive integer, and the sum of K and N is M. That is, N is less than M.
示例性,结合图3,上述K个预设填充图像可以包括图像1、图像3、图像7和图像9,即K等4。Exemplarily, with reference to FIG. 3, the above K preset filled images may include image 1, image 3, image 7, and image 9, that is, K, etc. 4.
可选地,上述预设填充图像可以为用户自定义的或者预先设置的。Optionally, the aforementioned preset filling image may be user-defined or preset.
例如,预设填充图像可以为空白图像或包括预设图案(如星星图案)的图像。For example, the preset filled image may be a blank image or an image including a preset pattern (such as a star pattern).
可选地,上述第一编辑界面中可以包括“填充”控件,用于触发电子设备在目标排列模板中填充预设填充图像。具体的,“填充”控件用于触发电子设备在目标编辑界面中显示一个或多个不同的预设填充图像,以使得用户可以从该一个或多个不同的预设填充图像中选择需要填充至目标排列模板中的预设填充图像。Optionally, the above-mentioned first editing interface may include a "filling" control for triggering the electronic device to fill the preset filling image in the target arrangement template. Specifically, the “fill” control is used to trigger the electronic device to display one or more different preset filling images in the target editing interface, so that the user can select from the one or more different preset filling images to be filled to The preset fill image in the target arrangement template.
可以理解的是,在用户触发电子设备在目标排列模板中排列图像的情况下,用户可能需求排列得到的图像具有一定的趣味性,如九宫格中的四个角均为空白图像以使得九宫格中的图像呈现出十字的形状。另外,在电子设备在目标排列模板中排列图像的情况下,用户自定义选择的图像的数量较少无法凑足目标排列模板中的图像的数量,则用户需求电子设备在目标排列模板为未填充图像的空闲的图像区域填充一个预设填充图像,如在目标排列模板中的最后一个空闲的图像区域上填充一个预设填充图像。It is understandable that when the user triggers the electronic device to arrange the images in the target arrangement template, the user may need the images obtained by the arrangement to have a certain interest. For example, the four corners in the Jiugongge are all blank images to make the images in the Jiugongge The image takes on the shape of a cross. In addition, when the electronic device arranges images in the target arrangement template, the number of images selected by the user is too small to make up the number of images in the target arrangement template. Therefore, the user requires the electronic device to be unfilled in the target arrangement template. The free image area of the image is filled with a preset filling image, such as filling a preset filling image on the last free image area in the target arrangement template.
本发明实施例中,由于电子设备可以提供针对目标排列模板的预设填充图像,使得用户不需要在图库应用中的大量图像中查找到特定的图像(如空白图像),再将特定的图像填充至目标排列模板中的图像区域中,因此使得用户可以快速、便捷的触发电子设备向目标排列模板中填充预设填充图像。In the embodiment of the present invention, since the electronic device can provide a preset filling image for the target arrangement template, the user does not need to find a specific image (such as a blank image) among a large number of images in a gallery application, and then fill the specific image To the image area in the target arrangement template, so that the user can quickly and conveniently trigger the electronic device to fill the target arrangement template with the preset filling image.
可选地,用户可以通过对图库应用中的一张或张图像触发电子设备进行编辑图像的模式。示例性的,本发明实施例提供的图像处理方法,在上述S201之前还包括S208-S211:Optionally, the user can trigger the electronic device to edit the image through one or more images in the gallery application. Exemplarily, the image processing method provided in the embodiment of the present invention further includes S208-S211 before the foregoing S201:
S208、电子设备在显示P个第二图像的情况下,接收第三输入。S208. The electronic device receives a third input when displaying P second images.
其中,P个图像区域中的每个图像区域上显示一个第二图像,不同图像区域上显示的第二图像不同,P为小于或等于N的正整数。Wherein, each of the P image areas displays a second image, and the second images displayed on different image areas are different, and P is a positive integer less than or equal to N.
本发明实施例中,电子设备可以在图库应用中显示P个第二图像。In the embodiment of the present invention, the electronic device can display P second images in the gallery application.
类似的,对第三输入的输入方式的描述,可以参照上述实施例中对第一输入的输入方式的相关描述,本发明实施例对此不再赘述。Similarly, for the description of the input mode of the third input, reference may be made to the related description of the input mode of the first input in the foregoing embodiment, which is not repeated in this embodiment of the present invention.
示例性的,P等于1。在电子设备显示图库应用中的图像,即显示图像预览界面的情况下,用户可以对图库应用中的一张图像进行长按输入(即第三输入)。Exemplarily, P is equal to 1. In the case where the electronic device displays the image in the gallery application, that is, the image preview interface is displayed, the user can perform a long-press input (that is, the third input) on an image in the gallery application.
可选地,在用户对图库应用中的一张或多张图像进行输入的情况下,电子设备可以在屏幕上显示“删除”控件和“添加多张图像到模板”控件。其中,“删除”控件用于触发电子设备删除电子设备选中的图像。“添加多张图像到模板”控件用于触发电子设备显示上述目标编辑界面,以触发电子设备通过某一排列模板编辑电子设备选中的图像。Optionally, in the case where the user inputs one or more images in the gallery application, the electronic device may display a “delete” control and a “add multiple images to the template” control on the screen. Among them, the "delete" control is used to trigger the electronic device to delete the image selected by the electronic device. The “add multiple images to the template” control is used to trigger the electronic device to display the above-mentioned target editing interface, so as to trigger the electronic device to edit the image selected by the electronic device through a certain arrangement template.
S209、响应于第三输入,电子设备显示至少一个排列模板标识,一个排列模板标识用于指示一个图像排列模板,一个图像排列模板包括多个图像区域。S209. In response to the third input, the electronic device displays at least one arrangement template identification, one arrangement template identification is used to indicate one image arrangement template, and one image arrangement template includes a plurality of image regions.
具体的,电子设备可以提供多种排列模板,如上述三宫格、六宫格或九宫格,此时,至少一个排列模板标识可以分别为三宫格、六宫格或九宫格的标识。Specifically, the electronic device may provide a variety of arrangement templates, such as the above-mentioned three-square grid, six-square grid, or nine-square grid. In this case, at least one arrangement template identifier can be a logo of three-square grid, six-square grid, or nine-square grid, respectively.
S210、电子设备接收对至少一个排列模板标识中的目标排列模板标识的第四输入。S210. The electronic device receives a fourth input of the target arrangement template identification in the at least one arrangement template identification.
其中,目标排列模板标识用于指示目标排列模板。Wherein, the target arrangement template identifier is used to indicate the target arrangement template.
类似的,对第四输入的输入方式的描述,可以参照上述实施例中对第一输入的输入方式的相关描述,本发明实施例对此不再赘述。Similarly, for the description of the input mode of the fourth input, reference may be made to the related description of the input mode of the first input in the foregoing embodiment, which will not be repeated in this embodiment of the present invention.
示例性的,第四输入为用户对九宫格的标识的输入。Exemplarily, the fourth input is the user's input of the logo of Jiugongge.
S211、响应于第四输入,电子设备显示第二编辑界面,第二编辑界面包括目标排列模板所指的M个图像区域,第二编辑界面中的P个图像区域上显示有P个第二图像。S211. In response to the fourth input, the electronic device displays a second editing interface. The second editing interface includes M image regions pointed to by the target arrangement template, and P second images are displayed on the P image regions in the second editing interface. .
具体的,第二编辑界面与第一编辑界面为电子设备在不同时刻显示的同一编辑界面,即第二编辑界面为图库应用中的编辑界面。Specifically, the second editing interface and the first editing interface are the same editing interface displayed by the electronic device at different times, that is, the second editing interface is an editing interface in a gallery application.
其中,P个第二图像为N个第一图像中的图像,P为小于或等于N的正整数。Wherein, P second images are images in N first images, and P is a positive integer less than or equal to N.
可选地,本发明实施例中,第二编辑界面中目标排列模板上空闲的图像区域上可以显示一个加号标识,用于指示该图像区域上未显示图像并触发电子设备为该图像区域填充图像。Optionally, in this embodiment of the present invention, a plus sign may be displayed on an idle image area on the target arrangement template in the second editing interface, which is used to indicate that no image is displayed on the image area and trigger the electronic device to fill the image area. image.
示例性的,如图4中的(a)所示,为电子设备显示的图库应用的图像预览界面,在用户对该图像预览界面中的图像1进行输入(记为输入3)之后,如图4中的(b)所示,电子设备可以在图像预览界面上显示“删除”控件S3和“添加多张图像到模板”控件S4。在用户对“添加多张图像到模板”控件S4进行输入(记为输入4)之后,如图4中的(c)所示,电子设备可以显示模板选择界面,该模板选择界面中包括“三宫格”控件S5、“六宫格”控件S6、“九宫格”控件S7和扩展控件S8。其中,“三宫格”控件S5、“六宫格”控件S6、“九宫格”控件S7分别用于指示三宫格排列模板、六宫格排列模板和九宫格排列模板。另外,扩展控件S8用于触发电子设备选择电子设备提供的其他排列模板,以及保存用户自定义的一些排列模板。此时,第四输入可以包括输入3和输入4。Exemplarily, as shown in Figure 4(a), it is the image preview interface of the gallery application displayed by the electronic device. After the user inputs image 1 (denoted as input 3) in the image preview interface, as shown in the figure As shown in (b) in 4, the electronic device can display the "delete" control S3 and the "add multiple images to the template" control S4 on the image preview interface. After the user enters the "add multiple images to template" control S4 (denoted as input 4), as shown in Figure 4 (c), the electronic device can display a template selection interface, which includes "three "Gongge" control S5, "Sixgongge" control S6, "Jiugongge" control S7 and extended control S8. Among them, the "three square grid" control S5, the "six square grid" control S6, and the "jiugong grid" control S7 are respectively used to indicate the three square grid arrangement template, the six square grid arrangement template and the nine square grid arrangement template. In addition, the extended control S8 is used to trigger the electronic device to select other arrangement templates provided by the electronic device, and to save some arrangement templates customized by the user. At this time, the fourth input may include input 3 and input 4.
随后,在用户对图4中的(c)示出的“九宫格”控件S7进行输入之后,如图4中的(d)所示,电子设备显示的编辑界面中包括图像区域P1~图像区域P9,图像区域P1上包括图像1,而图像区域P2~图像区域P9上未显示图像。此时,图像区域P1为上述P个区域,图像1为上述P个图像,即P个图像区域的数量为1。Subsequently, after the user inputs the "jiugongge" control S7 shown in (c) in FIG. 4, as shown in (d) in FIG. 4, the editing interface displayed by the electronic device includes image area P1 to image area P9 , The image area P1 includes the image 1, and the image area P2 to the image area P9 do not display images. At this time, the image area P1 is the aforementioned P areas, and the image 1 is the aforementioned P images, that is, the number of P image areas is one.
本发明实施例中,电子设备可以提供至少一个排列模板标识,使得用户通过对至 少一个排列模板标识中的目标排列模板标识进行输入,触发电子设备开始在第二编辑界面中按照目标排列模板编辑N个第一图像。另外,由于电子设备可以提供多个排列模板标识,使得电子设备可以在不同排列模板中编辑用户选中的图像,提高了电子设备排列并编辑图像的多样性。In the embodiment of the present invention, the electronic device may provide at least one arrangement template identifier, so that the user can trigger the electronic device to start editing according to the target arrangement template in the second editing interface by inputting the target arrangement template identifier in the at least one arrangement template identifier. First image. In addition, since the electronic device can provide multiple arrangement template identifiers, the electronic device can edit the image selected by the user in different arrangement templates, which improves the diversity of the electronic device's arrangement and editing of images.
可以理解的是,在用户触发电子设备开始在目标排列模板中的图像区域上显示图像,即在目标排列模板中的图像区域上填充图像之后,用户还可以触发电子设备向目标排列模板中空闲的图像区域添加图像,以选中上述M个第一图像。可选地,本发明实施例提供的图像处理方法,在上述S211之后、S201之前还可以包括S212,相应的上述S201可以通过S201a实现:It is understandable that after the user triggers the electronic device to start displaying the image on the image area in the target arrangement template, that is, after filling the image on the image area in the target arrangement template, the user can also trigger the electronic device to display the image area in the target arrangement template. Add images to the image area to select the M first images. Optionally, the image processing method provided in the embodiment of the present invention may further include S212 after S211 and before S201, and the corresponding S201 may be implemented through S201a:
S212、电子设备接收Q个第五输入。S212. The electronic device receives Q fifth inputs.
类似的,对每个第五输入的输入方式的描述,可以参照上述实施例中对第一输入的输入方式的相关描述,本发明实施例对此不再赘述。Similarly, for the description of the input mode of each fifth input, reference may be made to the related description of the input mode of the first input in the foregoing embodiment, which will not be repeated in this embodiment of the present invention.
示例性的,上述Q个第五输入中的每个第五输入用于触发电子设备为第二排列模板中的一个空闲的图像区域中填充用户自定义的图像。Exemplarily, each of the foregoing Q fifth inputs is used to trigger the electronic device to fill an idle image area in the second arrangement template with a user-defined image.
可选地,在用户输入一个第五输入的过程中,用户对第二排列模板中的一个空闲的图像区域进行输入(如对该空闲的图像区域中的加号标识进行输入)(记为输入5)之后,电子设备可以显示一个图像选择列表。随后,用户从图像选择列表中选择一个图像的输入(记为输入6),使得电子设备将该图像确定为待填充至该空闲的图像区域的图像。具体的,该图像选择列表可以为正常显示图库应用中的图像的列表,如显示图库应用中最近拍摄的一组图像的图像选择列表。此时,一个第五输入可以包括上述输入5和输入6这两个输入。Optionally, in the process of the user inputting a fifth input, the user inputs an idle image area in the second arrangement template (for example, inputting a plus sign in the idle image area) (denoted as input 5) After that, the electronic device can display an image selection list. Subsequently, the user selects an image input (denoted as input 6) from the image selection list, so that the electronic device determines the image as the image to be filled in the idle image area. Specifically, the image selection list may be a list that normally displays images in a gallery application, such as an image selection list that displays a group of images recently taken in a gallery application. At this time, a fifth input may include the two inputs of input 5 and input 6 described above.
S201a、电子设备响应于Q个第五输入,显示第一编辑界面,第一编辑界面中的Q个图像区域上显示有Q个第三图像。S201a. In response to Q fifth inputs, the electronic device displays a first editing interface, and Q third images are displayed on the Q image areas in the first editing interface.
其中,Q个图像区域为N个图像区域中除了P个图像区域之外的图像区域;Q个第三图像为N个第一图像中除了P个第二图像之外的图像。Wherein, Q image areas are image areas other than P image areas among N image areas; Q third images are images other than P second images among N first images.
具体的,Q个图像区域中的每个图像区域上显示一个第三图像,不同图像区域上显示的第三图像不同。Specifically, each of the Q image areas displays a third image, and the third images displayed on different image areas are different.
示例性的,结合图4中的(d),在用户对图5中的(a)示出的图像区域P2中的加号标识进行输入(即上述输入5)之后,如图5中的(b)所示,电子设备可以显示图像选择列表,该图像选择列表中包括图像2~图像9。随后,在用户对图5中的(b)所示的图像2进行输入(即上述输入6)之后,如图5中的(c)所示,电子设备可以在编辑界面中的图像区域P2上显示图像2,而图像区域P3~图像区域P9上未显示图像。Exemplarily, in conjunction with (d) in FIG. 4, after the user inputs the plus sign in the image area P2 shown in (a) in FIG. 5 (that is, the above input 5), as shown in FIG. 5 ( As shown in b), the electronic device can display an image selection list, and the image selection list includes image 2 to image 9. Subsequently, after the user inputs the image 2 shown in Fig. 5(b) (that is, the aforementioned input 6), as shown in Fig. 5(c), the electronic device can be placed on the image area P2 in the editing interface Image 2 is displayed, but no image is displayed in image area P3 to image area P9.
类似的,对电子设备对图5中的(c)示出的图像区域P3~图像区域P9中的每个图像区域P3中填充图像的描述可以参照图5中的示例,本发明实施例中对此不再赘述。示例性的,在用户触发电子设备依次在图5中的(c)示出的图像区域P3~图像区域P9中分别填充图像2~图像9之后,电子设备可以显示如图3中的(a)示出的编辑界面。Similarly, for the description of the filling image in each image area P3 of the image area P3 to the image area P9 shown in FIG. 5(c) by the electronic device, refer to the example in FIG. This will not be repeated here. Exemplarily, after the user triggers the electronic device to fill images 2 to 9 in image area P3 to image area P9 shown in (c) of FIG. 5 in sequence, the electronic device may display (a) in FIG. 3 The editing interface shown.
本发明实施例中,由于在用户触发电子设备开始在目标排列模板指示的图像区域上显示图像之后,用户还可以触发电子设备向目标排列模板指示的空闲的图像区域添 加图像,从而提高了电子设备按照目标排列模板选中并排列图像的灵活性。In the embodiment of the present invention, after the user triggers the electronic device to start displaying the image on the image area indicated by the target arrangement template, the user can also trigger the electronic device to add an image to the free image area indicated by the target arrangement template, thereby improving the electronic device The flexibility to select and arrange images according to the target arrangement template
本发明实施例中,电子设备在目标排列模板中显示图像的情况下,还可以显示图库应用中的图像的列表,以支持用户实时查看图库应用中的图像,如方便用户将图库应用的图像添加至目标排列模板中的图像区域中。可选地,目标编辑界面中还包括目标图像列表。其中,目标图像列表中包括Q个第三图像,一个第五输入为将一个第三图像从目标图像列表中拖动至一个图像区域的输入。In the embodiment of the present invention, when the electronic device displays images in the target arrangement template, it can also display a list of images in the gallery application to support the user to view the images in the gallery application in real time, for example, to facilitate the user to add images in the gallery application To the image area in the target arrangement template. Optionally, the target editing interface also includes a list of target images. Wherein, the target image list includes Q third images, and a fifth input is an input for dragging a third image from the target image list to an image area.
其中,目标图像列表可以为图库应用中的图像的缩略图的列表。其中,用户对目标图像列表的左右滑动输入,可以触发电子设备更新目标图像列表中显示的图像缩略图,如更新显示为最近拍摄的图像的缩略图。Wherein, the target image list may be a list of thumbnails of images in a gallery application. Wherein, the user's left and right sliding input on the target image list can trigger the electronic device to update the image thumbnails displayed in the target image list, such as updating the thumbnails displayed as the most recently taken images.
可选地,目标图像列表可以位于目标排列模板中的图像区域的下方,如位于九宫格模板的下方。Optionally, the target image list may be located below the image area in the target arrangement template, such as located below the Jiugongge template.
示例性的,结合图4中的(d),如图6所示,电子设备在编辑界面中的图像区域P1~图像区域P9的下方显示目标图像列表61,该图像列表61中包括图像2的缩略图。随后,用户将图像2的缩略图从目标图像列表61中拖动至图像区域P2的输入(即一个第五输入),触发电子设备显示如图5中的(c)示出的编辑界面,即在图像区域P2上显示图像2。Exemplarily, in conjunction with (d) in FIG. 4, as shown in FIG. 6, the electronic device displays a target image list 61 below the image area P1 to the image area P9 in the editing interface, and the image list 61 includes the image 2 Thumbnail. Subsequently, the user drags the thumbnail of image 2 from the target image list 61 to the input of the image area P2 (that is, a fifth input), triggering the electronic device to display the editing interface as shown in (c) in FIG. 5, namely The image 2 is displayed on the image area P2.
本发明实施例中,电子设备可以在编辑界面(如第一编辑界面或第二编辑界面)中显示目标图像列表,使得电子设备在目标排列模板中排列图像时,用户可以通过目标图像列表方便直观的查看图库应用中的图像。并且,使得用户可以通过将目标图像列表中的图像缩略图向目标排列模板中的图像位置的拖动输入,快速、便捷的触发电子设备向目标排列模板中填充图像,从而提高了电子设备选中并排列图像的快速性和便捷性。In the embodiment of the present invention, the electronic device can display the target image list in the editing interface (such as the first editing interface or the second editing interface), so that when the electronic device arranges images in the target arrangement template, the user can use the target image list conveniently and intuitively View images in the Gallery app. In addition, the user can quickly and conveniently trigger the electronic device to fill the image in the target arrangement template by dragging the image thumbnails in the target image list to the image position in the target arrangement template, thereby improving the selection and selection of the electronic device. The speed and convenience of arranging images.
本发明实施例中,在电子设备在目标排列模板排列图像的场景中,用户可能需求对目标排列模板中填充的图像进行设置,如设置图像的尺寸和色调等。可选地,上述S203b之前还可以包括S213,相应的S203b可以通过S203c实现:In the embodiment of the present invention, in a scene where the electronic device arranges images in the target arrangement template, the user may need to set the image filled in the target arrangement template, such as setting the size and color tone of the image. Optionally, the foregoing S203b may also include S213, and the corresponding S203b may be implemented through S203c:
S213、电子设备接收第六输入。S213. The electronic device receives the sixth input.
类似的,对第六输入的输入方式的描述,可以参照上述实施例中对第一输入的输入方式的相关描述,这里不再赘述。Similarly, for the description of the input mode of the sixth input, reference may be made to the related description of the input mode of the first input in the foregoing embodiment, which will not be repeated here.
S203c、响应于第六输入,电子设备通过执行目标操作,编辑N个第一图像中的至少一个图像,并编辑K个预设填充图像中的至少一个图像,得到目标图像阵列。S203c. In response to the sixth input, the electronic device edits at least one of the N first images and edits at least one of the K preset filling images by performing a target operation to obtain a target image array.
其中,目标操作包括以下操作1~操作4中的任意一项:Among them, the target operation includes any one of the following operations 1 to 4:
操作1:合并目标排列模板中不同图像区域的图像。Operation 1: Combine the images of different image areas in the target arrangement template.
其中,在目标操作为操作1时,第六输入可以为用户对不同图像区域的图像区域的输入,如对不同图像区域上的图像的连续滑动输入。Wherein, when the target operation is operation 1, the sixth input may be the user's input to image areas of different image areas, such as continuous sliding input of images on different image areas.
示例性的,结合图3,在用户对图3中的(a)所示图像3和图像6进行第六输入之后,如图7所示,电子设备可以将图像3和图像6合并为图像10。Exemplarily, in conjunction with FIG. 3, after the user performs the sixth input on the image 3 and the image 6 shown in (a) in FIG. 3, as shown in FIG. 7, the electronic device may merge the image 3 and the image 6 into the image 10. .
如此,可以提高电子设备在目标排列模板中排列图像的多样性,并提升用户体验。In this way, the diversity of the images arranged by the electronic device in the target arrangement template can be improved, and the user experience can be improved.
操作2:拆分目标排列模板中的目标图像区域的图像。Operation 2: Split the image of the target image area in the target arrangement template.
其中,在目标操作为操作1时,第六输入可以为用户对该图像区域的图像区域的 输入,如对不同图像区域上的图像的长按输入。Wherein, when the target operation is operation 1, the sixth input may be the user's input to the image area of the image area, such as long-press input for images on different image areas.
可选地,第六输入的按压时长对应将该图像区域划分的图像区域的个数。例如,在第六输入的按压时长处于一定时长范围(如1秒到1.5秒之间的时长)时,第六输入用于触发电子设备将一个图像区域上的图像划分为两个图像;在第六输入的按压时长处于一定时长范围(如1.5秒到2.5秒之间的时长)时,第六输入用于触发电子设备将一个图像区域上的图像划分为三个图像。Optionally, the pressing duration of the sixth input corresponds to the number of image regions divided into the image region. For example, when the pressing duration of the sixth input is in a certain duration range (such as a duration between 1 second and 1.5 seconds), the sixth input is used to trigger the electronic device to divide the image on one image area into two images; When the pressing duration of the six inputs is in a certain duration range (for example, a duration between 1.5 seconds and 2.5 seconds), the sixth input is used to trigger the electronic device to divide the image on one image area into three images.
示例性的,结合图3,在用户对图3中的(a)所示图像3进行按压输入,且按压时长为1.2秒的情况下,电子设备可以将图像3划分为上下排列的两个图像。Exemplarily, in conjunction with FIG. 3, when the user presses the image 3 shown in (a) in FIG. 3 and the pressing time is 1.2 seconds, the electronic device may divide the image 3 into two images arranged up and down. .
操作3:调整目标排列模板中的图像所在的图像区域。Operation 3: Adjust the image area where the image in the target arrangement template is located.
其中,在目标操作为操作3时,第六输入可以为用户在不同图像区域上拖动图像的输入。Wherein, when the target operation is operation 3, the sixth input may be an input of the user dragging an image on a different image area.
示例性的,结合图3,用户可以将图3中的(a)所示图像3从图像区域P3拖动中图像区域P6上,以触发电子设备在图像区域P3上显示图像6,并在图像区域P6上显示图像3。Exemplarily, in conjunction with FIG. 3, the user can drag the image 3 shown in (a) of FIG. 3 from the image area P3 onto the image area P6 to trigger the electronic device to display the image 6 on the image area P3, and display the image on the image area P3. Image 3 is displayed on area P6.
操作4:与目标功能指示的操作,目标功能用于设置目标排列模板中的部分或全部图像。Operation 4: The operation indicated by the target function. The target function is used to set part or all of the images in the target arrangement template.
可选地,本发明实施例中,电子设备可以在编辑界面(如第一编辑界面和第二编辑界面)上显示一个或多个功能控件,以支持用户通过各个功能控件触发电子设备执行相应的目标功能。其中,一个功能控件对应一个目标功能。Optionally, in the embodiment of the present invention, the electronic device may display one or more functional controls on the editing interface (such as the first editing interface and the second editing interface) to support the user to trigger the electronic device to execute the corresponding Target function. Among them, a function control corresponds to a target function.
另外,电子设备可以一级菜单显示上述一个或多个功能控件,或以多级菜单显示上述一个或多个功能控件。例如,电子设备可以在图库应用中的编辑界面的右上角显示一个扩展控件,该扩展控件的下一层级为一个或多个功能控件,即该扩展控件用于展开一个或多个功能控件。In addition, the electronic device may display the above-mentioned one or more functional controls in a one-level menu, or display the above-mentioned one or more functional controls in a multi-level menu. For example, the electronic device may display an extended control in the upper right corner of the editing interface in a gallery application, and the next level of the extended control is one or more functional controls, that is, the extended control is used to expand one or more functional controls.
可选地,本发明实施例中,目标功能为以下任意一项:剪裁图像,旋转图像,图像色调调整,图像锐化,图像色温调整,图像饱和度调整,图像亮度调整,图像对比度调整,图像滤镜添加,在目标排列模板所指示的M个图像区域中空闲的图像区域上填充图像。Optionally, in the embodiment of the present invention, the target function is any one of the following: crop image, rotate image, image tone adjustment, image sharpening, image color temperature adjustment, image saturation adjustment, image brightness adjustment, image contrast adjustment, image The filter is added, and the image is filled in the free image area among the M image areas indicated by the target arrangement template.
示例性的,图像滤镜可以为风格滤镜,如人物滤镜、风景滤镜和美食滤镜等。另外,另外图像滤镜还可以包括图像特效,如在图像显示区域显示特定的图案,如彩虹、爱心、苹果等。Exemplarily, the image filter may be a style filter, such as a character filter, a landscape filter, and a gourmet filter. In addition, the image filter can also include image special effects, such as displaying a specific pattern in the image display area, such as rainbow, love, apple, etc.
可选地,在目标排列模板中的部分图像被用户选中的情况下,电子设备可以对该部分图像执行目标功能指示的操作,如对该部分图像添加滤镜。在目标排列模板中的全部图像被用户选中的情况下,电子设备可以对该全部图像执行目标功能指示的操作,如对该全部图像整体添加滤镜,如对全部图像整体添加包括彩虹图案的滤镜。Optionally, when a part of the image in the target arrangement template is selected by the user, the electronic device may perform an operation indicated by the target function on the part of the image, such as adding a filter to the part of the image. In the case that all the images in the target arrangement template are selected by the user, the electronic device can perform the operation indicated by the target function on all the images, such as adding a filter to the entire image, such as adding a filter including a rainbow pattern to the entire image. mirror.
示例性的,参照图3,如图8所示,电子设备显示的编辑界面中包括编辑控件K1、滤镜控件K2、填充控件K3、分享控件K4和扩展控件K5。其中,编辑控件K1用于提供剪裁图像,旋转图像,图像色调调整,图像锐化,图像色温调整,图像饱和度调整,图像亮度调整,图像对比度调整。滤镜控件K2用于提供滤镜添加功能。填充控件K3用于触发电子设备在目标排列模板中空闲的图像区域上填充预设填充图像。分 享控件K4用于触发电子设备通过通信应用发送目标图像阵列。扩展控件K5用于提供其他设置图像的功能,如切换当前排列模板的功能。Exemplarily, referring to FIG. 3, as shown in FIG. 8, the editing interface displayed by the electronic device includes an editing control K1, a filter control K2, a filling control K3, a sharing control K4, and an extended control K5. Among them, the editing control K1 is used to provide cropping images, rotating images, image tone adjustment, image sharpening, image color temperature adjustment, image saturation adjustment, image brightness adjustment, and image contrast adjustment. The filter control K2 is used to provide filter addition function. The filling control K3 is used to trigger the electronic device to fill the preset filling image on the free image area in the target arrangement template. The sharing control K4 is used to trigger the electronic device to send the target image array through the communication application. The extended control K5 is used to provide other functions for setting the image, such as the function of switching the current arrangement template.
示例性的,在用户对图8示出的滤镜控件K2进行输入之后,如图9中的(a)所示,电子设备可以在目标排列模板的下方显示一个或多个滤镜模板标识,如彩虹滤镜模板标识91,并显示滤镜扩展控件92(用于展示更多滤镜)。随后,在用户对彩虹滤镜模板标识91进行输入之后,如图9中的(b)所示,电子设备可以显示对图像1~图像9整体添加彩虹滤镜。并且,提高了电子设备为多个图像设置同一滤镜的便捷性。Exemplarily, after the user inputs the filter control K2 shown in FIG. 8, as shown in (a) in FIG. 9, the electronic device may display one or more filter template identifiers under the target arrangement template. For example, the rainbow filter template logo 91, and the filter extension control 92 (used to display more filters) is displayed. Subsequently, after the user inputs the rainbow filter template identifier 91, as shown in (b) of FIG. 9, the electronic device may display that a rainbow filter is added to the entire image 1 to image 9. In addition, the convenience of setting the same filter for multiple images by the electronic device is improved.
示例性的,在用户对图8示出的填充控件K3进行输入之后,如图10中的(a)所示,电子设备可以在目标排列模板的下方显示一个或多个填充效果标识,如填充效果标识10a(即用于指示在九宫格的四个角的图像添加为星星图案的预设填充图像的填充效果),还显示有填充效果扩展控件10b(用于展示更多填充效果)。随后,在用户对填充效果标识10a进行输入之后,如图10中的(b)所示,电子设备可以显示对图像区域P1、图像区域P3、图像区域P7和图像区域P9中分别填充星星图案的预设填充图案,而图像区域P2、图像区域P4~图像区域P6和图像区域P8中分别显示图像2、图像4、图像5、图像6和图像8。Exemplarily, after the user inputs the filling control K3 shown in FIG. 8, as shown in (a) in FIG. 10, the electronic device may display one or more filling effect identifiers under the target arrangement template, such as filling The effect mark 10a (that is, the filling effect used to indicate the preset filling image in which the image at the four corners of the Jiugong grid is added as a star pattern), and the filling effect extension control 10b (used to display more filling effects) are also displayed. Subsequently, after the user inputs the filling effect mark 10a, as shown in (b) in FIG. 10, the electronic device can display the image area P1, the image area P3, the image area P7, and the image area P9, respectively, which are filled with star patterns. A filling pattern is preset, and image 2, image 4, image 5, image 6, and image 8 are displayed in image area P2, image area P4 to image area P6, and image area P8, respectively.
其中,由于电子设备可以提供编辑目标排列模板中的图像的多种方式,如通过不同功能的功能控件触发对图像进行不同操作,因此有利于提供用户触发电子设备按照目标排列模板编辑图像的多样性。Among them, since the electronic device can provide multiple ways to edit the image in the target arrangement template, such as triggering different operations on the image through the function controls of different functions, it is beneficial to provide the user with the diversity of triggering the electronic device to edit the image according to the target arrangement template. .
可选地,本发明实施例提供的图像处理方法,在上述S203之后还可以包括S214:Optionally, the image processing method provided in the embodiment of the present invention may further include S214 after the foregoing S203:
S214、电子设备保存以下至少一项:目标图像阵列,目标图像阵列的目标滤镜。S214. The electronic device stores at least one of the following: a target image array, and a target filter of the target image array.
其中,目标滤镜包括目标图像阵列的色调值,锐化值,色温值,饱和度值,亮度值,对比度值中的至少一项。Wherein, the target filter includes at least one of the hue value, sharpening value, color temperature value, saturation value, brightness value, and contrast value of the target image array.
如此,由于电子设备可以保存目标图像阵列,目标图像阵列的目标滤镜,因此后续用户可以方便地获取已经保存的目标图像阵列和目标滤镜,有利于后续用户查看或使用目标图像阵列和目标滤镜。In this way, since the electronic device can save the target image array and the target filter of the target image array, subsequent users can easily obtain the saved target image array and target filter, which is beneficial for subsequent users to view or use the target image array and target filter. mirror.
如图11所示,为本发明实施例提供的一种电子设备可能的结构示意图。如图11所示,电子设备11,包括:显示模块11a、接收模块11b、编辑模块11c和发送模块11d;显示模块11a,用于显示第一编辑界面,第一编辑界面包括目标排列模板所指示的M个图像区域,第一编辑界面中的N个图像区域上显示有N个第一图像;接收模块11b,用于接收第一输入;编辑模块11c,用于响应于接收模块11b接收的第一输入,编辑由显示模块11a显示的N个第一图像中的至少一个图像,得到目标图像阵列;接收模块11b,还用于接收第二输入;发送模块11d,用于响应于接收模块11b接收的第二输入,发送编辑模块11c得到的目标图像阵列;其中,N为小于或等于M的正整数。As shown in FIG. 11, it is a schematic diagram of a possible structure of an electronic device provided by an embodiment of the present invention. As shown in FIG. 11, the electronic device 11 includes: a display module 11a, a receiving module 11b, an editing module 11c, and a sending module 11d; the display module 11a is used to display a first editing interface, the first editing interface including the target arrangement template indicated M image areas in the first editing interface, N first images are displayed on the N image areas in the first editing interface; the receiving module 11b is used to receive the first input; the editing module 11c is used to respond to the first input received by the receiving module 11b One input is to edit at least one of the N first images displayed by the display module 11a to obtain the target image array; the receiving module 11b is also used to receive the second input; the sending module 11d is used to respond to the receiving module 11b receiving The second input of is to send the target image array obtained by the editing module 11c; where N is a positive integer less than or equal to M.
可选地,显示模块11a,还用于发送模块11d发送目标图像阵列之后,依据目标排列模板在发送界面显示目标图像阵列;其中,发送界面用于显示电子设备待发送或已发送的图像。Optionally, the display module 11a is further configured to display the target image array on the sending interface according to the target arrangement template after the sending module 11d sends the target image array; wherein the sending interface is used to display the image to be sent or already sent by the electronic device.
可选地,显示模块11a,还用于编辑模块11c编辑N个第一图像中的至少一个图像,得到目标图像阵列之前,在第一编辑界面中的K个图像区域上显示K个预设填充图像;编辑模块11c,具体用于编辑N个第一图像中的至少一个图像,并编辑K个预 设填充图像中的至少一个图像,得到目标图像阵列;其中,K为正整数,且K与N之和为M。Optionally, the display module 11a is also used for the editing module 11c to edit at least one image of the N first images, and before obtaining the target image array, display K preset fillings on the K image areas in the first editing interface Image; editing module 11c, specifically used to edit at least one image of the N first images, and edit at least one image of K preset filling images, to obtain a target image array; where K is a positive integer, and K and The sum of N is M.
可选地,接收模块11b,还用于显示模块11a显示第一编辑界面之前,在显示P个第二图像的情况下,接收第三输入;显示模块11a,还用于响应于接收模块11b接收的第三输入,显示至少一个排列模板标识,一个排列模板标识用于指示一个图像排列模板,一个图像排列模板用于指示多个图像区域;接收模块11b,还用于接收对至少一个排列模板标识中的目标排列模板标识的第四输入;显示模块11a,还用于响应于接收模块11b接收的第四输入,显示第二编辑界面,第二编辑界面包括目标排列模板所指的M个图像区域,第二编辑界面中的P个图像区域上显示有P个第二图像;其中,目标排列模板标识用于指示目标排列模板,P个第二图像为N个第一图像中的图像,P为小于或等于N的正整数。Optionally, the receiving module 11b is further configured to receive a third input when P second images are displayed before the display module 11a displays the first editing interface; the display module 11a is also configured to receive in response to the receiving module 11b The third input for displaying at least one arrangement template identification, one arrangement template identification is used to indicate an image arrangement template, and one image arrangement template is used to indicate a plurality of image areas; the receiving module 11b is also used to receive the identification of at least one arrangement template The fourth input of the target arrangement template identification in the display module 11a, which is further configured to display a second editing interface in response to the fourth input received by the receiving module 11b, the second editing interface including the M image regions pointed to by the target arrangement template , P second images are displayed on the P image areas in the second editing interface; among them, the target arrangement template identifier is used to indicate the target arrangement template, the P second images are the images in the N first images, and P is A positive integer less than or equal to N.
可选地,P小于N;接收模块11b,还用于显示模块11a显示第二编辑界面之后,显示第一编辑界面之前,接收Q个第五输入;显示模块11a,具体用于响应于Q个第五输入,显示第一编辑界面,第一编辑界面中的Q个图像区域上显示有Q个第三图像;其中,Q个图像区域为N个图像区域中除了P个图像区域之外的图像区域;Q个第三图像为N个第一图像中除了P个第二图像之外的图像。Optionally, P is less than N; the receiving module 11b is further configured to receive Q fifth inputs after the display module 11a displays the second editing interface and before displaying the first editing interface; the display module 11a is specifically configured to respond to Q The fifth input, the first editing interface is displayed, and Q third images are displayed on the Q image areas in the first editing interface; among them, the Q image areas are the images of the N image areas excluding the P image areas Area; The Q third images are the images except for the P second images among the N first images.
可选地,接收模块11b,还用于编辑模块11c编辑N个第一图像中的至少一个图像,并编辑K个预设填充图像中的至少一个图像,得到目标图像阵列之前,接收第六输入;编辑模块11c,具体用于响应于接收模块11b接收的第六输入,通过执行目标操作,编辑N个第一图像中的至少一个图像,并编辑K个预设填充图像中的至少一个图像,得到目标图像阵列;其中,目标操作包括以下任意一项:合并M个图像区域中不同图像区域的图像,拆分M个图像区域中的目标图像区域的图像,调整M个图像区域中的图像所在的图像区域,与目标功能指示的操作;目标功能用于编辑M个图像区域中的部分或全部图像区域中的图像,目标图像区域为M个图像区域中的任意一个图像区域。Optionally, the receiving module 11b is further configured to edit at least one of the N first images, and edit at least one of the K preset filling images, and receive the sixth input before obtaining the target image array. The editing module 11c is specifically configured to edit at least one of the N first images and edit at least one of the K preset filled images by performing a target operation in response to the sixth input received by the receiving module 11b, Obtain the target image array; where the target operation includes any of the following: merge the images of different image areas in the M image areas, split the image of the target image area in the M image areas, and adjust the location of the image in the M image areas The image area of, and the operation indicated by the target function; the target function is used to edit the image in part or all of the M image areas, and the target image area is any one of the M image areas.
可选地,目标功能为以下任意一项:剪裁图像,旋转图像,图像色调调整,图像锐化,图像色温调整,图像饱和度调整,图像亮度调整,图像对比度调整,图像滤镜添加,在M个图像区域中空闲的图像区域上填充图像。Optionally, the target function is any one of the following: crop image, rotate image, image tone adjustment, image sharpening, image color temperature adjustment, image saturation adjustment, image brightness adjustment, image contrast adjustment, image filter addition, in M The free image area in each image area is filled with an image.
可选地,电子设备11还包括:保存模块;保存模块,用于编辑模块11c编辑N个第一图像中的至少一个图像,并编辑K个预设填充图像中的至少一个图像,得到目标图像阵列之后,保存以下至少一项:目标图像阵列,目标图像阵列的目标滤镜;其中,目标滤镜包括目标图像阵列的色调值,锐化值,色温值,饱和度值,亮度值,对比度值中的至少一项。Optionally, the electronic device 11 further includes: a saving module; a saving module for editing at least one of the N first images by the editing module 11c, and editing at least one of the K preset filling images to obtain the target image After the array, save at least one of the following: the target image array, the target filter of the target image array; where the target filter includes the hue value, sharpening value, color temperature value, saturation value, brightness value, and contrast value of the target image array At least one of.
本发明实施例提供的电子设备11能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device 11 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment, and to avoid repetition, details are not described herein again.
本发明实施例提供的电子设备,可以显示包括目标排列模板所指示的M个图像区域的第一编辑界面,该M个图像区域中的N个图像区域上显示有N个第一图像。随后,通过第一输入,可以编辑N个第一图像中的至少一个图像,得到目标图像阵列。进而,通过第二输入,可以发送目标图像阵列。如此,在用户需求分享目标图像阵列 中的图像的情况下,不需要用户一张张的选择这些图像,并实时编辑这些图像进而发送这些图像;而可以将在第一图像编辑界面中按照目标排列模板编辑得到的目标图像阵列中的图像作为整体,快速、便捷的整体选中并发送目标图像阵列中的图像。示例性的,电子设备可以在图库应用的第一编辑界面中按照目标排列模板编辑N个第一图像,而不需要通过专门的第三方修图应用编辑N个第一图像,使得用户无需打开多个应用,而是在图库应用中便可以快速、便捷的控制电子设备编辑N个第一图像。另外,由于电子设备可以通过通信应用发送图库应用中的目标图像阵列,而无需控制通信应用从图库应用中一张张地调出图像以实时编辑并发送这些图像。即,用户可以通过对图库应用和通信应用的整合式操作,触发电子设备快速、便捷的编辑并分享图像。The electronic device provided by the embodiment of the present invention can display a first editing interface including M image areas indicated by the target arrangement template, and N first images are displayed on the N image areas of the M image areas. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface. The images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently. Exemplarily, the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images. In addition, since the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
图12为本发明实施例提供的一种电子设备的硬件结构示意图,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。12 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 12 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
其中,处理器110,用于控制显示单元106显示第一编辑界面,第一编辑界面包括目标排列模板所指示的M个图像区域,第一编辑界面中的N个图像区域上显示有N个第一图像。The processor 110 is configured to control the display unit 106 to display a first editing interface. The first editing interface includes M image areas indicated by the target arrangement template, and N image areas are displayed on the N image areas in the first editing interface. One image.
处理器110,还用于控制用户输入单元107,接收第一输入。The processor 110 is also used to control the user input unit 107 to receive the first input.
处理器110,还用于响应于用户输入单元107接收的第一输入,编辑显示单元106显示的N个第一图像中的至少一个图像,得到目标图像阵列。The processor 110 is further configured to edit at least one of the N first images displayed by the display unit 106 in response to the first input received by the user input unit 107 to obtain a target image array.
处理器110,还用于控制用户输入单元107接收第二输入。The processor 110 is also configured to control the user input unit 107 to receive the second input.
处理器110,还用于响应于用户输入单元107接收的第二输入,控制射频单元101发送目标图像阵列;其中,N为小于或等于M的正整数。The processor 110 is further configured to control the radio frequency unit 101 to send the target image array in response to the second input received by the user input unit 107; where N is a positive integer less than or equal to M.
本发明实施例提供的电子设备,可以显示包括目标排列模板所指示的M个图像区域的第一编辑界面,该M个图像区域中的N个图像区域上显示有N个第一图像。随后,通过第一输入,可以编辑N个第一图像中的至少一个图像,得到目标图像阵列。进而,通过第二输入,可以发送目标图像阵列。如此,在用户需求分享目标图像阵列中的图像的情况下,不需要用户一张张的选择这些图像,并实时编辑这些图像进而发送这些图像;而可以将在第一图像编辑界面中按照目标排列模板编辑得到的目标图像阵列中的图像作为整体,快速、便捷的整体选中并发送目标图像阵列中的图像。示例性的,电子设备可以在图库应用的第一编辑界面中按照目标排列模板编辑N个第一图像,而不需要通过专门的第三方修图应用编辑N个第一图像,使得用户无需打开多个应用,而是在图库应用中便可以快速、便捷的控制电子设备编辑N个第一图像。另外,由于电子设备可以通过通信应用发送图库应用中的目标图像阵列,而无需控制通信应用从图库应用中一张张地调出图像以实时编辑并发送这些图像。即,用户可以通过对图库应用和通信应用的整合式操作,触发电子设备快速、便捷的编辑并分享图像。The electronic device provided by the embodiment of the present invention can display a first editing interface including M image areas indicated by the target arrangement template, and N first images are displayed on the N image areas of the M image areas. Subsequently, through the first input, at least one of the N first images can be edited to obtain the target image array. Furthermore, through the second input, the target image array can be sent. In this way, when the user needs to share the images in the target image array, there is no need for the user to select these images one by one, edit these images in real time, and then send these images; instead, they can be arranged according to the target in the first image editing interface. The images in the target image array obtained by template editing are taken as a whole, and the images in the target image array are selected and sent as a whole quickly and conveniently. Exemplarily, the electronic device can edit the N first images according to the target arrangement template in the first editing interface of the gallery application, instead of editing the N first images through a special third-party retouching application, so that the user does not need to open the multi In the gallery application, you can quickly and conveniently control the electronic device to edit the N first images. In addition, since the electronic device can send the target image array in the gallery application through the communication application, there is no need to control the communication application to call up images from the gallery application one by one to edit and send these images in real time. That is, the user can trigger the electronic device to edit and share images quickly and conveniently through the integrated operation of the gallery application and the communication application.
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的 接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(graphics processing unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The graphics processing unit 1041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图12中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 12, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device with the electronic device 100. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
电子设备100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。另外,电子设备100包括一些未示出的功能模块,在此不再赘述。The electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components. Preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions. In addition, the electronic device 100 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides an electronic device, including a processor 110, a memory 109, a computer program stored on the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110 Each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here. Wherein, the computer-readable storage medium, such as read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固 有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (19)

  1. 一种图像处理方法,应用于电子设备,其中,所述方法包括:An image processing method applied to an electronic device, wherein the method includes:
    显示第一编辑界面,所述第一编辑界面包括目标排列模板所指示的M个图像区域,所述第一编辑界面中的N个图像区域上显示有N个第一图像;Displaying a first editing interface, where the first editing interface includes M image regions indicated by the target arrangement template, and N first images are displayed on the N image regions in the first editing interface;
    接收第一输入;Receive the first input;
    响应于所述第一输入,编辑所述N个第一图像中的至少一个图像,得到目标图像阵列;In response to the first input, edit at least one of the N first images to obtain a target image array;
    接收第二输入;Receive the second input;
    响应于所述第二输入,发送所述目标图像阵列;In response to the second input, sending the target image array;
    其中,N为小于或等于M的正整数。Among them, N is a positive integer less than or equal to M.
  2. 根据权利要求1所述的方法,所述发送所述目标图像阵列之后,所述方法还包括:The method according to claim 1, after the sending the target image array, the method further comprises:
    依据所述目标排列模板在发送界面显示所述目标图像阵列;Displaying the target image array on the sending interface according to the target arrangement template;
    其中,所述发送界面用于显示所述电子设备待发送或已发送的图像。Wherein, the sending interface is used to display the image to be sent or sent by the electronic device.
  3. 根据权利要求1或2所述的方法,所述编辑所述N个第一图像中的至少一个图像,得到目标图像阵列之前,所述方法还包括:The method according to claim 1 or 2, before the editing at least one of the N first images to obtain the target image array, the method further comprises:
    在所述第一编辑界面中的K个图像区域上显示K个预设填充图像;Displaying K preset filling images on the K image areas in the first editing interface;
    所述编辑所述N个第一图像中的至少一个图像,得到目标图像阵列,包括:The editing at least one of the N first images to obtain a target image array includes:
    编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列;Editing at least one image among the N first images, and editing at least one image among the K preset filling images, to obtain the target image array;
    其中,K为正整数,且K与N之和为M。Among them, K is a positive integer, and the sum of K and N is M.
  4. 根据权利要求1所述的方法,所述显示第一编辑界面之前,所述方法还包括:The method according to claim 1, before the displaying the first editing interface, the method further comprises:
    在显示P个第二图像的情况下,接收第三输入;In the case of displaying P second images, receiving a third input;
    响应于所述第三输入,显示至少一个排列模板标识,一个排列模板标识用于指示一个图像排列模板,一个图像排列模板用于指示多个图像区域;In response to the third input, at least one arrangement template identification is displayed, one arrangement template identification is used to indicate one image arrangement template, and one image arrangement template is used to indicate multiple image regions;
    接收对所述至少一个排列模板标识中的目标排列模板标识的第四输入;Receiving a fourth input of the target arrangement template identification in the at least one arrangement template identification;
    响应于所述第四输入,显示第二编辑界面,所述第二编辑界面包括所述目标排列模板所指的所述M个图像区域,所述第二编辑界面中的P个图像区域上显示有所述P个第二图像;In response to the fourth input, a second editing interface is displayed, the second editing interface includes the M image regions pointed to by the target arrangement template, and the P image regions in the second editing interface are displayed There are said P second images;
    其中,所述目标排列模板标识用于指示所述目标排列模板,所述P个第二图像为所述N个第一图像中的图像,P为小于或等于N的正整数。Wherein, the target arrangement template identifier is used to indicate the target arrangement template, the P second images are images in the N first images, and P is a positive integer less than or equal to N.
  5. 根据权利要求4所述的方法,P小于N;According to the method of claim 4, P is less than N;
    所述显示第二编辑界面之后、所述显示第一编辑界面之前,所述方法还包括:After the second editing interface is displayed and before the first editing interface is displayed, the method further includes:
    接收Q个第五输入;Receive Q fifth inputs;
    所述显示第一编辑界面,包括:The displaying the first editing interface includes:
    响应于所述Q个第五输入,显示所述第一编辑界面,所述第一编辑界面中的Q个图像区域上显示有Q个第三图像;In response to the Q fifth inputs, the first editing interface is displayed, and Q third images are displayed on the Q image areas in the first editing interface;
    其中,所述Q个图像区域为所述N个图像区域中除了所述P个图像区域之外的图像区域;所述Q个第三图像为所述N个第一图像中除了所述P个第二图像之外的图像。Wherein, the Q image areas are image areas other than the P image areas among the N image areas; the Q third images are image areas other than the P image areas among the N first images An image other than the second image.
  6. 根据权利要求3所述的方法,所述编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列之前,所述方法还包括:The method according to claim 3, wherein said editing at least one of said N first images, and editing at least one of said K preset filling images, before obtaining said target image array, The method also includes:
    接收第六输入;Receive the sixth input;
    所述编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列,包括The editing at least one image among the N first images, and editing at least one image among the K preset filling images, to obtain the target image array, includes
    响应于所述第六输入,通过执行目标操作,编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列;In response to the sixth input, by performing a target operation, editing at least one of the N first images, and editing at least one of the K preset filling images, to obtain the target image array;
    其中,所述目标操作包括以下任意一项:合并所述M个图像区域中不同图像区域的图像,拆分所述M个图像区域中的目标图像区域的图像,调整所述M个图像区域中的图像所在的图像区域,与目标功能指示的操作;Wherein, the target operation includes any one of the following: merging images of different image regions in the M image regions, splitting the images of the target image region in the M image regions, and adjusting the images in the M image regions The image area where the image is located, and the operation indicated by the target function;
    所述目标功能用于编辑所述M个图像区域中的部分或全部图像区域中的图像,所述目标图像区域为所述M个图像区域中的任意一个图像区域。The target function is used to edit an image in part or all of the M image regions, and the target image region is any one of the M image regions.
  7. 根据权利要求6所述的方法,所述目标功能为以下任意一项:剪裁图像,旋转图像,图像色调调整,图像锐化,图像色温调整,图像饱和度调整,图像亮度调整,图像对比度调整,图像滤镜添加,在所述M个图像区域中空闲的图像区域上填充图像。The method according to claim 6, wherein the target function is any one of the following: cropping an image, rotating an image, adjusting image tone, image sharpening, image color temperature adjustment, image saturation adjustment, image brightness adjustment, image contrast adjustment, The image filter is added, and the image is filled in the idle image area among the M image areas.
  8. 根据权利要求7所述的方法,所述编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列之后,所述方法还包括:The method according to claim 7, said editing at least one of the N first images, and editing at least one of the K preset filling images, after obtaining the target image array, The method also includes:
    保存以下至少一项:所述目标图像阵列,所述目标图像阵列的目标滤镜;Save at least one of the following: the target image array, the target filter of the target image array;
    其中,所述目标滤镜包括所述目标图像阵列的色调值,锐化值,色温值,饱和度值,亮度值,对比度值中的至少一项。Wherein, the target filter includes at least one of hue value, sharpening value, color temperature value, saturation value, brightness value, and contrast value of the target image array.
  9. 一种电子设备,其中,所述电子设备包括:显示模块、接收模块、编辑模块和发送模块;An electronic device, wherein the electronic device includes: a display module, a receiving module, an editing module, and a sending module;
    所述显示模块,用于显示第一编辑界面,所述第一编辑界面包括目标排列模板所指示的M个图像区域,所述第一编辑界面中的N个图像区域上显示有N个第一图像;The display module is configured to display a first editing interface, the first editing interface includes M image areas indicated by the target arrangement template, and N first editing interfaces are displayed on the N image areas in the first editing interface. image;
    所述接收模块,用于接收第一输入;The receiving module is used to receive the first input;
    所述编辑模块,用于响应于所述接收模块接收的所述第一输入,编辑所述显示模块显示的所述N个第一图像中的至少一个图像,得到目标图像阵列;The editing module is configured to edit at least one of the N first images displayed by the display module in response to the first input received by the receiving module to obtain a target image array;
    所述接收模块,还用于接收第二输入;The receiving module is also used to receive a second input;
    所述发送模块,用于响应于所述接收模块接收的所述第二输入,发送所述编辑模块得到的所述目标图像阵列;The sending module is configured to send the target image array obtained by the editing module in response to the second input received by the receiving module;
    其中,N为小于或等于M的正整数。Among them, N is a positive integer less than or equal to M.
  10. 根据权利要求9所述的电子设备,所述显示模块,还用于所述发送模块发送所述目标图像阵列之后,依据所述目标排列模板在发送界面显示所述目标图像阵列;9. The electronic device according to claim 9, wherein the display module is further configured to display the target image array on a sending interface according to the target arrangement template after the sending module sends the target image array;
    其中,所述发送界面用于显示所述电子设备待发送或已发送的图像。Wherein, the sending interface is used to display the image to be sent or sent by the electronic device.
  11. 根据权利要求9或10所述的电子设备,所述显示模块,还用于所述编辑模块编辑所述N个第一图像中的至少一个图像,得到所述目标图像阵列之前,在所述第一编辑界面中的K个图像区域上显示K个预设填充图像;The electronic device according to claim 9 or 10, wherein the display module is further used for the editing module to edit at least one image of the N first images, and before the target image array is obtained, before the first image 1. K preset filling images are displayed on the K image areas in the editing interface;
    所述编辑模块,具体用于编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列;The editing module is specifically configured to edit at least one of the N first images, and edit at least one of the K preset filling images, to obtain the target image array;
    其中,K为正整数,且K与N之和为M。Among them, K is a positive integer, and the sum of K and N is M.
  12. 根据权利要求9所述的电子设备,所述接收模块,还用于所述显示模块显示第一编辑界面之前,在显示P个第二图像的情况下,接收第三输入;9. The electronic device according to claim 9, wherein the receiving module is further configured to receive a third input when P second images are displayed before the display module displays the first editing interface;
    所述显示模块,还用于响应于所述接收模块接收的所述第三输入,显示至少一个排列模板标识,一个排列模板标识用于指示一个图像排列模板,一个图像排列模板用于指示多个图像区域;The display module is further configured to display at least one arrangement template identification in response to the third input received by the receiving module, one arrangement template identification is used to indicate one image arrangement template, and one image arrangement template is used to indicate multiple Image area
    所述接收模块,还用于接收对所述至少一个排列模板标识中的目标排列模板标识的第四输入;The receiving module is further configured to receive a fourth input of the target arrangement template identification in the at least one arrangement template identification;
    所述显示模块,还用于响应于所述接收模块接收的所述第四输入,显示第二编辑界面,所述第二编辑界面包括所述目标排列模板所指的所述M个图像区域,所述第二编辑界面中的P个图像区域上显示有所述P个第二图像;The display module is further configured to display a second editing interface in response to the fourth input received by the receiving module, where the second editing interface includes the M image regions pointed to by the target arrangement template, The P second images are displayed on the P image areas in the second editing interface;
    其中,所述目标排列模板标识用于指示所述目标排列模板,所述P个第二图像为所述N个第一图像中的图像,P为小于或等于N的正整数。Wherein, the target arrangement template identifier is used to indicate the target arrangement template, the P second images are images in the N first images, and P is a positive integer less than or equal to N.
  13. 根据权利要求12所述的电子设备,P小于N;The electronic device according to claim 12, P is less than N;
    所述接收模块,还用于所述显示模块显示所述第二编辑界面之后,显示所述第一编辑界面之前,接收Q个第五输入;The receiving module is further configured to receive Q fifth inputs after the display module displays the second editing interface and before displaying the first editing interface;
    所述显示模块,具体用于响应于所述Q个第五输入,显示所述第一编辑界面,所述第一编辑界面中的Q个图像区域上显示有Q个第三图像;The display module is specifically configured to display the first editing interface in response to the Q fifth inputs, and Q third images are displayed on the Q image areas in the first editing interface;
    其中,所述Q个图像区域为所述N个图像区域中除了所述P个图像区域之外的图像区域;所述Q个第三图像为所述N个第一图像中除了所述P个第二图像之外的图像。Wherein, the Q image areas are image areas other than the P image areas among the N image areas; the Q third images are image areas other than the P image areas among the N first images An image other than the second image.
  14. 根据权利要求11所述的电子设备,The electronic device according to claim 11,
    所述接收模块,还用于所述编辑模块编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列之前,接收第六输入;The receiving module is also used for the editing module to edit at least one of the N first images, and edit at least one of the K preset filling images, before obtaining the target image array, Receive the sixth input;
    所述编辑模块,具体用于响应于接收模块接收的所述第六输入,通过执行目标操作,编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列;The editing module is specifically configured to edit at least one of the N first images by executing a target operation in response to the sixth input received by the receiving module, and edit among the K preset filled images At least one image of to obtain the target image array;
    其中,所述目标操作包括以下任意一项:合并所述M个图像区域中不同图像区域的图像,拆分所述M个图像区域中的目标图像区域的图像,调整所述M个图像区域中的图像所在的图像区域,与目标功能指示的操作;Wherein, the target operation includes any one of the following: merging images of different image regions in the M image regions, splitting the images of the target image region in the M image regions, and adjusting the images in the M image regions The image area where the image is located, and the operation indicated by the target function;
    所述目标功能用于编辑所述M个图像区域中的部分或全部图像区域中的图像,所述目标图像区域为所述M个图像区域中的任意一个图像区域。The target function is used to edit an image in part or all of the M image regions, and the target image region is any one of the M image regions.
  15. 根据权利要求14所述的电子设备,所述目标功能为以下任意一项:剪裁图像,旋转图像,图像色调调整,图像锐化,图像色温调整,图像饱和度调整,图像亮度调整,图像对比度调整,图像滤镜添加,在所述M个图像区域中空闲的图像区域上填充图像。The electronic device according to claim 14, wherein the target function is any one of the following: crop image, rotate image, image tone adjustment, image sharpening, image color temperature adjustment, image saturation adjustment, image brightness adjustment, image contrast adjustment , The image filter is added, and the image is filled in the idle image area among the M image areas.
  16. 根据权利要求15所述的电子设备,其特征在于,所述电子设备还包括:保存 模块;The electronic device according to claim 15, wherein the electronic device further comprises: a storage module;
    所述保存模块,用于所述编辑模块编辑所述N个第一图像中的至少一个图像,并编辑所述K个预设填充图像中的至少一个图像,得到所述目标图像阵列之后,保存以下至少一项:所述目标图像阵列,所述目标图像阵列的目标滤镜;The saving module is used for the editing module to edit at least one of the N first images, and edit at least one of the K preset filling images, and save after obtaining the target image array At least one of the following: the target image array, the target filter of the target image array;
    其中,所述目标滤镜包括所述目标图像阵列的色调值,锐化值,色温值,饱和度值,亮度值,对比度值中的至少一项。Wherein, the target filter includes at least one of hue value, sharpening value, color temperature value, saturation value, brightness value, and contrast value of the target image array.
  17. 一种电子设备,其中,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至8中任一项所述的图像处理方法的步骤。An electronic device, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and the computer program is executed by the processor to implement claims 1 to 8 The steps of any one of the image processing methods.
  18. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的图像处理方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the image processing method according to any one of claims 1 to 8 are realized .
  19. 一种电子设备,其特征在于,包括所述电子设备被配置成用于执行如权利要求1至8中任一项所述的图像处理方法。An electronic device, comprising the electronic device configured to execute the image processing method according to any one of claims 1 to 8.
PCT/CN2020/136731 2019-12-19 2020-12-16 Image processing method and electronic device WO2021121253A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911319652.0 2019-12-19
CN201911319652.0A CN111127595B (en) 2019-12-19 2019-12-19 Image processing method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021121253A1 true WO2021121253A1 (en) 2021-06-24

Family

ID=70500252

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/136731 WO2021121253A1 (en) 2019-12-19 2020-12-16 Image processing method and electronic device

Country Status (2)

Country Link
CN (1) CN111127595B (en)
WO (1) WO2021121253A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430460A (en) * 2022-01-28 2022-05-03 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114500844A (en) * 2022-01-28 2022-05-13 维沃移动通信有限公司 Shooting method and device and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111127595B (en) * 2019-12-19 2023-11-03 维沃移动通信有限公司 Image processing method and electronic equipment
CN111866379A (en) * 2020-07-03 2020-10-30 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN112312022B (en) * 2020-10-30 2022-04-15 维沃移动通信有限公司 Image processing method, image processing apparatus, electronic device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168417A (en) * 2014-05-20 2014-11-26 腾讯科技(深圳)有限公司 Picture processing method and device
CN104881844A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Picture combination method and device and terminal equipment
CN105320695A (en) * 2014-07-31 2016-02-10 腾讯科技(深圳)有限公司 Picture processing method and device
US20180095653A1 (en) * 2015-08-14 2018-04-05 Martin Hasek Device, method and graphical user interface for handwritten interaction
CN111127595A (en) * 2019-12-19 2020-05-08 维沃移动通信有限公司 Image processing method and electronic device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120082401A1 (en) * 2010-05-13 2012-04-05 Kelly Berger System and method for automatic discovering and creating photo stories
CN103337086B (en) * 2013-06-17 2015-11-25 北京金山安全软件有限公司 picture editing method and device for mobile terminal
CN105955607B (en) * 2016-04-22 2020-06-19 北京小米移动软件有限公司 Content sharing method and device
CN106407365A (en) * 2016-09-08 2017-02-15 北京小米移动软件有限公司 Picture sharing method and apparatus
CN110147190B (en) * 2018-06-29 2024-03-08 腾讯科技(深圳)有限公司 Image processing method and electronic terminal
CN110084871B (en) * 2019-05-06 2020-11-27 珠海格力电器股份有限公司 Image typesetting method and device and electronic terminal
CN110490808B (en) * 2019-08-27 2023-07-07 腾讯科技(深圳)有限公司 Picture splicing method, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168417A (en) * 2014-05-20 2014-11-26 腾讯科技(深圳)有限公司 Picture processing method and device
CN105320695A (en) * 2014-07-31 2016-02-10 腾讯科技(深圳)有限公司 Picture processing method and device
CN104881844A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Picture combination method and device and terminal equipment
US20180095653A1 (en) * 2015-08-14 2018-04-05 Martin Hasek Device, method and graphical user interface for handwritten interaction
CN111127595A (en) * 2019-12-19 2020-05-08 维沃移动通信有限公司 Image processing method and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430460A (en) * 2022-01-28 2022-05-03 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114500844A (en) * 2022-01-28 2022-05-13 维沃移动通信有限公司 Shooting method and device and electronic equipment

Also Published As

Publication number Publication date
CN111127595A (en) 2020-05-08
CN111127595B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
WO2021121253A1 (en) Image processing method and electronic device
WO2021104195A1 (en) Image display method and electronic device
WO2019137429A1 (en) Picture processing method and mobile terminal
WO2021104321A1 (en) Image display method and electronic device
WO2021036531A1 (en) Screenshot method and terminal device
WO2020151519A1 (en) Information input method, terminal device, and computer-readable storage medium
WO2020215949A1 (en) Object processing method and terminal device
WO2020151525A1 (en) Message sending method, and terminal device
WO2021057585A1 (en) Notification message display method and mobile terminal
KR102554191B1 (en) Information processing method and terminal
JP2021516374A (en) Image processing method and flexible screen terminal
WO2019149028A1 (en) Application download method and terminal
WO2020151460A1 (en) Object processing method and terminal device
WO2020182035A1 (en) Image processing method and terminal device
WO2020238497A1 (en) Icon moving method and terminal device
WO2020220873A1 (en) Image display method and terminal device
WO2021077908A1 (en) Parameter adjusting method and electronic device
WO2021121398A1 (en) Video recording method and electronic device
WO2021057290A1 (en) Information control method and electronic device
WO2020238911A1 (en) Message sending method and terminal
WO2021073579A1 (en) Method for capturing scrolling screenshot and terminal device
WO2021057301A1 (en) File control method and electronic device
CN111064848B (en) Picture display method and electronic equipment
CN111159449B (en) Image display method and electronic equipment
WO2020173316A1 (en) Image display method, terminal, and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20903001

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20903001

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20903001

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20903001

Country of ref document: EP

Kind code of ref document: A1