CN107493436B - Shooting method and device - Google Patents

Shooting method and device Download PDF

Info

Publication number
CN107493436B
CN107493436B CN201710856650.XA CN201710856650A CN107493436B CN 107493436 B CN107493436 B CN 107493436B CN 201710856650 A CN201710856650 A CN 201710856650A CN 107493436 B CN107493436 B CN 107493436B
Authority
CN
China
Prior art keywords
shooting
terminal
distance
shot
preset
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
CN201710856650.XA
Other languages
Chinese (zh)
Other versions
CN107493436A (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 CN201710856650.XA priority Critical patent/CN107493436B/en
Publication of CN107493436A publication Critical patent/CN107493436A/en
Application granted granted Critical
Publication of CN107493436B publication Critical patent/CN107493436B/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
    • 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/67Focus control based on electronic image sensor signals

Landscapes

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

Abstract

The embodiment of the invention discloses a shooting method and a shooting device, wherein the method comprises the following steps: detecting an object distance between a shot object and a terminal; if the object distance is judged to be larger than a first preset threshold value and smaller than a second preset threshold value, modifying the shooting attribute of the shot object according to the object distance and a preset rule, wherein the preset rule is used for indicating a modification mode for modifying the shooting attribute of the shot object; and shooting the shooting object with the shooting attribute modified. By adopting the invention, the clear picture can be shot under the condition that the shot object and the shooting terminal are in close range.

Description

Shooting method and device
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a shooting method and device.
Background
The camera is an indispensable functional module in the electronic device, and a user can use a built-in or external camera application in the electronic device to shoot still pictures or dynamic short pictures.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a shooting method and device, which can enable a shot object and a shooting terminal to take a clear picture even in a close distance.
In a first aspect, an embodiment of the present invention provides a shooting method, including:
detecting an object distance between a shot object and a terminal;
if the object distance is judged to be larger than a first preset threshold value and smaller than a second preset threshold value, modifying the shooting attribute of the shot object according to the object distance and a preset rule, wherein the preset rule is used for indicating a modification mode for modifying the shooting attribute of the shot object;
and shooting the shooting object with the shooting attribute modified.
With reference to the first aspect, in a first possible implementation manner, the shooting attribute includes: the zoom multiple and the number of shot samples, wherein the modification of the shooting attribute of the shot object according to the object distance and the preset rule specifically comprises the following steps:
and according to the object distance, modifying the zoom multiple corresponding to the shot object and the number of shot samples corresponding to the shot object according to the preset rule.
With reference to the first aspect, in a second possible implementation manner, after the detecting an object distance between the shooting object and the terminal, the method further includes:
and judging whether the object distance is smaller than or equal to a first preset threshold value, if so, providing preset prompt information, wherein the preset prompt information is used for prompting the increase of the distance between the shot object and the terminal.
With reference to the first aspect, in a third possible implementation manner, after detecting an object distance between a photographic object and a terminal, before photographing the photographic object with the modified photographic attribute, the method further includes:
and judging whether the object distance is larger than or equal to a second preset threshold value, if so, setting the shooting attribute of the shot object as a shooting attribute preset numerical value.
With reference to the first aspect, in a fourth possible implementation manner, the shooting attributes include: the method comprises the following steps of zooming times and shooting sampling number, wherein the step of setting the shooting attribute of the shot object as a preset shooting attribute value comprises the following steps:
and setting the zoom multiple corresponding to the shot object as a preset zoom multiple value, and setting the shot sampling number corresponding to the shot object as a preset shot sampling number value.
In a second aspect, an embodiment of the present invention provides a shooting apparatus, including:
the detection unit is used for detecting the object distance between the shooting object and the terminal;
the modification unit is used for modifying the shooting attribute of the shot object according to the object distance and a preset rule if the object distance is judged to be larger than a first preset threshold and smaller than a second preset threshold, wherein the preset rule is used for indicating a modification mode for modifying the shooting attribute of the shot object;
and the shooting unit is used for shooting the shooting object with the shooting attribute modified.
With reference to the second aspect, in a first possible implementation manner, the shooting attributes include: the zoom factor and the number of shot samples, and the modification unit is specifically configured to:
and according to the object distance, modifying the zoom multiple corresponding to the shot object and the number of shot samples corresponding to the shot object according to the preset rule.
With reference to the second aspect, in a second possible implementation manner, the method further includes:
the device comprises a providing unit and a detecting unit, wherein the providing unit is used for judging whether the object distance between a shooting object and a terminal is smaller than or equal to a first preset threshold value after the detecting unit detects the object distance, if so, preset prompt information is provided, and the preset prompt information is used for prompting the increase of the distance between the shooting object and the terminal.
With reference to the second aspect, in a third possible implementation manner, the method further includes:
and the setting unit is used for judging whether the object distance is greater than or equal to a second preset threshold value or not before the shooting unit shoots the shooting object with the shooting attribute modified after the detection unit detects the object distance between the shooting object and the terminal, and if so, setting the shooting attribute of the shooting object as a shooting attribute preset value.
With reference to the second aspect, in a fourth possible implementation manner, the shooting attributes include: the setting unit is specifically configured to set the zoom multiple corresponding to the shot object as a zoom multiple preset value, and set the shot sampling number corresponding to the shot object as a shot sampling number preset value.
By implementing the embodiment of the invention, the user is prompted to adjust the distance between the shooting object and the shooting terminal according to the distance between the shooting object and the shooting terminal, and the shooting attribute is automatically adjusted, so that the zoom multiple and the shooting sampling number of the shooting object are modified, and when the distance between the shooting object and the shooting terminal reaches a micro-distance range, the zoom multiple and the shooting sampling number are increased, so that the shooting terminal can shoot clear pictures in a micro-distance mode.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first embodiment of a shooting method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a second embodiment of a photographing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a first embodiment of a shooting device provided in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a second embodiment of the photographing device according to the 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be understood that the terminology used in the embodiments 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 examples 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 also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
The embodiment of the invention provides a shooting method and a shooting device, which can be used for shooting a clear picture even if a shot object and a shooting terminal are in a close distance. The following describes a photographing method and apparatus provided by an embodiment of the present invention with reference to fig. 1 to 4.
Referring to fig. 1, it is a schematic flow chart of a first embodiment of the shooting method provided by the present invention, and the method includes:
step S101: detecting an object distance between a shot object and a terminal;
specifically, the terminal may detect an object distance between the photographing object and the terminal (the object distance is a distance between the object and the mirror (or an optical center of the lens)) according to a sensor, wherein the sensor includes but is not limited to: a distance sensor. The terminal may include a personal computer, a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device, and other Internet Devices. The sensor may be embedded in the terminal, that is, the sensor is embedded in the terminal, or the sensor may be independent from the terminal, that is, the sensor and the terminal are separated from each other, the sensor may always detect an object distance between the photographic object and the terminal, may also detect the object distance between the photographic object and the terminal at regular time, or may start to detect the object distance between the photographic object and the terminal after receiving a start instruction of a terminal user, which is not specifically limited in the embodiment of the present invention.
Step S103: if the object distance between the shot object and the terminal is judged to be larger than a first preset threshold value and smaller than a second preset threshold value, the shooting attribute of the shot object is modified according to the object distance and a preset rule, wherein the preset rule is used for indicating a modification mode for modifying the shooting attribute of the shot object;
specifically, the terminal can judge whether the object distance is greater than a first preset threshold and smaller than a second preset threshold according to the object distance between the shooting object and the terminal detected by the sensor, and if the object distance is greater than the first preset threshold and smaller than the second preset threshold, it is proved that the shooting object and the terminal are in a close-range state, the terminal needs to adjust the current shooting attribute of the shooting object according to a preset rule so as to shoot a clear picture. The first preset threshold may be a distance threshold of a macro mode preset by a terminal user, or may be a distance threshold of a macro mode default set in a terminal camera application system program, for example, according to a motor limit of a terminal camera, an object distance of 7cm is generally set as the distance threshold of the macro mode, when an object distance between a photographed object and a terminal is smaller than or equal to the first preset threshold, it is proved that the photographed object is within a macro range, and the terminal is difficult to focus the photographed object within the macro range, so that the terminal is required to prompt the user to increase the object distance between the photographed object and the terminal. Wherein the shooting attributes may include, but are not limited to: zooming times and shooting sampling number, when the object distance is in a close range outside a micro range, the shooting property of the shot object needs to be modified according to a preset rule, namely the zooming times and the shooting sampling number need to be increased, so that the terminal can shoot clear photos. The preset rule may be a shooting attribute rule set by the user himself or a shooting attribute rule set by default for a camera application system program of the terminal. When the object distance exceeds a second preset threshold, the fact that the distance between the shot object and the terminal exits the short-distance range is proved, namely the terminal can shoot normally, and zooming times and shooting sampling number do not need to be increased.
Further, see table 1, which is a corresponding relationship between the object distance and the preset rule in the embodiment of the present invention, wherein the first preset threshold is 7cm, and the second preset threshold is 15 cm.
TABLE 1
Object distance Multiple of zoom Number of samples taken
7cm 1 1
8cm 2 2
9cm 3 4
10cm 4 6
11cm 5 8
12cm 4 6
13cm 3 4
14cm 2 2
15cm 1 1
As can be seen from table 1, when the object distance between the photographed object and the terminal is less than or equal to the first preset threshold value of 7cm, the zoom multiple and the number of photographed samples are normal values, and when the object distance between the photographed object and the terminal is greater than the first preset threshold value of 7cm and less than the second preset threshold value of 15cm, the zoom multiple and the number of photographed samples change according to the preset rule, and the change trend is: and when the object distance between the shot object and the terminal is larger than a second preset threshold value of 15cm, the zoom multiple and the number of shot samples are restored to normal values again. For optical zoom, the larger the optical zoom factor, the farther the scene can be photographed. After the optical zooming can support the imaging of an image main body, the resolution and the image quality are not changed, and the image is relatively clear; for digital zooming, the larger the digital zooming multiple is, the larger the picture is, through digital zooming, the shot scenery is enlarged, but the definition of the scenery is reduced to a certain extent, but the details are not clearer, and in specific application, a user can set a preset rule, so that a clear picture is shot.
Step S105: and shooting the shooting object with the shooting attribute modified.
Specifically, after the terminal modifies the shooting attribute of the shooting object according to the preset rule according to the object distance between the shooting object and the terminal, shooting the shooting object is started.
In the embodiment of the invention, the terminal judges whether the object distance is in a short-distance range or not according to the detected object distance between the shooting object and the terminal, and when the shooting object is in the short-distance range with the terminal, the shooting attribute of the shooting object needs to be changed, so that a clear picture is shot.
Further, referring to fig. 2, it is a schematic flow chart of a second embodiment of the shooting method provided by the present invention, and the method includes:
step S201: detecting an object distance between a shot object and a terminal;
specifically, the terminal may detect an object distance between the photographing object and the terminal (the object distance is a distance between the object and the mirror (or an optical center of the lens)) according to a sensor, wherein the sensor includes but is not limited to: a distance sensor. The terminal may include a personal computer, a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device, and other Internet Devices. The sensor may be embedded in the terminal, that is, the sensor is embedded in the terminal, or the sensor may be independent from the terminal, that is, the sensor and the terminal are separated from each other, the sensor may always detect an object distance between the photographic object and the terminal, may also detect the object distance between the photographic object and the terminal at regular time, or may start to detect the object distance between the photographic object and the terminal after receiving a start instruction of a terminal user, which is not specifically limited in the embodiment of the present invention.
Step S203: judging whether the object distance is smaller than or equal to a first preset threshold value;
specifically, when the terminal detects an object distance between a shooting object and the terminal according to a sensor, it is determined whether the object distance is smaller than or equal to a first preset threshold, where the first preset threshold may be a distance threshold in a macro mode preset by a terminal user, or may be a distance threshold in a macro mode default set in a terminal camera application system program, for example, according to a motor limit of a terminal camera, the object distance of 7cm is generally set as the distance threshold in the macro mode, when it is determined that the object distance is smaller than or equal to the first preset threshold, step S205 is performed, and when it is determined that the object distance is greater than the first preset threshold, step S207 is performed.
Step S205: providing preset prompt information, wherein the preset prompt information is used for prompting that the distance between the shot object and the terminal is increased;
specifically, when the object distance between the shooting object and the terminal is judged to be smaller than or equal to a first preset threshold value, the shooting object is proved to be in a micro distance range, the terminal is difficult to focus the shooting object in the micro distance range, therefore, the terminal is required to prompt a user to increase the object distance between the shooting object and the terminal, the terminal provides preset prompt information for the user to prompt the user to increase the distance between the shooting object and the terminal, and the phenomenon that the shooting is unclear due to the fact that the distance between the shooting object and the terminal is too small is avoided. The prompting method may include, but is not limited to: and popping up a prompt box.
Step S207: judging whether the object distance is smaller than a second preset threshold value or not;
specifically, when the object distance between the shooting object and the terminal is judged to be larger than a first preset threshold, whether the object distance is smaller than a second preset threshold is judged, when the object distance is smaller than the second preset threshold, it is proved that a close range exists between the shooting object and the terminal, the shooting attribute of the shooting object needs to be processed to shoot a clear picture, and when the object distance is larger than the second preset threshold, it is proved that the shooting object and the terminal are not located in the close range, the terminal can normally shoot the shooting object. When the object distance is smaller than a second preset threshold, the process proceeds to step S209, and when the object distance is larger than the second preset threshold, the process proceeds to step S211.
Step S209: modifying the shooting attribute of the shot object according to the object distance and a preset rule, wherein the preset rule is used for indicating a modification mode for modifying the shooting attribute of the shot object, and the shooting attribute comprises: zooming times and shooting sampling number;
specifically, when the object distance between the photographic object and the terminal is greater than a first preset threshold and smaller than a second preset threshold, the photographic attribute of the photographic object needs to be modified according to a preset rule, where the photographic attribute may include but is not limited to: the zoom factor and the number of shot samples are required to be increased so that the terminal can take clear pictures. The preset rule may be a shooting attribute rule set by the user himself or a shooting attribute rule set by default for a camera application system program of the terminal. After this step is performed, the flow proceeds to step S213.
Further, when the object distance between the shot object and the terminal is larger than a first preset threshold and smaller than a second preset threshold, the terminal modifies the zoom multiple corresponding to the shot object and the number of shot samples corresponding to the shot object according to the object distance and a preset rule.
Step S211: setting the shooting attribute of the shot object as a preset shooting attribute value;
specifically, when the object distance between the photographed object and the terminal is greater than or equal to a second preset threshold, it indicates that the photographed object exits from the close-range state, and the terminal may restore the photographing attribute of the photographed object to a normal value, that is, restore the zoom multiple and the number of photographing samples of the photographed object to normal values, thereby performing normal photographing.
Further, when the object distance between the shot object and the terminal is greater than or equal to a second preset threshold value, it indicates that the shot object exits the close-range state, the terminal sets the zoom multiple corresponding to the shot object as a zoom multiple preset value, and sets the number of shot samples corresponding to the shot object as a shot sample number preset value.
Step S213: and shooting the shooting object with the shooting attribute modified.
Specifically, after the terminal modifies the shooting attribute of the shooting object according to the preset rule according to the object distance between the shooting object and the terminal, shooting the shooting object is started.
In the embodiment of the invention, the terminal judges whether the object distance is in a short-distance range or not according to the detected object distance between the shooting object and the terminal, when the shooting object and the terminal are in a micro-distance range, the terminal prompts a user to increase the object distance between the shooting object and the terminal, when the shooting object and the terminal are in the short-distance range, the terminal modifies the zoom multiple and the shooting sampling number of the shooting object according to a preset rule so as to shoot clear photos, and when the shooting object and the terminal exit from the short-distance range, the terminal restores the shooting attribute of the shooting object to a normal state value so as to finish normal shooting.
While the method of the embodiments of the present invention has been described in detail, in order to better implement the above-described aspects of the embodiments of the present invention, the following also provides related apparatus for implementing the aspects.
Referring to fig. 3, which is a schematic structural diagram of a first embodiment of the photographing apparatus provided by the present invention, the photographing apparatus 30 includes: a detection unit 301, a modification unit 303, and a photographing unit 305, wherein:
a detection unit 301 for detecting an object distance between a photographic object and a terminal;
specifically, the detection unit 301 may detect an object distance between the shooting object and the terminal (the object distance is a distance between the object and the mirror (or an optical center of the lens)) according to sensors, wherein the sensors include but are not limited to: a distance sensor. The terminal may include a personal computer, a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device, and other Internet Devices. The sensor may be embedded in the terminal, that is, the sensor is embedded in the terminal, or the sensor may be independent from the terminal, that is, the sensor and the terminal are separated from each other, the sensor may always detect an object distance between the photographic object and the terminal, may also detect the object distance between the photographic object and the terminal at regular time, or may start to detect the object distance between the photographic object and the terminal after receiving a start instruction of a terminal user, which is not specifically limited in the embodiment of the present invention. In a specific implementation, the specific implementation manner of the detection unit 301 may refer to step S101 in the first embodiment of the shooting method provided in the embodiment of the present invention, and is not described herein again.
A modifying unit 303, configured to modify, according to the object distance, the shooting attribute of the shot object according to a preset rule if it is determined that the object distance is greater than a first preset threshold and smaller than a second preset threshold, where the preset rule is used to indicate a modification manner for modifying the shooting attribute of the shot object;
specifically, the terminal may determine whether the object distance is greater than a first preset threshold and smaller than a second preset threshold according to the object distance between the shooting object and the terminal detected by the sensor, and if the object distance is greater than the first preset threshold and smaller than the second preset threshold, that is, it is proved that the shooting object and the terminal are in a close-range state, the modification unit 303 needs to adjust the current shooting attribute of the shooting object according to a preset rule, so as to shoot a clear picture. The first preset threshold may be a distance threshold of a macro mode preset by a terminal user, or may be a distance threshold of a macro mode default set in a terminal camera application system program, for example, according to a motor limit of a terminal camera, an object distance of 7cm is generally set as the distance threshold of the macro mode, when an object distance between a photographed object and a terminal is smaller than or equal to the first preset threshold, it is proved that the photographed object is within a macro range, and the terminal is difficult to focus the photographed object within the macro range, so that the terminal is required to prompt the user to increase the object distance between the photographed object and the terminal. Wherein the shooting attributes may include, but are not limited to: zooming times and shooting sampling number, when the object distance is in a close range outside a micro range, the shooting property of the shot object needs to be modified according to a preset rule, namely the zooming times and the shooting sampling number need to be increased, so that the terminal can shoot clear photos. The preset rule may be a shooting attribute rule set by the user himself or a shooting attribute rule set by default for a camera application system program of the terminal. When the object distance exceeds a second preset threshold, the fact that the distance between the shot object and the terminal exits the short-distance range is proved, namely the terminal can shoot normally, and zooming times and shooting sampling number do not need to be increased. In a specific implementation, the specific implementation manner of the modifying unit 303 may refer to step S103 in the first embodiment of the shooting method provided in the embodiment of the present invention, and is not described herein again.
A shooting unit 305 for shooting the photographic subject with the shooting attributes modified.
Specifically, after the terminal modifies the shooting attribute of the shooting object according to the preset rule according to the object distance between the shooting object and the terminal, shooting the shooting object is started.
In the embodiment of the present invention, the terminal determines whether the object distance is in the short-distance range according to the object distance between the shooting object detected by the detection unit 301 and the terminal, and when the shooting object is in the short-distance range with the terminal, the modification unit 303 needs to change the shooting attribute of the shooting object, so that the shooting unit 305 takes a clear picture. In a specific implementation, the specific implementation manner of the shooting unit 305 may refer to step S105 in the first embodiment of the shooting method provided in the embodiment of the present invention, and is not described herein again.
Referring to fig. 4, which is a schematic structural diagram of a second embodiment of the photographing apparatus provided by the present invention, further explaining the structure of the photographing apparatus 30 in detail, the photographing apparatus 30 shown in fig. 4 includes: the detection unit 301, the modification unit 303, and the shooting unit 305 may further include: a providing unit 307 and a setting unit 309. Wherein:
the modifying unit 303 is specifically configured to modify, according to the object distance and according to the preset rule, the zoom multiple corresponding to the object to be shot and the number of shot samples corresponding to the object to be shot;
specifically, when the object distance between the photographic object and the terminal is greater than a first preset threshold and smaller than a second preset threshold, the modifying unit 303 needs to modify the photographic attribute of the photographic object according to a preset rule, where the photographic attribute may include but is not limited to: the zoom factor and the number of shot samples are required to be increased so that the terminal can take clear pictures. The preset rule may be a shooting attribute rule set by the user himself or a shooting attribute rule set by default for a camera application system program of the terminal. In a specific implementation, the specific implementation manner of the modifying unit 303 may refer to step S209 in the second embodiment of the shooting method provided in the embodiment of the present invention, and is not described herein again.
A providing unit 307, configured to determine whether an object distance between a shooting object and a terminal is smaller than or equal to a first preset threshold after the detection unit detects the object distance, and if so, provide preset prompt information, where the preset prompt information is used to prompt to increase a distance between the shooting object and the terminal;
specifically, when it is determined that the object distance between the photographed object and the terminal is smaller than or equal to the first preset threshold, it is proved that the photographed object is within the macro range, and the terminal is difficult to focus on the photographed object within the macro range, so the providing unit 307 is required to prompt the user to increase the object distance between the photographed object and the terminal, and the terminal provides the preset prompt information to the user to prompt the user to increase the distance between the photographed object and the terminal, thereby avoiding the occurrence of an unclear photographing phenomenon caused by the excessively small distance between the photographed object and the terminal. The prompting method may include, but is not limited to: and popping up a prompt box. In a specific implementation, the specific implementation manner of the providing unit 307 may refer to step S205 in the second embodiment of the shooting method provided in the embodiment of the present invention, and is not described herein again.
The setting unit 309 is configured to, after the object distance between the shooting object and the terminal is detected by the detection unit and before the shooting object with the shooting attribute modified is shot by the shooting unit, determine whether the object distance is greater than or equal to a second preset threshold, and if so, set the shooting attribute of the shooting object as a shooting attribute preset value.
Specifically, when the object distance between the photographed object and the terminal is greater than or equal to a second preset threshold, it indicates that the photographed object exits from the close-range state, and the terminal may restore the photographing attribute of the photographed object to a normal value, that is, restore the zoom multiple and the number of photographing samples of the photographed object to normal values, thereby performing normal photographing.
Further, when the object distance between the photographic object and the terminal is greater than or equal to a second preset threshold, indicating that the photographic object exits from the close-range state, the setting unit 309 sets the zoom multiple corresponding to the photographic object to a zoom multiple preset value, and sets the number of photographic samples corresponding to the photographic object to a photographic sample number preset value. In a specific implementation, the specific implementation manner of the setting unit 309 can refer to step S211 in the second embodiment of the shooting method provided in the embodiment of the present invention, and details are not described herein again.
In summary, by implementing the embodiments of the present invention, the terminal automatically adjusts the shooting attribute of the shooting object according to the distance between the shooting object and the shooting terminal, so as to modify the zoom factor and the shooting sample number of the shooting object, and when the distance between the shooting object and the shooting terminal reaches a short-distance range, the shooting terminal can also take a clear picture in a short-distance mode by increasing the zoom factor and the shooting sample number.
The modules or sub-modules in all embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (central processing Unit), or an ASIC (Application Specific integrated circuit).
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (4)

1. A photographing method, characterized by comprising:
detecting an object distance between a shot object and a terminal;
judging whether the object distance is smaller than or equal to a first preset threshold value;
when the object distance between a shot object and a terminal is smaller than or equal to a first preset threshold value, providing preset prompt information, wherein the preset prompt information is used for prompting that the distance between the shot object and the terminal is increased;
when the object distance between the shot object and the terminal is larger than a first preset threshold value, judging whether the object distance is smaller than a second preset threshold value;
if the object distance is judged to be larger than a first preset threshold and smaller than a second preset threshold, modifying the shooting attribute of the shot object according to the object distance and a preset rule, wherein the preset rule is used for indicating a modification mode for modifying the shooting attribute of the shot object, the shooting attribute comprises a zoom multiple and a shooting sampling number, and the modifying the shooting attribute of the shot object according to the preset rule comprises: setting the zoom multiple corresponding to the shot object as a preset zoom multiple value, and setting the shot sampling number corresponding to the shot object as a preset shot sampling number value; the first preset threshold is a distance threshold of a macro mode preset by a terminal user, or the distance threshold of the macro mode is set by default in a terminal camera application system program, and the second preset threshold is a distance threshold of a boundary between short-range shooting and normal shooting;
and shooting the shot object with the zoom times and the shot sampling number modified, wherein the zoom times and the shot sampling number both increase in a parabolic trend along with the increase of the object distance.
2. The method of claim 1, wherein after detecting the object distance between the photographic object and the terminal and before photographing the photographic object with the modified photographic attribute, further comprising:
and judging whether the object distance is larger than or equal to a second preset threshold value, if so, setting the shooting attribute of the shot object as a shooting attribute preset numerical value.
3. A camera, comprising:
the detection unit is used for detecting the object distance between the shooting object and the terminal;
the device comprises a providing unit, a detecting unit and a judging unit, wherein the providing unit is used for judging whether the object distance between a shot object and a terminal is smaller than or equal to a first preset threshold value after the detecting unit detects the object distance between the shot object and the terminal, and if so, providing preset prompt information which is used for prompting the distance between the shot object and the terminal to be increased;
when the object distance between the shot object and the terminal is larger than a first preset threshold value, judging whether the object distance is smaller than a second preset threshold value;
a modifying unit, configured to modify, according to the object distance, a shooting attribute of the object according to a preset rule if it is determined that the object distance is greater than a first preset threshold and smaller than a second preset threshold, where the preset rule is used to indicate a modification manner for modifying the shooting attribute of the object, where the shooting attribute includes a zoom multiple and a number of shot samples, and the modifying the shooting attribute of the object according to the preset rule includes: setting the zoom multiple corresponding to the shot object as a preset zoom multiple value, and setting the shot sampling number corresponding to the shot object as a preset shot sampling number value; the first preset threshold is a distance threshold of a macro mode preset by a terminal user, or the distance threshold of the macro mode is set by default in a terminal camera application system program, and the second preset threshold is a distance threshold of a boundary between short-range shooting and normal shooting;
and the shooting unit is used for shooting the shot object with the zoom times and the shooting sampling number modified, wherein the zoom times and the shooting sampling number both increase in a parabolic trend along with the increase of the object distance.
4. The apparatus of claim 3, further comprising:
and the setting unit is used for judging whether the object distance is greater than or equal to a second preset threshold value or not before the shooting unit shoots the shooting object with the shooting attribute modified after the detection unit detects the object distance between the shooting object and the terminal, and if so, setting the shooting attribute of the shooting object as a shooting attribute preset value.
CN201710856650.XA 2015-01-20 2015-01-20 Shooting method and device Expired - Fee Related CN107493436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710856650.XA CN107493436B (en) 2015-01-20 2015-01-20 Shooting method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510028852.6A CN104618643B (en) 2015-01-20 2015-01-20 A kind of image pickup method and device
CN201710856650.XA CN107493436B (en) 2015-01-20 2015-01-20 Shooting method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510028852.6A Division CN104618643B (en) 2015-01-20 2015-01-20 A kind of image pickup method and device

Publications (2)

Publication Number Publication Date
CN107493436A CN107493436A (en) 2017-12-19
CN107493436B true CN107493436B (en) 2020-04-21

Family

ID=53152907

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710856650.XA Expired - Fee Related CN107493436B (en) 2015-01-20 2015-01-20 Shooting method and device
CN201510028852.6A Expired - Fee Related CN104618643B (en) 2015-01-20 2015-01-20 A kind of image pickup method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510028852.6A Expired - Fee Related CN104618643B (en) 2015-01-20 2015-01-20 A kind of image pickup method and device

Country Status (1)

Country Link
CN (2) CN107493436B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208289A (en) * 2015-10-27 2015-12-30 广东欧珀移动通信有限公司 Shooting control method and device for mobile terminal and mobile terminal
CN105611151A (en) * 2015-12-17 2016-05-25 深圳市金立通信设备有限公司 Terminal control method and terminal
CN105554385B (en) * 2015-12-18 2018-07-10 天津中科智能识别产业技术研究院有限公司 A kind of remote multi-modal biological characteristic recognition methods and its system
CN105959555B (en) * 2016-06-02 2019-07-19 Oppo广东移动通信有限公司 Screening-mode automatic adjusting method, device and mobile terminal
CN106249876A (en) * 2016-07-15 2016-12-21 宇龙计算机通信科技(深圳)有限公司 A kind of it is automatically adjusted the method and system that image shows
CN106131428A (en) * 2016-07-29 2016-11-16 维沃移动通信有限公司 The control method of a kind of flash lamp and mobile terminal
CN106303256A (en) * 2016-08-31 2017-01-04 广东小天才科技有限公司 A kind of determination method and device of acquisition parameters
CN108206912B (en) * 2016-12-20 2020-12-04 北京小米移动软件有限公司 Method and device for exception prompt and readable storage medium
CN106851116B (en) * 2017-03-31 2020-11-20 联想(北京)有限公司 Processing method and electronic equipment
CN107872622B (en) * 2017-11-24 2020-12-25 广东小天才科技有限公司 Close-range imaging method and mobile terminal
CN108174108A (en) * 2018-03-08 2018-06-15 广州三星通信技术研究有限公司 The method and apparatus and mobile terminal for effect of taking pictures are adjusted in the terminal
CN111586284B (en) * 2019-02-19 2021-11-30 北京小米移动软件有限公司 Scene recognition prompting method and device
CN110913126B (en) * 2019-10-31 2022-07-19 华为终端有限公司 Shooting range calculation method and device and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103048765A (en) * 2012-12-18 2013-04-17 天津三星光电子有限公司 Camera focusing device and method
CN103139480A (en) * 2013-02-28 2013-06-05 华为终端有限公司 Image acquisition method and image acquisition device
CN103179348A (en) * 2013-03-25 2013-06-26 东莞宇龙通信科技有限公司 Shooting method and system for mobile terminals and mobile terminal
CN103685962A (en) * 2013-12-27 2014-03-26 广东欧珀移动通信有限公司 Mobile terminal picture shooting method and system
CN103702029A (en) * 2013-12-20 2014-04-02 百度在线网络技术(北京)有限公司 Method and device for prompting focusing during shooting

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050047761A (en) * 2003-11-18 2005-05-23 삼성전자주식회사 Photographing system of controlling camera according to control command combinated with plural signals from remocon and method thereof
CN101126638A (en) * 2007-09-29 2008-02-20 张小虎 Pick-up measuring method for checking road surface planeness
CN101639610B (en) * 2008-08-01 2011-03-23 鸿富锦精密工业(深圳)有限公司 Digital photographic device and self-shoot guidance method
CN101726966B (en) * 2008-10-10 2012-03-14 深圳富泰宏精密工业有限公司 Self photographing system and method
JP5868042B2 (en) * 2011-07-01 2016-02-24 キヤノン株式会社 Anti-shake control device, imaging device, and control method for anti-shake control device
CN102420940B (en) * 2011-11-16 2014-09-10 中兴通讯股份有限公司 Terminal with camera shooting function and camera zooming method thereof
CN103516972B (en) * 2012-06-19 2017-03-29 联想(北京)有限公司 Camera control method and electronic equipment
CN102801857B (en) * 2012-07-30 2014-06-18 无锡智感星际科技有限公司 Smart phone photographing guiding method based on image matching
CN202818503U (en) * 2012-09-24 2013-03-20 天津市亚安科技股份有限公司 Multidirectional monitoring area early warning positioning automatic tracking and monitoring device
CN104102068B (en) * 2013-04-11 2017-06-30 聚晶半导体股份有限公司 Atomatic focusing method and automatic focusing mechanism

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103048765A (en) * 2012-12-18 2013-04-17 天津三星光电子有限公司 Camera focusing device and method
CN103139480A (en) * 2013-02-28 2013-06-05 华为终端有限公司 Image acquisition method and image acquisition device
CN103179348A (en) * 2013-03-25 2013-06-26 东莞宇龙通信科技有限公司 Shooting method and system for mobile terminals and mobile terminal
CN103702029A (en) * 2013-12-20 2014-04-02 百度在线网络技术(北京)有限公司 Method and device for prompting focusing during shooting
CN103685962A (en) * 2013-12-27 2014-03-26 广东欧珀移动通信有限公司 Mobile terminal picture shooting method and system

Also Published As

Publication number Publication date
CN104618643A (en) 2015-05-13
CN104618643B (en) 2017-10-17
CN107493436A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN107493436B (en) Shooting method and device
EP2889832B1 (en) Image processing apparatus and method
US10491826B2 (en) Method for obtaining panning shot image and electronic device supporting the same
US20140211045A1 (en) Image processing apparatus and image pickup apparatus
US10027899B2 (en) Optical module with variable light-transmission area and electronic apparatus using the optical module
CN108335323B (en) Blurring method of image background and mobile terminal
CN111726521B (en) Photographing method and photographing device of terminal and terminal
CN108632596B (en) Photographing apparatus and method of operating the same
CN104601876B (en) Method and device for detecting passerby
US8948453B2 (en) Device, method and non-transitory computer readable storage medium for detecting object
CN109981964B (en) Robot-based shooting method and shooting device and robot
US9600871B2 (en) Image correcting apparatus, image correcting method and computer readable recording medium recording program thereon
EP3113071A1 (en) Method and device for acquiring iris image
EP3301906A1 (en) Method for processing image and electronic device supporting the same
CN110708463B (en) Focusing method, focusing device, storage medium and electronic equipment
CN107147851B (en) Photo processing method and device, computer readable storage medium and electronic equipment
CN106791451B (en) Photographing method of intelligent terminal
CN111970437B (en) Text shooting method, wearable device and storage medium
US9652822B2 (en) Image correcting apparatus, image correcting method and computer readable recording medium recording program thereon
KR20150089933A (en) Image capture apparatus performing interval shooting, image capture method, and storage medium
US9674437B2 (en) Imaging apparatus, imaging method and computer readable recording medium having program for performing interval shooting
CN107180417B (en) Photo processing method and device, computer readable storage medium and electronic equipment
US10491836B2 (en) Electronic device and control method in which the resolution of a combined output image can be increased without deterioration
KR20170011876A (en) Image processing apparatus and method for operating thereof
EP3429202B1 (en) Mobile terminal and adjusting method thereof, and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200421

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