CN110084871B - Image typesetting method and device and electronic terminal - Google Patents

Image typesetting method and device and electronic terminal Download PDF

Info

Publication number
CN110084871B
CN110084871B CN201910371350.1A CN201910371350A CN110084871B CN 110084871 B CN110084871 B CN 110084871B CN 201910371350 A CN201910371350 A CN 201910371350A CN 110084871 B CN110084871 B CN 110084871B
Authority
CN
China
Prior art keywords
image
typesetting
images
preset
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910371350.1A
Other languages
Chinese (zh)
Other versions
CN110084871A (en
Inventor
杜敬婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910371350.1A priority Critical patent/CN110084871B/en
Publication of CN110084871A publication Critical patent/CN110084871A/en
Application granted granted Critical
Publication of CN110084871B publication Critical patent/CN110084871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour

Landscapes

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

Abstract

The invention discloses an image typesetting method and device and an electronic terminal. Wherein, the method comprises the following steps: acquiring at least one image to be processed; classifying the at least one image according to the element category of the at least one image; and finishing the typesetting operation of at least one image according to the classification result and the total number of the images. The invention solves the technical problem that the image typesetting operation is complicated because the image is far away from the finger when the image typesetting is carried out in the related technology.

Description

Image typesetting method and device and electronic terminal
Technical Field
The invention relates to the technical field of terminal image processing, in particular to an image typesetting method and device and an electronic terminal.
Background
In the related art, with various social applications or image processing applications installed on various terminals such as a PC/touch terminal, etc., images are often required to be typeset and then shared with a corresponding friend circle, or sent to a client, for example, on a social platform, many users can share various images shot by themselves at present, in order to display beauty, when many users share images, the images are typeset in three-square, six-square, nine-square and other ways and then sent to a corresponding sharing space or friend circle, but when the users share images, the problem that a mobile phone screen is too large and fingers are difficult to touch images far away with one hand is often encountered in the process of operating the mobile phone by the users with one hand, so that image typesetting operation is complicated; and the current image typesetting only arranges the images according to the selected time sequence, the image obtained by typesetting has poor hierarchical sense and is not beautiful, and the interest of the user in typesetting operation is reduced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an image typesetting method and device and an electronic terminal, which at least solve the technical problem that image typesetting operation is complex because images are far away from fingers when image typesetting is performed in the related technology.
According to an aspect of an embodiment of the present invention, there is provided an image layout method including: acquiring at least one image to be processed; classifying the at least one image according to the element category of the at least one image; and finishing the typesetting operation of the at least one image according to the classification result and the total number of the images.
Further, the step of acquiring at least one image to be processed comprises: entering a gallery application of a target terminal, and sensing a first operation, wherein the first operation acts on a screen interface of the target terminal; if the first operation is sensed, determining a first target image selected from at least one image; if the first target image is selected, displaying a selection control whether to enter an image multi-selection mode; judging whether to enter the image multi-selection mode; and acquiring at least one image to be processed under the condition of determining to enter the image multi-selection mode.
Further, the first operation includes one of: long press operation, double click operation, and slide operation.
Further, the step of classifying the at least one image according to the element category of the at least one image comprises: identifying image elements in each image; classifying the at least one image according to an element class to which the image element belongs.
Further, the image element includes at least one of: image tone, image composition, image content.
Further, the step of completing the typesetting operation of the at least one image according to the classification result and the total number of the images comprises: when the total number of the images meets the preset number of the images, typesetting the at least one image according to a preset typesetting format according to the classification result; and sensing a second operation of adjusting the display position of the at least one image, wherein the second operation at least comprises: sliding operation and dragging operation; and if the second operation is sensed, finishing the typesetting of the at least one image according to the second operation.
Further, the preset typesetting format comprises one of the following: parallel line typesetting format, diagonal line typesetting format and intersecting line typesetting format.
Further, the step of completing the typesetting operation of the at least one image according to the classification result and the total number of the images comprises: when the total number of the images does not meet the preset number of the images, determining a blank area and a rendering area on a typesetting interface of a target terminal, wherein the typesetting interface is used for typesetting the at least one image; filling a preset color block and/or a preset image in a blank area on the typesetting interface, and filling at least one image in a rendering area respectively; and after the filling is finished, determining that the typesetting operation on the at least one image is finished.
Further, the step of determining a blank area and a rendering area on the composition interface of the target terminal includes: dividing the typesetting interface according to the number of the preset images to obtain a plurality of image subregions; dividing the image subregions into a plurality of rendering subregions and a plurality of blank subregions according to the total number of the images, wherein each rendering subregion is filled with one image, and the blank subregions are filled with preset color blocks and/or preset images; and determining a blank area and a rendering area on the typesetting interface according to the division result.
Further, after filling a preset color block and/or a preset image in a blank area on the typesetting interface and filling the at least one image in a rendering area respectively, the method further comprises: sensing a third operation, wherein the third operation is used for adjusting a second target image in the at least one image; if the third operation is sensed, determining a target blank subregion to which the second target image is adjusted according to the third operation; and displaying the second target image in the target blank subarea, and adjusting the initial rendering subarea in which the second target image is positioned into a blank subarea.
Further, after filling a preset color block and/or a preset image in a blank area on the typesetting interface and filling the at least one image in a rendering area respectively, the method further comprises: sensing a fourth operation, wherein the fourth operation is used for adjusting the preset color blocks and/or the preset image; if the fourth operation is sensed, determining the adjusted preset color block and/or the target blank sub-area where the preset image is located according to the fourth operation; and displaying a color block of a target color in the target blank sub-area, and/or displaying a third target image, wherein the third target image is an image obtained by adjusting the preset image.
Further, after completing the layout operation of the at least one image, the method further comprises: saving the at least one image which is typeset completely; and/or sharing the at least one image after typesetting.
According to another aspect of the embodiments of the present invention, there is also provided an image layout method applied to a target terminal capable of rendering an image on a screen interface, including: after entering a gallery application of the target terminal, receiving a first operation, wherein the first operation acts on a screen interface of the target terminal; determining a first target image selected from the gallery application according to the first operation; if the first target image is selected, judging whether to enter an image multi-selection mode; receiving a second operation in the case of determining to enter the image multi-selection mode; acquiring at least one image to be processed according to the second operation; classifying the at least one image according to the element category of the at least one image; and finishing the typesetting operation of the at least one image according to the classification result and the total number of the images.
According to another aspect of the embodiments of the present invention, there is also provided an electronic terminal, including: a memory, a processor coupled with the memory, the memory and the processor communicating over a bus system; the memory is used for storing a program, wherein the program, when executed by the processor, controls the device in which the memory is located to execute any one of the image layout methods, and the processor is used for executing the program, wherein the program, when executed, executes any one of the image layout methods.
According to another aspect of the embodiments of the present invention, there is also provided an image layout apparatus including: the device comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring at least one image to be processed; the first classification unit is used for classifying the at least one image according to the element category of the at least one image; and the first typesetting unit is used for completing the typesetting operation of the at least one image according to the classification result and the total number of the images.
Further, the first acquisition unit includes: the system comprises a first sensing module, a second sensing module and a display module, wherein the first sensing module is used for entering a gallery application of a target terminal and sensing a first operation, and the first operation acts on a screen interface of the target terminal; the first determining module is used for determining a first target image selected from at least one image when the first operation is sensed; the first display module is used for displaying a selection control whether to enter an image multi-selection mode when the first target image is selected; judging whether to enter the image multi-selection mode; the first acquisition module is used for acquiring at least one image to be processed under the condition that the image multi-selection mode is determined to be entered.
Further, the first operation includes one of: long press operation, double click operation, and slide operation.
Further, the first classification unit includes: a first identification module for identifying image elements in each image; a first classification module, configured to classify the at least one image according to an element class to which the image element belongs.
Further, the image element includes at least one of: image tone, image composition, image content.
Further, the first plate-discharge unit includes: the first typesetting module is used for typesetting the at least one image according to a preset typesetting format according to the classification result when the total number of the images meets the preset number of the images; a second sensing module, configured to sense a second operation of adjusting a display position of the at least one image, where the second operation at least includes: sliding operation and dragging operation; and the second typesetting module is used for finishing typesetting of the at least one image according to the second operation when the second operation is sensed.
Further, the preset typesetting format comprises one of the following: parallel line typesetting format, diagonal line typesetting format and intersecting line typesetting format.
Further, the first plate-arranging unit further includes: the second determining module is used for determining a blank area and a rendering area on a typesetting interface of the target terminal when the total number of the images does not meet the preset number of the images, wherein the typesetting interface is used for typesetting the at least one image; the first filling module is used for filling a preset color block and/or a preset image in a blank area on the typesetting interface and filling at least one image in a rendering area respectively; and the third determining module is used for determining that the typesetting operation of the at least one image is finished after the filling is finished.
Further, the second determining module includes: the first dividing module is used for dividing the typesetting interface according to the number of the preset images to obtain a plurality of image subregions; the second division submodule is used for dividing the plurality of image subregions into a plurality of rendering subregions and a plurality of blank subregions according to the total number of the images, wherein each rendering subregion is filled with one image, and the blank subregions are filled with preset color blocks and/or preset images; and the first determining submodule is used for determining a blank area and a rendering area on the typesetting interface according to the division result.
Further, the image layout apparatus further includes: a third sensing module, configured to fill a blank area in the composition interface with a preset color block and/or a preset image, and sense a third operation after filling the rendering area with the at least one image, where the third operation is used to adjust a second target image in the at least one image; a fourth determining module, configured to determine, when the third operation is sensed, a target blank sub-region to which the second target image is adjusted according to the third operation; and the second display module is used for displaying the second target image on the target blank sub-area and adjusting the initial rendering sub-area where the second target image is located into a blank sub-area.
Further, the image layout apparatus further includes: a fourth sensing module, configured to fill a preset color block and/or a preset image in a blank area on the composition interface, and sense a fourth operation after filling the at least one image in a rendering area, where the fourth operation is used to adjust the preset color block and/or the preset image; a fifth determining module, configured to determine, when the fourth operation is sensed, a target blank sub-region where the adjusted preset color block and/or preset image is located according to the fourth operation; and the third display module is used for displaying a color block of a target color in the target blank sub-area and/or displaying a third target image, wherein the third target image is an image obtained by adjusting the preset image.
Further, the image layout apparatus further includes: a saving unit configured to save the at least one laid out image after the layout operation for the at least one image is completed; and the sharing unit is used for sharing the at least one image which is typeset.
According to another aspect of the embodiments of the present invention, there is also provided an image layout apparatus applied to a target terminal capable of rendering an image on a screen interface, including: the first receiving unit is used for receiving a first operation after the gallery application of the target terminal is entered, wherein the first operation acts on a screen interface of the target terminal; the first determining unit is used for determining a first target image selected from the gallery application according to the first operation; the first judgment unit is used for judging whether to enter an image multi-selection mode when the first target image is selected; a second receiving unit configured to receive a second operation in a case where it is determined that the image multi-selection mode is entered; the second acquisition unit is used for acquiring at least one image to be processed according to the second operation; the second classification unit is used for classifying the at least one image according to the element category of the at least one image; and the second typesetting unit is used for completing the typesetting operation of the at least one image according to the classification result and the total number of the images.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium storing a program, wherein the program, when executed by a processor, controls an apparatus in which the storage medium is located to perform the image layout method according to any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a processor for executing a program, wherein the program executes to execute the image layout method according to any one of the above items.
In the embodiment of the invention, at least one image to be processed is acquired; classifying the at least one image according to the element category of the at least one image; and finishing the typesetting operation of at least one image according to the classification result and the total number of the images. In the embodiment, the terminal can automatically classify according to the element categories of the selected images, so that beautiful images can be obtained through more convenient and rapid typesetting, the images are finely typeset, the operation is simple, only the user needs to select the image to be typeset, the terminal automatically completes the typesetting operation, and the operation is simpler and more convenient, thereby solving the technical problem that the image typesetting operation is complicated because the image is far away from the finger when the image is typesetting in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of laying out images according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an alternative gallery application in accordance with embodiments of the present invention;
FIG. 3 is a schematic diagram of selecting multiple images according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative complete image layout according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another alternative layout of filled-in images according to an embodiment of the invention
FIG. 6 is a schematic diagram of an alternative adjusted image according to an embodiment of the invention;
FIG. 7 is a flowchart of another image layout method according to an embodiment of the present invention;
FIG. 8 is a schematic view of an alternative electronic terminal according to embodiments of the present invention;
FIG. 9 is a schematic diagram of an image layout apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of another image layout apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided an image layout method embodiment, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that described herein.
Fig. 1 is a flowchart of an image layout method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, at least one image to be processed is obtained;
step S104, classifying at least one image according to the element category of the at least one image;
and step S106, finishing the typesetting operation of at least one image according to the classification result and the total number of the images.
Through the steps, at least one image to be processed can be obtained; classifying the at least one image according to the element category of the at least one image; and finishing the typesetting operation of at least one image according to the classification result and the total number of the images. In the embodiment, the terminal can automatically classify according to the element types of the selected graphics, so that beautiful images can be obtained through typesetting more conveniently and quickly, the images can be finely typeset, the operation is simple, only the user needs to select the image to be typeset, the terminal automatically completes typesetting operation, and the operation is simpler and more convenient, thereby solving the technical problem that the image typesetting operation is complicated because the image is far away from fingers when the image is typesetting in the related technology.
The above steps of the present invention will be described in detail.
Step S102, at least one image to be processed is obtained.
The embodiment of the invention can be applied to various terminals, including but not limited to: PC, IPAD, panel, touch terminal, folding screen terminal. The type and specific model of the terminal are not limited, and can be automatically selected according to the terminal held by the user. Moreover, the present invention is applicable to a variety of terminal applications including, but not limited to: social applications, gallery applications, etc.
The images acquired in embodiments of the invention may include: color images, black and white images, and the like.
Optionally, the step of acquiring at least one image to be processed includes: entering a gallery application of the target terminal, and sensing a first operation, wherein the first operation acts on a screen interface of the target terminal; if the first operation is sensed, determining a first target image selected from the at least one image; if the first target image is selected, displaying a selection control whether to enter an image multi-selection mode; judging whether an image multi-selection mode is entered; and acquiring at least one image to be processed under the condition of determining to enter the image multi-selection mode.
In the gallery application, various images such as images shot by a user through a terminal, images sent by other users on a social platform by receiving the images, images collected by browsing various interfaces, images saved by browsing a webpage and the like can be stored. For the type of image, may include, but is not limited to: animal images, character images, landscape images, life images, and animation images.
Alternatively, the first operation comprises one of: long press operation, double click operation, and slide operation. Preferably, the first operation may be a long-press operation, for example, after a certain image in the gallery application is pressed for a long time, the target terminal may sense the selected image and then display a selection control of the image multi-selection mode, where the selection control may select whether to enter the image multi-selection mode, and the image multi-selection mode may be to continue to select multiple images.
Fig. 2 is a schematic diagram of an alternative gallery application according to an embodiment of the present invention, and as shown in fig. 2, a gallery application 21 containing a plurality of images is displayed on a screen interface of the terminal 100. If the user performs a first operation (e.g., long-pressing an image in the gallery application 21) on the screen interface through a touch medium (e.g., a finger, a touch pen, etc.), then whether to enter the image multi-selection mode may be selected.
Fig. 3 is a schematic diagram of selecting multiple images according to an embodiment of the present invention, as shown in fig. 3, in the gallery application 21, a user may select multiple images through a touch medium (for example, the user clicks on the images through a finger, so that the sensing area of the terminal senses the image selected by the user), and after the operation is completed, the selected multiple images are displayed as the upper left corner of the partial image shown in fig. 3 (that is, the checked image is displayed in the box in the upper left corner). In the embodiment of the present invention, the number of the selected images is not limited, and for example, 9 images may be directly selected to display the images in a squared manner.
In the embodiment of the invention, different typesetting modes can be selected according to the number of the images selected by the user.
First, when the number of selected images is greater than a first predetermined number (e.g., 1) and less than a second predetermined number (e.g., 3), a tandem layout may be used, i.e., the selected images may be laid out in either a horizontal tandem or a vertical tandem manner.
Second, when the number of selected images is greater than a second predetermined number, a jigsaw pattern may be used.
The puzzle mode is described in more detail below.
The jigsaw mode is to select a proper typesetting format according to the number of the selected images.
Step S104, classifying the at least one image according to the element category of the at least one image.
In an embodiment of the present invention, the step of classifying the at least one image according to the element category of the at least one image includes: identifying image elements in each image; the at least one image is classified according to the element class to which the image element belongs.
Optionally, the image element of the embodiment of the present invention may refer to a manner of distinguishing images, that is, each image may be distinguished by any image element, and the image element includes at least one of the following: image tone, image composition, image content (such as text, lines, online stores, internet holes, etc.). The image tone may refer to the brightness of an image pixel (i.e., the relative brightness of an image, which is particularly obvious for a color image), and may be distinguished by "color level", "curve", "brightness", and the like, and each image may include a plurality of image tones; the image composition can refer to the combination mode of the image, such as balanced composition, symmetrical composition, variable composition, diagonal composition, X-shaped composition compact composition, triangular composition and the like; the image content refers to content contained in an image, such as a watermark, explanatory characters, scenes, and the like on the image. Of course, the image elements in the embodiment of the present invention may include other elements, such as image brightness, image saturation, and the like, and are not limited in particular.
The image is identified by an image identification technology, for example, image preprocessing (such as image binarization, inverse color, and other preprocessing) is performed first to obtain various image features, and then various image elements are identified by an image identification model.
After the identification is completed, at least one image can be classified according to the element category to which the image element belongs, for example, images with the same characters and the same date in the image are classified into one category, or images with the same scenery in the image are classified into one category; the element categories may be categories to which each element of the image belongs, which may include, but are not limited to: image content, image capture area, composition mode, etc.
After the classification of the images is completed, the layout of the images can be completed.
And step S106, finishing the typesetting operation of at least one image according to the classification result and the total number of the images.
In the embodiment of the present invention, the image layout modes are divided into two types, the first type is directly laid out according to the classification result; and secondly, after picture splicing is carried out, typesetting is carried out by combining classification results.
For the first, typesetting is directly performed according to the classification result.
Optionally, the step of completing the layout operation of the at least one image according to the classification result and the total number of the images includes: when the total number of the images meets the preset number of the images, typesetting at least one image according to a preset typesetting format according to a classification result; sensing a second operation for adjusting the display position of the at least one image, wherein the second operation at least comprises: sliding operation and dragging operation; and if the second operation is sensed, finishing the typesetting of the at least one image according to the second operation.
The number of the preset images can be adjusted according to the layout format, for example, the number of the preset images is set to 9. If the total number of the images selected by the user meets the preset images, the images can be typeset according to the classification result without supplementation.
In the embodiment of the present invention, the preset typesetting format includes one of the following: parallel line typesetting format, diagonal line typesetting format and intersecting line typesetting format.
FIG. 4 is a schematic diagram of an alternative layout for finished images according to the embodiment of the present invention, as shown in FIG. 4, the layout for finished images is arranged rapidly according to the diagonal layout format, and the images are automatically classified according to the classification result.
After the typesetting is completed in the automatic typesetting mode, if the user feels that the typesetting is not satisfactory, the user can also perform sliding operation through the touch medium to adjust the position of the image. Therefore, the user can quickly and conveniently complete the typesetting of the images on the terminal, and if the typesetted images need to be stored and shared subsequently, the user can directly share the beautiful and exquisite typesetting images, so that the checked user can see better images.
And secondly, after picture arrangement, typesetting is carried out by combining the classification results.
Optionally, the step of completing the layout operation of the at least one image according to the classification result and the total number of the images includes: when the total number of the images does not meet the preset number of the images, determining a blank area and a rendering area on a typesetting interface of the target terminal, wherein the typesetting interface is used for typesetting at least one image; filling a preset color block and/or a preset image in a blank area on the typesetting interface, and filling at least one image in a rendering area respectively; after the filling is completed, it is determined that the layout operation for the at least one image is completed.
Namely, when the total number of the images selected by the user is determined not to meet the preset number of the images, color blocks or other images can be automatically filled in the corresponding areas, so that the typesetted images are attractive. Filling a preset color block and/or a preset image in a blank area on a typesetting interface, wherein if the preset color block is filled, a color block similar to the color of the current image can be selected according to the image recognition result obtained by recognizing the image, for example, when surrounding images are used for shooting green lawns or green big trees, the green color block can be selected to fill the blank sub-area; if the preset image is filled, the preset image which is similar to the current image is selected according to the image recognition result, and the preset image can be selected from a downloaded desktop image library or can be directly selected from images stored in a terminal gallery application. Of course, in the embodiment of the present invention, a white or black color block may also be directly filled in the blank self-region, that is, the filling is simply completed, and then the filled content is automatically adjusted according to the selection of the user.
Fig. 5 is a schematic diagram of another alternative filled image layout according to the embodiment of the invention, as shown in fig. 5, after the user selects 5 images, the images are respectively arranged in the four corners and the middle area of the squared figure, and the other four sub-areas can be respectively filled with blank color blocks, i.e. the image layout is completed.
In another alternative embodiment, the step of determining a blank area and a rendering area on the composition interface of the target terminal includes: dividing the typesetting interface according to the number of preset images to obtain a plurality of image subregions; dividing the plurality of image subregions into a plurality of rendering subregions and a plurality of blank subregions according to the total number of the images, wherein each rendering subregion is filled with one image, and the blank subregions are filled with preset color blocks and/or preset images; and determining a blank area and a rendering area on the typesetting interface according to the division result.
The number of the image sub-regions may be set according to the number of the preset images to be laid out, for example, in fig. 4 or 5, if the number of the preset images is 9, the layout region is divided into 9 image sub-regions, and each image sub-region is filled with the selected image or filled with the preset patches/preset images.
After the image fill is completed, if the user feels dissatisfied, the adjustment can be made by touching the medium. Optionally, after filling a preset color block and/or a preset image in a blank area on the composition interface and filling at least one image in the rendering area, the method further includes: sensing a third operation, wherein the third operation is used for adjusting a second target image in the at least one image; if a third operation is induced, determining a target blank subregion to which the second target image is adjusted according to the third operation; and displaying a second target image in the target blank subarea, and adjusting the initial rendering subarea in which the second target image is positioned into a blank subarea.
The third operation may include: sliding operation, dragging operation. Namely, the user can adjust the position of the image by touching the medium so as to achieve the typesetting which is most needed by the user. Fig. 6 is a schematic diagram of an alternative adjustment image according to an embodiment of the present invention, in fig. 6, the user can slide the image in the middle of the first row to the middle area of the squared figure to complete the layout by a sliding operation.
When the adjustment of the image is completed, the color of the preset color block can be automatically edited, or the preset image can be adjusted.
Optionally, after filling a preset color block and/or a preset image in a blank area on the composition interface and filling at least one image in the rendering area, the method further includes: sensing a fourth operation, wherein the fourth operation is used for adjusting the preset color blocks and/or the preset images; if the fourth operation is sensed, determining the adjusted preset color block and/or the target blank sub-area where the preset image is located according to the fourth operation; and displaying a color block of the target color in the target blank sub-area, and/or displaying a third target image, wherein the third target image is an image obtained by adjusting the preset image.
The fourth operation may be a long-press operation or a double-click operation, for example, after a blank sub-area/a blank color block/a preset color block is pressed for a long time, various colors of the color block to be adjusted may be displayed on a screen interface, and a user may directly select a target color by clicking or sliding, so that the color block of the target color may be displayed in the blank sub-area. Of course, the third target image may also be selected from a preset desktop image library by pressing a preset image, so as to display the third target image in a blank sub-area.
In an embodiment of the present invention, after completing the layout operation on the at least one image, the method further includes: saving at least one image which is typeset; and/or sharing the at least one image after the typesetting is finished.
The sharing of the at least one laid-out image may refer to analyzing the at least one laid-out image at a location of the social platform, the gallery application, or the like. ,
through the embodiment, the images selected by the user can be automatically typeset, and the typeset images are more in line with the actual situation, for example, the images are typeset in a Sudoku mode, so that more and more people like to make up 9 palaces with color blocks, and the complete, regular and artistic visual effect is achieved. Through the embodiment, the user can complete the image typesetting more quickly, the phenomena of repeated clicking/sliding operation and poor previewing effect during the sharing operation are reduced, certain convenience is provided for the user to share the image, and the user experience is optimized.
Fig. 7 is a flowchart of another image layout method according to an embodiment of the present invention, applied to a target terminal capable of rendering an image on a screen interface, as shown in fig. 7, the image layout method includes:
step S701, after the gallery application of the target terminal is entered, receiving a first operation, wherein the first operation acts on a screen interface of the target terminal;
step S703, determining a first target image selected from the gallery application according to the first operation;
step S705, if the first target image is selected, whether an image multi-selection mode is entered is judged;
step S707, receiving a second operation under the condition that the image multi-selection mode is determined to be entered;
step S709, acquiring at least one image to be processed according to the second operation;
step S711, classifying the at least one image according to the element type of the at least one image;
and step S713, finishing typesetting operation of at least one image according to the classification result and the total number of the images.
In the embodiment, after entering the gallery application of the target terminal, a first operation may be received, where the first operation acts on a screen interface of the target terminal, a first target image selected from the gallery application is determined according to the first operation, and if the first target image is selected, whether to enter an image multi-selection mode is determined; and under the condition that the image multi-selection mode is determined to be entered, receiving a second operation, acquiring at least one image to be processed according to the second operation, classifying the at least one image according to the element category of the at least one image, and completing the typesetting operation of the at least one image according to the classification result and the total number of the images. In the embodiment, the terminal can automatically perform classification processing according to the selected image elements according to the operation of the user on the screen interface through the touch medium, so that more convenient and faster typesetting can be performed to obtain beautiful images, the phenomena of repeated clicking/sliding operation and poor previewing effect in the sharing operation are reduced, certain convenience is provided for the user to share the images, the user experience is optimized, and the terminal is simpler and more convenient to operate, thereby solving the technical problem that the image typesetting operation is complicated because the image is often far away from the finger when the image typesetting is performed in the related technology.
According to another aspect of the embodiments of the present invention, there is also provided an electronic terminal, fig. 8 is a schematic diagram of an alternative electronic terminal according to the embodiments of the present invention, and as shown in fig. 8, the electronic terminal 810 includes: a memory 812, a processor 814 coupled to the memory, the memory and processor communicating via a bus system; the memory is used for storing a program, wherein the program is used for controlling the equipment where the memory is arranged to execute the image typesetting method of any item when being executed by the processor, and the processor is used for running the program, wherein the program is used for executing the image typesetting method of any item when being run.
FIG. 9 is a schematic diagram of an image layout apparatus according to an embodiment of the present invention, as shown in FIG. 9, the image layout apparatus may include: a first acquiring unit 91, a first sorting unit 93, a first imposition unit 95, wherein,
a first acquiring unit 91 configured to acquire at least one image to be processed;
a first classification unit 93, configured to classify the at least one image according to an element class of the at least one image;
and a first typesetting unit 95, configured to complete typesetting operation on at least one image according to the classification result and the total number of images.
The image typesetting device can acquire at least one image to be processed through the first acquisition unit 91, classify the at least one image according to the element category of the at least one image through the first classification unit 93, and complete the typesetting operation of the at least one image according to the classification result and the total number of the images through the first typesetting unit 95. In the embodiment, the terminal can automatically classify according to the element categories of the selected images, so that beautiful images can be obtained through more convenient and rapid typesetting, the images are finely typeset, the operation is simple, only the user needs to select the image to be typeset, the terminal automatically completes the typesetting operation, and the operation is simpler and more convenient, thereby solving the technical problem that the image typesetting operation is complicated because the image is far away from the finger when the image is typesetting in the related technology.
Optionally, the first obtaining unit includes: the system comprises a first sensing module, a second sensing module and a display module, wherein the first sensing module is used for entering a gallery application of a target terminal and sensing a first operation, and the first operation acts on a screen interface of the target terminal; the first determining module is used for determining a first target image selected from at least one image when a first operation is sensed; the first display module is used for displaying a selection control whether to enter an image multi-selection mode when the first target image is selected; judging whether an image multi-selection mode is entered; the first acquisition module is used for acquiring at least one image to be processed under the condition that the image multi-selection mode is determined to be entered.
Optionally, the first operation includes one of: long press operation, double click operation, and slide operation.
In an embodiment of the present invention, the first classification unit includes: a first identification module for identifying image elements in each image; the first classification module is used for classifying at least one image according to the element category to which the image element belongs.
Alternatively, the image elements include at least one of: image tone, image composition, image content.
In an embodiment of the present invention, the first imposition unit includes: the first typesetting module is used for typesetting at least one image according to a preset typesetting format according to the classification result when the total number of the images meets the preset number of the images; a second sensing module, configured to sense a second operation for adjusting a display position of at least one image, where the second operation at least includes: sliding operation and dragging operation; and the second typesetting module is used for finishing typesetting of the at least one image according to the second operation when the second operation is sensed.
In the embodiment of the present invention, the preset typesetting format includes one of the following: parallel line typesetting format, diagonal line typesetting format and intersecting line typesetting format.
In an embodiment of the present invention, the first imposition unit further includes: the second determining module is used for determining a blank area and a rendering area on a typesetting interface of the target terminal when the total number of the images does not meet the preset number of the images, wherein the typesetting interface is used for typesetting at least one image; the first filling module is used for filling a preset color block and/or a preset image in a blank area on the typesetting interface and filling at least one image in a rendering area respectively; and the third determining module is used for determining that the typesetting operation of the at least one image is finished after the filling is finished.
In an embodiment of the present invention, the second determining module includes: the first dividing module is used for dividing the typesetting interface according to the number of preset images to obtain a plurality of image subregions; the second division submodule is used for dividing the plurality of image subregions into a plurality of rendering subregions and a plurality of blank subregions according to the total number of the images, wherein each rendering subregion is filled with one image, and the blank subregions are filled with preset color blocks and/or preset images; and the first determining submodule is used for determining a blank area and a rendering area on the typesetting interface according to the division result.
In an embodiment of the present invention, the image layout apparatus further includes: the third sensing module is used for filling a preset color block and/or a preset image in a blank area on the typesetting interface, and sensing a third operation after filling at least one image in the rendering area, wherein the third operation is used for adjusting a second target image in the at least one image; the fourth determining module is used for determining a target blank subarea to which the second target image is adjusted according to the third operation when the third operation is induced; and the second display module is used for displaying a second target image in the target blank sub-area and adjusting the initial rendering sub-area where the second target image is located into a blank sub-area.
Optionally, the image layout apparatus further includes: the fourth sensing module is used for filling a preset color block and/or a preset image in a blank area on the typesetting interface, and sensing a fourth operation after filling at least one image in a rendering area, wherein the fourth operation is used for adjusting the preset color block and/or the preset image; a fifth determining module, configured to determine, when a fourth operation is sensed, a target blank sub-region where the adjusted preset color block and/or the preset image is located according to the fourth operation; and the third display module is used for displaying the color blocks of the target colors in the target blank sub-area and/or displaying a third target image, wherein the third target image is an image obtained by adjusting the preset image.
Alternatively, the image layout apparatus further includes: a saving unit configured to save the at least one image of which the layout is completed after the layout operation for the at least one image is completed; and the sharing unit is used for sharing the at least one image which is typeset.
FIG. 10 is a schematic diagram of another image layout apparatus according to an embodiment of the present invention, which is applied to a target terminal capable of rendering an image on a screen interface, as shown in FIG. 10, and which may include: a first receiving unit 101, a first determining unit 102, a first judging unit 103, a second receiving unit 104, a second obtaining unit 105, a second classifying unit 106, a second composing unit 107, wherein,
the system comprises a first receiving unit 101, a second receiving unit, a processing unit and a display unit, wherein the first receiving unit is used for receiving a first operation after entering a gallery application of a target terminal, and the first operation acts on a screen interface of the target terminal;
a first determining unit 102, configured to determine, according to a first operation, a first target image selected from a gallery application;
a first judging unit 103, configured to judge whether to enter an image multi-selection mode when the first target image is selected;
a second receiving unit 104, configured to receive a second operation in a case where it is determined that the image multi-selection mode is entered;
a second obtaining unit 105, configured to obtain at least one image to be processed according to a second operation;
a second classification unit 106, configured to classify the at least one image according to an element class of the at least one image;
and a second layout unit 107, configured to complete a layout operation on at least one image according to the classification result and the total number of images.
The image composition apparatus may employ the first receiving unit 101 to receive the first operation after entering the gallery application of the target terminal, wherein the first operation acts on the screen interface of the target terminal, and the first determination unit 102 determines a first target image selected from the gallery application according to the first operation, when the first target image is selected, the first judgment unit 103 judges whether to enter the image multi-selection mode, in the case where it is determined that the image multi-selection mode is entered, the second operation is received by the second receiving unit 104, acquiring, by the second acquisition unit 105, at least one image to be processed according to the second operation, the at least one image is classified by the second classification unit 106 according to the element class of the at least one image, the layout operation of at least one image is completed by the second layout unit 107 according to the classification result and the total number of images. In the embodiment, the terminal can automatically perform classification processing according to the selected image elements according to the operation of the user on the screen interface through the touch medium, so that more convenient and faster typesetting can be performed to obtain beautiful images, the phenomena of repeated clicking/sliding operation and poor previewing effect in the sharing operation are reduced, certain convenience is provided for the user to share the images, the user experience is optimized, and the terminal is simpler and more convenient to operate, thereby solving the technical problem that the image typesetting operation is complicated because the image is often far away from the finger when the image typesetting is performed in the related technology.
The image layout apparatus may further include a processor and a memory, wherein the first obtaining unit 91, the first classifying unit 93, the first layout unit 95, the first receiving unit 101, the first determining unit 102, the first judging unit 103, the second receiving unit 104, the second obtaining unit 105, the second classifying unit 106, the second layout unit 107, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more, and the typesetting operation of the at least one image is completed by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium storing a program, wherein the program, when executed by a processor, controls an apparatus in which the storage medium is located to perform the image layout method of any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a processor for executing a program, wherein the program executes to execute the image layout method according to any one of the above items.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: acquiring at least one image to be processed; classifying the at least one image according to the element category of the at least one image; and finishing the typesetting operation of at least one image according to the classification result and the total number of the images.
Optionally, when the processor executes the program, the following steps may be further implemented: entering a gallery application of the target terminal, and sensing a first operation, wherein the first operation acts on a screen interface of the target terminal; if the first operation is sensed, determining a first target image selected from the at least one image; if the first target image is selected, displaying a selection control whether to enter an image multi-selection mode; judging whether an image multi-selection mode is entered; and acquiring at least one image to be processed under the condition of determining to enter the image multi-selection mode.
Optionally, the first operation includes one of: long press operation, double click operation, and slide operation.
Optionally, when the processor executes the program, the following steps may be further implemented: identifying image elements in each image; the at least one image is classified according to the element class to which the image element belongs.
Optionally, the image element includes at least one of: image tone, image composition, image content.
Optionally, when the processor executes the program, the following steps may be further implemented: when the total number of the images meets the preset number of the images, typesetting at least one image according to a preset typesetting format according to a classification result; sensing a second operation for adjusting the display position of the at least one image, wherein the second operation at least comprises: sliding operation and dragging operation; and if the second operation is sensed, finishing the typesetting of the at least one image according to the second operation.
Optionally, the preset typesetting format includes one of the following: parallel line typesetting format, diagonal line typesetting format and intersecting line typesetting format.
Optionally, when the processor executes the program, the following steps may be further implemented: when the total number of the images does not meet the preset number of the images, determining a blank area and a rendering area on a typesetting interface of the target terminal, wherein the typesetting interface is used for typesetting at least one image; filling a preset color block and/or a preset image in a blank area on the typesetting interface, and filling at least one image in a rendering area respectively; after the filling is completed, it is determined that the layout operation for the at least one image is completed.
Optionally, when the processor executes the program, the following steps may be further implemented: dividing the typesetting interface according to the number of preset images to obtain a plurality of image subregions; dividing the plurality of image subregions into a plurality of rendering subregions and a plurality of blank subregions according to the total number of the images, wherein each rendering subregion is filled with one image, and the blank subregions are filled with preset color blocks and/or preset images; and determining a blank area and a rendering area on the typesetting interface according to the division result.
Optionally, when the processor executes the program, the following steps may be further implemented: filling a preset color block and/or a preset image in a blank area on a typesetting interface, and inducing a third operation after filling at least one image in a rendering area respectively, wherein the third operation is used for adjusting a second target image in the at least one image; if a third operation is induced, determining a target blank subregion to which the second target image is adjusted according to the third operation; and displaying a second target image in the target blank subarea, and adjusting the initial rendering subarea in which the second target image is positioned into a blank subarea.
Optionally, when the processor executes the program, the following steps may be further implemented: filling a preset color block and/or a preset image in a blank area on a typesetting interface, and inducing a fourth operation after filling at least one image in a rendering area respectively, wherein the fourth operation is used for adjusting the preset color block and/or the preset image; if the fourth operation is sensed, determining the adjusted preset color block and/or the target blank sub-area where the preset image is located according to the fourth operation; and displaying a color block of the target color in the target blank sub-area, and/or displaying a third target image, wherein the third target image is an image obtained by adjusting the preset image.
Optionally, when the processor executes the program, the following steps may be further implemented: after the typesetting operation of the at least one image is completed, saving the at least one image after the typesetting operation is completed; and/or sharing the at least one image after the typesetting is finished.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. An image layout method, comprising:
acquiring at least one image to be processed;
classifying the at least one image according to the element category of the at least one image;
completing the typesetting operation of the at least one image according to the classification result and the total number of the images,
a step of acquiring at least one image to be processed, comprising: entering a gallery application of a target terminal, and sensing a first operation, wherein the first operation acts on a screen interface of the target terminal; if the first operation is sensed, determining a first target image selected from at least one image; if the first target image is selected, displaying a selection control whether to enter an image multi-selection mode; judging whether to enter the image multi-selection mode; acquiring at least one image to be processed under the condition that the image multi-selection mode is determined to be entered,
and according to the classification result and the total number of the images, finishing the typesetting operation of the at least one image, wherein the step comprises the following steps of: when the total number of the images meets the preset number of the images, typesetting the at least one image according to a preset typesetting format according to the classification result; and sensing a second operation of adjusting the display position of the at least one image, wherein the second operation at least comprises: sliding operation and dragging operation; if the second operation is sensed, completing the typesetting of the at least one image according to the second operation,
and according to the classification result and the total number of the images, finishing the typesetting operation of the at least one image, wherein the step comprises the following steps of: when the total number of the images does not meet the preset number of the images, determining a blank area and a rendering area on a typesetting interface of a target terminal, wherein the typesetting interface is used for typesetting the at least one image; filling a preset color block and/or a preset image in a blank area on the typesetting interface, and filling at least one image in a rendering area respectively; and after the filling is finished, determining that the typesetting operation on the at least one image is finished.
2. The method of claim 1, wherein the first operation comprises one of: long press operation, double click operation, and slide operation.
3. The method of claim 1, wherein the step of classifying the at least one image according to element classes of the at least one image comprises:
identifying image elements in each image;
classifying the at least one image according to an element class to which the image element belongs.
4. A method according to any of claims 1 or 3, wherein the image elements comprise at least one of: image tone, image composition, image content.
5. The method of claim 1, wherein the preset composition format comprises one of: parallel line typesetting format, diagonal line typesetting format and intersecting line typesetting format.
6. The method of claim 1, wherein the step of determining the blank area and the rendering area on the composition interface of the target terminal comprises:
dividing the typesetting interface according to the number of the preset images to obtain a plurality of image subregions;
dividing the image subregions into a plurality of rendering subregions and a plurality of blank subregions according to the total number of the images, wherein each rendering subregion is filled with one image, and the blank subregions are filled with preset color blocks and/or preset images;
and determining a blank area and a rendering area on the typesetting interface according to the division result.
7. The method according to claim 6, wherein the blank area is filled with a preset color block and/or a preset image on the composition interface, and after the rendering area is filled with the at least one image respectively, the method further comprises:
sensing a third operation, wherein the third operation is used for adjusting a second target image in the at least one image;
if the third operation is sensed, determining a target blank subregion to which the second target image is adjusted according to the third operation;
and displaying the second target image in the target blank subarea, and adjusting the initial rendering subarea in which the second target image is positioned into a blank subarea.
8. The method according to claim 6, wherein the blank area is filled with a preset color block and/or a preset image on the composition interface, and after the rendering area is filled with the at least one image respectively, the method further comprises:
sensing a fourth operation, wherein the fourth operation is used for adjusting the preset color blocks and/or the preset image;
if the fourth operation is sensed, determining the adjusted preset color block and/or the target blank sub-area where the preset image is located according to the fourth operation;
and displaying a color block of a target color in the target blank sub-area, and/or displaying a third target image, wherein the third target image is an image obtained by adjusting the preset image.
9. The method of claim 1, wherein after completing the layout operation for the at least one image, the method further comprises:
saving the at least one image which is typeset completely; and/or the presence of a gas in the gas,
and sharing the at least one image after typesetting.
10. An image typesetting method is applied to a target terminal capable of rendering images on a screen interface, and comprises the following steps:
after entering a gallery application of the target terminal, receiving a first operation, wherein the first operation acts on a screen interface of the target terminal;
determining a first target image selected from the gallery application according to the first operation;
if the first target image is selected, judging whether to enter an image multi-selection mode;
receiving a second operation in the case of determining to enter the image multi-selection mode;
acquiring at least one image to be processed according to the second operation;
classifying the at least one image according to the element category of the at least one image;
completing the typesetting operation of the at least one image according to the classification result and the total number of the images,
and according to the classification result and the total number of the images, finishing the typesetting operation of the at least one image, wherein the step comprises the following steps of: when the total number of the images meets the preset number of the images, typesetting the at least one image according to a preset typesetting format according to the classification result; and sensing a second operation of adjusting the display position of the at least one image, wherein the second operation at least comprises: sliding operation and dragging operation; if the second operation is sensed, completing the typesetting of the at least one image according to the second operation,
and according to the classification result and the total number of the images, finishing the typesetting operation of the at least one image, wherein the step comprises the following steps of: when the total number of the images does not meet the preset number of the images, determining a blank area and a rendering area on a typesetting interface of a target terminal, wherein the typesetting interface is used for typesetting the at least one image; filling a preset color block and/or a preset image in a blank area on the typesetting interface, and filling at least one image in a rendering area respectively; and after the filling is finished, determining that the typesetting operation on the at least one image is finished.
11. An electronic terminal, comprising:
a memory, a processor coupled with the memory, the memory and the processor communicating over a bus system;
the memory is used for storing a program, wherein the program when executed by the processor controls the device in which the memory is located to execute the image layout method according to any one of claims 1 to 9,
the processor is configured to execute a program, wherein the program executes the image layout method according to any one of claims 1 to 9.
12. An image layout apparatus comprising:
the device comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring at least one image to be processed;
the first classification unit is used for classifying the at least one image according to the element category of the at least one image;
a first typesetting unit for completing the typesetting operation of the at least one image according to the classification result and the total number of the images,
the first acquisition unit includes: the system comprises a first sensing module, a second sensing module and a display module, wherein the first sensing module is used for entering a gallery application of a target terminal and sensing a first operation, and the first operation acts on a screen interface of the target terminal; the first determining module is used for determining a first target image selected from at least one image when the first operation is sensed; the first display module is used for displaying a selection control whether to enter an image multi-selection mode when the first target image is selected; judging whether to enter the image multi-selection mode; a first obtaining module, configured to obtain at least one image to be processed when it is determined that the image multi-selection mode is entered,
the first plate-arranging unit includes: the first typesetting module is used for typesetting the at least one image according to a preset typesetting format according to the classification result when the total number of the images meets the preset number of the images; a second sensing module, configured to sense a second operation of adjusting a display position of the at least one image, where the second operation at least includes: sliding operation and dragging operation; a second typesetting module for completing typesetting of the at least one image according to the second operation when the second operation is sensed,
the first plate-arranging unit further includes: the second determining module is used for determining a blank area and a rendering area on a typesetting interface of the target terminal when the total number of the images does not meet the preset number of the images, wherein the typesetting interface is used for typesetting the at least one image; the first filling module is used for filling a preset color block and/or a preset image in a blank area on the typesetting interface and filling at least one image in a rendering area respectively; and the third determining module is used for determining that the typesetting operation of the at least one image is finished after the filling is finished.
13. An image composition apparatus applied to a target terminal capable of rendering an image on a screen interface, comprising:
the first receiving unit is used for receiving a first operation after the gallery application of the target terminal is entered, wherein the first operation acts on a screen interface of the target terminal;
the first determining unit is used for determining a first target image selected from the gallery application according to the first operation;
the first judgment unit is used for judging whether to enter an image multi-selection mode when the first target image is selected;
a second receiving unit configured to receive a second operation in a case where it is determined that the image multi-selection mode is entered;
the second acquisition unit is used for acquiring at least one image to be processed according to the second operation;
the second classification unit is used for classifying the at least one image according to the element category of the at least one image;
a second typesetting unit for completing the typesetting operation of the at least one image according to the classification result and the total number of the images,
the image layout apparatus is further configured to: when the total number of the images meets the preset number of the images, typesetting the at least one image according to a preset typesetting format according to the classification result; and sensing a second operation of adjusting the display position of the at least one image, wherein the second operation at least comprises: sliding operation and dragging operation; if the second operation is sensed, completing the typesetting of the at least one image according to the second operation,
the image layout apparatus is further configured to: when the total number of the images does not meet the preset number of the images, determining a blank area and a rendering area on a typesetting interface of a target terminal, wherein the typesetting interface is used for typesetting the at least one image; filling a preset color block and/or a preset image in a blank area on the typesetting interface, and filling at least one image in a rendering area respectively; and after the filling is finished, determining that the typesetting operation on the at least one image is finished.
14. A storage medium storing a program, wherein the program when executed by a processor controls an apparatus in which the storage medium is located to execute the image layout method according to any one of claims 1 to 9.
15. A processor for executing a program, wherein the program is executed to execute the image layout method according to any one of claims 1 to 9.
CN201910371350.1A 2019-05-06 2019-05-06 Image typesetting method and device and electronic terminal Active CN110084871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910371350.1A CN110084871B (en) 2019-05-06 2019-05-06 Image typesetting method and device and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910371350.1A CN110084871B (en) 2019-05-06 2019-05-06 Image typesetting method and device and electronic terminal

Publications (2)

Publication Number Publication Date
CN110084871A CN110084871A (en) 2019-08-02
CN110084871B true CN110084871B (en) 2020-11-27

Family

ID=67418775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910371350.1A Active CN110084871B (en) 2019-05-06 2019-05-06 Image typesetting method and device and electronic terminal

Country Status (1)

Country Link
CN (1) CN110084871B (en)

Families Citing this family (4)

* 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
CN111179381A (en) * 2019-12-29 2020-05-19 方正株式(武汉)科技开发有限公司 Automatic typesetting method for image and text
CN117113962A (en) * 2020-04-01 2023-11-24 支付宝(杭州)信息技术有限公司 Information processing method, device and equipment
CN111833247B (en) * 2020-06-11 2024-06-14 维沃移动通信有限公司 Picture processing method and device and electronic equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8515972B1 (en) * 2010-02-10 2013-08-20 Python 4 Fun, Inc. Finding relevant documents
CN104615587B (en) * 2012-06-21 2018-09-04 北京奇虎科技有限公司 A kind of electronic data composition method and device
CN103761303B (en) * 2014-01-22 2017-09-15 广东欧珀移动通信有限公司 The arrangement display methods and device of a kind of picture
CN103902162B (en) * 2014-04-09 2018-03-23 广东欧珀移动通信有限公司 A kind of mobile terminal picture inspection method and system
CN104731855A (en) * 2014-12-24 2015-06-24 天脉聚源(北京)科技有限公司 Method and device for displaying image resources of WeChat friend circle
TWI583174B (en) * 2016-07-06 2017-05-11 虹光精密工業股份有限公司 Image processing device, copy apparatus and copy method with image shifting and filling functions
CN107688557A (en) * 2016-08-03 2018-02-13 北大方正集团有限公司 Composition method, composing system and terminal
CN106407365A (en) * 2016-09-08 2017-02-15 北京小米移动软件有限公司 Picture sharing method and apparatus
CN106657579B (en) * 2016-09-29 2020-12-11 泾县谷声信息科技有限公司 Content sharing method and device and terminal
CN107861788A (en) * 2017-11-23 2018-03-30 深圳市雷鸟信息科技有限公司 Picture layout method, terminal and computer-readable recording medium
CN108174099A (en) * 2017-12-29 2018-06-15 光锐恒宇(北京)科技有限公司 Method for displaying image, device and computer readable storage medium
CN109145710A (en) * 2018-06-25 2019-01-04 福来宝电子(深圳)有限公司 Intelligent sound box and its social sharing method, computer readable storage medium

Also Published As

Publication number Publication date
CN110084871A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN110084871B (en) Image typesetting method and device and electronic terminal
US10922449B2 (en) Computer aided systems and methods for creating custom products
US11030825B2 (en) Computer aided systems and methods for creating custom products
US10157332B1 (en) Neural network-based image manipulation
CN105989622B (en) Automated method and apparatus and computer readable medium
US8990672B1 (en) Flexible design architecture for designing media-based projects in a network-based platform
US9607010B1 (en) Techniques for shape-based search of content
CN107621966B (en) Graphical user interface display method and device and terminal equipment
CN107181976A (en) A kind of barrage display methods and electronic equipment
US9251169B2 (en) Systems and methods for creating photo collages
CN104281864B (en) A kind of method and apparatus for generating Quick Response Code
CN109086297B (en) System and method for color selection and computer readable medium
CN111282277B (en) Special effect processing method, device and equipment and storage medium
JP2004537901A (en) Automatic frame selection and layout of one or more images and generation of images bounded by frames
CN103092597A (en) Method for displaying background wallpaper and one or more user interface elements on display unit of electrical apparatus at the same time, and the electrical apparatus thereof
CN111957040A (en) Method and device for detecting shielding position, processor and electronic device
CN106296622B (en) Automatic layout jigsaw method and device
CN109542376B (en) Screen display adjustment method, device and medium
JP2005151282A (en) Apparatus and method of image processing, and program
WO2018189802A1 (en) Image processing device, image processing method, and program
CN112988557B (en) Search box positioning method, data acquisition method, device and medium
CN112257406A (en) Content cover generator and method based on web front end
CN107943924A (en) Method for automatically generating webpage theme, storage medium and electronic equipment
US9280847B2 (en) Image composition apparatus, image retrieval method, and storage medium storing program
JP5042346B2 (en) Information display apparatus, method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant