CN106997264B - Method and device for changing picture typesetting - Google Patents

Method and device for changing picture typesetting Download PDF

Info

Publication number
CN106997264B
CN106997264B CN201610051760.4A CN201610051760A CN106997264B CN 106997264 B CN106997264 B CN 106997264B CN 201610051760 A CN201610051760 A CN 201610051760A CN 106997264 B CN106997264 B CN 106997264B
Authority
CN
China
Prior art keywords
typesetting
picture
user
style
pictures
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
CN201610051760.4A
Other languages
Chinese (zh)
Other versions
CN106997264A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610051760.4A priority Critical patent/CN106997264B/en
Publication of CN106997264A publication Critical patent/CN106997264A/en
Application granted granted Critical
Publication of CN106997264B publication Critical patent/CN106997264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The embodiment of the invention discloses a method and a device for changing picture typesetting. The method comprises the following steps: detecting the shaking state of the mobile terminal based on a gravity sensing technology; if the shaking state of the mobile terminal meets the set shaking condition, determining a new typesetting style of the picture; and typesetting the pictures selected by the user according to the new typesetting style. By adopting the technical scheme, the operation of changing the typesetting style of the mobile terminal is triggered based on the shaking state of the mobile terminal, compared with the operation mode of typesetting pictures by clicking or sliding in the prior art, the method and the device for typesetting pictures can effectively shorten the operation path and the input cost required by the user when the user typesets the pictures, improve the typesetting efficiency and interest of the user when the user typesets the pictures, and improve the use experience of the user on photo album products, picture products, editing products and/or camera products.

Description

Method and device for changing picture typesetting
Technical Field
The present invention relates to the field of picture processing, and in particular, to a method and an apparatus for changing picture composition.
Background
The mobile terminal generally has a photographing function, and photographing of a photo by using the mobile terminal such as a mobile phone has the characteristics of convenience and simplicity. In recent years, mobile terminals such as mobile phones are increasingly popularized in daily life, and people start to use cameras of the mobile terminals to take photos more and more, and after the photos are taken, people often perform treatments such as beautifying and typesetting on the photos according to the needs of people.
In the prior art, when a user typesets photos, the user usually selects several photos, and then selects different typesetting effects by sliding laterally or selects different jigsaw templates by clicking, and finally confirms the typesetting style. According to the technical scheme, when the user performs the photo typesetting, the user not only needs a longer operation path and higher input operation cost, but also lacks interest in operation, so that the product use efficiency is low, and the user experience is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for changing a picture composition, so as to solve the technical problems in the prior art that a user needs a longer operation path and a higher input operation cost when performing a picture composition.
In a first aspect, an embodiment of the present invention provides a method for changing picture layouts, including:
detecting the shaking state of the mobile terminal based on a gravity sensing technology;
if the shaking state of the mobile terminal meets the set shaking condition, determining a new typesetting style of the picture;
and typesetting the pictures selected by the user according to the new typesetting style.
In a second aspect, an embodiment of the present invention further provides a device for changing picture layout, including:
the shaking state monitoring module is used for detecting the shaking state of the mobile terminal based on the gravity sensing technology;
the typesetting style determining module is used for determining a new typesetting style of the picture if the shaking state of the mobile terminal meets the set shaking condition;
and the picture typesetting module is used for typesetting the pictures selected by the user according to the new typesetting style.
According to the technical scheme for changing the picture typesetting, the shaking state of the mobile terminal is detected based on the gravity sensing technology, whether the shaking state of the mobile terminal meets the set shaking condition or not is judged, if the shaking state of the mobile terminal meets the set shaking condition, a new typesetting style of the picture is determined, and the picture selected by a user is typeset according to the new typesetting style; otherwise, the operation of changing the mobile terminal typesetting style is not triggered. By adopting the technical scheme, the operation of changing the typesetting style of the mobile terminal is triggered based on the shaking of the mobile terminal, compared with the operation mode of typesetting the picture by clicking or sliding in the prior art, the method and the device for typesetting the picture can effectively shorten the operation path and the input cost required by the user when the user typesets the picture, improve the typesetting efficiency and interest of the user when the user typesets the picture, and improve the use experience of the user on photo album products, picture products, editing products and/or camera products.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a schematic flowchart of a method for changing a picture layout according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for changing a picture layout according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for changing a picture layout according to a third embodiment of the present invention;
fig. 4 is a block diagram of a device for changing a picture layout according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Example one
The embodiment of the invention provides a method for converting picture typesetting, which can be executed by a device for converting picture typesetting, wherein the device can be realized by software and/or hardware and can be generally integrated in a mobile terminal. Fig. 1 is a flowchart illustrating a method for changing a picture layout according to a first embodiment of the present invention. As shown in fig. 1, the method includes:
s101, detecting the shaking state of the mobile terminal based on the gravity sensing technology.
Gravity sensing refers to sensing the direction of gravity of the earth. For example, the gravity sensing technology of the mobile terminal may be implemented by an acceleration sensor disposed inside the mobile terminal. The acceleration sensor is an electronic device capable of measuring an acceleration force (a force acting on an object during acceleration, which may be a constant, such as gravity/gravity g, or a variable), and common acceleration sensors include a piezoelectric acceleration sensor, a piezoresistive acceleration sensor, a capacitive acceleration sensor, a servo acceleration sensor, and the like. In consideration of the accuracy and convenience in measuring the acceleration of the mobile terminal, the embodiment of the invention can adopt the piezoelectric acceleration sensor to measure the acceleration of the mobile terminal.
Since the direction of the acceleration of the mobile terminal is uncertain, it is preferable that a three-axis piezoelectric acceleration sensor is used to detect the acceleration of the mobile terminal in the embodiment of the present invention. In the three-axis acceleration sensor, the three axes are divided into an X axis, a Y axis and a Z axis, the three axes form a three-dimensional space, and the inclination angle of the mobile terminal can be calculated through the three axes in practical application, so that the value of the gravity acceleration is calculated, and the acceleration of the mobile terminal is further determined.
As known from the related physics knowledge, the acceleration sensor can measure acceleration and gravity by sensing the total amount of inertia force in a specific direction, so that when the mobile terminal is in a non-acceleration state (stationary or uniform motion), the acceleration sensor inside the mobile terminal can only detect gravity g, and therefore, if a user holds the mobile terminal still without any motion, the force applied by the gravity to the internal acceleration sensor is about 1g, that is, if the user holds the mobile terminal still, the resultant force detected by the X-axis, the Y-axis and the Z-axis of the internal acceleration sensor is about 1 g; if the user shakes the mobile terminal, the internal acceleration sensor thereof detects a force other than 1 g. Therefore, the magnitude and the direction of the acceleration force borne by the mobile terminal can be determined through the magnitude and the direction of the force detected by the acceleration sensor, so that the magnitude and the direction of the acceleration of the mobile terminal are further determined, and the specific state of the mobile terminal is further determined.
In order to reduce the false triggering of the picture composition operation, the shaking state of the mobile terminal may include a shaking speed and a shaking number of times of the mobile terminal. At this time, in detecting the shake state of the mobile terminal, the shake velocity and the shake number of the mobile terminal may be determined by detecting the change time of the acceleration of the mobile terminal, the number of changes of the acceleration, and the magnitude of the acceleration change value.
And S102, if the shaking state of the mobile terminal meets the set shaking condition, determining a new typesetting style of the picture.
Preferably, the set shaking condition is that the change number of the acceleration of the mobile terminal in a preset time is greater than or equal to a set change number, and the change value of the acceleration is greater than or equal to a set acceleration threshold value.
Here, the number of changes in the acceleration may be the number of changes in the acceleration direction, or the number of changes in the acceleration magnitude. In view of the accuracy of detection, it is preferable that the change frequency of the acceleration is the change frequency in the acceleration direction, and the change value of the acceleration is a vector value of the acceleration change, that is, if the acceleration direction is not changed before and after the change, the change value of the acceleration is an absolute value obtained by subtracting the two accelerations before and after the change; if the acceleration direction changes before and after the change, the change value of the acceleration is the sum of the absolute values of the acceleration before and after the change. For example, when the user is stationary, the acceleration is 1m/s before the change2The direction is towards the left, and the acceleration is 13m/s after the change2And the direction is leftward, the variation value of the acceleration is |1-13| ═ 12m/s2(ii) a If the acceleration before change is 1m/s2The direction is leftward, and the acceleration is 7m/s after the change2The direction is right, the variation value of the acceleration is |1| + |7| -8 m/s2
When judging whether the shaking state of the mobile terminal meets the set shaking condition, the shaking time, the acceleration change times and the acceleration change value of the mobile terminal can be detected and judged at the same time; the shake time, the number of times of change in acceleration, and the value of change in acceleration may be detected first, and then it may be determined whether one or two of the change conditions satisfy the set shake condition, and if so, the remaining change conditions may be determined. Accordingly, when determining the three change conditions of the mobile terminal in a sequential order (i.e., not detecting and determining the three change conditions of the mobile terminal at the same time), the determination process of the shake state of the mobile terminal may be: detecting whether the mobile terminal is shaken or not, and if the mobile terminal is not shaken, then no subsequent judgment is carried out; if the mobile terminal shakes, judging whether the change times of the acceleration of the mobile terminal in the preset time are larger than or equal to the set change times, and if the change times of the acceleration of the mobile terminal in the preset time are smaller than the set change times, not performing subsequent judgment; if the change times of the acceleration of the mobile terminal in the preset time is larger than or equal to the set change times, judging whether the change value of the acceleration of the mobile terminal is larger than or equal to the set acceleration threshold, if so, determining a new typesetting style for the mobile terminal, otherwise, not triggering the operation of replacing the typesetting style of the mobile terminal.
For example, in the set shaking condition, the preset time may be set to any real number within 1s-5s, the set number of changes may be set to an integer within 2-20, and the change value of the acceleration may be set to 5m/s2-20m/s2The numerical value of (a). For example, the preset time may be set to 1s, the set change number may be set to 4, and the acceleration change value may be set to 8m/s2At this time, if the detection finds that the change times of the acceleration of the mobile terminal in 1s is more than or equal to 4 times, and the change value of the acceleration in each change is more than or equal to 8m/s2Then, the shaking state of the mobile terminal can be judged to meet the set shaking condition, and the new typesetting style of the picture is determined.
Here, the set shaking condition may be set by a manufacturer by default when the mobile terminal is manufactured or the mobile terminal system is initially installed, or may be set by a user according to his own needs, which is not limited herein.
And S103, typesetting the pictures selected by the user according to the new typesetting style.
Here, the new layout style may be a brand-new layout style in which the size and position of the picture frame are not completely the same as those of the picture frame in the current layout style; or the size and position of the picture frame may be completely the same as those of the picture frame in the previous typesetting style, only the new typesetting style with the replaced picture placing position is adopted, and the method is not limited herein. Correspondingly, the picture selected by the user can be typeset according to the sequence of the picture selected by the user and the sequence of each picture frame in the new typesetting style, which is the same as or opposite to the sequence of the picture selected by the user, or the picture can be typeset according to the preset sequence set by the user or the system, or the picture can be typeset according to the combination of the selection sequence of the selected picture and the preset sequence set by the user or the system. In consideration of the diversity of the picture layout styles, preferably, the pictures selected by the user may be laid out in a manner that the order in which the user selects the pictures is combined with a preset order set by the user or a system.
By adopting the technical scheme, the state of the mobile terminal is detected based on the gravity sensing technology, whether the change frequency of the acceleration of the mobile terminal in the preset time is greater than or equal to the set change frequency or not and whether the change value of the acceleration of the mobile terminal is greater than or equal to the set acceleration threshold or not are judged, if the change frequency of the acceleration of the mobile terminal in the preset time is greater than or equal to the set change frequency and the change value of the acceleration is greater than or equal to the set acceleration threshold, a new typesetting style of the picture is determined, and the picture selected by the user is typesetted according to the new typesetting style; and if the change times of the acceleration of the mobile terminal in the preset time are less than the set acceleration change times and/or the change value of the acceleration of the mobile terminal is less than the set acceleration threshold, not triggering the operation of determining the new typesetting style of the picture for the mobile terminal. By adopting the technical scheme, the operation of changing the typesetting style of the mobile terminal is triggered based on the shaking of the mobile terminal, compared with the operation mode of performing picture typesetting by clicking or sliding in the prior art, the method and the device can effectively shorten the operation path and the input cost required by a user when performing the picture typesetting, and improve the typesetting efficiency and the interestingness of the user when performing the picture typesetting; meanwhile, the operation of changing the mobile terminal typesetting style is triggered only when the change times and the change values of the mobile terminal acceleration meet the set shaking conditions within the preset time, the misoperation of changing the picture typesetting style can be effectively reduced, and the use experience of users on photo album type, picture type, editing type and/or camera type products is improved.
Example two
Fig. 2 is a schematic flow chart of a method for changing a picture layout according to a second embodiment of the present invention, which is optimized based on the first embodiment:
further, the typesetting the picture selected by the user according to the new typesetting style includes: determining the position of the picture in the new typesetting style based on the sequence selected by the user for the picture; and typesetting the pictures selected by the user according to the positions of the pictures in the new typesetting style.
Further, the determining a new layout style of the picture includes: screening candidate typesetting patterns from a preset typesetting pattern library according to the number of the pictures selected by the user; and randomly determining a new typesetting style from the candidate typesetting styles, or determining the new typesetting style according to the priority of the candidate typesetting styles.
Accordingly, as shown in fig. 2, the method of the present embodiment includes the following operations:
s201, detecting the shaking state of the mobile terminal based on the gravity sensing technology.
S202, if the shaking state of the mobile terminal meets the set shaking condition, screening candidate typesetting patterns from a preset typesetting pattern library according to the number of the pictures selected by the user.
Here, the preset layout style library may be disposed in the mobile terminal, or may be disposed in the server platform, and in consideration of storage and operation pressure of the mobile terminal, preferably, the preset layout style library may be disposed in the server platform corresponding to the mobile terminal. The typesetting style contained in the typesetting style library can be preset by a mobile terminal producer and stored in the mobile terminal or the server platform, or the typesetting style contained in the preset typesetting style library can be set by a user according to own habits and preferences and stored in the mobile terminal or the server platform before the user uses photo album, picture, editing or camera products of the mobile terminal. For example, the user may set the layout style included in the preset layout style library when the mobile terminal is used for the first time, or may set the layout style included in the preset layout style library when the mobile terminal is used for the first time.
Preferably, when the preset typesetting style library is set, the typesetting styles contained in the preset typesetting style library can be classified and stored according to different numbers of the pictures which can be typeset, so as to facilitate the subsequent screening and searching of the picture typesetting styles stored in the preset typesetting style library.
If the typesetting style library is arranged in the mobile terminal and meets the shaking condition, the mobile terminal directly screens the typesetting style library to obtain a candidate typesetting style; if the typesetting style library is in the server platform and meets the shaking condition, the mobile terminal sends a typesetting style transformation request to the server platform, instructs the server platform to screen candidate typesetting styles from the typesetting style library, returns the candidate typesetting styles to the mobile terminal, and determines a new typesetting style according to the candidate typesetting styles by the mobile terminal; in addition, after the server platform determines the candidate typesetting style, the server platform can also continue to determine the new typesetting style and return the new typesetting style to the mobile terminal.
Specifically, the screening of the candidate layout patterns from the preset layout pattern library according to the number of the pictures selected by the user may include: and screening the typesetting patterns with the picture frame number equal to the picture number selected by the user from a preset typesetting pattern library according to the picture number selected by the user to serve as candidate typesetting patterns. For example, if the number of the pictures selected by the user is 5, the layout style including 5 picture frames is screened from the preset layout style library as the candidate layout style.
S203, randomly determining a new typesetting style from the candidate typesetting styles, or determining the new typesetting style according to the priority of the candidate typesetting styles.
Preferably, before determining a new layout style according to the priority of the candidate layout style, the method further includes: adopting a face recognition technology to carry out face recognition on a picture selected by a user, and determining a figure picture in the picture; and determining the priority of the candidate typesetting style according to the sequence of the character pictures in the pictures selected by the user.
When a new typesetting style is determined according to the priority of the candidate typesetting style, for example, the result of face recognition on the picture selected by the user can be taken as a consideration factor for determining the priority of the candidate typesetting style, at this time, the face recognition can be firstly carried out on the picture selected by the user, the figure picture in the picture selected by the user is determined according to the face recognition result, then the position of the figure picture in the typesetting style is determined according to the sequence of the picture selected by the user, the priority of the candidate typesetting style of the figure picture in the main display area is improved, or the priority of the candidate typesetting style is determined according to the number of the figures in the picture, so that the user can preferentially receive the template of the figure picture in the main display area to meet the typesetting requirement of the picture when the user self-shoots. Illustratively, when the face recognition is performed on the picture selected by the user, the face detection can be performed on the picture selected by the user by using a skin color segmentation principle, then a binarization processing technology is used for removing a noise area and displaying a binarization processing result, and finally a face area is framed by a geometric figure, so that the purpose of face recognition is achieved.
S204, determining the position of the picture in the new typesetting style based on the sequence selected by the user for the picture.
Considering that the user usually selects the pictures according to their liking degree, that is, the user usually selects the most preferred picture first, then selects the preferred picture, and so on when selecting the pictures, therefore, the order in which the user selects the pictures can be used as a criterion for the picture typesetting position. For example, when the layout style is stored in the preset layout style library, a default layout order of each picture frame in the stored layout style may be preset and the layout order of each picture frame may be labeled so as to determine the position of the picture selected by the user in the new layout style according to the order in which the user selects the picture. The layout order of each picture frame in the layout style stored in the preset layout style library may be flexibly set according to the requirement, for example, the default layout order of each picture frame may be determined according to the position of the picture frame in the layout style, the default layout order of each picture frame may be determined according to the size of the picture frame, or the default layout order of each picture frame may be determined by using other rules, and the like, which is not limited herein.
S205, typesetting the picture selected by the user according to the position of the picture in the new typesetting style.
For example, when composing a picture selected by a user, the picture may be composed according to a default composition order of each picture frame in a composition style, or the user may set the default composition order of each picture frame in the composition style according to the user's own needs to perform composition on the picture selected by the user according to the order, or the picture selected by the user may be randomly composed into a new composition style, which is not limited herein.
By adopting the technical scheme, the embodiment of the invention triggers the operation of changing the typesetting style of the mobile terminal based on the shaking of the mobile terminal, can effectively shorten the operation path and the input cost required by a user when typesetting the pictures, and improves the typesetting efficiency and the interestingness of the user when typesetting the pictures. Moreover, the operation of changing the mobile terminal typesetting style is triggered only when the change times and the change values of the mobile terminal acceleration meet the set shaking conditions within the preset time, so that the misoperation of changing the picture typesetting style can be effectively reduced; the method and the device have the advantages that the picture selected by the user is typeset based on the sequence of the picture selected by the user, so that the typesetting style liked by the user appears earlier, the times of changing the picture typesetting style by the user and the time consumed by changing the picture typesetting style by the user are reduced, and the use experience of the user on photo album products, photo products, editing products and/or camera products is improved.
EXAMPLE III
Fig. 3 is a flowchart illustrating a preferred method for transforming a picture layout according to a third embodiment of the present invention, where the method may be executed by a device for transforming a picture layout, as shown in fig. 3, and the method specifically includes the following operations:
s301, storing the preset typesetting style in a server platform and classifying the preset typesetting style according to the number of picture frames.
S302, the mobile terminal detects whether the user selects the picture, if so, step S303 is executed, and if not, step S312 is executed.
And S303, the mobile terminal detects the shaking state of the mobile terminal based on the gravity sensing technology.
S304, the mobile terminal judges whether the shaking state meets the set shaking condition, if so, the step S305 is executed; if not, go to step 312.
Preferably, the set shaking condition is that the change number of the acceleration of the mobile terminal in a preset time is greater than or equal to a set change number, and the change value of the acceleration is greater than or equal to a set acceleration threshold value.
S305, the mobile terminal performs face recognition on the picture selected by the user by adopting a face recognition technology, and determines a figure picture in the picture to generate a face recognition result.
S306, the mobile terminal generates a typesetting style conversion request according to the face recognition result and the sequence and the number of the pictures selected by the user, and sends the typesetting style conversion request to the server platform.
S307, the server platform receives the typesetting style transformation request, and screens candidate typesetting styles from a preset typesetting style library according to the number of the pictures selected by the user and contained in the typesetting style request.
S308, the server platform determines the priority of the candidate typesetting style according to the ranking of the character pictures in the pictures selected by the user.
S309, the server platform determines a new typesetting style according to the priority of the candidate typesetting style, and sends the new typesetting style to the mobile terminal.
S310, the mobile terminal receives the new typesetting style, and determines the position of the picture in the new typesetting style based on the sequence selected by the user for the picture.
S311, the mobile terminal typesets the picture selected by the user according to the position of the picture in the new typesetting style, and the step S303 is returned.
And S312, ending the operation.
By adopting the technical scheme, the embodiment of the invention triggers the operation of changing the typesetting style of the mobile terminal based on the shaking of the mobile terminal, can effectively shorten the operation path and the input cost required by a user when typesetting the pictures, and improves the typesetting efficiency and the interestingness when the user typesets the pictures; in addition, the preset typesetting style is stored in the server platform, so that the storage pressure of the mobile terminal can be effectively reduced, and the running speed of the mobile terminal is improved.
Example four
Fig. 4 is a block diagram of a device for converting a typesetting picture according to a fourth embodiment of the present invention, where the device may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may implement the conversion of the typesetting picture by executing the method for converting a typesetting picture according to any embodiment of the present invention. As shown in fig. 4, the apparatus includes:
a shaking state monitoring module 410, configured to detect a shaking state of the mobile terminal based on a gravity sensing technology;
a typesetting style determination module 420, configured to determine a new typesetting style of the picture if the shake state of the mobile terminal meets a set shake condition;
and the picture typesetting module 430 is used for typesetting the pictures selected by the user according to the new typesetting style.
Further, the set shaking condition may be that the number of changes of the acceleration of the mobile terminal in a preset time is greater than or equal to a set number of changes, and the change value of the acceleration is greater than or equal to a set acceleration threshold.
Further, the picture composition module 430 may include: a picture position determining unit, configured to determine, based on an order in which the pictures are selected by a user, a position of the picture in the new layout style; and the picture typesetting unit is used for typesetting the pictures selected by the user according to the positions of the pictures in the new typesetting style.
Further, the layout style determination module 420 may include: the candidate style screening unit is used for screening candidate typesetting styles from a preset typesetting style library according to the number of the pictures selected by the user if the shaking state of the mobile terminal meets a preset shaking condition; and the typesetting style determining unit is used for randomly determining a new typesetting style from the candidate typesetting styles or determining the new typesetting style according to the priority of the candidate typesetting styles.
Further, the layout style determination module 420 may further include: a figure picture determining unit, configured to perform face recognition on a picture selected by a user by using a face recognition technology before determining a new layout style according to the priority of the candidate layout style, and determine a figure picture in the picture; and the priority determining unit is used for determining the priority of the candidate typesetting style according to the sequence of the character pictures in the pictures selected by the user.
The device for converting the picture typesetting provided by the embodiment of the invention can execute the method for converting the picture typesetting provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method for executing the picture typesetting. For details of the technique not described in detail in this embodiment, reference may be made to the method for converting a picture layout provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (6)

1. A method for changing picture typesetting is characterized by comprising the following steps:
when detecting that a user selects a picture, detecting the shaking state of the mobile terminal based on a gravity sensing technology;
if the shaking state of the mobile terminal meets the set shaking condition, determining a new typesetting style of the pictures, wherein the new typesetting style is a new typesetting style in which the number of picture frames in a preset typesetting style library is equal to the number of the pictures selected by the user and the character pictures are in a main display area, and the positions of the character pictures in the typesetting styles are determined based on the sequence of the pictures selected by the user;
typesetting the pictures selected by the user according to the new typesetting style;
wherein, the determining the new typesetting style of the picture comprises the following steps:
screening candidate typesetting patterns from a preset typesetting pattern library according to the number of the pictures selected by the user;
adopting a face recognition technology to carry out face recognition on a picture selected by a user, and determining a figure picture in the picture;
determining the priority of the candidate typesetting style according to the sequence of the figure pictures in the pictures selected by the user;
and determining a new typesetting style according to the priority of the candidate typesetting style.
2. The method according to claim 1, wherein the set shaking condition is that the number of changes of the acceleration of the mobile terminal in a preset time is greater than or equal to a set number of changes, and the change value of the acceleration is greater than or equal to a set acceleration threshold.
3. The method according to claim 1, wherein the typesetting the picture selected by the user according to the new typesetting style comprises:
determining the position of the picture in the new typesetting style based on the sequence selected by the user for the picture;
and typesetting the pictures selected by the user according to the positions of the pictures in the new typesetting style.
4. An apparatus for changing a picture composition, comprising:
the shaking state monitoring module is used for detecting the shaking state of the mobile terminal based on the gravity sensing technology when detecting that the user selects the picture;
the typesetting style determining module is used for determining a new typesetting style of the pictures if the shaking state of the mobile terminal meets the set shaking condition, wherein the new typesetting style is a new typesetting style in which the number of picture frames in a preset typesetting style library is equal to the number of the pictures selected by the user and the character pictures are in the main display area, and the positions of the character pictures in the typesetting styles are determined based on the sequence of the pictures selected by the user;
the picture typesetting module is used for typesetting the pictures selected by the user according to the new typesetting style;
wherein the layout style determination module comprises:
the candidate style screening unit is used for screening candidate typesetting styles from a preset typesetting style library according to the number of the pictures selected by the user if the shaking state of the mobile terminal meets a preset shaking condition;
the figure picture determining unit is used for carrying out face recognition on the picture selected by the user by adopting a face recognition technology and determining a figure picture in the picture;
the priority determining unit is used for determining the priority of the candidate typesetting style according to the sequence of the figure pictures in the pictures selected by the user;
and the typesetting style determining unit is used for determining a new typesetting style according to the priority of the candidate typesetting style.
5. The apparatus according to claim 4, wherein the set shaking condition is that the number of changes of the acceleration of the mobile terminal in a preset time is greater than or equal to a set number of changes, and the change value of the acceleration is greater than or equal to a set acceleration threshold.
6. The apparatus of claim 4, wherein the picture composition module comprises:
a picture position determining unit, configured to determine, based on an order in which the pictures are selected by a user, a position of the picture in the new layout style;
and the picture typesetting unit is used for typesetting the pictures selected by the user according to the positions of the pictures in the new typesetting style.
CN201610051760.4A 2016-01-26 2016-01-26 Method and device for changing picture typesetting Active CN106997264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610051760.4A CN106997264B (en) 2016-01-26 2016-01-26 Method and device for changing picture typesetting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610051760.4A CN106997264B (en) 2016-01-26 2016-01-26 Method and device for changing picture typesetting

Publications (2)

Publication Number Publication Date
CN106997264A CN106997264A (en) 2017-08-01
CN106997264B true CN106997264B (en) 2020-11-24

Family

ID=59428298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610051760.4A Active CN106997264B (en) 2016-01-26 2016-01-26 Method and device for changing picture typesetting

Country Status (1)

Country Link
CN (1) CN106997264B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109657201B (en) * 2017-10-10 2023-07-04 杭州海康威视系统技术有限公司 Typesetting display method and device for elements, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510312A (en) * 2009-03-16 2009-08-19 广州市有福数码科技有限公司 Method, device and system for making electronic photo album
CN102930523A (en) * 2012-11-12 2013-02-13 北京奇虎科技有限公司 Picture processing system and picture slicing implementation method
CN104079725A (en) * 2014-07-07 2014-10-01 中科创达软件股份有限公司 Incoming call rejection method and device
CN104598901A (en) * 2015-03-04 2015-05-06 陈佩珊 Method and system for identifying picture characters and typesetting and displaying picture characteristics according to original style by mobile terminal
CN104637040A (en) * 2013-11-12 2015-05-20 携程计算机技术(上海)有限公司 Method and device utilizing Photoshop to realize picture splicing
CN104915332A (en) * 2015-06-15 2015-09-16 广东欧珀移动通信有限公司 Method and device for generating composing template

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5550211B2 (en) * 2005-03-04 2014-07-16 アップル インコーポレイテッド Multi-function handheld device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510312A (en) * 2009-03-16 2009-08-19 广州市有福数码科技有限公司 Method, device and system for making electronic photo album
CN102930523A (en) * 2012-11-12 2013-02-13 北京奇虎科技有限公司 Picture processing system and picture slicing implementation method
CN104637040A (en) * 2013-11-12 2015-05-20 携程计算机技术(上海)有限公司 Method and device utilizing Photoshop to realize picture splicing
CN104079725A (en) * 2014-07-07 2014-10-01 中科创达软件股份有限公司 Incoming call rejection method and device
CN104598901A (en) * 2015-03-04 2015-05-06 陈佩珊 Method and system for identifying picture characters and typesetting and displaying picture characteristics according to original style by mobile terminal
CN104915332A (en) * 2015-06-15 2015-09-16 广东欧珀移动通信有限公司 Method and device for generating composing template

Also Published As

Publication number Publication date
CN106997264A (en) 2017-08-01

Similar Documents

Publication Publication Date Title
US9304583B2 (en) Movement recognition as input mechanism
JP2021524957A (en) Image processing methods and their devices, terminals and computer programs
KR20110028877A (en) Method for providing user interface and display apparatus applying the same
CN108777766B (en) Multi-person photographing method, terminal and storage medium
CN109478331A (en) Display device and method for image procossing
CN112749613B (en) Video data processing method, device, computer equipment and storage medium
CN103809741B (en) Electronic device and method for determining depth of 3D object image in 3D environment image
CN111798018A (en) Behavior prediction method, behavior prediction device, storage medium and electronic equipment
CN112764845B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN110059686B (en) Character recognition method, device, equipment and readable storage medium
CN105391940B (en) A kind of image recommendation method and device
CN106331497A (en) Image processing method and terminal
US20120075348A1 (en) Information Processing Apparatus, Information Processing Terminal, Information Processing Method and Computer Program
CN108156384A (en) Image processing method, device, electronic equipment and medium
CN101626449B (en) Image processing apparatus and image processing method
CN104869317B (en) Smart machine image pickup method and device
CN111145891A (en) Information processing method and device and electronic equipment
CN106997264B (en) Method and device for changing picture typesetting
WO2013115342A2 (en) Information processing device, information processing method, and information processing computer program product
CN110728167A (en) Text detection method and device and computer readable storage medium
JP5751898B2 (en) Information processing apparatus, information processing method, program, and storage medium
CN110580124A (en) Image display method and device
CN104935789A (en) Handheld electronic device and panoramic image forming method
US20220283698A1 (en) Method for operating an electronic device in order to browse through photos
CN108846036A (en) Mobile terminal reads recommended method, mobile terminal and computer readable storage medium

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