CN108174101B - Shooting method and device - Google Patents

Shooting method and device Download PDF

Info

Publication number
CN108174101B
CN108174101B CN201711487968.1A CN201711487968A CN108174101B CN 108174101 B CN108174101 B CN 108174101B CN 201711487968 A CN201711487968 A CN 201711487968A CN 108174101 B CN108174101 B CN 108174101B
Authority
CN
China
Prior art keywords
aperture
camera
depth
value
preview image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711487968.1A
Other languages
Chinese (zh)
Other versions
CN108174101A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711487968.1A priority Critical patent/CN108174101B/en
Publication of CN108174101A publication Critical patent/CN108174101A/en
Application granted granted Critical
Publication of CN108174101B publication Critical patent/CN108174101B/en
Active 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/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/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/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices

Abstract

The embodiment of the invention provides a shooting method and a shooting device, which are applied to a mobile terminal, wherein the mobile terminal is provided with a camera, and the method comprises the following steps: acquiring preview image data acquired by the camera; wherein the preview image data includes structured light encoded information; determining aperture adjustment parameters of the camera according to the structured light coding information; adjusting the aperture F value of the camera according to the aperture adjusting parameters; and shooting by adopting the camera after the aperture F value is adjusted to obtain a target image. According to the embodiment of the invention, the automatic adjustment of the aperture based on the structured light is realized, the accuracy of the aperture adjustment is ensured, and the photo shooting effect is improved.

Description

Shooting method and device
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a shooting method and apparatus.
Background
With the development of scientific technology, the mobile terminal is widely applied, the shooting function of the mobile terminal is greatly improved, and the use experience of the mobile terminal is greatly improved.
In the shooting process, a user can manually adjust the aperture of the camera to ensure the definition of a shot image. However, if the manner of manually adjusting the aperture is too complicated, and the ordinary user does not have professional shooting technology, it is difficult to perform accurate adjustment, thereby affecting the effect of shooting photos.
Disclosure of Invention
The embodiment of the invention provides a shooting method and a shooting device, and aims to solve the problem that an aperture is not adjusted accurately manually.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a shooting method, which is applied to a mobile terminal, where the mobile terminal has a camera, and the method includes:
acquiring preview image data acquired by the camera; wherein the preview image data includes structured light encoded information;
determining aperture adjustment parameters of the camera according to the structured light coding information;
adjusting the aperture F value of the camera according to the aperture adjusting parameters;
and shooting by adopting the camera after the aperture F value is adjusted to obtain a target image.
In a second aspect, an embodiment of the present invention further provides a shooting device, which is applied to a mobile terminal, where the mobile terminal has a camera, and the device includes:
the preview image data acquisition module is used for acquiring preview image data acquired by the camera; wherein the preview image data includes structured light encoded information;
the aperture adjustment parameter determining module is used for determining aperture adjustment parameters of the camera according to the structured light coding information;
the aperture adjusting module is used for adjusting the aperture F value of the camera according to the aperture adjusting parameters;
and the target image shooting module is used for shooting by adopting the camera after the aperture F value is adjusted to obtain a target image.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the aperture adjustment parameters of the camera are determined by acquiring the preview image data acquired by the camera according to the structured light coding information in the preview image data, then the aperture F value of the camera is adjusted according to the aperture adjustment parameters, and the camera after adjusting the aperture F value is adopted to shoot to obtain the target image, so that the automatic adjustment of the aperture based on the structured light is realized, the accuracy of aperture adjustment is ensured, and the effect of picture shooting is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced 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 that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of the steps of a photographing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of steps of another photographing method according to an embodiment of the present invention;
fig. 3 is a block diagram of a photographing apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to an 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.
Referring to fig. 1, a flowchart illustrating steps of a photographing method according to an embodiment of the present invention is shown, where the method may be applied to a mobile terminal, which may include, but is not limited to, a mobile phone, a tablet computer, a laptop computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The mobile terminal may have a camera with an adjustable aperture, which is a device for controlling the amount of light that passes through the lens and into a light sensing surface in the camera.
Specifically, the embodiment of the present invention may include the following steps:
step 101, acquiring preview image data acquired by the camera; wherein the preview image data includes structured light encoded information;
in the embodiment of the invention, a user can start the camera of the mobile terminal, enter the preview shooting interface and then adopt the camera to acquire the preview image data.
Wherein the preview image data may comprise structured light encoded information.
As an example, the structured light may be Infrared (IR) light.
In practice, the mobile terminal may have an RGB sensor, a structured light projector, and a structured light sensor, and when the mobile terminal uses the RGB sensor to collect an image, the structured light projector is also used to project a light spot, a light slit, a grating, a grid or stripes onto an object to be measured, and then the structured light sensor is used to collect structured light encoding information of the object to be measured, such as an encoding pattern modulated by the surface of the object to be measured.
In a preferred example, the structured light sensor may be disposed in an RGB sensor of the camera, for example, a half of each G sensing unit is replaced with the structured light sensor, and a part of any color sensing unit is replaced with the structured light sensor, so that the RGB sensor may receive the structured light reflected by the object to be measured, and the opening of the structured light sensor may be reduced on the mobile terminal, thereby improving the aesthetic feeling of the appearance.
Step 102, determining aperture adjustment parameters of the camera according to the structured light coding information;
after the preview image data is obtained, the mobile terminal can determine the depth of field information of the preview image data according to the structured light coding information in the preview image data, and then determine the aperture adjustment parameter of the camera according to the depth of field information so as to adjust the aperture of the camera.
In a preferred embodiment of the present invention, step 102 may comprise the following sub-steps:
a substep 11 of detecting a photographic subject from the preview image data;
in the embodiment of the invention, the mobile terminal can detect the preview image data and determine one or more shooting subjects from the preview image data.
Specifically, the sub-step 11 may include the following sub-steps:
detecting at least two touch operations of a user on the preview image data; determining a target area selected by the at least two touch operations; and detecting a photographic subject in the target area.
In the embodiment of the invention, the mobile terminal can display the preview image data on the shooting preview interface, when the touch operation of the user on the preview image data is detected, for example, 2 points in the preview image data are touched and selected, the mobile terminal determines the target area selected by the touch operation, and further performs image detection on the target area to identify the outline of the shooting subject in the target area.
A substep 12, determining depth information of the shooting subject according to the structured light coding information;
after the shooting subject is determined, the mobile terminal can determine a pixel point corresponding to the shooting subject from the preview image data, further acquire the structured light coding information of the pixel point, decode the structured light coding information, and determine the depth-of-field information of the shooting subject according to the decoded structured light coding information.
Specifically, the mobile terminal may encode the structured light in a spatial encoding manner, such as a DeBruijn sequence encoding, and/or may encode the structured light in a time encoding manner, such as a binary encoding and a gray encoding, where the spatial encoding manner may only project a single preset structured light encoding information, such as a single-frame structured light encoding pattern, and the time encoding manner may project a plurality of different preset structured light encoding information, such as a plurality of different frames of structured light encoding patterns.
For the spatial coding mode, the mobile terminal can obtain the matching relation between the collected structured light coding information and the preset structured light coding information by comparing the collected structured light coding information and the preset structured light coding information after decoding the collected structured light coding information, and calculate the depth of field information of the shooting subject by combining the triangular ranging principle.
According to the time coding mode, the structured light sensor can collect a plurality of structured light coded information modulated by the surface of the second moving object, the obtained plurality of structured light coded information are decoded, and the depth of field information of the shooting main body is obtained through calculation by combining a triangular distance measurement principle.
And a substep 13 of obtaining aperture adjustment parameters corresponding to the depth of field information.
After the depth of field information of the shooting subject is determined, the mobile terminal can acquire aperture adjustment parameters corresponding to the depth of field information so as to adjust the aperture of the camera and ensure the definition of the shooting subject in the image.
Specifically, the substep 13 may comprise the substeps of:
determining a depth of field deviation value of the depth of field information and preset depth of field information; matching the depth of field deviation value in a preset database to obtain a corresponding aperture adjustment parameter;
the preset database can store the corresponding relation between a plurality of depth of field deviation values and aperture adjustment parameters.
In the embodiment of the invention, the preset depth-of-field information exists, and when the depth-of-field information of the shooting subject is the preset depth-of-field information, the definition of the shooting subject in the image is the best.
The depth of field deviation value is obtained by calculating the difference value between the current depth of field information and the preset depth of field information of the shooting main body, then matching is carried out in a preset database, and the corresponding aperture adjustment parameter is found, so that the automatic adjustment of the aperture based on the depth of field information is realized, and the definition of the shooting main body in the image is ensured.
103, adjusting the aperture F value of the camera according to the aperture adjustment parameters;
after the aperture adjustment parameters are obtained, the mobile terminal can adjust the aperture F value of the camera according to the aperture adjustment parameters, so that the definition of the shooting main body in the image is ensured.
The aperture F value is a relative value obtained by the focal length of the lens and the light passing diameter of the lens, the aperture is increased when the aperture F value is reduced, and the aperture is reduced when the aperture F value is increased.
In a preferred embodiment of the present invention, the aperture adjustment parameter may include an F-number adjustment amplitude, and step 103 may include the following sub-steps:
substep 21, obtaining a current aperture F value of the camera;
in the embodiment of the invention, the mobile terminal can acquire the current aperture F value set by the camera.
A substep 22, when the depth of field information is larger than the preset depth of field information, reducing the current F value of the aperture according to the F value adjustment range;
the aperture is the most important factor for determining the depth of field, and is small (large F value), deep, large (small F value), and shallow.
When the detected depth of field information is larger than the preset depth of field information, the mobile terminal can reduce the current F value of the aperture according to the F value adjustment amplitude so as to increase the aperture of the camera and further reduce the depth of field.
And a substep 23, increasing the F value of the current aperture according to the F value adjustment range when the depth of field information is smaller than the preset depth of field information.
When the detected depth of field information is smaller than the preset depth of field information, the mobile terminal can increase the current F value of the aperture according to the F value adjustment range so as to reduce the aperture of the camera and further increase the depth of field.
And step 104, shooting by using the camera with the adjusted aperture F value to obtain a target image.
After the aperture is adjusted, the mobile terminal can shoot by adopting the camera after the aperture F value is adjusted, and when a shooting instruction input by a user is received, a target image is shot.
In the embodiment of the invention, the aperture adjustment parameters of the camera are determined by acquiring the preview image data acquired by the camera according to the structured light coding information in the preview image data, then the aperture F value of the camera is adjusted according to the aperture adjustment parameters, and the camera after adjusting the aperture F value is adopted to shoot to obtain the target image, so that the automatic adjustment of the aperture based on the structured light is realized, the accuracy of aperture adjustment is ensured, and the effect of picture shooting is improved.
Referring to fig. 2, a flowchart illustrating steps of a shooting method according to an embodiment of the present invention is shown, where the method may be applied to a mobile terminal, where the mobile terminal has a camera, and specifically includes the following steps:
step 201, acquiring a reference preview image acquired by the camera;
in the embodiment of the invention, a user can start the camera of the mobile terminal, enter the preview shooting interface and then adopt the camera to acquire the reference preview image data.
Step 202, when it is detected that the reference preview image data does not meet the preset condition, adjusting the focal length of the camera.
After obtaining the reference preview image, the mobile terminal may detect whether the reference preview image data meets a preset condition, and if so, enter step 203, and if not, adjust the focal length of the camera to ensure that the complete shot object is displayed in the preview image data.
For example, when a camera of the mobile terminal is used for scanning the two-dimensional code, and when the two-dimensional code in the shooting preview interface is incomplete and cannot be identified, the mobile terminal can automatically adjust the focal length of the camera so as to completely display the two-dimensional code in the shooting preview interface.
Step 203, acquiring preview image data acquired by the camera;
wherein the preview image data may comprise structured light encoded information.
After the focal length is adjusted, the mobile terminal can adopt the camera to acquire preview image data.
Step 204, determining aperture adjustment parameters of the camera according to the structured light coding information;
after the preview image data is obtained, the mobile terminal can determine the depth of field information of the preview image data according to the structured light coding information in the preview image data, and then determine the aperture adjustment parameter of the camera according to the depth of field information so as to adjust the aperture of the camera.
Step 205, adjusting an aperture F value of the camera according to the aperture adjustment parameter;
after the aperture adjustment parameters are obtained, the mobile terminal can adjust the aperture F value of the camera according to the aperture adjustment parameters, so that the definition of the shooting main body in the image is ensured.
Step 206, shooting by adopting the camera with the adjusted aperture F value to obtain a target image;
after the aperture is adjusted, the mobile terminal can shoot by adopting the camera after the aperture F value is adjusted, and when a shooting instruction input by a user is received, a target image is shot.
And step 207, performing two-dimensional code scanning on the target image.
When the two-dimensional code exists in the target image, the mobile terminal can scan the two-dimensional code of the target image so as to identify the two-dimensional code in the target image.
In the embodiment of the invention, the aperture adjustment parameters of the camera are determined by acquiring the preview image data acquired by the camera according to the structured light coding information in the preview image data, then the aperture F value of the camera is adjusted according to the aperture adjustment parameters, and the camera after adjusting the aperture F value is adopted to shoot to obtain the target image, so that the automatic adjustment of the aperture based on the structured light is realized, the accuracy of aperture adjustment is ensured, and the effect of picture shooting is improved.
Moreover, the focal length of the camera is adjusted before the F value of the aperture is adjusted, and two-dimensional code scanning is performed on the target image after the target image is shot, so that the accuracy of two-dimensional code scanning is guaranteed, and the efficiency of two-dimensional code scanning is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram of a shooting device according to an embodiment of the present invention is shown, where the shooting device may be applied to a mobile terminal, where the mobile terminal has a camera, and specifically includes the following modules:
a preview image data obtaining module 301, configured to obtain preview image data collected by the camera; wherein the preview image data includes structured light encoded information;
an aperture adjustment parameter determining module 302, configured to determine an aperture adjustment parameter of the camera according to the structured light encoding information;
an aperture adjusting module 303, configured to adjust an aperture F value of the camera according to the aperture adjusting parameter;
and a target image shooting module 304, configured to shoot by using the camera with the adjusted aperture F value, so as to obtain a target image.
In a preferred embodiment of the present invention, the aperture adjustment parameter determining module 302 includes:
a subject detection sub-module for determining a subject from the preview image data;
the depth of field information determining submodule is used for determining the depth of field information of the shooting subject according to the structured light coding information;
and the aperture adjustment parameter acquisition submodule is used for acquiring aperture adjustment parameters corresponding to the depth of field information.
In a preferred embodiment of the present invention, the aperture adjustment parameter obtaining sub-module includes:
the depth of field deviation value determining unit is used for determining the depth of field deviation value of the depth of field information and preset depth of field information;
the aperture adjustment parameter matching unit is used for matching the depth of field deviation value in a preset database to obtain corresponding aperture adjustment parameters; the preset database stores the corresponding relation between a plurality of depth of field deviation values and aperture adjustment parameters.
In a preferred embodiment of the present invention, the photographic subject detection sub-module includes:
a touch operation detection unit configured to detect at least two touch operations of a user with respect to the preview image data;
the target area determining unit is used for determining the target area selected by the at least two touch operations;
a target area detection unit for detecting a subject in the target area.
In a preferred embodiment of the present invention, the aperture adjustment parameter includes an F-number adjustment range, and the aperture adjustment module 303 includes:
the current aperture value acquisition submodule is used for acquiring a current aperture F value of the camera;
the F value reducing submodule is used for reducing the current aperture F value according to the F value adjusting amplitude when the depth of field information is larger than the preset depth of field information;
and the F value increasing submodule is used for increasing the current aperture F value according to the F value adjusting range when the depth of field information is smaller than the preset depth of field information. In a preferred embodiment of the present invention, the method further comprises:
the reference preview image acquisition module is used for acquiring a reference preview image acquired by the camera;
and the focal length adjusting module is used for adjusting the focal length of the camera when detecting that the reference preview image data does not meet the preset condition.
In a preferred embodiment of the present invention, the method further comprises:
a two-dimensional code scanning module for scanning the target image with two-dimensional code
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
Figure 4 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Note that the mobile terminal 400 further has a camera (not shown in the figure).
A processor 410, configured to obtain preview image data acquired by the camera; wherein the preview image data includes structured light encoded information; determining aperture adjustment parameters of the camera according to the structured light coding information; adjusting the aperture F value of the camera according to the aperture adjusting parameters; and shooting by adopting the camera after the aperture F value is adjusted to obtain a target image.
In the embodiment of the invention, the aperture adjustment parameters of the camera are determined by acquiring the preview image data acquired by the camera according to the structured light coding information in the preview image data, then the aperture F value of the camera is adjusted according to the aperture adjustment parameters, and the camera after adjusting the aperture F value is adopted to shoot to obtain the target image, so that the automatic adjustment of the aperture based on the structured light is realized, the accuracy of aperture adjustment is ensured, and the effect of picture shooting is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application to be identified (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, applications to be identified, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-mentioned shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A shooting method is applied to a mobile terminal, wherein the mobile terminal is provided with a camera, and the method comprises the following steps:
acquiring preview image data acquired by the camera; wherein the preview image data includes structured light encoded information;
determining aperture adjustment parameters of the camera according to the structured light coding information;
adjusting the aperture F value of the camera according to the aperture adjusting parameters;
shooting by adopting a camera after adjusting the F value of the aperture to obtain a target image;
wherein the step of determining aperture adjustment parameters of the camera according to the structured light encoding information comprises:
detecting a photographic subject from the preview image data;
determining depth-of-field information of the shooting subject according to the structured light coding information;
acquiring aperture adjustment parameters corresponding to the depth of field information;
the step of acquiring the aperture adjustment parameter corresponding to the depth of field information includes:
determining a depth of field deviation value of the depth of field information and preset depth of field information;
matching the depth of field deviation value in a preset database to obtain a corresponding aperture adjustment parameter; the preset database stores the corresponding relation between a plurality of depth of field deviation values and aperture adjustment parameters.
2. The method according to claim 1, wherein the step of detecting a photographic subject from the preview image data comprises:
detecting at least two touch operations of a user on the preview image data;
determining a target area selected by the at least two touch operations;
and detecting a photographic subject in the target area.
3. The method of claim 1, wherein the aperture adjustment parameter comprises an F-number adjustment magnitude, and wherein adjusting the F-number of the aperture of the camera according to the aperture adjustment parameter comprises:
acquiring a current aperture F value of the camera;
when the depth of field information is larger than the preset depth of field information, reducing the current aperture F value according to the F value adjustment range;
and when the depth of field information is smaller than the preset depth of field information, increasing the current aperture F value according to the F value adjustment range.
4. The method of claim 1, further comprising, prior to the step of obtaining preview image data captured by the camera:
acquiring a reference preview image acquired by the camera;
and when the reference preview image data is detected not to meet the preset condition, adjusting the focal length of the camera.
5. The method according to claim 1, wherein after the step of obtaining the target image by using the camera after adjusting the aperture, the method further comprises:
and scanning the target image by a two-dimensional code.
6. A photographing apparatus applied to a mobile terminal having a camera, the apparatus comprising:
the preview image data acquisition module is used for acquiring preview image data acquired by the camera; wherein the preview image data includes structured light encoded information;
the aperture adjustment parameter determining module is used for determining aperture adjustment parameters of the camera according to the structured light coding information;
the aperture adjusting module is used for adjusting the aperture F value of the camera according to the aperture adjusting parameters;
the target image shooting module is used for shooting by adopting the camera after the aperture F value is adjusted to obtain a target image;
wherein the aperture adjustment parameter determination module comprises:
a subject detection sub-module for determining a subject from the preview image data;
the depth of field information determining submodule is used for determining the depth of field information of the shooting subject according to the structured light coding information;
the aperture adjustment parameter acquisition submodule is used for acquiring aperture adjustment parameters corresponding to the depth of field information;
wherein, the aperture adjustment parameter acquisition submodule comprises:
the depth of field deviation value determining unit is used for determining the depth of field deviation value of the depth of field information and preset depth of field information;
the aperture adjustment parameter matching unit is used for matching the depth of field deviation value in a preset database to obtain corresponding aperture adjustment parameters; the preset database stores the corresponding relation between a plurality of depth of field deviation values and aperture adjustment parameters.
7. The apparatus of claim 6, wherein the photographic subject detection sub-module comprises:
a touch operation detection unit configured to detect at least two touch operations of a user with respect to the preview image data;
the target area determining unit is used for determining the target area selected by the at least two touch operations;
a target area detection unit for detecting a subject in the target area.
8. The apparatus of claim 6, wherein the aperture adjustment parameter comprises an F-value adjustment magnitude, and wherein the aperture adjustment module comprises:
the current aperture value acquisition submodule is used for acquiring a current aperture F value of the camera;
the F value reducing submodule is used for reducing the current aperture F value according to the F value adjusting amplitude when the depth of field information is larger than the preset depth of field information;
and the F value increasing submodule is used for increasing the current aperture F value according to the F value adjusting range when the depth of field information is smaller than the preset depth of field information.
9. The apparatus of claim 6, further comprising:
the reference preview image acquisition module is used for acquiring a reference preview image acquired by the camera;
and the focal length adjusting module is used for adjusting the focal length of the camera when detecting that the reference preview image data does not meet the preset condition.
10. The apparatus of claim 6, further comprising:
and the two-dimensional code scanning module is used for scanning the two-dimensional code of the target image.
CN201711487968.1A 2017-12-29 2017-12-29 Shooting method and device Active CN108174101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711487968.1A CN108174101B (en) 2017-12-29 2017-12-29 Shooting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711487968.1A CN108174101B (en) 2017-12-29 2017-12-29 Shooting method and device

Publications (2)

Publication Number Publication Date
CN108174101A CN108174101A (en) 2018-06-15
CN108174101B true CN108174101B (en) 2020-09-18

Family

ID=62516345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711487968.1A Active CN108174101B (en) 2017-12-29 2017-12-29 Shooting method and device

Country Status (1)

Country Link
CN (1) CN108174101B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268703A (en) * 2021-12-27 2022-04-01 安徽淘云科技股份有限公司 Imaging adjusting method and device during screen scanning, storage medium and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221341A (en) * 2007-01-08 2008-07-16 华晶科技股份有限公司 Initialization method for field depth composition
US8593565B2 (en) * 2011-03-25 2013-11-26 Gary S. Shuster Simulated large aperture lens
CN106210474A (en) * 2016-08-12 2016-12-07 信利光电股份有限公司 A kind of image capture device, virtual reality device

Also Published As

Publication number Publication date
CN108174101A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN109639970B (en) Shooting method and terminal equipment
CN109361865B (en) Shooting method and terminal
CN107817939B (en) Image processing method and mobile terminal
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN108989672B (en) Shooting method and mobile terminal
CN110113528B (en) Parameter obtaining method and terminal equipment
CN108989678B (en) Image processing method and mobile terminal
CN107846583B (en) Image shadow compensation method and mobile terminal
CN110602401A (en) Photographing method and terminal
CN109068116B (en) Image processing method and device based on supplementary lighting, mobile terminal and storage medium
CN108513067B (en) Shooting control method and mobile terminal
CN110300267B (en) Photographing method and terminal equipment
CN107730460B (en) Image processing method and mobile terminal
CN108038825B (en) Image processing method and mobile terminal
CN108307106B (en) Image processing method and device and mobile terminal
CN108683850B (en) Shooting prompting method and mobile terminal
CN109495616B (en) Photographing method and terminal equipment
CN111401463B (en) Method for outputting detection result, electronic equipment and medium
CN109727212B (en) Image processing method and mobile terminal
CN110519503B (en) Method for acquiring scanned image and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN111031178A (en) Video stream clipping method and electronic equipment
CN109639981B (en) Image shooting method and mobile terminal
CN109104573B (en) Method for determining focusing point and terminal equipment
CN109819331B (en) Video call method, device and mobile terminal

Legal Events

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