CN106454139B - Photographing method and mobile terminal - Google Patents

Photographing method and mobile terminal Download PDF

Info

Publication number
CN106454139B
CN106454139B CN201611204853.2A CN201611204853A CN106454139B CN 106454139 B CN106454139 B CN 106454139B CN 201611204853 A CN201611204853 A CN 201611204853A CN 106454139 B CN106454139 B CN 106454139B
Authority
CN
China
Prior art keywords
area
current preview
preview picture
face image
mode
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
CN201611204853.2A
Other languages
Chinese (zh)
Other versions
CN106454139A (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 CN201611204853.2A priority Critical patent/CN106454139B/en
Publication of CN106454139A publication Critical patent/CN106454139A/en
Application granted granted Critical
Publication of CN106454139B publication Critical patent/CN106454139B/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/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/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

Landscapes

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

Abstract

The invention belongs to the technical field of communication, and provides a photographing method and a mobile terminal, wherein the photographing method comprises the following steps: when the mobile terminal starts a photographing function, if a face image exists in a current preview picture, acquiring the area of the face image; acquiring the area of the current preview picture, and calculating the ratio of the area of the face image to the area of the current preview picture; and selecting a corresponding photographing mode to photograph the current preview picture according to the ratio of the area of the face image to the area of the current preview picture. By the method and the device, the camera can be prevented from being manually adjusted by a user, and the photographing efficiency is improved.

Description

Photographing method and mobile terminal
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a photographing method and a mobile terminal.
Background
With the rise of mobile terminals such as smart phones and tablet computers, users often take pictures through the mobile terminals, and particularly like to take self-pictures. If the mobile terminal is placed relatively close to each other during self-photographing, the face of a photographed image is too large, and if the mobile terminal is placed relatively far from each other, the face of the photographed image is too small, so that the photographing effect is poor. In order to improve the photographing effect, a user is generally required to manually adjust the camera in the prior art, and the process is complicated.
Therefore, a new technical solution is needed to solve the above technical problems.
Disclosure of Invention
In view of this, embodiments of the present invention provide a photographing method and a mobile terminal, so as to avoid a user from manually adjusting a camera, and improve photographing efficiency.
In a first aspect of the embodiments of the present invention, a photographing method is provided, which is applied to a mobile terminal, and the photographing method includes:
when the mobile terminal starts a photographing function, if a face image exists in a current preview picture, acquiring the area of the face image;
acquiring the area of the current preview picture, and calculating the ratio of the area of the face image to the area of the current preview picture;
and selecting a corresponding photographing mode to photograph the current preview picture according to the ratio of the area of the face image to the area of the current preview picture, wherein the photographing mode comprises a long-range mode and a short-range mode.
In a second aspect of the embodiments of the present invention, a mobile terminal is provided, where the mobile terminal includes:
the mobile terminal comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring the area of a face image if the face image is detected to exist in a current preview picture when the mobile terminal starts a photographing function;
the second acquisition module is used for acquiring the area of the current preview picture and calculating the ratio of the area of the face image to the area of the current preview picture;
and the selecting module is used for selecting a corresponding photographing mode to photograph the current preview picture according to the ratio of the area of the face image to the area of the current preview picture, wherein the photographing mode comprises a long-range mode and a short-range mode.
In a third aspect of the embodiments of the present invention, a mobile terminal is provided, where the mobile terminal includes:
a processor and an input device;
the processor is used for acquiring the area of the face image through the input equipment if the face image is detected to exist in the current preview picture when the mobile terminal starts the photographing function;
the processor is further configured to acquire the area of the current preview picture through the input device, and calculate a ratio of the area of the face image to the area of the current preview picture;
the processor is further configured to select a corresponding photographing mode to photograph the current preview picture according to a ratio of the area of the face image to the area of the current preview picture, where the photographing mode includes a long-range mode and a short-range mode.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: when the mobile terminal starts a photographing function, if the face image is detected to exist in the current preview picture, the area of the face image is obtained, the area of the current preview picture is obtained at the same time, the ratio of the area of the face image to the area of the current preview picture is calculated, and a photographing mode is selected according to the ratio to photograph the current preview picture. According to the embodiment of the invention, whether the preview picture is shot in a long-range view mode or a short-range view mode can be determined according to the ratio of the area of the face image in the preview picture to the area of the preview picture, and automatic switching is carried out, so that a user does not need to manually adjust the camera, the operation of adjusting the camera is reduced, the shooting efficiency is improved, and the power consumption of the mobile terminal is also reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a photographing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a photographing method according to a second embodiment of the present invention;
fig. 3 is a schematic block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a schematic block diagram of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, mobile terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic flowchart of a photographing method provided in an embodiment of the present invention, where the photographing method is applied to a mobile terminal, as shown in the figure, the photographing method may include the following steps:
step S101, when the mobile terminal starts a photographing function, if a face image exists in a current preview picture, the area of the face image is obtained.
In the embodiment of the present invention, when the mobile terminal starts a photographing function (for example, a camera), the mobile terminal may start a front-facing camera, display a target object to be photographed in a current preview picture, and detect whether a face image exists in the current preview picture of the camera, if so, obtain information of the face image, and calculate an area of the face image according to the information of the face image. The information of the face image includes, but is not limited to, the shape, length, width, and the like of the face image. Of course, other information that can calculate the area of the face image is also within the scope of the present invention.
It should be noted that the front camera opened by the mobile terminal may be a single camera or a dual camera. When the front camera is a single camera, the shooting mode of the camera can be set to a long-range mode or a short-range mode. When the front camera is a double camera, the front camera can comprise a close-range camera and a long-range camera. And the close shot camera adopts a close shot mode to take a picture. When the close-range mode is adopted to photograph the face to be photographed, the distance between the camera and the face to be photographed can be shortened, and the face image displayed on the current preview interface can be enlarged. The long-range camera adopts a long-range mode to take a picture. When the long-range view mode is adopted to photograph the face to be photographed, the distance between the camera and the face to be photographed can be lengthened, and the face image displayed on the current preview interface can be reduced.
And step S102, acquiring the area of the current preview picture, and calculating the ratio of the area of the face image to the area of the current preview picture.
In the embodiment of the present invention, the mobile terminal obtains the area of the current preview picture, and calculates the ratio of the area of the face image in the current preview picture obtained in step S101 to the area of the current preview picture, that is, the proportion of the face image in the current preview picture. The mobile terminal can calculate the area of the current preview screen by acquiring the length and the width of the current preview screen. Of course, other methods for calculating the area of the current preview screen are also within the scope of the present invention.
Step S103, selecting a corresponding photographing mode to photograph the current preview picture according to the ratio of the area of the face image to the area of the current preview picture, wherein the photographing mode comprises a long-range mode and a short-range mode.
In this embodiment of the present invention, when the ratio of the area of the face image to the area of the current preview picture is small (for example, smaller than a preset threshold 0.4), it may be determined that the photographing mode started by the mobile terminal in step S101 is a long-range mode (for example, a long-range mode in a single camera or a long-range camera in two cameras is started), and since the proportion of the face image in the current preview picture is small, the photographing mode may be switched from the long-range mode to the short-range mode (for example, the single camera is switched from the long-range mode to the short-range mode, or the two cameras are switched from the long-range camera to the short-range camera), so as to achieve the effect of shortening the distance between the camera and the face to be photographed, increase the proportion of the face image in the current preview picture, and improve the photographing effect. When the ratio of the area of the face image to the area of the current preview picture is large (for example, larger than a preset threshold value of 0.4), it may be determined that the photographing mode started by the mobile terminal in step S101 is a close-range mode (for example, a close-range mode in a single camera or a close-range camera in two cameras is started), and since the proportion of the face image in the current preview picture is large, the photographing mode may be switched from the close-range mode to a long-range mode (for example, a single camera is switched from the close-range mode to the long-range mode, or two cameras are switched from the close-range camera to the long-range camera), so as to achieve the effect of extending the distance between the camera and the face to be photographed, reduce the proportion of the face image in the current preview picture, and improve the photographing effect.
According to the embodiment of the invention, whether the preview picture is shot in a long-range view mode or a short-range view mode can be determined according to the ratio of the area of the face image in the preview picture to the area of the preview picture, and automatic switching is carried out, so that a user does not need to manually adjust the camera, the operation of adjusting the camera is reduced, the shooting efficiency is improved, and the power consumption of the mobile terminal is also reduced.
Referring to fig. 2, which is a schematic flowchart of a photographing method provided in the second embodiment of the present invention, the photographing method is applied to a mobile terminal, and as shown in the figure, the photographing method may include the following steps:
step S201, when the mobile terminal starts a photographing function, if a face image exists in a current preview picture, the area of the face image is obtained.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S202, obtaining the area of the current preview picture, and calculating the ratio of the area of the face image to the area of the current preview picture.
The step is the same as step S102, and reference may be made to the related description of step S102, which is not repeated herein.
Step S203, if the ratio of the area of the face image to the area of the current preview picture is not within a preset threshold interval, selecting a corresponding photographing mode to photograph the current preview picture.
In the embodiment of the present invention, it is detected whether a ratio of an area of the face image in the current preview picture to an area of the current preview picture is within a preset threshold interval (e.g., [0.4,0.8]), and if the ratio is within the preset threshold interval, it is determined that a proportion of the face image in the current preview picture is appropriate, and the shooting mode (e.g., a close-range mode or a long-range mode in a single-set camera, or a long-range camera or a close-range camera in a double-set camera) started by the mobile terminal in step S201 may be directly adopted to take a picture; if the area of the face image is not within the preset threshold value interval, determining that the proportion of the face image in the current preview picture is not appropriate, and in order to improve the photographing effect, automatically switching a photographing mode according to the ratio of the area of the face image to the area of the current preview picture, such as a photographing mode of a single-position camera or a camera of a double-position camera.
Optionally, if the ratio of the area of the face image to the area of the current preview picture is not within a preset threshold interval, selecting a corresponding photographing mode to photograph the current preview picture includes:
if the ratio of the area of the face image to the area of the current preview picture is smaller than the minimum preset threshold value in the preset threshold value interval, determining that the photographing mode started by the mobile terminal is a long-range mode, and switching the photographing mode from the long-range mode to a short-range mode to photograph the current preview picture.
In the embodiment of the present invention, when the ratio of the area of the face image to the area of the current preview picture is smaller than a minimum preset threshold (e.g., 0.4) in the preset threshold interval, it may be determined that the photographing mode started by the mobile terminal is a long-range mode, and in order to improve the photographing effect, the photographing mode may be switched from the long-range mode to a short-range mode, so as to achieve the effect of shortening the distance between the camera and the face to be photographed, and increase the proportion of the face image in the current preview picture.
Optionally, if the ratio of the area of the face image to the area of the current preview picture is not within a preset threshold interval, selecting a corresponding photographing mode to photograph the current preview picture includes:
if the ratio of the area of the face image to the area of the current preview picture of the camera is larger than the maximum preset threshold value in the preset threshold value interval, determining that the shooting mode started by the mobile terminal is a close-range mode, and switching the shooting mode from the close-range mode to a distant-range mode to shoot the current preview picture.
In the embodiment of the present invention, when the ratio of the area of the face image to the area of the current preview picture is greater than a maximum preset threshold (for example, 0.8) in the preset threshold interval, it may be determined that the photographing mode started by the mobile terminal is a close-range mode, and in order to improve the photographing effect, the photographing mode may be switched from the close-range mode to a distant-range mode, so as to achieve the effect of lengthening the distance between the camera and the photographed face, and reduce the proportion of the face image in the current preview picture.
According to the embodiment of the invention, when the ratio of the area of the face image in the preview picture to the area of the preview picture is not within the preset threshold interval, whether the preview picture is shot in a long-range mode or a close-range mode can be determined, and automatic switching is carried out, so that a user does not need to manually adjust the camera, the operation of adjusting the camera is reduced, the shooting efficiency is improved, and the power consumption of the mobile terminal is also reduced.
It should be understood that, in the above embodiments, the order of execution of the steps is not meant to imply any order, and the order of execution of the steps should be determined by their function and inherent logic, and should not limit the implementation process of the embodiments of the present invention.
Referring to fig. 3, a schematic block diagram of a mobile terminal according to a third embodiment of the present invention is shown, and for convenience of description, only the parts related to the embodiment of the present invention are shown.
The mobile terminal includes:
the first obtaining module 31 is configured to, when the mobile terminal starts a photographing function, obtain an area of a face image if it is detected that the face image exists in a current preview picture;
a second obtaining module 32, configured to obtain an area of the current preview picture, and calculate a ratio between the area of the face image and the area of the current preview picture;
and a selecting module 33, configured to select a corresponding photographing mode according to a ratio of the area of the face image to the area of the current preview picture to photograph the current preview picture, where the photographing mode includes a long-range mode and a short-range mode.
Optionally, the selecting module 33 is configured to:
and if the ratio of the area of the face image to the area of the current preview picture is not within a preset threshold interval, selecting a corresponding photographing mode to photograph the current preview picture.
The optional selection module 33 is specifically configured to:
if the ratio of the area of the face image to the area of the current preview picture is smaller than the minimum preset threshold value in the preset threshold value interval, determining that the photographing mode started by the mobile terminal is a long-range mode, and switching the photographing mode from the long-range mode to a short-range mode to photograph the current preview picture.
The optional selection module 33 is specifically configured to:
if the ratio of the area of the face image to the area of the current preview picture is larger than the maximum preset threshold value in the preset threshold value interval, determining that the shooting mode started by the mobile terminal is a close-range mode, and switching the shooting mode from the close-range mode to a distant-range mode to shoot the current preview picture.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely illustrated, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the mobile terminal is divided into different functional units or modules to perform all or part of the above described functions. Each functional module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional modules are only used for distinguishing one functional module from another, and are not used for limiting the protection scope of the application. The specific working process of the module in the mobile terminal may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Referring to fig. 4, a schematic block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown. The mobile terminal as shown in the figure may include: one or more processors 401 (only one shown); one or more input devices 402 (only one shown), one or more output devices 403 (only one shown), and memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected by a bus 405. The memory 404 is used for storing instructions and the processor 401 is used for executing the instructions stored by the memory 404. Wherein:
the processor 401 is configured to, when the mobile terminal starts a photographing function, acquire an area of a face image through the input device 402 if it is detected that the face image exists in a current preview picture; acquiring the area of the current preview picture through the input device 402, and calculating the ratio of the area of the face image to the area of the current preview picture; and selecting a corresponding photographing mode to photograph the current preview picture according to the ratio of the area of the face image to the area of the current preview picture, wherein the photographing mode comprises a long-range mode and a short-range mode.
Optionally, the processor 401 is configured to select a corresponding photographing mode to photograph the current preview picture if the ratio of the area of the face image to the area of the current preview picture is not within a preset threshold interval stored in the memory 404.
Optionally, the processor 401 is specifically configured to determine that the shooting mode started by the mobile terminal is a long-range mode if a ratio of the area of the face image to the area of the current preview picture is smaller than a minimum preset threshold in the preset threshold interval stored in the memory 404, and switch the shooting mode from the long-range mode to a short-range mode to shoot the current preview picture.
Optionally, the processor 401 is specifically configured to determine that the shooting mode started by the mobile terminal is a close-range mode if a ratio of the area of the face image to the area of the current preview picture is greater than a maximum preset threshold in the preset threshold interval stored in the memory 404, and switch the shooting mode from the close-range mode to a distant-range mode to shoot the current preview picture.
The memory 404 is used for storing software programs and modules. The processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 404, so as to switch the photographing mode of the mobile terminal to photograph the current preview screen.
It should be understood that, in the embodiment of the present invention, the Processor 401 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 402 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. The output devices 403 may include a display (LCD, etc.), speakers, a data transmission interface, and the like.
The memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
In a specific implementation, the processor 401, the input device 402, the output device 403, and the memory 404 described in this embodiment of the present invention may execute the implementation described in the embodiment of the photographing method provided in this embodiment of the present invention, or may execute the implementation described in the mobile terminal described in the third embodiment of the present invention, which is not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed mobile terminal and method may be implemented in other ways. For example, the above-described embodiments of the mobile terminal are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A photographing method is applied to a mobile terminal, and is characterized by comprising the following steps:
when the mobile terminal starts a photographing function, a front-facing camera is started, and if a face image is detected to exist in a current preview picture, the area of the face image is obtained; the front camera comprises a close-range camera and a distant-range camera, the close-range camera adopts a close-range mode to take a picture, and the distant-range camera adopts a distant-range mode to take a picture; when the close shot mode is adopted to photograph the current preview picture, the face image displayed by the current preview picture becomes larger, and when the distant shot mode is adopted to photograph the current preview picture, the face image displayed by the current preview picture becomes smaller;
acquiring the area of the current preview picture, and calculating the ratio of the area of the face image to the area of the current preview picture;
selecting a corresponding photographing mode to photograph the current preview picture according to the ratio of the area of the face image to the area of the current preview picture, wherein the photographing mode comprises the following steps: if the ratio of the area of the face image to the area of the current preview picture is not within a preset threshold interval, selecting a corresponding photographing mode to photograph the current preview picture, if the ratio of the area of the face image to the area of the current preview picture is within the preset threshold interval, determining that the proportion of the face image in the current preview picture is proper, and directly photographing by adopting a camera and a photographing mode which are started when the mobile terminal starts a photographing function.
2. The photographing method of claim 1, wherein if the ratio of the area of the face image to the area of the current preview screen is not within a preset threshold interval, selecting a corresponding photographing mode to photograph the current preview screen comprises:
if the ratio of the area of the face image to the area of the current preview picture is smaller than the minimum preset threshold value in the preset threshold value interval, determining that the photographing mode started by the mobile terminal is a long-range mode, and switching the photographing mode from the long-range mode to a short-range mode to photograph the current preview picture.
3. The photographing method of claim 1, wherein if the ratio of the area of the face image to the area of the current preview screen is not within a preset threshold interval, selecting a corresponding photographing mode to photograph the current preview screen comprises:
if the ratio of the area of the face image to the area of the current preview picture is larger than the maximum preset threshold value in the preset threshold value interval, determining that the shooting mode started by the mobile terminal is a close-range mode, and switching the shooting mode from the close-range mode to a distant-range mode to shoot the current preview picture.
4. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for starting a front camera when the mobile terminal starts a photographing function, and acquiring the area of a face image if the face image is detected to exist in a current preview picture; the front camera comprises a close-range camera and a distant-range camera, the close-range camera adopts a close-range mode to take a picture, and the distant-range camera adopts a distant-range mode to take a picture; when the close shot mode is adopted to photograph the current preview picture, the face image displayed by the current preview picture becomes larger, and when the distant shot mode is adopted to photograph the current preview picture, the face image displayed by the current preview picture becomes smaller;
the second acquisition module is used for acquiring the area of the current preview picture and calculating the ratio of the area of the face image to the area of the current preview picture;
the selecting module is used for selecting a corresponding photographing mode to photograph the current preview picture according to the ratio of the area of the face image to the area of the current preview picture, and comprises the following steps: if the ratio of the area of the face image to the area of the current preview picture is not within a preset threshold interval, selecting a corresponding photographing mode to photograph the current preview picture, if the ratio of the area of the face image to the area of the current preview picture is within the preset threshold interval, determining that the proportion of the face image in the current preview picture is proper, and directly photographing by adopting a camera and a photographing mode which are started when the mobile terminal starts a photographing function.
5. The mobile terminal of claim 4, wherein the selection module is specifically configured to:
if the ratio of the area of the face image to the area of the current preview picture is smaller than the minimum preset threshold value in the preset threshold value interval, determining that the photographing mode started by the mobile terminal is a long-range mode, and switching the photographing mode from the long-range mode to a short-range mode to photograph the current preview picture.
6. The mobile terminal of claim 4, wherein the selection module is specifically configured to:
if the ratio of the area of the face image to the area of the current preview picture is larger than the maximum preset threshold value in the preset threshold value interval, determining that the shooting mode started by the mobile terminal is a close-range mode, and switching the shooting mode from the close-range mode to a distant-range mode to shoot the current preview picture.
7. A mobile terminal adopting the photographing method of claim 1, wherein the mobile terminal comprises:
a processor and an input device;
the processor is used for starting the front camera when the mobile terminal starts a photographing function, and acquiring the area of the face image through the input equipment if the face image is detected to exist in the current preview picture;
the processor is further configured to acquire the area of the current preview picture through the input device, and calculate a ratio of the area of the face image to the area of the current preview picture;
and the processor is further used for selecting a corresponding photographing mode to photograph the current preview picture according to the ratio of the area of the face image to the area of the current preview picture.
CN201611204853.2A 2016-12-22 2016-12-22 Photographing method and mobile terminal Expired - Fee Related CN106454139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611204853.2A CN106454139B (en) 2016-12-22 2016-12-22 Photographing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611204853.2A CN106454139B (en) 2016-12-22 2016-12-22 Photographing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106454139A CN106454139A (en) 2017-02-22
CN106454139B true CN106454139B (en) 2020-01-10

Family

ID=58215351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611204853.2A Expired - Fee Related CN106454139B (en) 2016-12-22 2016-12-22 Photographing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106454139B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851107A (en) * 2017-03-09 2017-06-13 广东欧珀移动通信有限公司 Switch control method, control device and the electronic installation of camera assisted drawing
CN107241490A (en) * 2017-05-16 2017-10-10 珠海市魅族科技有限公司 Information processing method and device, computer installation and storage medium
WO2019033411A1 (en) 2017-08-18 2019-02-21 华为技术有限公司 Panoramic shooting method and device
CN107465856B (en) * 2017-08-31 2020-01-14 Oppo广东移动通信有限公司 Image pickup method and device and terminal equipment
CN109561249A (en) * 2017-09-26 2019-04-02 北京小米移动软件有限公司 Adjust the method and device of focal length
CN109587322B (en) 2017-09-29 2021-07-16 华为终端有限公司 Message processing method, message viewing method and terminal
CN109729257B (en) * 2017-10-31 2020-09-29 华为终端有限公司 Photographing prompting method and device
CN108184050B (en) * 2017-12-15 2020-04-24 维沃移动通信有限公司 Photographing method and mobile terminal
CN108111754B (en) * 2017-12-18 2021-03-12 维沃移动通信有限公司 Method for determining image acquisition mode and mobile terminal
CN108965702B (en) * 2018-07-09 2020-12-25 广东小天才科技有限公司 Shooting guiding method and wearable device
EP3800876B1 (en) 2018-07-27 2023-09-06 Huawei Technologies Co., Ltd. Method for terminal to switch cameras, and terminal
CN110177217A (en) * 2019-06-28 2019-08-27 Oppo广东移动通信有限公司 Image capturing method, device, electronic equipment and storage medium
CN111669505B (en) * 2020-06-30 2022-09-20 维沃移动通信(杭州)有限公司 Camera starting method and device
CN111787228A (en) * 2020-07-23 2020-10-16 惠州Tcl移动通信有限公司 Shooting method, shooting device, storage medium and mobile terminal
CN114205659A (en) * 2020-08-31 2022-03-18 青岛海尔多媒体有限公司 Method, device and equipment for adjusting video picture
CN112601008B (en) * 2020-11-17 2022-03-25 中兴通讯股份有限公司 Camera switching method, terminal, device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024165A (en) * 2012-12-04 2013-04-03 华为终端有限公司 Method and device for automatically setting shooting mode
CN104869315A (en) * 2015-05-28 2015-08-26 魅族科技(中国)有限公司 Photographing control method and terminal
CN105049711A (en) * 2015-06-30 2015-11-11 广东欧珀移动通信有限公司 Photographing method and user terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003271933A (en) * 2002-03-18 2003-09-26 Sony Corp Face detector, face detecting method, and robot device
JP2006020137A (en) * 2004-07-02 2006-01-19 Seiko Epson Corp Image processing apparatus and recommendation degree displaying method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024165A (en) * 2012-12-04 2013-04-03 华为终端有限公司 Method and device for automatically setting shooting mode
CN104869315A (en) * 2015-05-28 2015-08-26 魅族科技(中国)有限公司 Photographing control method and terminal
CN105049711A (en) * 2015-06-30 2015-11-11 广东欧珀移动通信有限公司 Photographing method and user terminal

Also Published As

Publication number Publication date
CN106454139A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106454139B (en) Photographing method and mobile terminal
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108961157B (en) Picture processing method, picture processing device and terminal equipment
CN108898082B (en) Picture processing method, picture processing device and terminal equipment
CN108737739B (en) Preview picture acquisition method, preview picture acquisition device and electronic equipment
CN108961267B (en) Picture processing method, picture processing device and terminal equipment
CN109040603A (en) High-dynamic-range image acquisition method, device and mobile terminal
CN109561257B (en) Picture focusing method, device, terminal and corresponding storage medium
CN110457963B (en) Display control method, display control device, mobile terminal and computer-readable storage medium
CN109120862A (en) High-dynamic-range image acquisition method, device and mobile terminal
CN107426493A (en) A kind of image pickup method and terminal for blurring background
US20210335391A1 (en) Resource display method, device, apparatus, and storage medium
CN110166696B (en) Photographing method, photographing device, terminal equipment and computer-readable storage medium
CN107302666A (en) Photographic method, mobile terminal and computer-readable recording medium
CN108769419B (en) Photographing method, mobile terminal and computer-readable storage medium
CN107071282B (en) Photo processing method and mobile terminal
WO2020057241A1 (en) Method and apparatus for displaying application program, and terminal device
CN110618852B (en) View processing method, view processing device and terminal equipment
CN108932703B (en) Picture processing method, picture processing device and terminal equipment
CN111142650A (en) Screen brightness adjusting method, screen brightness adjusting device and terminal
CN108629767B (en) Scene detection method and device and mobile terminal
CN107360361B (en) Method and device for shooting people in backlight mode
CN107155000B (en) Photographing behavior analysis method and device and mobile terminal
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN110677586B (en) Image display method, image display device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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 523841 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: 20200110