CN107483831B - Shooting method and device of mobile terminal and mobile terminal - Google Patents

Shooting method and device of mobile terminal and mobile terminal Download PDF

Info

Publication number
CN107483831B
CN107483831B CN201710861511.6A CN201710861511A CN107483831B CN 107483831 B CN107483831 B CN 107483831B CN 201710861511 A CN201710861511 A CN 201710861511A CN 107483831 B CN107483831 B CN 107483831B
Authority
CN
China
Prior art keywords
portrait
shot
mobile terminal
length
size
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.)
Expired - Fee Related
Application number
CN201710861511.6A
Other languages
Chinese (zh)
Other versions
CN107483831A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710861511.6A priority Critical patent/CN107483831B/en
Publication of CN107483831A publication Critical patent/CN107483831A/en
Application granted granted Critical
Publication of CN107483831B publication Critical patent/CN107483831B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a shooting method and device of a mobile terminal and the mobile terminal. The method comprises the following steps: predicting the overall length of the portrait to be shot, and acquiring a first size of the portrait to be shot according to the overall length; judging whether the portrait to be shot meets a preset condition or not according to the overall length and the first size; when the portrait to be shot meets a preset condition, acquiring a target rotation angle according to a first size; controlling the camera module to rotate according to the target rotation angle; and shooting the portrait to be shot according to the rotated camera module so as to stretch the legs of the portrait to be shot in the shooting process. Realized can treating the shank of shooing the portrait at the in-process of shooing and carry out tensile processing to beautify the portrait, make and need not to carry out the post processing after the completion is shot and also can make the shank and the health of portrait seem longer more, promoted user's shooting experience.

Description

Shooting method and device of mobile terminal and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a shooting method and device of a mobile terminal and the mobile terminal.
Background
With the development of mobile terminal technology, after the person image to be photographed is photographed, post-processing may be performed on the photographed person image, for example, the legs in the person image may be stretched by the cropping software, so that the legs and the body of the person may be seen to be longer.
However, the above processing method is to stretch the leg of the portrait to be photographed by post-processing to obtain a beautified picture, the processed portrait is often not true enough and not good, and the modification of the retouching software may cause an excessive white portion formed after distortion in the portrait picture, for example, as shown in fig. 1, an excessive white portion F formed after distortion appears above the portrait picture.
Disclosure of Invention
The object of the present invention is to solve at least to some extent one of the above mentioned technical problems.
To this end, a first object of the present invention is to provide a photographing method of a mobile terminal. The method can stretch the legs of the portrait to be shot in the shooting process so as to beautify the portrait, so that the legs and the body of the portrait can be seen to be longer without post-processing after shooting is finished, and the shooting experience of a user is improved.
The second objective of the present invention is to provide a camera of a mobile terminal.
A third object of the present invention is to provide a mobile terminal.
To achieve the above object, a shooting method of a mobile terminal according to an embodiment of the first aspect of the present invention includes: predicting the overall length of a portrait to be shot, and acquiring a first size of the portrait to be shot according to the overall length; judging whether the portrait to be shot meets a preset condition or not according to the overall length and the first size; when the portrait to be shot meets the preset condition, acquiring a target rotation angle according to the first size; driving a camera module to rotate according to the target rotation angle through a micro electro mechanical system (MEMS OIS) of a Micro Electro Mechanical System (MEMS) optical anti-shake system; and shooting the portrait to be shot according to the rotated camera module so as to stretch the legs of the portrait to be shot in the shooting process.
According to the shooting method of the mobile terminal, when the portrait to be shot meets the preset condition, the target rotation angle is obtained according to the first size of the portrait to be shot, the camera module is driven to rotate according to the target rotation angle through the MEMS OIS, the portrait to be shot is shot according to the rotated camera module, the leg of the portrait to be shot is stretched in the shooting process, the leg of the portrait to be shot can be stretched in the shooting process, the portrait can be beautified, the leg and the body of the portrait can be seen to be longer without post-processing after the shooting is finished, and the shooting experience of a user is improved.
According to an embodiment of the present invention, the acquiring the target rotation angle according to the first size of the portrait to be photographed includes: acquiring the target rotation angle according to the first size and a preset model; wherein the preset model is: a ═ Amax/Lmax) L, wherein A isTarget rotation angle, AmaxIs the maximum rotation angle, L, that the camera module can rotatemaxAnd L is the first size of the portrait to be shot, wherein the largest length of the portrait to be shot is obtained after the leg of the portrait to be shot is stretched in the screen size of the mobile terminal.
According to an embodiment of the present invention, the determining whether the portrait to be photographed satisfies a preset condition according to the overall length and the first size includes: calculating a proportion value of the first size of the portrait to be shot occupying the whole body length; judging whether the proportional value is greater than or equal to a preset threshold value; if the proportion value is smaller than the preset threshold value, judging that the portrait to be shot does not meet the preset condition; and if the proportional value is greater than or equal to the preset threshold value, judging that the portrait to be shot meets the preset condition.
According to an embodiment of the present invention, the predicting the overall length of the portrait to be photographed and obtaining the first size of the portrait to be photographed according to the overall length includes: identifying a face image of the portrait to be shot, and acquiring a second size and a position relation of the face image in the size of the screen of the mobile terminal; predicting the overall body length of the portrait to be shot according to a second size of the face image in the screen size of the mobile terminal and a preset human body proportion; and acquiring the length of the portrait to be shot in the screen size of the mobile terminal according to the overall length and the position relation of the face image in the screen size of the mobile terminal, and taking the length as the first size of the portrait to be shot.
To achieve the above object, a camera of a mobile terminal according to a second embodiment of the present invention includes: the acquisition module is used for predicting the overall length of the portrait to be shot and acquiring a first size of the portrait to be shot according to the overall length; the judging module is used for judging whether the portrait to be shot meets a preset condition according to the overall length and the first size; the target rotation angle acquisition module is used for acquiring a target rotation angle according to the first size when the judgment module judges that the portrait to be shot meets the preset condition; the control module is used for driving the camera module to rotate according to the target rotation angle through a micro electro mechanical optical anti-shake system MEMSOIS; and the shooting module is used for shooting the portrait to be shot according to the rotated camera module so as to stretch the legs of the portrait to be shot in the shooting process.
According to the shooting device of the mobile terminal, when the judging module judges that the portrait to be shot meets the preset condition, the target rotation angle obtaining module obtains the target rotation angle according to the first size of the portrait to be shot, the control module drives the camera module to rotate according to the target rotation angle through the MEMS OIS, and the shooting module shoots the portrait according to the rotated camera module, so that the legs of the portrait to be shot are stretched in the shooting process, the legs of the portrait to be shot can be stretched in the shooting process, the portrait can be beautified, the legs and the body of the portrait can be seen to be longer without post-processing after the shooting is finished, and the shooting experience of a user is improved.
According to an embodiment of the present invention, the target rotation angle obtaining module is specifically configured to: acquiring the target rotation angle according to the first size and a preset model; wherein the preset model is: a ═ Amax/Lmax) L, wherein A is the target rotation angle, AmaxIs the maximum rotation angle, L, that the camera module can rotatemaxAnd L is the first size of the portrait to be shot, wherein the largest length of the portrait to be shot is obtained after the leg of the portrait to be shot is stretched in the screen size of the mobile terminal.
According to an embodiment of the present invention, the determining module includes: the calculation submodule is used for calculating a proportion value of the first size of the portrait to be shot occupying the whole body length; the judgment submodule is used for judging whether the proportional value is greater than or equal to a preset threshold value; and the judging submodule is used for judging that the portrait to be shot does not meet the preset condition when the judging submodule judges that the proportional value is smaller than the preset threshold value, and judging that the portrait to be shot meets the preset condition when the judging submodule judges that the proportional value is larger than or equal to the preset threshold value.
According to one embodiment of the invention, the obtaining module comprises: the recognition submodule is used for recognizing the face image of the portrait to be shot; the first obtaining submodule is used for obtaining a second size and a position relation of the face image in the screen size of the mobile terminal; the prediction sub-module is used for predicting the overall body length of the portrait to be shot according to a second size of the face image in the screen size of the mobile terminal and a preset human body proportion; and the second obtaining submodule is used for obtaining the length of the portrait to be shot in the screen size of the mobile terminal according to the overall length and the position relation of the face image in the screen size of the mobile terminal, and taking the length as the first size of the portrait to be shot.
To achieve the above object, a mobile terminal according to a third embodiment of the present invention includes: a housing; a processor; a memory; a circuit board and a power supply circuit; wherein the circuit board is arranged inside a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: predicting the overall length of a portrait to be shot, and acquiring a first size of the portrait to be shot according to the overall length; judging whether the portrait to be shot meets a preset condition or not according to the overall length and the first size; when the portrait to be shot meets the preset condition, acquiring a target rotation angle according to the first size; driving a camera module to rotate according to the target rotation angle through a micro electro mechanical system (MEMS OIS) of a Micro Electro Mechanical System (MEMS) optical anti-shake system; and shooting the portrait to be shot according to the rotated camera module so as to stretch the legs of the portrait to be shot in the shooting process.
According to the mobile terminal provided by the embodiment of the invention, when the portrait to be shot is judged to meet the preset condition, the target rotation angle is obtained according to the first size of the portrait to be shot, the camera module is driven to rotate according to the target rotation angle through the MEMS OIS, the portrait to be shot is shot according to the rotated camera module, so that the leg of the portrait to be shot is stretched in the shooting process, the leg of the portrait to be shot can be stretched in the shooting process, the portrait can be beautified, the leg and the body of the portrait can be seen to be longer without post-processing after the shooting is finished, and the shooting experience of a user is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is an exemplary diagram of a portrait after being stretched by a retouching software in the prior art;
fig. 2 is a flowchart of a photographing method of a mobile terminal according to one embodiment of the present invention;
FIG. 3 is a flowchart of determining that a portrait to be photographed satisfies a preset condition, according to an embodiment of the present invention;
FIG. 4 is a flow diagram of acquiring a first size of a portrait of a person to be photographed, according to one embodiment of the present invention;
FIG. 5 is a schematic diagram of a face recognition result of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural view of a photographing apparatus of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a photographing apparatus of a mobile terminal according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an acquisition module according to one embodiment of the invention;
fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A photographing method and apparatus of a mobile terminal according to an embodiment of the present invention will be described with reference to the accompanying drawings.
Fig. 2 is a flowchart of a photographing method of a mobile terminal according to one embodiment of the present invention. It should be noted that the present embodiment is exemplified in the case where the photographing method of the mobile terminal is configured as a photographing apparatus of the mobile terminal. The embodiment of the invention can be applied to the process that the user shoots the portrait to be shot by using the mobile terminal. The mobile terminal may be a hardware device with various operating systems, such as a smart phone, a tablet computer, a personal digital assistant, and an electronic book, which is not limited thereto.
As shown in fig. 2, the photographing method of the mobile terminal may include:
s210, predicting the overall length of the portrait to be shot, and acquiring the first size of the portrait to be shot according to the overall length.
Specifically, the face recognition of the portrait to be photographed can be performed to obtain the size and the position relationship of the face, then the overall length of the portrait to be photographed can be predicted according to the size of the face and the preset human body proportion, and finally the first size of the portrait to be photographed can be obtained according to the overall length. For a description of a specific implementation process, reference may be made to the detailed description of the following embodiments.
In the embodiment of the present invention, the to-be-photographed portrait may be a portrait that a user needs to photograph using a mobile terminal. For example, the portrait may be an image of the user collected when the user performs a self-photographing mode through a front camera of the mobile terminal, or may be an image collected when the user photographs others through a rear camera of the mobile terminal.
And S220, judging whether the portrait to be shot meets a preset condition according to the overall length and the first size.
In an embodiment of the present invention, the preset condition may be preset by a built-in program of the mobile terminal, where the preset condition may be, for example, that a ratio of a length of the portrait to be photographed in a screen size of the mobile terminal to an overall length of the portrait to be photographed reaches a preset threshold, and for example, that the ratio of the overall length of the portrait to be photographed to the screen size of the mobile terminal reaches the preset threshold, where the preset threshold may be, for example, a ratio, and is not limited thereto.
It can be understood that the photographing method of the mobile terminal according to the embodiment of the present invention is to stretch the legs of the portrait to be photographed, so that the stretching process may be performed only when the legs of the portrait to be photographed have a sufficient length in the screen of the mobile terminal, and when the length of the portrait to be photographed in the screen size of the mobile terminal occupies a small proportion of the overall length of the portrait to be photographed, if the legs of the portrait to be photographed are stretched, the stretching meaning of the legs may not be great because the legs of the portrait to be photographed in the screen size of the mobile terminal are small, and the opposite effect may be performed, for example, the portrait has a severely deformed proportion. Therefore, whether the proportion value of the length of the portrait to be shot in the size of the screen of the mobile terminal to the whole length of the portrait to be shot meets the preset condition or not can be judged in advance, and when the proportion value meets the preset condition, the target rotation angle can be conveniently acquired according to the first size of the portrait to be shot subsequently.
Specifically, it may be determined that the first size of the portrait to be photographed occupies a proportion of the overall body length, and it may be determined whether the portrait to be photographed satisfies a preset condition according to the proportion, for example, when the proportion is greater than a certain threshold, it may be determined that the portrait to be photographed satisfies the preset condition.
As an example, as shown in fig. 3, the specific implementation process of determining whether the portrait to be photographed satisfies the preset condition according to the overall body length and the first size may include the following steps:
and S310, calculating a proportion value of the first size of the portrait to be shot occupying the whole body length.
For example, the predicted overall length of the person to be photographed is, for example, 12.5cm, and the first size of the acquired person to be photographed is, for example, 10.5cm, so that the proportion of the first size of the person to be photographed to the overall length is 10.5cm/12.5cm — 84%.
S320, judging whether the proportion value is larger than or equal to a preset threshold value.
In the embodiment of the present invention, the preset threshold may be preset by a built-in program of the mobile terminal, or the preset threshold may also be set by a user, which is not limited thereto.
Optionally, the preset threshold is, for example, 70%, it is determined whether a ratio of the first size of the portrait to be photographed to the overall length reaches the preset threshold, and when the ratio reaches the preset threshold, the step of obtaining the target rotation angle according to the first size is performed, that is, the step S230 is performed.
It can be understood that, in the embodiment of the present invention, when the determination ratio value is smaller than the preset threshold, it may be determined that the to-be-photographed portrait does not satisfy the preset condition, and exit may be ended at this time, that is, the camera module is no longer controlled to rotate according to the target rotation angle, but the to-be-photographed portrait may be photographed according to the normal photographing mode, that is, the leg portion of the to-be-photographed portrait is no longer stretched in the photographing mode at this time.
S330, if the proportional value is larger than or equal to the preset threshold value, judging that the portrait to be shot meets the preset condition.
For example, taking the proportional value of the first size occupying the entire body length calculated in step S310 as 10.5/12.5 — 84%, when the preset threshold value is, for example, 70%, it can be understood that the proportional value reaches the preset threshold value, which indicates that the leg portion of the portrait to be photographed can be stretched, that is, it can be determined that the portrait to be photographed satisfies the preset condition.
And S230, when the portrait to be shot meets the preset condition, acquiring a target rotation angle according to the first size. As an example, the first size of the portrait to be photographed can be understood as the length of the portrait to be photographed in the size of the screen of the mobile terminal.
In order to improve usability and feasibility and improve the result of acquiring the first size of the portrait to be photographed, in an embodiment of the present invention, as shown in fig. 4, the specific implementation process of predicting the overall length of the portrait to be photographed and acquiring the first size of the portrait to be photographed according to the overall length may include the following steps:
and S410, identifying the face image of the portrait to be shot, and acquiring a second size and a position relation of the face image in the screen size of the mobile terminal.
For example, a face image of a person to be photographed may be recognized by a face recognition technique, and a size and a positional relationship of the face image with respect to a screen size of the mobile terminal may be acquired.
And S420, predicting the overall body length of the portrait to be shot according to the second size of the face image in the screen size of the mobile terminal and the preset human body proportion.
Specifically, the overall length of the portrait to be shot can be calculated according to the preset human body proportion according to the second size of the face image in the screen size of the mobile terminal. The preset human body proportion can be an empirical value, or a human body proportion value obtained by referring to the work of Viteluweiren depicted by DaVinci.
And S430, acquiring the length of the portrait to be shot in the screen size of the mobile terminal according to the overall length and the position relation of the face image in the screen size of the mobile terminal, and taking the length as the first size of the portrait to be shot.
For example, fig. 5 is a schematic diagram of a face recognition result of a mobile terminal in an embodiment of the present invention, as shown in fig. 5, when a face image B of a person to be photographed is recognized, a second size D and a position relationship of the face image B in a screen size C of the mobile terminal may be obtained, then, an overall length H of the person to be photographed may be predicted according to the second size D of the face image B in the screen size C of the mobile terminal and a preset body ratio, and finally, a length W of the person to be photographed in the screen size C of the mobile terminal may be obtained according to the overall length H and the position relationship of the face image B in the screen size C of the mobile terminal, where the length W is a first size of the person to be photographed. Therefore, when the body length W/the whole body length H reaches a preset threshold value, the shot portrait can be judged to meet the preset condition.
When the portrait to be shot meets the preset conditions, the target rotation angle can be obtained according to the first size of the portrait to be shot, so that the camera module is controlled to rotate according to the target rotation angle subsequently. As an example, the target rotation angle may be obtained according to a first size of a portrait to be photographed and a preset model. In an embodiment of the present invention, the preset model may be as follows:
A=(Amax/Lmax)*L (1)
wherein A is the target rotation angle, AmaxThe maximum rotation angle L of the camera modulemaxIn order to achieve the maximum body length of the portrait to be shot after the leg of the portrait to be shot is stretched in the screen size of the mobile terminal, L is the first size of the portrait to be shot.
For example, the maximum rotation angle A that a known camera module can rotatemaxThe maximum body length L of the portrait to be shot after the leg of the portrait to be shot in the screen size of the mobile terminal is stretchedmaxAnd the first size L of the portrait, the target rotation angle a can be calculated by the above equation (1).
In this embodiment, when the proportional value that occupies whole body length through the first size at the portrait of waiting to shoot is greater than or equal to and predetermines the threshold value, judge that the portrait of waiting to shoot satisfies preset condition, can acquire target rotation angle according to first size and preset model this moment, can calculate the rotatory angle of camera module accurately, the part of the portrait of waiting to shoot passes through linear distortion's control, in order to treat that the shank of the portrait of shooting carries out tensile processing, in order to beautify the portrait, make the shank and the health of portrait seem longer more, promote user's shooting experience.
And S240, driving the camera module to rotate according to the target rotation angle through the MEMS OIS.
In an embodiment of the present invention, the camera module may include, but is not limited to, a lens, a motor, a sensor, and the like. In addition, in an embodiment of the present invention, the mobile terminal may have a micro electro mechanical optical anti-shake system MEMS OIS, wherein the micro electro mechanical optical anti-shake system MEMS OIS may be connected to the camera module.
As an example, the MEMS OIS may include a fixed electrode, a movable electrode matched with the fixed electrode, and a deformable connecting element fixedly connecting the fixed electrode and the movable electrode, wherein the fixed electrode and the movable electrode are configured to generate an electrostatic force under the action of a driving voltage, and the deformable connecting element is configured to deform along a moving direction of the movable electrode under the action of the electrostatic force to allow the movable electrode to move so as to control the camera module to move.
In this example, the MEMS OIS may include a plurality of pairs of fixed and movable electrodes, each pair for moving the camera module along a different angle in the same plane. From this, can realize carrying out the mobility control of different angles to the camera module.
And S250, shooting the to-be-shot portrait according to the rotated camera module so as to stretch the legs of the to-be-shot portrait in the shooting process.
Specifically, can adopt the camera module after the rotation to treat and shoot the portrait for the shank of treating to shoot the portrait is closer to the camera module, and facial remoter is farther away from the camera module, in order to form nearly big-end-up's linear perspective principle, like this, adopts the camera module after the rotation to treat to shoot the portrait, can realize can treating the shank of shooting the portrait and carry out tensile processing at the shooting in-process.
According to the shooting method of the mobile terminal, when the portrait to be shot meets the preset condition, the target rotation angle is obtained according to the first size of the portrait to be shot, the camera module is driven to rotate according to the target rotation angle through the MEMS OIS, the portrait to be shot is shot according to the rotated camera module, the leg of the portrait to be shot is stretched in the shooting process, the leg of the portrait to be shot can be stretched in the shooting process, the portrait can be beautified, the leg and the body of the portrait can be seen to be longer without post-processing after the shooting is finished, and the shooting experience of a user is improved.
Corresponding to the shooting methods of the mobile terminal provided in the above several embodiments, an embodiment of the present invention further provides a shooting device of the mobile terminal, and since the shooting device of the mobile terminal provided in the embodiment of the present invention corresponds to the shooting methods of the mobile terminal provided in the above several embodiments, the embodiments of the shooting method of the mobile terminal described above are also applicable to the shooting device of the mobile terminal provided in this embodiment, and will not be described in detail in this embodiment. Fig. 6 is a schematic structural diagram of a photographing apparatus of a mobile terminal according to an embodiment of the present invention. It should be noted that the camera of the mobile terminal according to the embodiment of the present invention may be implemented by software, hardware, or a combination of the two.
As shown in fig. 6, the photographing device of the mobile terminal may include: the device comprises an acquisition module 100, a judgment module 200, a target rotation angle acquisition module 300, a control module 400 and a shooting module 500.
Specifically, the obtaining module 100 may be configured to predict an overall length of the person to be captured, and obtain a first size of the person to be captured according to the overall length.
The judging module 200 may be configured to judge whether the portrait to be photographed satisfies a preset condition according to the overall length and the first size.
As an example, as shown in fig. 7, the determining module 200 may include: a calculation submodule 201, a judgment submodule 202 and a judgment submodule 203.
The calculating submodule 201 can be used for calculating a proportion value of the first size of the portrait to be shot occupying the whole body length. The determination submodule 202 may be configured to determine whether the ratio is greater than or equal to a predetermined threshold. The determining submodule 203 may be configured to determine that the to-be-photographed portrait does not satisfy the preset condition when the determining submodule 202 determines that the ratio value is smaller than the preset threshold, and determine that the to-be-photographed portrait satisfies the preset condition when the determining submodule 202 determines that the ratio value is greater than or equal to the preset threshold.
As an example, as shown in fig. 8, the obtaining module 100 may include: an identification sub-module 101, a first acquisition sub-module 102, a prediction sub-module 103, and a second acquisition sub-module 104.
The recognition sub-module 101 is configured to recognize a face image of a person to be photographed. The first obtaining sub-module 102 is configured to obtain a second size and a position relationship of the face image in the screen size of the mobile terminal. The prediction submodule 103 is configured to predict the overall length of the portrait to be shot according to a second size of the face image in the screen size of the mobile terminal and a preset human body ratio. The second obtaining sub-module 104 is configured to obtain the length of the portrait to be shot in the screen size of the mobile terminal according to the overall length and the position relationship of the face image in the screen size of the mobile terminal, and use the length as the first size of the portrait to be shot.
The target rotation angle obtaining module 300 may be configured to obtain the target rotation angle according to the first size of the portrait to be photographed when the determining module 200 determines that the portrait to be photographed satisfies the preset condition. As an example, the target rotation angle obtaining module 300 may obtain the target rotation angle according to the first size and a preset model. In the embodiment of the present invention, the preset model is:
A=(Amax/Lmax)*L,
wherein A is the target rotation angle, AmaxThe maximum rotation angle L of the camera modulemaxIn order to achieve the maximum body length of the portrait to be shot after the leg of the portrait to be shot is stretched in the screen size of the mobile terminal, L is the first size of the portrait to be shot.
The control module 400 may be configured to drive the camera module to rotate according to the target rotation angle through the MEMS OIS of the MEMS optical anti-shake system.
The shooting module 500 can be used for shooting the portrait to be shot according to the rotated camera module, so as to stretch the legs of the portrait to be shot in the shooting process.
According to the shooting device of the mobile terminal, when the judging module judges that the portrait to be shot meets the preset condition, the target rotation angle obtaining module obtains the target rotation angle according to the first size of the portrait to be shot, the control module drives the camera module to rotate according to the target rotation angle through the MEMS OIS, the shooting module shoots the portrait to be shot according to the rotated camera module, so that the leg of the portrait to be shot is stretched in the shooting process, the leg of the portrait to be shot can be stretched in the shooting process, the portrait can be beautified, the leg and the body of the portrait can be seen to be longer without post-processing after the shooting is finished, and the shooting experience of a user is improved.
In order to implement the above embodiments, the present invention further provides a mobile terminal.
Fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 9, the mobile terminal may include: a housing 91; a processor 92; a memory 93; a circuit board 94 and a power supply circuit 95; wherein the circuit board 94 is disposed inside a space enclosed by the housing 91, and the processor 92 and the memory 93 are disposed on the circuit board 94; a power supply circuit 95 for supplying power to each circuit or device of the mobile terminal; the memory 93 is used to store executable program code; the processor 92 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 93, for performing:
s101', predicting the overall length of the portrait to be shot, and acquiring the first size of the portrait to be shot according to the overall length.
And S102', judging whether the portrait to be shot meets the preset condition according to the overall length and the first size.
S103', when the portrait to be shot meets the preset condition, the target rotation angle is obtained according to the first size of the portrait to be shot.
And S104', driving the camera module to rotate according to the target rotation angle through the MEMS OIS.
And S105', shooting the person to be shot according to the rotated camera module, so as to stretch the legs of the person to be shot in the shooting process.
According to the mobile terminal provided by the embodiment of the invention, when the portrait to be shot is judged to meet the preset condition, the target rotation angle is obtained according to the first size of the portrait to be shot, the camera module is driven to rotate according to the target rotation angle through the MEMS OIS, the portrait to be shot is shot according to the rotated camera module, so that the leg of the portrait to be shot is stretched in the shooting process, the leg of the portrait to be shot can be stretched in the shooting process, the portrait can be beautified, the leg and the body of the portrait can be seen to be longer without post-processing after the shooting is finished, and the shooting experience of a user is improved.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (7)

1. A shooting method of a mobile terminal is characterized by comprising the following steps:
identifying a face image of a portrait to be shot, and acquiring the size and position relation of the face image in the screen size of the mobile terminal;
determining the length of the portrait to be shot in the screen size of the mobile terminal according to the size and position relation of the face image in the screen size of the mobile terminal;
if the length of the portrait to be shot in the screen size of the mobile terminal is larger than or equal to a preset threshold value, acquiring a target rotation angle according to the length;
driving a camera module to rotate according to the target rotation angle through a micro electro mechanical system (MEMS OIS) of a Micro Electro Mechanical System (MEMS) optical anti-shake system;
and shooting the portrait to be shot according to the rotated camera module so as to stretch the legs of the portrait to be shot in the shooting process.
2. The photographing method of a mobile terminal according to claim 1, wherein the acquiring a target rotation angle according to the length comprises:
acquiring the target rotation angle according to the body length and a preset model; wherein the preset model is:
A=(Amax/Lmax)*L,
wherein A is the target rotation angle, AmaxIs the maximum rotation angle, L, that the camera module can rotatemaxAnd L is the length of the portrait to be shot in the screen size of the mobile terminal, wherein the length of the portrait to be shot is the maximum length of the portrait to be shot after the leg of the portrait to be shot is stretched in the screen size of the mobile terminal.
3. The method for shooting by a mobile terminal according to claim 1, wherein the determining the length of the portrait to be shot in the screen size of the mobile terminal according to the size and the position relationship of the face image in the screen size of the mobile terminal comprises:
predicting the overall body length of the portrait to be shot according to the size of the face image in the screen size of the mobile terminal and a preset human body proportion;
and acquiring the length of the portrait to be shot in the screen size of the mobile terminal according to the overall length and the position relation of the face image in the screen size of the mobile terminal.
4. A photographing apparatus of a mobile terminal, comprising:
the device comprises an acquisition module and a display module, wherein the acquisition module is used for predicting the overall length of a portrait to be shot and acquiring a first size of the portrait to be shot according to the overall length, and the acquisition module comprises:
the recognition submodule is used for recognizing the face image of the portrait to be shot;
the first acquisition submodule is used for acquiring the size and position relation of the face image in the screen size of the mobile terminal;
the second obtaining submodule is used for determining the length of the portrait to be shot in the screen size of the mobile terminal according to the size and the position relation of the face image in the screen size of the mobile terminal;
the judging module is used for judging whether the body length of the portrait to be shot in the screen size of the mobile terminal is larger than or equal to a preset threshold value or not;
the target rotation angle acquisition module is used for acquiring a target rotation angle according to the body length of the portrait to be shot in the screen size of the mobile terminal when the body length is larger than or equal to the preset threshold value;
the control module is used for driving the camera module to rotate according to the target rotation angle through a Micro Electro Mechanical System (MEMS) optical anti-shake system (MEMS OIS);
and the shooting module is used for shooting the portrait to be shot according to the rotated camera module so as to stretch the legs of the portrait to be shot in the shooting process.
5. The camera of claim 4, wherein the target rotation angle obtaining module is specifically configured to:
acquiring the target rotation angle according to the body length and a preset model; wherein the preset model is:
A=(Amax/Lmax)*L,
wherein A is the target rotation angle, AmaxIs the maximum rotation angle, L, that the camera module can rotatemaxAnd L is the length of the portrait to be shot in the screen size of the mobile terminal, wherein the length of the portrait to be shot is the maximum length of the portrait to be shot after the leg of the portrait to be shot is stretched in the screen size of the mobile terminal.
6. The camera apparatus of claim 4, wherein the second obtaining sub-module is specifically configured to:
predicting the overall body length of the portrait to be shot according to the size of the face image in the screen size of the mobile terminal and a preset human body proportion;
and acquiring the length of the portrait to be shot in the screen size of the mobile terminal according to the overall length and the position relation of the face image in the screen size of the mobile terminal.
7. A mobile terminal, comprising: a housing; a processor; a memory; a circuit board and a power supply circuit; wherein the circuit board is arranged inside a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
identifying a face image of a portrait to be shot, and acquiring the size and position relation of the face image in the screen size of the mobile terminal;
determining the length of the portrait to be shot in the screen size of the mobile terminal according to the size and position relation of the face image in the screen size of the mobile terminal;
if the length of the portrait to be shot in the screen size of the mobile terminal is larger than or equal to a preset threshold value, acquiring a target rotation angle according to the length;
driving a camera module to rotate according to the target rotation angle through a micro electro mechanical system (MEMS OIS) of a Micro Electro Mechanical System (MEMS) optical anti-shake system;
and shooting the portrait to be shot according to the rotated camera module so as to stretch the legs of the portrait to be shot in the shooting process.
CN201710861511.6A 2016-07-29 2016-07-29 Shooting method and device of mobile terminal and mobile terminal Expired - Fee Related CN107483831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710861511.6A CN107483831B (en) 2016-07-29 2016-07-29 Shooting method and device of mobile terminal and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610616037.6A CN106254770B (en) 2016-07-29 2016-07-29 Image pickup method, device and the mobile terminal of mobile terminal
CN201710861511.6A CN107483831B (en) 2016-07-29 2016-07-29 Shooting method and device of mobile terminal and mobile terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201610616037.6A Division CN106254770B (en) 2016-07-29 2016-07-29 Image pickup method, device and the mobile terminal of mobile terminal

Publications (2)

Publication Number Publication Date
CN107483831A CN107483831A (en) 2017-12-15
CN107483831B true CN107483831B (en) 2020-01-17

Family

ID=57606484

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610616037.6A Active CN106254770B (en) 2016-07-29 2016-07-29 Image pickup method, device and the mobile terminal of mobile terminal
CN201710861511.6A Expired - Fee Related CN107483831B (en) 2016-07-29 2016-07-29 Shooting method and device of mobile terminal and mobile terminal

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201610616037.6A Active CN106254770B (en) 2016-07-29 2016-07-29 Image pickup method, device and the mobile terminal of mobile terminal

Country Status (1)

Country Link
CN (2) CN106254770B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835373A (en) * 2017-12-06 2018-03-23 深圳天珑无线科技有限公司 A kind of mobile terminal and its take pictures beautification method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795931A (en) * 2014-02-20 2014-05-14 联想(北京)有限公司 Information processing method and electronic equipment
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN105100625A (en) * 2015-08-27 2015-11-25 华南理工大学 Figure image auxiliary shooting method and system based on image aesthetics
CN105516591A (en) * 2015-12-11 2016-04-20 小米科技有限责任公司 Method and apparatus for photographing control of mobile terminal, and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8125526B2 (en) * 2006-02-03 2012-02-28 Olympus Imaging Corp. Camera for selecting an image from a plurality of images based on a face portion and contour of a subject in the image
JP5478928B2 (en) * 2009-03-31 2014-04-23 綜合警備保障株式会社 Person identification device, person identification method, and person identification program
JP2012034196A (en) * 2010-07-30 2012-02-16 Olympus Corp Imaging terminal, data processing terminal, imaging method, and data processing method
US20130176463A1 (en) * 2012-01-09 2013-07-11 Nokia Corporation Method and Apparatus for Image Scaling in Photography
CN103533244A (en) * 2013-10-21 2014-01-22 深圳市中兴移动通信有限公司 Shooting device and automatic visual effect processing shooting method thereof
CN103716547A (en) * 2014-01-15 2014-04-09 厦门美图之家科技有限公司 Smart mode photographing method
CN105657249A (en) * 2015-12-16 2016-06-08 东莞酷派软件技术有限公司 Image processing method and user terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795931A (en) * 2014-02-20 2014-05-14 联想(北京)有限公司 Information processing method and electronic equipment
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN105100625A (en) * 2015-08-27 2015-11-25 华南理工大学 Figure image auxiliary shooting method and system based on image aesthetics
CN105516591A (en) * 2015-12-11 2016-04-20 小米科技有限责任公司 Method and apparatus for photographing control of mobile terminal, and mobile terminal

Also Published As

Publication number Publication date
CN107483831A (en) 2017-12-15
CN106254770A (en) 2016-12-21
CN106254770B (en) 2017-10-17

Similar Documents

Publication Publication Date Title
US11119577B2 (en) Method of controlling an operation of a camera apparatus and a camera apparatus
JP4873762B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
EP2620907A1 (en) Pupil detection device and pupil detection method
CN106254772B (en) Multiple image synthetic method and device
CN107395957B (en) Photographing method and device, storage medium and electronic equipment
EP2461570A1 (en) Control device, image-capturing system, control method, and program
KR20170112763A (en) Electronic apparatus and operating method thereof
CN107087112B (en) Control method and control device for double cameras
CN109803090B (en) Automatic zooming method and system for unmanned shooting, unmanned camera and storage medium
CN105430281A (en) Picture taking control method, picture taking control device, selfie stick and camera system
CN109451240B (en) Focusing method, focusing device, computer equipment and readable storage medium
US10121067B2 (en) Image processing apparatus that determines processing target area of an image based on degree of saliency, image processing method, and storage medium
JP2007251429A (en) Moving image imaging unit, and zoom adjustment method
CN105611161B (en) Camera control method, photographing control device and camera system
CN107483831B (en) Shooting method and device of mobile terminal and mobile terminal
JP2008054062A (en) Image pickup device
CN108024064B (en) Mobile terminal and computer readable storage medium
JP2008051938A (en) Camera system and display control method in focusing operation
CN109981967B (en) Shooting method and device for intelligent robot, terminal equipment and medium
CN106101506A (en) Camera control method and device
JP2021132362A (en) Subject tracking device, subject tracking method, computer program, and storage medium
JP2017103657A (en) Imaging apparatus, imaging method, and computer program for imaging apparatus
JP5386880B2 (en) Imaging device, mobile phone terminal, imaging method, program, and recording medium
CN107925724B (en) Technique for supporting photographing in device having camera and device thereof
JP6274779B2 (en) Focus adjustment device, imaging device, and focus adjustment method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200117