WO2017008353A1 - Capturing method and user terminal - Google Patents
Capturing method and user terminal Download PDFInfo
- Publication number
- WO2017008353A1 WO2017008353A1 PCT/CN2015/085884 CN2015085884W WO2017008353A1 WO 2017008353 A1 WO2017008353 A1 WO 2017008353A1 CN 2015085884 W CN2015085884 W CN 2015085884W WO 2017008353 A1 WO2017008353 A1 WO 2017008353A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- camera
- depth
- focus position
- user terminal
- preview image
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/958—Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging
- H04N23/959—Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging by adjusting depth of field during image capture, e.g. maximising or setting range based on scene characteristics
Definitions
- the present invention relates to the field of electronic technologies, and in particular, to a photographing method and a user terminal.
- the camera mode that focuses on the camera first is a very playable camera mode, which is popular among users. After taking a picture, the focus is to use a plurality of photos with different focus positions to synthesize a picture in a special format. When the user clicks on the image, the image will display different images of the focus position along with the user's click position, and can be done wherever it is, and there is clarity.
- Embodiments of the present invention disclose a photographing method and a user terminal, which are capable of automatically setting a focus position and performing focus photographing.
- the embodiment of the invention discloses a shooting method, and the method comprises:
- Receiving the autofocus photographing instruction acquiring the first preview image by the first camera and acquiring the second preview image by the second camera in response to the autofocus photographing instruction;
- the depth of field layer includes one of the objects or a plurality of the objects having the same object distance from the user terminal;
- the target focus position is focused and a photograph is taken by the first camera and/or the second camera.
- the embodiment of the invention further discloses a user terminal, where the user terminal comprises:
- the acquiring module is configured to: when the auto focus shooting instruction is received, acquire the first preview image by using the first camera, and acquire the second preview image by using the second camera in response to the auto focus shooting instruction;
- a calculation module configured to calculate, according to the first preview image and the second preview image, an object distance of a subject included in the first preview image and the second preview image from a user terminal;
- a generating module configured to generate at least one depth of field layer according to the calculated object distance, where the depth of field layer includes one of the subject or a plurality of the objects having the same object distance from the user terminal;
- the acquiring module is further configured to acquire a target focus position corresponding to the depth of field layer according to a preset correspondence between the object distance and the focus position;
- a focusing module configured to focus the target focus position and take a photo by the first camera and/or the second camera.
- the user terminal when the user terminal receives the auto focus shooting instruction, acquires the first preview image through the first camera and acquires the second preview image through the second camera in response to the auto focus shooting instruction; Calculating, according to the first preview image and the second preview image, an object distance of the subject included in the first preview image and the second preview image from the user terminal; the user terminal generates at least one depth of field layer according to the calculated object distance, the depth map
- the layer includes a subject of the first preview image and the second preview image or a plurality of objects having the same object distance from the user terminal; and the user terminal acquires the depth map according to the correspondence between the preset object distance and the focus position.
- the target focus position corresponding to the layer, and the target focus position is focused and photographed by the first camera and/or the second camera. It can be seen that the embodiment of the present invention can automatically set the focus position and perform focus shooting.
- FIG. 1 is a schematic flow chart of a photographing method disclosed in an embodiment of the present invention.
- FIG. 2 is a schematic flow chart of another shooting method disclosed in an embodiment of the present invention.
- FIG. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
- Embodiments of the present invention disclose a photographing method and a user terminal, which are capable of automatically setting a focus position and performing focus photographing. The details are described below separately.
- FIG. 1 is a schematic flowchart diagram of a photographing method according to an embodiment of the present invention. As shown in FIG. 1, the photographing method may include the following steps.
- the user terminal when the user terminal receives the auto focus shooting instruction, the user terminal responds to the auto focus shooting instruction, acquires the first preview image through the first camera, and acquires the second preview image through the second camera.
- the user terminal may include, but is not limited to, a user terminal having a camera function, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer.
- the operating system of the user terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows operating system, and the like, which are not limited by the embodiment of the present invention.
- the user terminal is configured with two cameras, that is, the user terminal has a dual camera.
- the two cameras are referred to as “first camera” and “second camera”, respectively, but it is worth noting that the "first camera” and the “second camera” are for illustrative purposes only.
- the user may select an auto focus mode at the user terminal before the user terminal receives the auto focus shooting instruction. After the user selects the autofocus mode, the user can input an autofocus shooting command.
- the focus mode of the user terminal may include, but is not limited to, a manual focus mode and an auto focus mode.
- the manual focus mode requires the user to manually set the focus position, and the user terminal performs focus shooting on the focus position manually set by the user.
- the user sets one or Multiple focus positions allow the user terminal to focus on shooting.
- the user terminal calculates the object distance of the subject included in the first preview image and the second preview image from the user terminal according to the acquired first preview image and the second preview image (ie, the subject is away from the user terminal) the distance). Specifically, the user terminal determines the subject included in the first preset image and the second preset image, and then calculates the object distance of the subject from the user terminal. Optionally, the user terminal may only determine the characters included in the first preset image and the second preset image, and calculate the object distance of the character to the user terminal, which is not limited in the embodiment of the present invention. Since the object distance from the subject to the user terminal is a well-known technique in the art, the embodiment of the present invention will not be described.
- the user terminal will recognize that the first preview image and the second preview image include the character A and the character B, and the user The terminal will calculate the distance between the character A and the character B to the user terminal, respectively.
- the user preview after the user terminal calculates the distance from the subject included in the first preview image and the second preview image to the user terminal, the user preview generates a second preview image or a second preview image according to the calculated object distance.
- Depth of field map The depth map consists of at least one depth of field layer.
- each of the depth maps of the depth map includes a subject of the first preview image or a first preview image from the user terminal Multiple subjects with the same object distance.
- each of the depth maps of the depth map includes a subject of the second preview image or a second preview image from the user terminal Multiple subjects with the same object distance.
- the user terminal may generate a depth map for the first preview image according to the calculated object distance.
- the depth map includes all of the first preview images (ie, character A, character B, and character C), and the depth map is composed of at least one depth of field layer. If the object A and the character B are different from the user terminal, and the object B and the character C are the same from the user terminal, the depth map is composed of two depth of field layers, wherein one depth map includes the character A and one The depth of field layer includes the character B and Character C.
- the target focus position corresponding to the depth of field layer is acquired according to the correspondence between the preset object distance and the focus position.
- cameras are generally classified into fixed focus, auto focus, optical image stabilization, array cameras, and the like.
- the most widely used are fixed focus and auto focus cameras.
- the camera that can automatically focus is usually composed of a lens, a motor, a color filter, a base, an image sensor, a motor drive chip, a circuit substrate, a connector, a capacitor, and the like.
- the devices associated with embodiments of the present invention are primarily lenses and motors.
- the lens is used to collect light and project the scene onto the surface of the image sensor.
- the position of the lens directly determines the clarity of the captured image.
- the motor is used to drive the lens to the focus position (ie, the focus position corresponding to the subject) to achieve focus, so that the lens projects a clear image to the image sensor.
- the target focus position is the position where the camera is located when the camera captures the subject matter included in the depth of field layer.
- the specific implementation manner in which the user terminal acquires the target focus position corresponding to the depth of field layer may include the following steps:
- the generated depth map may be composed of a plurality of depth of field layers. Therefore, some important depth of field layers may be screened to obtain only the focus position corresponding to the important depth of field layer, and the lens is moved to the focus position to achieve focusing.
- the face recognition technology can be used to identify whether the face is included in the depth of field layer; if a depth of field layer includes a person If the user terminal determines that the depth of field layer includes a character, the user terminal acquires the depth of field layer as the first target depth of field layer.
- the specific implementation manner in which the user terminal acquires the target focus position corresponding to the depth of field layer may include the following steps:
- the user terminal can obtain the depth of field layer with the object distance less than the preset distance from the generated depth of field layer as the second target.
- the depth of field layer is obtained, and the target focus position corresponding to the second target depth of field layer is acquired according to the correspondence between the preset object distance and the focus position.
- the specific implementation manner in which the user terminal acquires the target focus position corresponding to the depth of field layer may include the following steps:
- the user terminal can obtain the number of included objects from the generated depth of field layer.
- a depth map layer larger than the preset number is used as the third target depth map layer, and the target focus position corresponding to the third target depth map layer is acquired according to the correspondence between the preset object distance and the focus position.
- a specific implementation manner in which the user terminal focuses on the target focus position and takes a photo through the first camera and/or the second camera is:
- the user terminal moves the lens of the first camera and/or the lens of the second camera to a target focus position, and performs shooting of the picture through the first camera and/or the second camera.
- the user terminal may pass the first The camera's motor moves the lens of the first camera to the target focus position to achieve focus, and performs image capture through the first camera after focusing; or when the acquired target focus position is one, the user terminal can pass the motor of the second camera The lens of the second camera is moved to the target focus position to achieve the focus, and the image is taken by the second camera after the focus is performed, which is not limited in the embodiment of the present invention.
- the user terminal when the acquired target focus position is multiple, can simultaneously move the lenses of the first camera and the second camera to different target focus positions, respectively achieve focus, and pass the first camera after focusing.
- the picture is taken separately from the second camera until the picture corresponding to all the target focus positions is taken.
- the user terminal when there is a target focus position 1, a target focus position 2, a target focus position 3, and a target focus position 4, the user terminal can move the lens of the first camera to the target focus position 1 by the motor of the first camera to achieve focusing, And after focusing, the picture 1 is taken by the first camera; at the same time, the user terminal can move the lens of the second camera to the target focus position 2 through the motor of the second camera to achieve focusing, and take a picture through the second camera after focusing 2 .
- the user terminal After the first camera captures the picture 1, the user terminal continues to move the lens of the first camera to the target focus position 3 through the motor of the first camera to achieve focusing, and after shooting, the picture 3 is taken by the first camera; After the camera takes the picture 2, the user terminal continues to move the lens of the second camera to the target focus position 4 through the motor of the second camera to achieve focusing, and takes the picture 4 through the second camera after focusing.
- this method can improve the shooting rate of the picture and increase the user experience.
- the user terminal when the user terminal receives the auto focus shooting instruction, acquires the first preview image through the first camera and acquires the second preview image through the second camera in response to the auto focus shooting instruction;
- the user terminal calculates an object distance of the subject included in the first preview image and the second preview image from the user terminal according to the first preview image and the second preview image;
- the user terminal generates at least one depth of field layer according to the calculated object distance,
- the depth of field layer includes one subject of the first preview image and the second preview image or a plurality of objects having the same object distance from the user terminal; the user terminal acquires according to the correspondence between the preset object distance and the focus position.
- the target focus position corresponding to the depth of field layer, and the target focus position is focused and photographed by the first camera and/or the second camera. It can be seen that, by using the embodiment of the invention, the focus position can be automatically set and the focus shooting can be performed, thereby avoiding the user manually setting the focus position and improving the user experience.
- FIG. 2 is a schematic flowchart diagram of a photographing method according to an embodiment of the present invention. As shown in FIG. 2, the photographing method may include the following steps.
- the user terminal receives a camera startup command.
- the camera startup instruction is sent to the user terminal; after the user terminal receives the camera startup instruction, the shooting application is started.
- the user can input a camera startup command by operating a hardware button and an application icon provided on the user terminal.
- the camera startup command may also be sent by using a third-party application, for example, an application, a description, and the like for publishing a picture.
- the embodiment of the present invention is not limited.
- the user terminal starts the first camera and the second camera in response to the startup command.
- the user terminal after receiving the camera startup command, the user terminal will start the first camera and the second camera in response to the startup command.
- the user terminal is configured with two cameras, that is, the user terminal has a dual camera.
- the two cameras are referred to as “first camera” and “second camera”, respectively, but it is worth noting that the "first camera” and the “second camera” are for illustrative purposes only.
- the user terminal determines whether the current focus mode is an auto focus mode.
- the current focus mode is the auto focus mode.
- the focus mode of the user terminal may include a manual focus mode and an auto focus mode.
- the manual focus mode requires the user to manually set the focus position, and the user terminal performs focus shooting on the focus position manually set by the user.
- the user sets one or more focus positions by previewing the image, so that the user terminal performs focus shooting.
- step S204 when the user terminal determines that the current focus mode is the auto focus mode, step S204 is performed.
- the user terminal determines that the current focus mode is not the auto focus mode, the user terminal detects whether the user inputs a manual focus position setting command.
- the user terminal having multiple focus modes will facilitate the user to better set the focus position, and provide more focus position setting modes for the user, which is beneficial to improving the user experience.
- the user terminal calculates, according to the first preview image and the second preview image, an object distance of the subject included in the first preview image and the second preview image from a user terminal.
- the user terminal generates at least one depth of field layer according to the calculated object distance, where the depth of field layer includes one subject or a plurality of objects having the same object distance from the user terminal.
- the user terminal acquires a target focus position corresponding to the depth of field layer according to a mapping relationship between the object distance and the focus position set in advance.
- the user terminal focuses on the target focus position through the first camera and/or the second camera and takes a photo.
- the user terminal when the user terminal receives the auto focus shooting instruction, the user terminal responds to the auto focus shooting instruction to acquire the first preview image through the first camera, and Acquiring, by the second camera, the second preview image; the user terminal calculating, according to the first preview image and the second preview image, the object distance of the subject included in the first preview image and the second preview image from the user terminal; The object distance generates at least one depth of field layer, wherein the depth of field layer includes one subject of the first preview image and the second preview image or a plurality of objects having the same object distance from the user terminal; the user terminal according to the preset object The distance from the focus position is obtained, the target focus position corresponding to the depth of field layer is acquired, and the target focus position is focused and the photograph is taken by the first camera and/or the second camera. It can be seen that, by using the embodiment of the invention, the focus position can be automatically set and the focus shooting can be performed, thereby avoiding the user manually setting the focus position
- FIG. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention.
- the user terminal shown in FIG. 3 may include an obtaining module 301, a calculating module 302, a generating module 303, and a focusing module 304. among them:
- the obtaining module 301 is configured to: when the auto focus shooting instruction is received, acquire the first preview image through the first camera and acquire the second preview image through the second camera in response to the auto focus shooting instruction.
- the acquiring module 301 of the user terminal when the user terminal receives the auto focus shooting instruction, responds to the auto focus shooting instruction, acquires the first preview image through the first camera, and acquires the second preview through the second camera. image.
- the user terminal may include, but is not limited to, a user terminal having a camera function, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer.
- the operating system of the terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows operating system, and the like, which are not limited by the embodiment of the present invention.
- the user terminal is configured with two cameras, that is, the user terminal has a dual camera.
- the two cameras are referred to as “first camera” and “second camera”, respectively, but it is worth noting that the "first camera” and the “second camera” are for illustrative purposes only.
- the user may select an auto focus mode at the user terminal before the user terminal receives the auto focus shooting instruction.
- the user can input an autofocus shooting command.
- the focus mode of the user terminal may include, but is not limited to, a manual focus mode and an auto focus mode.
- the manual focus mode requires the user to manually set the focus position, and the user terminal performs focus shooting on the focus position manually set by the user.
- the user sets one or more focus positions by previewing the image, so that the user terminal performs focus shooting.
- the calculating module 302 is configured to calculate an object distance of the subject included in the first preview image and the second preview image from the user terminal according to the first preview image and the second preview image.
- the calculation module 302 calculates the object distance of the subject included in the first preview image and the second preview image from the user terminal according to the first preview image and the second preview image acquired by the obtaining module 301 (ie, shooting The distance from the user terminal). Specifically, the calculation module 302 will determine the subject included in the first preset image and the second preset image, and then calculate the object distance of the subject from the user terminal. Optionally, the calculation module 302 may only determine the characters included in the first preset image and the second preset image, and calculate the object distance of the character to the user terminal, which is not limited in the embodiment of the present invention. Since the object distance from the subject to the user terminal is a well-known technique in the art, the embodiment of the present invention will not be described.
- the calculation module 302 will recognize that the first preview image and the second preview image include the character A and the character B.
- the calculation module 302 will calculate the distances of the person A and the person B to the user terminal, respectively.
- the generating module 303 is configured to generate at least one depth of field layer according to the calculated object distance, where the depth of field layer includes one of the objects or a plurality of the objects having the same object distance from the user terminal.
- the generating module 303 calculates the object distance according to the calculation.
- a depth map is generated for the first preview image or the second preview image.
- the depth map consists of at least one depth of field layer.
- each of the depth maps of the depth map includes one subject of the first preview image or the user terminal including the first preview image Multiple subjects with the same object distance.
- each of the depth map layers of the depth map includes one subject of the second preview image or the user terminal including the second preview image. Multiple subjects with the same object distance.
- the generating module 303 may generate a depth map for the first preview image according to the calculated object distance.
- the depth map includes all of the first preview images (ie, character A, character B, and character C), and the depth map is composed of at least one depth of field layer. If the object A and the character B are different from the user terminal, and the object B and the character C are the same from the user terminal, the depth map is composed of two depth of field layers, wherein one depth map includes the character A and one The depth of field layer includes character B and character C.
- the acquiring module 301 is further configured to acquire a target focus position corresponding to the depth of field layer according to a preset correspondence between the object distance and the focus position.
- the acquiring module 301 acquires the target in-focus position corresponding to the depth of field layer according to the correspondence between the preset object distance and the in-focus position.
- cameras are generally classified into fixed focus, auto focus, optical image stabilization, array cameras, and the like.
- the most widely used are fixed focus and auto focus cameras.
- the camera that can automatically focus is usually composed of a lens, a motor, a color filter, a base, an image sensor, a motor drive chip, a circuit substrate, a connector, a capacitor, and the like.
- the devices associated with embodiments of the present invention are primarily lenses and motors.
- the lens is used to collect light and project the scene onto the surface of the image sensor.
- the position of the lens directly determines the clarity of the captured image.
- the motor is used to drive the lens to the focus position (ie, the focus position corresponding to the subject) to achieve focus, so that the lens projects a clear image to the image sensor.
- the target focus position is the position where the camera is located when the camera captures the subject matter included in the depth of field layer.
- the obtaining module 301 is specifically configured to:
- the target focus position corresponding to the first target depth map layer is acquired according to a correspondence relationship between the object distance and the focus position set in advance.
- the generated depth map may be composed of a plurality of depth of field layers. Therefore, some important depth of field layers may be screened to obtain only the focus position corresponding to the important depth of field layer, and the lens is moved to the focus position to achieve focusing.
- the acquisition module 301 can identify whether the face is included in the depth of field layer by using a face recognition technology; if a depth of field layer includes a face, Then, the obtaining module 301 determines that the depth of field layer includes a character, and the acquiring module 301 acquires the depth of field layer as the first target depth of field layer.
- the obtaining module 301 is specifically configured to:
- the target focus position corresponding to the second target depth map layer is acquired according to a correspondence relationship between the object distance and the focus position set in advance.
- the acquiring module 301 can obtain a depth of field layer whose object distance is less than a preset distance from the generated depth of field layer as a second.
- the target depth of field layer is obtained, and the target focus position corresponding to the second target depth of field layer is acquired according to the correspondence between the preset object distance and the focus position.
- the obtaining module 301 is specifically configured to:
- the number of the included objects is greater than the preset number of the third target depth of field layer
- the target focus position corresponding to the third target depth map layer is acquired according to a correspondence relationship between the object distance and the focus position set in advance.
- the obtaining module 301 can obtain, from the generated depth of field layer, that the number of the included objects is greater than the preset number of depth of field layers as the third target depth of field layer, according to the preset object A target focus position corresponding to the third target depth of field layer is acquired corresponding to the focus position.
- the focusing module 304 is configured to focus the target focus position and take a photo by the first camera and/or the second camera.
- the focusing module 304 is specifically configured to:
- the lens of the first camera and/or the lens of the second camera is moved to a target focus position, and the picture is taken by the first camera and/or the second camera.
- the focus module 304 when the target focus position acquired by the acquisition module 301 is one, can move the lens of the first camera to the target focus position by using the motor of the first camera to achieve focusing, and pass the first after focusing.
- a camera performs picture capture; or when the target focus position acquired by the acquisition module 301 is one, the focus module 304 can move the lens of the second camera to the target focus position through the motor of the second camera to achieve focus, and pass after focusing
- the second camera performs picture shooting, which is not limited in the embodiment of the present invention.
- the focus module 304 can simultaneously move the lenses of the first camera and the second camera to different target focus positions, respectively, to achieve focus, and after focusing The picture is taken by the first camera and the second camera respectively until the pictures corresponding to all the target focus positions are taken. For example, when there is a target focus position 1, a target focus position 2, a target focus position 3, and a target focus position 4, the focus module 304 can move the lens of the first camera to the target focus position 1 by the motor of the first camera to achieve focusing.
- the focus module 304 can move the lens of the second camera to the target focus position 2 through the motor of the second camera to achieve focusing, and after shooting through the second camera Picture 2.
- the focusing module 304 continues to move the lens of the first camera to the target focus position 3 through the motor of the first camera to achieve focusing, and captures the picture 3 through the first camera after focusing;
- the focusing module 304 continues to move the lens of the second camera to the target focus position 4 through the motor of the second camera to achieve focusing, and takes the picture 4 through the second camera after focusing.
- this method can improve the shooting rate of the picture and increase the user experience.
- FIG. 4 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
- the user terminal shown in FIG. 4 is optimized by the user terminal shown in FIG. 3.
- the user terminal shown in FIG. 4 may include a receiving module 305, a starting module 306, and a determining module 307 in addition to all the modules of the user terminal shown in FIG. among them:
- the receiving module 305 is configured to receive a camera startup command.
- the camera startup command is sent to the user terminal; after the receiving module 305 receives the camera startup command, the shooting application is started.
- the user can input a camera startup command by operating a hardware button and an application icon provided on the user terminal.
- the camera startup command may also be sent by using a third-party application, for example, an application, a description, and the like for publishing a picture.
- the embodiment of the present invention is not limited.
- the startup module 306 is configured to start the first camera and the second camera in response to the startup instruction.
- the startup module 306 will activate the first camera and the second camera in response to the startup command.
- the user terminal is configured with two cameras, that is, the user terminal has a dual camera.
- the two cameras are referred to as “first camera” and “second camera”, respectively, but it is worth noting that the "first camera” and the “second camera” are for illustrative purposes only.
- the determining module 307 is configured to determine whether the current focus mode is an auto focus mode, and when determining that the current focus mode is the auto focus mode, triggering the acquiring module 301 to perform the automatic focus shooting when the auto focus is received.
- a shooting instruction a step of acquiring a first preview image by the first camera and acquiring a second preview image by the second camera.
- the determining module 307 determines whether the current focus mode is the auto focus mode.
- the focus mode of the user terminal may include a manual focus mode and an auto focus mode.
- the manual focus mode requires the user to manually set the focus position, and the user terminal performs focus shooting on the focus position manually set by the user.
- the user sets one or more focus positions by previewing the image, so that the user terminal performs focus shooting.
- the user terminal detects whether the user inputs a manual focus position setting command.
- the user terminal having multiple focus modes will facilitate the user to better set the focus position, and provide more focus position setting modes for the user, which is beneficial to improving the user experience.
- the acquiring module acquires the first preview image through the first camera in response to the autofocus shooting instruction, and acquires the second preview image through the second camera. a preview image; the calculation module calculates, according to the first preview image and the second preview image, an object distance of the subject included in the first preview image and the second preview image from the user terminal; and the generating module generates at least one depth of field according to the calculated object distance a layer, the depth of field layer includes a first object of the first preview image and the second preview image or a plurality of objects having the same object distance from the user terminal; and the acquiring module corresponds to the focus position according to the preset object distance Relationship, obtain a target focus position corresponding to the depth of field layer, and focus the target focus position and take a photo by the focus module through the first camera and/or the second camera. It can be seen that, by using the embodiment of the invention, the focus position can be automatically set and the focus shooting can be performed
- the user terminal module can be combined, divided, and deleted according to actual needs.
- a person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct the user terminal device related hardware, and the program can be stored in a computer readable storage medium, the storage medium. It may include: a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
A capturing method and user terminal. The method comprises: upon receiving an auto-focus and capture instruction, responding to the auto-focus and capture instruction, acquiring a first preview image via a first camera, and acquiring a second preview image via a second camera (S101); calculating, according to the first preview image and second preview image, an object distance to a user terminal from a captured object contained in the first preview image and second preview image (S102); generating, according to the calculated object distance, at least one depth-of-field layer, wherein the number of captured objects contained in the depth-of-field layer is one object or a plurality of objects, and the plurality of captured objects each have the same object distance to the user terminal (S103); acquiring, according to a predetermined corresponding relationship between the object distance and a focus position, a target focus position corresponding to the depth-of-field layer (S104); and focusing, via the first camera and/or the second camera, with respect to the target focus position and capturing a picture (S105). Therefore, the capturing method and user terminal can automatically configure a focus position and perform focusing and capturing.
Description
本申请要求于2015年7月10日提交中国专利局、申请号为201510404513.3,发明名称为“一种拍摄方法及用户终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510404513.3, the entire disclosure of which is incorporated herein by reference. .
本发明涉及电子技术领域,尤其涉及一种拍摄方法及用户终端。The present invention relates to the field of electronic technologies, and in particular, to a photographing method and a user terminal.
先拍照后对焦的拍照模式是一种可玩性很强的拍照模式,受到广大用户的喜欢。先拍照后对焦是利用多张对焦位置不同的照片,合成一张特需格式的图片。当用户对这张图片进行点击时,图片会随着用户的点击位置不同,显示不同对焦点位置的图片,能够做到点哪里,那里就清晰。The camera mode that focuses on the camera first is a very playable camera mode, which is popular among users. After taking a picture, the focus is to use a plurality of photos with different focus positions to synthesize a picture in a special format. When the user clicks on the image, the image will display different images of the focus position along with the user's click position, and can be done wherever it is, and there is clarity.
然而实践发现,在目前的先拍照后对焦的拍照模式中,由于需要拍摄多张对焦位置不同的照片,就需要用户手动设定对焦位置,使用户终端对对焦位置进行对焦拍摄;现有技术不能自动设定对焦位置进行对焦拍摄。However, in practice, it is found that in the current photographing mode in which the photographing is performed first, since it is necessary to take a plurality of photographs with different in-focus positions, the user needs to manually set the in-focus position, so that the user terminal performs focus shooting on the in-focus position; The focus position is automatically set for focus shooting.
发明内容Summary of the invention
本发明实施例公开了一种拍摄方法及用户终端,能够自动地设定对焦位置并进行对焦拍摄。Embodiments of the present invention disclose a photographing method and a user terminal, which are capable of automatically setting a focus position and performing focus photographing.
本发明实施例公开了一种拍摄方法,所述方法包括:The embodiment of the invention discloses a shooting method, and the method comprises:
当接收到自动对焦拍摄指令时,响应所述自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像;Receiving the autofocus photographing instruction, acquiring the first preview image by the first camera and acquiring the second preview image by the second camera in response to the autofocus photographing instruction;
根据所述第一预览图像和所述第二预览图像,计算所述第一预览图像和所述第二预览图像所包括的拍摄物离用户终端的物距;Calculating, according to the first preview image and the second preview image, an object distance of a subject included in the first preview image and the second preview image from a user terminal;
根据计算的所述物距生成至少一个景深图层,所述景深图层中包括一个所述拍摄物或离所述用户终端的物距相同的多个所述拍摄物;Generating at least one depth of field layer according to the calculated object distance, wherein the depth of field layer includes one of the objects or a plurality of the objects having the same object distance from the user terminal;
根据预先设定的物距与对焦位置的对应关系,获取与所述景深图层对应的目标对焦位置;
Acquiring a target focus position corresponding to the depth of field layer according to a preset correspondence between the object distance and the focus position;
通过所述第一摄像头和/或所述第二摄像头对所述目标对焦位置进行对焦并拍摄照片。The target focus position is focused and a photograph is taken by the first camera and/or the second camera.
本发明实施例还公开了一种用户终端,所述用户终端包括:The embodiment of the invention further discloses a user terminal, where the user terminal comprises:
获取模块,用于当接收到自动对焦拍摄指令时,响应所述自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像;The acquiring module is configured to: when the auto focus shooting instruction is received, acquire the first preview image by using the first camera, and acquire the second preview image by using the second camera in response to the auto focus shooting instruction;
计算模块,用于根据所述第一预览图像和所述第二预览图像,计算所述第一预览图像和所述第二预览图像所包括的拍摄物离用户终端的物距;a calculation module, configured to calculate, according to the first preview image and the second preview image, an object distance of a subject included in the first preview image and the second preview image from a user terminal;
生成模块,用于根据计算的所述物距生成至少一个景深图层,所述景深图层中包括一个所述拍摄物或离所述用户终端的物距相同的多个所述拍摄物;a generating module, configured to generate at least one depth of field layer according to the calculated object distance, where the depth of field layer includes one of the subject or a plurality of the objects having the same object distance from the user terminal;
所述获取模块,还用于根据预先设定的物距与对焦位置的对应关系,获取与所述景深图层对应的目标对焦位置;The acquiring module is further configured to acquire a target focus position corresponding to the depth of field layer according to a preset correspondence between the object distance and the focus position;
对焦模块,用于通过所述第一摄像头和/或所述第二摄像头对所述目标对焦位置进行对焦并拍摄照片。a focusing module, configured to focus the target focus position and take a photo by the first camera and/or the second camera.
在本发明实施例中,当用户终端接收到自动对焦拍摄指令时,用户终端响应该自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像;用户终端根据第一预览图像和第二预览图像,计算第一预览图像和第二预览图像所包括的拍摄物离用户终端的物距;用户终端根据计算的物距生成至少一个景深图层,该景深图层中包括第一预览图像和第二预览图像的一个拍摄物或离用户终端的物距相同的多个拍摄物;用户终端根据预先设定的物距与对焦位置的对应关系,获取与景深图层对应的目标对焦位置,并通过第一摄像头和/或第二摄像头对目标对焦位置进行对焦并拍摄照片。可见,本发明实施例能够自动设定对焦位置并进行对焦拍摄。In the embodiment of the present invention, when the user terminal receives the auto focus shooting instruction, the user terminal acquires the first preview image through the first camera and acquires the second preview image through the second camera in response to the auto focus shooting instruction; Calculating, according to the first preview image and the second preview image, an object distance of the subject included in the first preview image and the second preview image from the user terminal; the user terminal generates at least one depth of field layer according to the calculated object distance, the depth map The layer includes a subject of the first preview image and the second preview image or a plurality of objects having the same object distance from the user terminal; and the user terminal acquires the depth map according to the correspondence between the preset object distance and the focus position. The target focus position corresponding to the layer, and the target focus position is focused and photographed by the first camera and/or the second camera. It can be seen that the embodiment of the present invention can automatically set the focus position and perform focus shooting.
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例公开的一种拍摄方法的流程示意图;
1 is a schematic flow chart of a photographing method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种拍摄方法的流程示意图;2 is a schematic flow chart of another shooting method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的一种用户终端的结构示意图;3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention;
图4是本发明实施例公开的另一种用户终端的结构示意图。FIG. 4 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例公开了一种拍摄方法及用户终端,能够自动地设定对焦位置并进行对焦拍摄。以下分别进行详细说明。Embodiments of the present invention disclose a photographing method and a user terminal, which are capable of automatically setting a focus position and performing focus photographing. The details are described below separately.
请参见图1,图1为本发明实施例公开的一种拍摄方法的流程示意图。如图1所示,该拍摄方法可以包括以下步骤。Please refer to FIG. 1. FIG. 1 is a schematic flowchart diagram of a photographing method according to an embodiment of the present invention. As shown in FIG. 1, the photographing method may include the following steps.
S101、当接收到自动对焦拍摄指令时,响应该自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像。S101. When receiving the auto focus shooting instruction, in response to the auto focus shooting instruction, the first preview image is acquired by the first camera, and the second preview image is acquired by the second camera.
本发明实施例中,当用户终端接收到自动对焦拍摄指令时,用户终端将响应该自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像。其中,该用户终端可包括但不限于智能手机、平板电脑、笔记本电脑、台式电脑等具有拍照功能的用户终端。该用户终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Black Berry(黑莓)操作系统、Windows操作系统等等,本发明实施例不做限定。In the embodiment of the present invention, when the user terminal receives the auto focus shooting instruction, the user terminal responds to the auto focus shooting instruction, acquires the first preview image through the first camera, and acquires the second preview image through the second camera. The user terminal may include, but is not limited to, a user terminal having a camera function, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer. The operating system of the user terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows operating system, and the like, which are not limited by the embodiment of the present invention.
本发明实施例中,该用户终端配置有两个摄像头,即用户终端拥有双摄像头。为方便描述,将这两个摄像头分别称为“第一摄像头”和“第二摄像头”,但值得说明的是,“第一摄像头”和“第二摄像头”仅用于描述目的。In the embodiment of the present invention, the user terminal is configured with two cameras, that is, the user terminal has a dual camera. For convenience of description, the two cameras are referred to as "first camera" and "second camera", respectively, but it is worth noting that the "first camera" and the "second camera" are for illustrative purposes only.
本发明实施例中,可选的,在用户终端接收自动对焦拍摄指令之前,用户可在用户终端选择自动对焦模式。在用户选择自动对焦模式之后,用户可输入自动对焦拍摄指令。可选的,用户终端的对焦模式可包括但不限于手动对焦模式和自动对焦模式。手动对焦模式需要用户手动设定对焦位置,用户终端对用户手动设定的对焦位置进行对焦拍摄。可选的,用户通过预览图像设定一个或
多个对焦位置,使用户终端进行对焦拍摄。In the embodiment of the present invention, optionally, the user may select an auto focus mode at the user terminal before the user terminal receives the auto focus shooting instruction. After the user selects the autofocus mode, the user can input an autofocus shooting command. Optionally, the focus mode of the user terminal may include, but is not limited to, a manual focus mode and an auto focus mode. The manual focus mode requires the user to manually set the focus position, and the user terminal performs focus shooting on the focus position manually set by the user. Optionally, the user sets one or
Multiple focus positions allow the user terminal to focus on shooting.
S102、根据该第一预览图像和该第二预览图像,计算该第一预览图像和该第二预览图像所包括的拍摄物离用户终端的物距。S102. Calculate, according to the first preview image and the second preview image, an object distance of the subject included in the first preview image and the second preview image from a user terminal.
本发明实施例中,用户终端将根据获取的第一预览图像和第二预览图像,计算第一预览图像和第二预览图像所包括的拍摄物离用户终端的物距(即拍摄物离用户终端的距离)。具体地,用户终端将确定第一预设图像和第二预设图像中包括的拍摄物,再计算拍摄物离用户终端的物距。可选的,用户终端可只确定第一预设图像和第二预设图像中包括的人物,计算人物到用户终端的物距,本发明实施例不做限定。由于计算拍摄物到用户终端的物距为业界公知的技术,故本发明实施例不再阐述。举例来说,若第一预览图像中包括人物A和人物B,第二预览图像中包括人物A,则用户终端将识别到第一预览图像和第二预览图像中包括人物A和人物B,用户终端将分别计算人物A和人物B到用户终端的距离。In the embodiment of the present invention, the user terminal calculates the object distance of the subject included in the first preview image and the second preview image from the user terminal according to the acquired first preview image and the second preview image (ie, the subject is away from the user terminal) the distance). Specifically, the user terminal determines the subject included in the first preset image and the second preset image, and then calculates the object distance of the subject from the user terminal. Optionally, the user terminal may only determine the characters included in the first preset image and the second preset image, and calculate the object distance of the character to the user terminal, which is not limited in the embodiment of the present invention. Since the object distance from the subject to the user terminal is a well-known technique in the art, the embodiment of the present invention will not be described. For example, if the first preview image includes the character A and the character B, and the second preview image includes the character A, the user terminal will recognize that the first preview image and the second preview image include the character A and the character B, and the user The terminal will calculate the distance between the character A and the character B to the user terminal, respectively.
S103、根据计算的物距生成至少一个景深图层,该景深图层中包括一个拍摄物或离该用户终端的物距相同的多个拍摄物。S103. Generate at least one depth of field layer according to the calculated object distance, where the depth of field layer includes one subject or a plurality of objects having the same object distance from the user terminal.
本发明实施例中,用户终端计算得到第一预览图像和第二预览图像中所包括的拍摄物到用户终端的距离之后,将根据计算得到的物距生成针对第一预览图像或第二预览图像的景深图。该景深图由至少一个景深图层组成。当用户终端根据计算得到的物距生成针对第一预览图像的景深图时,景深图的每个景深图层中包括第一预览图像的一个拍摄物或包括第一预览图像的离该用户终端的物距相同的多个拍摄物。当用户终端根据计算得到的物距生成针对第二预览图像的景深图时,景深图的每个景深图层中包括第二预览图像的一个拍摄物或包括第二预览图像的离该用户终端的物距相同的多个拍摄物。In the embodiment of the present invention, after the user terminal calculates the distance from the subject included in the first preview image and the second preview image to the user terminal, the user preview generates a second preview image or a second preview image according to the calculated object distance. Depth of field map. The depth map consists of at least one depth of field layer. When the user terminal generates a depth map for the first preview image according to the calculated object distance, each of the depth maps of the depth map includes a subject of the first preview image or a first preview image from the user terminal Multiple subjects with the same object distance. When the user terminal generates a depth map for the second preview image according to the calculated object distance, each of the depth maps of the depth map includes a subject of the second preview image or a second preview image from the user terminal Multiple subjects with the same object distance.
举例来说,若第一预览图像中包括人物A、人物B和人物C,第二预览图像中包括人物A,则用户终端可以根据计算得到的物距生成针对第一预览图像的景深图。该景深图包括第一预览图像所有的拍摄物(即人物A、人物B和人物C),该景深图由至少一个景深图层组成。若人物A和人物B离用户终端的物距不同,人物B和人物C离用户终端的物距相同,则该景深图由两个景深图层组成,其中,一个景深图层包括人物A和一个景深图层包括人物B和
人物C。For example, if the first preview image includes the character A, the character B, and the character C, and the second preview image includes the character A, the user terminal may generate a depth map for the first preview image according to the calculated object distance. The depth map includes all of the first preview images (ie, character A, character B, and character C), and the depth map is composed of at least one depth of field layer. If the object A and the character B are different from the user terminal, and the object B and the character C are the same from the user terminal, the depth map is composed of two depth of field layers, wherein one depth map includes the character A and one The depth of field layer includes the character B and
Character C.
在实践中发现,当用户终端对一个拍摄物进行对焦并拍摄时,也能清晰地拍摄出与该拍摄物等同物距的拍摄物。因此,针对每一景深图层仅需进行一次对焦就可将景深图层包括的所有拍摄物拍摄清楚。In practice, it has been found that when the user terminal focuses on a subject and shoots, it is also possible to clearly capture a subject that is equivalent to the subject. Therefore, it is only necessary to focus once for each depth of field layer to capture all the subjects included in the depth of field layer.
S104、根据预先设定的物距与对焦位置的对应关系,获取与该景深图层对应的目标对焦位置。S104. Acquire a target focus position corresponding to the depth of field layer according to a correspondence relationship between the object distance and the focus position set in advance.
本发明实施例中,用户终端生成景深图层之后,将根据预先设定的物距与对焦位置的对应关系,获取与该景深图层对应的目标对焦位置。In the embodiment of the present invention, after the user terminal generates the depth of field layer, the target focus position corresponding to the depth of field layer is acquired according to the correspondence between the preset object distance and the focus position.
通常,摄像头一般分为定焦、自动对焦、光学防抖、阵列摄像头等等类别。应用最多的是定焦和自动对焦摄像头。其中,可以自动对焦的摄像头通常由镜头、马达、滤色片、底座、图像传感器、马达驱动芯片、线路基板、连接器、电容等周边元器件组成。Generally, cameras are generally classified into fixed focus, auto focus, optical image stabilization, array cameras, and the like. The most widely used are fixed focus and auto focus cameras. Among them, the camera that can automatically focus is usually composed of a lens, a motor, a color filter, a base, an image sensor, a motor drive chip, a circuit substrate, a connector, a capacitor, and the like.
与本发明实施例相关的器件主要是镜头和马达。其中,镜头用于聚集光线,把景物投射到图像传感器表面,镜头所处的位置直接决定所采集到的图像的清晰程度。当镜头处于一拍摄物对应的焦点位置时,用户终端拍摄该拍摄物的图像最清晰。其中,马达,用于驱动镜头移动至对焦位置(即拍摄物对应的焦点位置),实现对焦,使镜头投射清晰的图像到图像传感器。The devices associated with embodiments of the present invention are primarily lenses and motors. The lens is used to collect light and project the scene onto the surface of the image sensor. The position of the lens directly determines the clarity of the captured image. When the lens is in the focus position corresponding to a subject, the image taken by the user terminal to capture the subject is the clearest. Among them, the motor is used to drive the lens to the focus position (ie, the focus position corresponding to the subject) to achieve focus, so that the lens projects a clear image to the image sensor.
本发明实施例中,目标对焦位置就为摄像头将景深图层包括的拍摄物拍摄最清晰时镜头所处的位置。In the embodiment of the present invention, the target focus position is the position where the camera is located when the camera captures the subject matter included in the depth of field layer.
作为一种可选的实施方式,用户终端获取与该景深图层对应的目标对焦位置的具体实施方式可包括以下步骤:As an optional implementation manner, the specific implementation manner in which the user terminal acquires the target focus position corresponding to the depth of field layer may include the following steps:
11)从生成的景深图层中获取包括人物的第一目标景深图层;11) obtaining a first target depth of field layer including the character from the generated depth of field layer;
12)根据预先设定的物距与对焦位置的对应关系,获取与第一目标景深图层对应的目标对焦位置。12) Acquire a target focus position corresponding to the first target depth of field layer according to a preset correspondence between the object distance and the focus position.
在该实施方式中,生成的景深图可能由很多景深图层组成,因此,可筛选一些重要的景深图层,仅获取重要的景深图层对应的对焦位置,将镜片移动至对焦位置实现对焦。In this embodiment, the generated depth map may be composed of a plurality of depth of field layers. Therefore, some important depth of field layers may be screened to obtain only the focus position corresponding to the important depth of field layer, and the lens is moved to the focus position to achieve focusing.
在实际应用中,用户经常对人物进行对焦拍摄,因此,在该实施方式中,可通过人脸识别技术识别景深图层中是否包括人脸;若一景深图层中包括人
脸,则用户终端判定该景深图层包括人物,则用户终端获取该景深图层作为第一目标景深图层。In practical applications, the user often performs focus shooting on the character. Therefore, in this embodiment, the face recognition technology can be used to identify whether the face is included in the depth of field layer; if a depth of field layer includes a person
If the user terminal determines that the depth of field layer includes a character, the user terminal acquires the depth of field layer as the first target depth of field layer.
作为一种可选的实施方式,用户终端获取与该景深图层对应的目标对焦位置的具体实施方式可包括以下步骤:As an optional implementation manner, the specific implementation manner in which the user terminal acquires the target focus position corresponding to the depth of field layer may include the following steps:
21)从生成的景深图层中获取物距小于预设距离的第二目标景深图层;21) acquiring, from the generated depth of field layer, a second target depth of field layer whose object distance is less than a preset distance;
22)根据预先设定的物距与对焦位置的对应关系,获取与第二目标景深图层对应的目标对焦位置。22) Acquire a target focus position corresponding to the second target depth of field layer according to a correspondence relationship between the object distance and the focus position set in advance.
在实际应用中,用户经常对太远距离的拍摄物不感兴趣,因此,在该实施方式中,用户终端可从生成的景深图层中获取物距小于预设距离的景深图层作为第二目标景深图层,并根据预先设定的物距与对焦位置的对应关系,获取与第二目标景深图层对应的目标对焦位置。In practical applications, the user often does not have an interest in the subject that is too far away. Therefore, in this embodiment, the user terminal can obtain the depth of field layer with the object distance less than the preset distance from the generated depth of field layer as the second target. The depth of field layer is obtained, and the target focus position corresponding to the second target depth of field layer is acquired according to the correspondence between the preset object distance and the focus position.
作为一种可选的实施方式,用户终端获取与该景深图层对应的目标对焦位置的具体实施方式可包括以下步骤:As an optional implementation manner, the specific implementation manner in which the user terminal acquires the target focus position corresponding to the depth of field layer may include the following steps:
31)从生成的景深图层中获取包括的拍摄物数量大于预设数量的第三目标景深图层;31) obtaining, from the generated depth of field layer, the third target depth of field layer including the number of the detected objects being greater than a preset number;
32)根据预先设定的物距与对焦位置的对应关系,获取与第三目标景深图层对应的目标对焦位置。32) Acquire a target focus position corresponding to the third target depth of field layer according to a correspondence relationship between the object distance and the focus position set in advance.
在实际应用中,为了节省拍摄时间,则可仅对拍摄物较多的景深图层进行对焦拍摄,因此,在该实施方式中,用户终端可从生成的景深图层中获取包括的拍摄物数量大于预设数量的景深图层作为第三目标景深图层,根据预先设定的物距与对焦位置的对应关系,获取与第三目标景深图层对应的目标对焦位置。In practical applications, in order to save the shooting time, only the depth of field layer with more subjects can be focused, so in this embodiment, the user terminal can obtain the number of included objects from the generated depth of field layer. A depth map layer larger than the preset number is used as the third target depth map layer, and the target focus position corresponding to the third target depth map layer is acquired according to the correspondence between the preset object distance and the focus position.
S105、通过该第一摄像头和/或该第二摄像头对该目标对焦位置进行对焦并拍摄照片。S105. Focus the target focus position by the first camera and/or the second camera and take a photo.
本发明实施例中,用户终端通过该第一摄像头和/或该第二摄像头对该目标对焦位置进行对焦并拍摄照片的具体实施方式为:In the embodiment of the present invention, a specific implementation manner in which the user terminal focuses on the target focus position and takes a photo through the first camera and/or the second camera is:
用户终端将该第一摄像头的镜头和/或该第二摄像头的镜头移动至目标对焦位置,并通过该第一摄像头和/或该第二摄像头进行图片的拍摄。The user terminal moves the lens of the first camera and/or the lens of the second camera to a target focus position, and performs shooting of the picture through the first camera and/or the second camera.
本发明实施例中,当获取的目标对焦位置为一个时,用户终端可通过第一
摄像头的马达将第一摄像头的镜头移动至目标对焦位置,实现对焦,并在对焦后通过第一摄像头进行图片拍摄;或当获取的目标对焦位置为一个时,用户终端可通过第二摄像头的马达将第二摄像头的镜头移动至目标对焦位置,实现对焦,并在对焦后通过第二摄像头进行图片拍摄,本发明实施例不做限定。In the embodiment of the present invention, when the acquired target focus position is one, the user terminal may pass the first
The camera's motor moves the lens of the first camera to the target focus position to achieve focus, and performs image capture through the first camera after focusing; or when the acquired target focus position is one, the user terminal can pass the motor of the second camera The lens of the second camera is moved to the target focus position to achieve the focus, and the image is taken by the second camera after the focus is performed, which is not limited in the embodiment of the present invention.
本发明实施例中,当获取的目标对焦位置为多个时,用户终端可同时移动第一摄像头和第二摄像头的镜头至不同的目标对焦位置,分别实现对焦,并在对焦后通过第一摄像头和第二摄像头分别进行图片拍摄,直到拍摄完所有目标对焦位置对应的图片。例如,当存在目标对焦位置1、目标对焦位置2、目标对焦位置3和目标对焦位置4时,用户终端可通过第一摄像头的马达将第一摄像头的镜头移动至目标对焦位置1,实现对焦,并在对焦后通过第一摄像头拍摄图片1;同时,用户终端可通过第二摄像头的马达将第二摄像头的镜头移动至目标对焦位置2,实现对焦,并在对焦后通过第二摄像头拍摄图片2。在第一摄像头拍摄完图片1之后,用户终端继续通过第一摄像头的马达将第一摄像头的镜头移动至目标对焦位置3,实现对焦,并在对焦后通过第一摄像头拍摄图片3;在第二摄像头拍摄完图片2之后,用户终端继续通过第二摄像头的马达将第二摄像头的镜头移动至目标对焦位置4,实现对焦,并在对焦后通过第二摄像头拍摄图片4。当获取的目标对焦位置为多个时,通过这种方式可以提高图片的拍摄速率,增加用户体验。In the embodiment of the present invention, when the acquired target focus position is multiple, the user terminal can simultaneously move the lenses of the first camera and the second camera to different target focus positions, respectively achieve focus, and pass the first camera after focusing. The picture is taken separately from the second camera until the picture corresponding to all the target focus positions is taken. For example, when there is a target focus position 1, a target focus position 2, a target focus position 3, and a target focus position 4, the user terminal can move the lens of the first camera to the target focus position 1 by the motor of the first camera to achieve focusing, And after focusing, the picture 1 is taken by the first camera; at the same time, the user terminal can move the lens of the second camera to the target focus position 2 through the motor of the second camera to achieve focusing, and take a picture through the second camera after focusing 2 . After the first camera captures the picture 1, the user terminal continues to move the lens of the first camera to the target focus position 3 through the motor of the first camera to achieve focusing, and after shooting, the picture 3 is taken by the first camera; After the camera takes the picture 2, the user terminal continues to move the lens of the second camera to the target focus position 4 through the motor of the second camera to achieve focusing, and takes the picture 4 through the second camera after focusing. When the acquired target focus position is multiple, this method can improve the shooting rate of the picture and increase the user experience.
在图1所描述的方法中,当用户终端接收到自动对焦拍摄指令时,用户终端响应该自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像;用户终端根据第一预览图像和第二预览图像,计算第一预览图像和第二预览图像所包括的拍摄物离用户终端的物距;用户终端根据计算的物距生成至少一个景深图层,该景深图层中包括第一预览图像和第二预览图像的一个拍摄物或离用户终端的物距相同的多个拍摄物;用户终端根据预先设定的物距与对焦位置的对应关系,获取与景深图层对应的目标对焦位置,并通过第一摄像头和/或第二摄像头对目标对焦位置进行对焦并拍摄照片。可见,通过本发明实施例能够自动设定对焦位置并进行对焦拍摄,避免了用户手动设定对焦位置,提高了用户体验。
In the method described in FIG. 1 , when the user terminal receives the auto focus shooting instruction, the user terminal acquires the first preview image through the first camera and acquires the second preview image through the second camera in response to the auto focus shooting instruction; The user terminal calculates an object distance of the subject included in the first preview image and the second preview image from the user terminal according to the first preview image and the second preview image; the user terminal generates at least one depth of field layer according to the calculated object distance, The depth of field layer includes one subject of the first preview image and the second preview image or a plurality of objects having the same object distance from the user terminal; the user terminal acquires according to the correspondence between the preset object distance and the focus position. The target focus position corresponding to the depth of field layer, and the target focus position is focused and photographed by the first camera and/or the second camera. It can be seen that, by using the embodiment of the invention, the focus position can be automatically set and the focus shooting can be performed, thereby avoiding the user manually setting the focus position and improving the user experience.
请参见图2,图2为本发明实施例公开的一种拍摄方法的流程示意图。如图2所示,该拍摄方法可以包括以下步骤。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a photographing method according to an embodiment of the present invention. As shown in FIG. 2, the photographing method may include the following steps.
S201、用户终端接收摄像头启动指令。S201. The user terminal receives a camera startup command.
本发明实施例中,当用户期望拍摄时,向用户终端发送摄像头启动指令;用户终端接收到摄像头启动指令之后,将启动拍摄应用。可选的,用户可以通过对用户终端上提供的硬件按钮、应用图标进行操作来输入摄像头启动指令。可选的,摄像头启动指令也可以是通过第三方应用程序发送的,例如,发表图片的应用、说说等,具体的,本发明实施例不做限定。In the embodiment of the present invention, when the user desires to shoot, the camera startup instruction is sent to the user terminal; after the user terminal receives the camera startup instruction, the shooting application is started. Optionally, the user can input a camera startup command by operating a hardware button and an application icon provided on the user terminal. Optionally, the camera startup command may also be sent by using a third-party application, for example, an application, a description, and the like for publishing a picture. Specifically, the embodiment of the present invention is not limited.
S202、用户终端响应该启动指令,启动第一摄像头和第二摄像头。S202. The user terminal starts the first camera and the second camera in response to the startup command.
本发明实施例中,用户终端接收摄像头启动指令之后,将响应该启动指令,启动第一摄像头和第二摄像头。In the embodiment of the present invention, after receiving the camera startup command, the user terminal will start the first camera and the second camera in response to the startup command.
本发明实施例中,该用户终端配置有两个摄像头,即用户终端拥有双摄像头。为方便描述,将这两个摄像头分别称为“第一摄像头”和“第二摄像头”,但值得说明的是,“第一摄像头”和“第二摄像头”仅用于描述目的。In the embodiment of the present invention, the user terminal is configured with two cameras, that is, the user terminal has a dual camera. For convenience of description, the two cameras are referred to as "first camera" and "second camera", respectively, but it is worth noting that the "first camera" and the "second camera" are for illustrative purposes only.
S203、用户终端判断当前对焦模式是否为自动对焦模式。S203. The user terminal determines whether the current focus mode is an auto focus mode.
本发明实施例中,用户终端启动第一摄像头和第二摄像头之后,将判断当前对焦模式是否为自动对焦模式。In the embodiment of the present invention, after the user terminal starts the first camera and the second camera, it is determined whether the current focus mode is the auto focus mode.
本发明实施例中,用户终端的对焦模式可包括手动对焦模式和自动对焦模式。手动对焦模式需要用户手动设定对焦位置,用户终端对用户手动设定的对焦位置进行对焦拍摄。可选的,用户通过预览图像设定一个或多个对焦位置,使用户终端进行对焦拍摄。In the embodiment of the present invention, the focus mode of the user terminal may include a manual focus mode and an auto focus mode. The manual focus mode requires the user to manually set the focus position, and the user terminal performs focus shooting on the focus position manually set by the user. Optionally, the user sets one or more focus positions by previewing the image, so that the user terminal performs focus shooting.
本发明实施例中,当用户终端判断当前对焦模式为自动对焦模式时,执行步骤S204。当用户终端判断当前对焦模式不为自动对焦模式时,用户终端检测用户是否输入手动对焦位置设定指令。In the embodiment of the present invention, when the user terminal determines that the current focus mode is the auto focus mode, step S204 is performed. When the user terminal determines that the current focus mode is not the auto focus mode, the user terminal detects whether the user inputs a manual focus position setting command.
本发明实施例中,用户终端拥有多个对焦模式将有利于用户对对焦位置进行更好地设定,提供用户更多的对焦位置设定方式,有利于提高用户体验。In the embodiment of the present invention, the user terminal having multiple focus modes will facilitate the user to better set the focus position, and provide more focus position setting modes for the user, which is beneficial to improving the user experience.
S204、若用户终端判断当前对焦模式为自动对焦模式,则当用户终端接收到自动对焦拍摄指令时,响应该自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像。
S204. If the user terminal determines that the current focus mode is the auto focus mode, when the user terminal receives the auto focus shooting instruction, in response to the auto focus shooting instruction, the first preview image is acquired by the first camera, and the second camera is acquired by the second camera. Second preview image.
S205、用户终端根据该第一预览图像和该第二预览图像,计算该第一预览图像和该第二预览图像所包括的拍摄物离用户终端的物距。S205. The user terminal calculates, according to the first preview image and the second preview image, an object distance of the subject included in the first preview image and the second preview image from a user terminal.
S206、用户终端根据计算的物距生成至少一个景深图层,该景深图层中包括一个拍摄物或离该用户终端的物距相同的多个拍摄物。S206. The user terminal generates at least one depth of field layer according to the calculated object distance, where the depth of field layer includes one subject or a plurality of objects having the same object distance from the user terminal.
S207、用户终端根据预先设定的物距与对焦位置的映射关系,获取与该景深图层对应的目标对焦位置。S207. The user terminal acquires a target focus position corresponding to the depth of field layer according to a mapping relationship between the object distance and the focus position set in advance.
S208、用户终端通过第一摄像头和/或第二摄像头对目标对焦位置进行对焦并拍摄照片。S208. The user terminal focuses on the target focus position through the first camera and/or the second camera and takes a photo.
在图2所描述的方法中,若当前对焦模式为自动对焦模式,当用户终端接收到自动对焦拍摄指令时,用户终端将响应该自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像;用户终端根据第一预览图像和第二预览图像,计算第一预览图像和第二预览图像所包括的拍摄物离用户终端的物距;用户终端根据计算的物距生成至少一个景深图层,该景深图层中包括第一预览图像和第二预览图像的一个拍摄物或离用户终端的物距相同的多个拍摄物;用户终端根据预先设定的物距与对焦位置的对应关系,获取与景深图层对应的目标对焦位置,并通过第一摄像头和/或第二摄像头对目标对焦位置进行对焦并拍摄照片。可见,通过本发明实施例能够自动设定对焦位置并进行对焦拍摄,避免了用户手动设定对焦位置,提高了用户体验。In the method described in FIG. 2, if the current focus mode is the auto focus mode, when the user terminal receives the auto focus shooting instruction, the user terminal responds to the auto focus shooting instruction to acquire the first preview image through the first camera, and Acquiring, by the second camera, the second preview image; the user terminal calculating, according to the first preview image and the second preview image, the object distance of the subject included in the first preview image and the second preview image from the user terminal; The object distance generates at least one depth of field layer, wherein the depth of field layer includes one subject of the first preview image and the second preview image or a plurality of objects having the same object distance from the user terminal; the user terminal according to the preset object The distance from the focus position is obtained, the target focus position corresponding to the depth of field layer is acquired, and the target focus position is focused and the photograph is taken by the first camera and/or the second camera. It can be seen that, by using the embodiment of the invention, the focus position can be automatically set and the focus shooting can be performed, thereby avoiding the user manually setting the focus position and improving the user experience.
请参阅图3,图3是本发明实施例公开的一种用户终端的结构示意图。其中,图3所示的用户终端可以包括获取模块301、计算模块302、生成模块303和对焦模块304。其中:Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention. The user terminal shown in FIG. 3 may include an obtaining module 301, a calculating module 302, a generating module 303, and a focusing module 304. among them:
获取模块301,用于当接收到自动对焦拍摄指令时,响应所述自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像。The obtaining module 301 is configured to: when the auto focus shooting instruction is received, acquire the first preview image through the first camera and acquire the second preview image through the second camera in response to the auto focus shooting instruction.
本发明实施例中,当用户终端接收到自动对焦拍摄指令时,用户终端的获取模块301将响应该自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像。其中,该用户终端可包括但不限于智能手机、平板电脑、笔记本电脑、台式电脑等具有拍照功能的用户终端。该用户
终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Black Berry(黑莓)操作系统、Windows操作系统等等,本发明实施例不做限定。In the embodiment of the present invention, when the user terminal receives the auto focus shooting instruction, the acquiring module 301 of the user terminal responds to the auto focus shooting instruction, acquires the first preview image through the first camera, and acquires the second preview through the second camera. image. The user terminal may include, but is not limited to, a user terminal having a camera function, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer. The user
The operating system of the terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows operating system, and the like, which are not limited by the embodiment of the present invention.
本发明实施例中,该用户终端配置有两个摄像头,即用户终端拥有双摄像头。为方便描述,将这两个摄像头分别称为“第一摄像头”和“第二摄像头”,但值得说明的是,“第一摄像头”和“第二摄像头”仅用于描述目的。In the embodiment of the present invention, the user terminal is configured with two cameras, that is, the user terminal has a dual camera. For convenience of description, the two cameras are referred to as "first camera" and "second camera", respectively, but it is worth noting that the "first camera" and the "second camera" are for illustrative purposes only.
本发明实施例中,可选的,在用户终端接收自动对焦拍摄指令之前,用户可在用户终端选择自动对焦模式。在用户选择自动对焦模式之后,用户可输入自动对焦拍摄指令。可选的,用户终端的对焦模式可包括但不限于手动对焦模式和自动对焦模式。手动对焦模式需要用户手动设定对焦位置,用户终端对用户手动设定的对焦位置进行对焦拍摄。可选的,用户通过预览图像设定一个或多个对焦位置,使用户终端进行对焦拍摄。In the embodiment of the present invention, optionally, the user may select an auto focus mode at the user terminal before the user terminal receives the auto focus shooting instruction. After the user selects the autofocus mode, the user can input an autofocus shooting command. Optionally, the focus mode of the user terminal may include, but is not limited to, a manual focus mode and an auto focus mode. The manual focus mode requires the user to manually set the focus position, and the user terminal performs focus shooting on the focus position manually set by the user. Optionally, the user sets one or more focus positions by previewing the image, so that the user terminal performs focus shooting.
计算模块302,用于根据所述第一预览图像和所述第二预览图像,计算所述第一预览图像和所述第二预览图像所包括的拍摄物离用户终端的物距。The calculating module 302 is configured to calculate an object distance of the subject included in the first preview image and the second preview image from the user terminal according to the first preview image and the second preview image.
本发明实施例中,计算模块302将根据获取模块301获取的第一预览图像和第二预览图像,计算第一预览图像和第二预览图像所包括的拍摄物离用户终端的物距(即拍摄物离用户终端的距离)。具体地,计算模块302将确定第一预设图像和第二预设图像中包括的拍摄物,再计算拍摄物离用户终端的物距。可选的,计算模块302可只确定第一预设图像和第二预设图像中包括的人物,计算人物到用户终端的物距,本发明实施例不做限定。由于计算拍摄物到用户终端的物距为业界公知的技术,故本发明实施例不再阐述。举例来说,若第一预览图像中包括人物A和人物B,第二预览图像中包括人物A,则计算模块302将识别到第一预览图像和第二预览图像中包括人物A和人物B,计算模块302将分别计算人物A和人物B到用户终端的距离。In the embodiment of the present invention, the calculation module 302 calculates the object distance of the subject included in the first preview image and the second preview image from the user terminal according to the first preview image and the second preview image acquired by the obtaining module 301 (ie, shooting The distance from the user terminal). Specifically, the calculation module 302 will determine the subject included in the first preset image and the second preset image, and then calculate the object distance of the subject from the user terminal. Optionally, the calculation module 302 may only determine the characters included in the first preset image and the second preset image, and calculate the object distance of the character to the user terminal, which is not limited in the embodiment of the present invention. Since the object distance from the subject to the user terminal is a well-known technique in the art, the embodiment of the present invention will not be described. For example, if the first preview image includes the character A and the character B, and the second preview image includes the character A, the calculation module 302 will recognize that the first preview image and the second preview image include the character A and the character B. The calculation module 302 will calculate the distances of the person A and the person B to the user terminal, respectively.
生成模块303,用于根据计算的所述物距生成至少一个景深图层,所述景深图层中包括一个所述拍摄物或离所述用户终端的物距相同的多个所述拍摄物。The generating module 303 is configured to generate at least one depth of field layer according to the calculated object distance, where the depth of field layer includes one of the objects or a plurality of the objects having the same object distance from the user terminal.
本发明实施例中,计算模块302计算得到第一预览图像和第二预览图像中所包括的拍摄物到用户终端的距离之后,生成模块303将根据计算得到的物距
生成针对第一预览图像或第二预览图像的景深图。该景深图由至少一个景深图层组成。当生成模块303根据计算得到的物距生成针对第一预览图像的景深图时,景深图的每个景深图层中包括第一预览图像的一个拍摄物或包括第一预览图像的离该用户终端的物距相同的多个拍摄物。当生成模块303根据计算得到的物距生成针对第二预览图像的景深图时,景深图的每个景深图层中包括第二预览图像的一个拍摄物或包括第二预览图像的离该用户终端的物距相同的多个拍摄物。In the embodiment of the present invention, after the calculating module 302 calculates the distance between the subject included in the first preview image and the second preview image to the user terminal, the generating module 303 calculates the object distance according to the calculation.
A depth map is generated for the first preview image or the second preview image. The depth map consists of at least one depth of field layer. When the generating module 303 generates a depth map for the first preview image according to the calculated object distance, each of the depth maps of the depth map includes one subject of the first preview image or the user terminal including the first preview image Multiple subjects with the same object distance. When the generating module 303 generates a depth map for the second preview image according to the calculated object distance, each of the depth map layers of the depth map includes one subject of the second preview image or the user terminal including the second preview image. Multiple subjects with the same object distance.
举例来说,若第一预览图像中包括人物A、人物B和人物C,第二预览图像中包括人物A,则生成模块303可以根据计算得到的物距生成针对第一预览图像的景深图。该景深图包括第一预览图像所有的拍摄物(即人物A、人物B和人物C),该景深图由至少一个景深图层组成。若人物A和人物B离用户终端的物距不同,人物B和人物C离用户终端的物距相同,则该景深图由两个景深图层组成,其中,一个景深图层包括人物A和一个景深图层包括人物B和人物C。For example, if the first preview image includes the character A, the character B, and the character C, and the second preview image includes the character A, the generating module 303 may generate a depth map for the first preview image according to the calculated object distance. The depth map includes all of the first preview images (ie, character A, character B, and character C), and the depth map is composed of at least one depth of field layer. If the object A and the character B are different from the user terminal, and the object B and the character C are the same from the user terminal, the depth map is composed of two depth of field layers, wherein one depth map includes the character A and one The depth of field layer includes character B and character C.
在实践中发现,当用户终端对一个拍摄物进行对焦并拍摄时,也能清晰地拍摄出与该拍摄物等同物距的拍摄物。因此,针对每一景深图层仅需进行一次对焦就可将景深图层包括的所有拍摄物拍摄清楚。In practice, it has been found that when the user terminal focuses on a subject and shoots, it is also possible to clearly capture a subject that is equivalent to the subject. Therefore, it is only necessary to focus once for each depth of field layer to capture all the subjects included in the depth of field layer.
所述获取模块301,还用于根据预先设定的物距与对焦位置的对应关系,获取与所述景深图层对应的目标对焦位置。The acquiring module 301 is further configured to acquire a target focus position corresponding to the depth of field layer according to a preset correspondence between the object distance and the focus position.
本发明实施例中,生成模块303生成景深图层之后,获取模块301将根据预先设定的物距与对焦位置的对应关系,获取与该景深图层对应的目标对焦位置。In the embodiment of the present invention, after the generating module 303 generates the depth of field layer, the acquiring module 301 acquires the target in-focus position corresponding to the depth of field layer according to the correspondence between the preset object distance and the in-focus position.
通常,摄像头一般分为定焦、自动对焦、光学防抖、阵列摄像头等等类别。应用最多的是定焦和自动对焦摄像头。其中,可以自动对焦的摄像头通常由镜头、马达、滤色片、底座、图像传感器、马达驱动芯片、线路基板、连接器、电容等周边元器件组成。Generally, cameras are generally classified into fixed focus, auto focus, optical image stabilization, array cameras, and the like. The most widely used are fixed focus and auto focus cameras. Among them, the camera that can automatically focus is usually composed of a lens, a motor, a color filter, a base, an image sensor, a motor drive chip, a circuit substrate, a connector, a capacitor, and the like.
与本发明实施例相关的器件主要是镜头和马达。其中,镜头用于聚集光线,把景物投射到图像传感器表面,镜头所处的位置直接决定所采集到的图像的清晰程度。当镜头处于一拍摄物对应的焦点位置时,用户终端拍摄该拍摄物的图
像最清晰。其中,马达,用于驱动镜头移动至对焦位置(即拍摄物对应的焦点位置),实现对焦,使镜头投射清晰的图像到图像传感器。The devices associated with embodiments of the present invention are primarily lenses and motors. The lens is used to collect light and project the scene onto the surface of the image sensor. The position of the lens directly determines the clarity of the captured image. When the lens is in a focus position corresponding to a subject, the user terminal takes a picture of the subject
Like the clearest. Among them, the motor is used to drive the lens to the focus position (ie, the focus position corresponding to the subject) to achieve focus, so that the lens projects a clear image to the image sensor.
本发明实施例中,目标对焦位置就为摄像头将景深图层包括的拍摄物拍摄最清晰时镜头所处的位置。In the embodiment of the present invention, the target focus position is the position where the camera is located when the camera captures the subject matter included in the depth of field layer.
作为一种可选的实施方式,获取模块301具体用于:As an optional implementation manner, the obtaining module 301 is specifically configured to:
从生成的景深图层中获取包括人物的第一目标景深图层;Obtaining a first target depth of field layer including a character from the generated depth of field layer;
根据预先设定的物距与对焦位置的对应关系,获取与第一目标景深图层对应的目标对焦位置。The target focus position corresponding to the first target depth map layer is acquired according to a correspondence relationship between the object distance and the focus position set in advance.
在该实施方式中,生成的景深图可能由很多景深图层组成,因此,可筛选一些重要的景深图层,仅获取重要的景深图层对应的对焦位置,将镜片移动至对焦位置实现对焦。In this embodiment, the generated depth map may be composed of a plurality of depth of field layers. Therefore, some important depth of field layers may be screened to obtain only the focus position corresponding to the important depth of field layer, and the lens is moved to the focus position to achieve focusing.
在实际应用中,用户经常对人物进行对焦拍摄,因此,在该实施方式中,获取模块301可通过人脸识别技术识别景深图层中是否包括人脸;若一景深图层中包括人脸,则获取模块301判定该景深图层包括人物,则获取模块301获取该景深图层作为第一目标景深图层。In a practical application, the user often performs focus shooting on the character. Therefore, in this embodiment, the acquisition module 301 can identify whether the face is included in the depth of field layer by using a face recognition technology; if a depth of field layer includes a face, Then, the obtaining module 301 determines that the depth of field layer includes a character, and the acquiring module 301 acquires the depth of field layer as the first target depth of field layer.
作为一种可选的实施方式,获取模块301具体用于:As an optional implementation manner, the obtaining module 301 is specifically configured to:
从生成的景深图层中获取物距小于预设距离的第二目标景深图层;Obtaining a second target depth of field layer whose object distance is less than a preset distance from the generated depth of field layer;
根据预先设定的物距与对焦位置的对应关系,获取与第二目标景深图层对应的目标对焦位置。The target focus position corresponding to the second target depth map layer is acquired according to a correspondence relationship between the object distance and the focus position set in advance.
在实际应用中,用户经常对太远距离的拍摄物不感兴趣,因此,在该实施方式中,获取模块301可从生成的景深图层中获取物距小于预设距离的景深图层作为第二目标景深图层,并根据预先设定的物距与对焦位置的对应关系,获取与第二目标景深图层对应的目标对焦位置。In practical applications, the user often does not have an interest in a subject that is too far away. Therefore, in this embodiment, the acquiring module 301 can obtain a depth of field layer whose object distance is less than a preset distance from the generated depth of field layer as a second. The target depth of field layer is obtained, and the target focus position corresponding to the second target depth of field layer is acquired according to the correspondence between the preset object distance and the focus position.
作为一种可选的实施方式,获取模块301具体用于:As an optional implementation manner, the obtaining module 301 is specifically configured to:
从生成的景深图层中获取包括的拍摄物数量大于预设数量的第三目标景深图层;Obtaining, from the generated depth of field layer, the number of the included objects is greater than the preset number of the third target depth of field layer;
根据预先设定的物距与对焦位置的对应关系,获取与第三目标景深图层对应的目标对焦位置。The target focus position corresponding to the third target depth map layer is acquired according to a correspondence relationship between the object distance and the focus position set in advance.
在实际应用中,为了节省拍摄时间,则可仅对拍摄物较多的景深图层进行
对焦拍摄,因此,在该实施方式中,获取模块301可从生成的景深图层中获取包括的拍摄物数量大于预设数量的景深图层作为第三目标景深图层,根据预先设定的物距与对焦位置的对应关系,获取与第三目标景深图层对应的目标对焦位置。In practical applications, in order to save shooting time, only the depth of field layer with more subjects can be used.
Focusing on the photographing, therefore, in this embodiment, the obtaining module 301 can obtain, from the generated depth of field layer, that the number of the included objects is greater than the preset number of depth of field layers as the third target depth of field layer, according to the preset object A target focus position corresponding to the third target depth of field layer is acquired corresponding to the focus position.
对焦模块304,用于通过所述第一摄像头和/或所述第二摄像头对所述目标对焦位置进行对焦并拍摄照片。The focusing module 304 is configured to focus the target focus position and take a photo by the first camera and/or the second camera.
本发明实施例中,对焦模块304具体用于:In the embodiment of the present invention, the focusing module 304 is specifically configured to:
将该第一摄像头的镜头和/或该第二摄像头的镜头移动至目标对焦位置,并通过该第一摄像头和/或该第二摄像头进行图片的拍摄。The lens of the first camera and/or the lens of the second camera is moved to a target focus position, and the picture is taken by the first camera and/or the second camera.
本发明实施例中,当获取模块301获取的目标对焦位置为一个时,对焦模块304可通过第一摄像头的马达将第一摄像头的镜头移动至目标对焦位置,实现对焦,并在对焦后通过第一摄像头进行图片拍摄;或当获取模块301获取的目标对焦位置为一个时,对焦模块304可通过第二摄像头的马达将第二摄像头的镜头移动至目标对焦位置,实现对焦,并在对焦后通过第二摄像头进行图片拍摄,本发明实施例不做限定。In the embodiment of the present invention, when the target focus position acquired by the acquisition module 301 is one, the focus module 304 can move the lens of the first camera to the target focus position by using the motor of the first camera to achieve focusing, and pass the first after focusing. A camera performs picture capture; or when the target focus position acquired by the acquisition module 301 is one, the focus module 304 can move the lens of the second camera to the target focus position through the motor of the second camera to achieve focus, and pass after focusing The second camera performs picture shooting, which is not limited in the embodiment of the present invention.
本发明实施例中,当获取模块301获取的目标对焦位置为多个时,对焦模块304可同时移动第一摄像头和第二摄像头的镜头至不同的目标对焦位置,分别实现对焦,并在对焦后通过第一摄像头和第二摄像头分别进行图片拍摄,直到拍摄完所有目标对焦位置对应的图片。例如,当存在目标对焦位置1、目标对焦位置2、目标对焦位置3和目标对焦位置4时,对焦模块304可通过第一摄像头的马达将第一摄像头的镜头移动至目标对焦位置1,实现对焦,并在对焦后通过第一摄像头拍摄图片1;同时,对焦模块304可通过第二摄像头的马达将第二摄像头的镜头移动至目标对焦位置2,实现对焦,并在对焦后通过第二摄像头拍摄图片2。在第一摄像头拍摄完图片1之后,对焦模块304继续通过第一摄像头的马达将第一摄像头的镜头移动至目标对焦位置3,实现对焦,并在对焦后通过第一摄像头拍摄图片3;在第二摄像头拍摄完图片2之后,对焦模块304继续通过第二摄像头的马达将第二摄像头的镜头移动至目标对焦位置4,实现对焦,并在对焦后通过第二摄像头拍摄图片4。当获取的目标对焦位置为多个时,通过这种方式可以提高图片的拍摄速率,增加用户体验。
In the embodiment of the present invention, when the target focus position acquired by the acquisition module 301 is multiple, the focus module 304 can simultaneously move the lenses of the first camera and the second camera to different target focus positions, respectively, to achieve focus, and after focusing The picture is taken by the first camera and the second camera respectively until the pictures corresponding to all the target focus positions are taken. For example, when there is a target focus position 1, a target focus position 2, a target focus position 3, and a target focus position 4, the focus module 304 can move the lens of the first camera to the target focus position 1 by the motor of the first camera to achieve focusing. And after the focus is taken, the picture 1 is taken by the first camera; at the same time, the focus module 304 can move the lens of the second camera to the target focus position 2 through the motor of the second camera to achieve focusing, and after shooting through the second camera Picture 2. After the first camera captures the picture 1, the focusing module 304 continues to move the lens of the first camera to the target focus position 3 through the motor of the first camera to achieve focusing, and captures the picture 3 through the first camera after focusing; After the second camera has taken the picture 2, the focusing module 304 continues to move the lens of the second camera to the target focus position 4 through the motor of the second camera to achieve focusing, and takes the picture 4 through the second camera after focusing. When the acquired target focus position is multiple, this method can improve the shooting rate of the picture and increase the user experience.
请一并参阅图4,图4是本发明实施例公开的另一种用户终端的结构示意图。其中,图4所示的用户终端是由图3所示的用户终端进行优化得到的。与图3所示的用户终端相比较,图4所示的用户终端除包括图3所示的用户终端的所有模块外,还可以包括接收模块305、启动模块306和判断模块307。其中:Referring to FIG. 4, FIG. 4 is a schematic structural diagram of another user terminal according to an embodiment of the present invention. The user terminal shown in FIG. 4 is optimized by the user terminal shown in FIG. 3. Compared with the user terminal shown in FIG. 3, the user terminal shown in FIG. 4 may include a receiving module 305, a starting module 306, and a determining module 307 in addition to all the modules of the user terminal shown in FIG. among them:
接收模块305,用于接收摄像头启动指令。The receiving module 305 is configured to receive a camera startup command.
本发明实施例中,当用户期望拍摄时,向用户终端发送摄像头启动指令;接收模块305接收到摄像头启动指令之后,将启动拍摄应用。可选的,用户可以通过对用户终端上提供的硬件按钮、应用图标进行操作来输入摄像头启动指令。可选的,摄像头启动指令也可以是通过第三方应用程序发送的,例如,发表图片的应用、说说等,具体的,本发明实施例不做限定。In the embodiment of the present invention, when the user desires to shoot, the camera startup command is sent to the user terminal; after the receiving module 305 receives the camera startup command, the shooting application is started. Optionally, the user can input a camera startup command by operating a hardware button and an application icon provided on the user terminal. Optionally, the camera startup command may also be sent by using a third-party application, for example, an application, a description, and the like for publishing a picture. Specifically, the embodiment of the present invention is not limited.
启动模块306,用于响应所述启动指令,启动第一摄像头和第二摄像头。The startup module 306 is configured to start the first camera and the second camera in response to the startup instruction.
本发明实施例中,接收模块305接收摄像头启动指令之后,启动模块306将响应该启动指令,启动第一摄像头和第二摄像头。In the embodiment of the present invention, after the receiving module 305 receives the camera startup command, the startup module 306 will activate the first camera and the second camera in response to the startup command.
本发明实施例中,该用户终端配置有两个摄像头,即用户终端拥有双摄像头。为方便描述,将这两个摄像头分别称为“第一摄像头”和“第二摄像头”,但值得说明的是,“第一摄像头”和“第二摄像头”仅用于描述目的。In the embodiment of the present invention, the user terminal is configured with two cameras, that is, the user terminal has a dual camera. For convenience of description, the two cameras are referred to as "first camera" and "second camera", respectively, but it is worth noting that the "first camera" and the "second camera" are for illustrative purposes only.
判断模块307,用于判断当前对焦模式是否为自动对焦模式,当判断当前对焦模式为自动对焦模式时,触发所述获取模块301执行所述当接收到自动对焦拍摄指令时,响应所述自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像的步骤。The determining module 307 is configured to determine whether the current focus mode is an auto focus mode, and when determining that the current focus mode is the auto focus mode, triggering the acquiring module 301 to perform the automatic focus shooting when the auto focus is received. a shooting instruction, a step of acquiring a first preview image by the first camera and acquiring a second preview image by the second camera.
本发明实施例中,启动模块306启动第一摄像头和第二摄像头之后,判断模块307将判断当前对焦模式是否为自动对焦模式。In the embodiment of the present invention, after the startup module 306 starts the first camera and the second camera, the determining module 307 determines whether the current focus mode is the auto focus mode.
本发明实施例中,用户终端的对焦模式可包括手动对焦模式和自动对焦模式。手动对焦模式需要用户手动设定对焦位置,用户终端对用户手动设定的对焦位置进行对焦拍摄。可选的,用户通过预览图像设定一个或多个对焦位置,使用户终端进行对焦拍摄。In the embodiment of the present invention, the focus mode of the user terminal may include a manual focus mode and an auto focus mode. The manual focus mode requires the user to manually set the focus position, and the user terminal performs focus shooting on the focus position manually set by the user. Optionally, the user sets one or more focus positions by previewing the image, so that the user terminal performs focus shooting.
当判断模块307判断当前对焦模式不为自动对焦模式时,用户终端检测用户是否输入手动对焦位置设定指令。
When the judging module 307 judges that the current focus mode is not the auto focus mode, the user terminal detects whether the user inputs a manual focus position setting command.
本发明实施例中,用户终端拥有多个对焦模式将有利于用户对对焦位置进行更好地设定,提供用户更多的对焦位置设定方式,有利于提高用户体验。In the embodiment of the present invention, the user terminal having multiple focus modes will facilitate the user to better set the focus position, and provide more focus position setting modes for the user, which is beneficial to improving the user experience.
在图3和图4所描述的用户终端中,当用户终端接收到自动对焦拍摄指令时,获取模块响应该自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像;计算模块根据第一预览图像和第二预览图像,计算第一预览图像和第二预览图像所包括的拍摄物离用户终端的物距;生成模块根据计算的物距生成至少一个景深图层,该景深图层中包括第一预览图像和第二预览图像的一个拍摄物或离用户终端的物距相同的多个拍摄物;获取模块根据预先设定的物距与对焦位置的对应关系,获取与景深图层对应的目标对焦位置,并由对焦模块通过第一摄像头和/或第二摄像头对目标对焦位置进行对焦并拍摄照片。可见,通过本发明实施例能够自动设定对焦位置并进行对焦拍摄,避免了用户手动设定对焦位置,提高了用户体验。In the user terminal described in FIG. 3 and FIG. 4, when the user terminal receives the autofocus shooting instruction, the acquiring module acquires the first preview image through the first camera in response to the autofocus shooting instruction, and acquires the second preview image through the second camera. a preview image; the calculation module calculates, according to the first preview image and the second preview image, an object distance of the subject included in the first preview image and the second preview image from the user terminal; and the generating module generates at least one depth of field according to the calculated object distance a layer, the depth of field layer includes a first object of the first preview image and the second preview image or a plurality of objects having the same object distance from the user terminal; and the acquiring module corresponds to the focus position according to the preset object distance Relationship, obtain a target focus position corresponding to the depth of field layer, and focus the target focus position and take a photo by the focus module through the first camera and/or the second camera. It can be seen that, by using the embodiment of the invention, the focus position can be automatically set and the focus shooting can be performed, thereby avoiding the user manually setting the focus position and improving the user experience.
需要说明的是,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, in the above embodiments, the descriptions of the various embodiments are different, and the parts that are not described in detail in a certain embodiment may be referred to the related descriptions of other embodiments. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
本发明实施例用户终端模块可以根据实际需要进行合并、划分和删减。In the embodiment of the present invention, the user terminal module can be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令用户终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct the user terminal device related hardware, and the program can be stored in a computer readable storage medium, the storage medium. It may include: a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
以上对本发明实施例公开的一种拍摄方法及用户终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。
The photographing method and the user terminal disclosed in the embodiments of the present invention are described in detail above. The principles and embodiments of the present invention are described in the following. The description of the above embodiments is only for helping to understand the present invention. The method and its core idea; at the same time, those skilled in the art, according to the idea of the present invention, there will be changes in the specific embodiments and application scope. In summary, the contents of this specification should not be construed as Limitations of the invention.
Claims (10)
- 一种拍摄方法,其特征在于,所述方法包括:A photographing method, characterized in that the method comprises:当接收到自动对焦拍摄指令时,响应所述自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像;Receiving the autofocus photographing instruction, acquiring the first preview image by the first camera and acquiring the second preview image by the second camera in response to the autofocus photographing instruction;根据所述第一预览图像和所述第二预览图像,计算所述第一预览图像和所述第二预览图像所包括的拍摄物离用户终端的物距;Calculating, according to the first preview image and the second preview image, an object distance of a subject included in the first preview image and the second preview image from a user terminal;根据计算的所述物距生成至少一个景深图层,所述景深图层中包括一个所述拍摄物或离所述用户终端的物距相同的多个所述拍摄物;Generating at least one depth of field layer according to the calculated object distance, wherein the depth of field layer includes one of the objects or a plurality of the objects having the same object distance from the user terminal;根据预先设定的物距与对焦位置的对应关系,获取与所述景深图层对应的目标对焦位置;Acquiring a target focus position corresponding to the depth of field layer according to a preset correspondence between the object distance and the focus position;通过所述第一摄像头和/或所述第二摄像头对所述目标对焦位置进行对焦并拍摄照片。The target focus position is focused and a photograph is taken by the first camera and/or the second camera.
- 根据权利要求1所述的方法,其特征在于,所述根据预先设定的物距与对焦位置的对应关系,获取与所述景深图层对应的目标对焦位置包括:The method according to claim 1, wherein the acquiring a target focus position corresponding to the depth of field layer according to a correspondence between a predetermined object distance and a focus position comprises:从生成的所述景深图层中获取包括人物的第一目标景深图层;Obtaining a first target depth map layer including a character from the generated depth map layer;根据预先设定的物距与对焦位置的对应关系,获取与所述第一目标景深图层对应的目标对焦位置。And acquiring a target focus position corresponding to the first target depth of field layer according to a correspondence relationship between the object distance and the focus position set in advance.
- 根据权利要求1所述的方法,其特征在于,所述根据预先设定的物距与对焦位置的对应关系,获取与所述景深图层对应的目标对焦位置包括:The method according to claim 1, wherein the acquiring a target focus position corresponding to the depth of field layer according to a correspondence between a predetermined object distance and a focus position comprises:从生成的所述景深图层中获取物距小于预设距离的第二目标景深图层;Obtaining, from the generated depth of field layer, a second target depth of field layer whose object distance is less than a preset distance;根据预先设定的物距与对焦位置的对应关系,获取与所述第二目标景深图层对应的目标对焦位置。And acquiring a target focus position corresponding to the second target depth of field layer according to a correspondence relationship between the object distance and the focus position set in advance.
- 根据权利要求1所述的方法,其特征在于,所述根据预先设定的物距与对焦位置的对应关系,获取与所述景深图层对应的目标对焦位置包括:The method according to claim 1, wherein the acquiring a target focus position corresponding to the depth of field layer according to a correspondence between a predetermined object distance and a focus position comprises:从生成的所述景深图层中获取包括的拍摄物数量大于预设数量的第三目 标景深图层;Obtaining, from the generated depth map layer, that the number of included objects is greater than a preset number of third objects Depth of field depth layer;根据预先设定的物距与对焦位置的对应关系,获取与所述第三目标景深图层对应的目标对焦位置。And acquiring a target focus position corresponding to the third target depth of field layer according to a correspondence relationship between the object distance and the focus position set in advance.
- 根据权利要求1~4任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, further comprising:接收摄像头启动指令;Receiving a camera start command;响应所述启动指令,启动第一摄像头和第二摄像头;And in response to the startup instruction, starting the first camera and the second camera;判断当前对焦模式是否为自动对焦模式;Determine whether the current focus mode is the auto focus mode;若判断结果为是,则执行所述当接收到自动对焦拍摄指令时,响应所述自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像的步骤。If the determination result is YES, the step of acquiring the first preview image by the first camera and acquiring the second preview image by the second camera in response to the auto focus shooting instruction when the auto focus shooting instruction is received is performed.
- 一种用户终端,其特征在于,所述用户终端包括:A user terminal, the user terminal comprising:获取模块,用于当接收到自动对焦拍摄指令时,响应所述自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像;The acquiring module is configured to: when the auto focus shooting instruction is received, acquire the first preview image by using the first camera, and acquire the second preview image by using the second camera in response to the auto focus shooting instruction;计算模块,用于根据所述第一预览图像和所述第二预览图像,计算所述第一预览图像和所述第二预览图像所包括的拍摄物离用户终端的物距;a calculation module, configured to calculate, according to the first preview image and the second preview image, an object distance of a subject included in the first preview image and the second preview image from a user terminal;生成模块,用于根据计算的所述物距生成至少一个景深图层,所述景深图层中包括一个所述拍摄物或离所述用户终端的物距相同的多个所述拍摄物;a generating module, configured to generate at least one depth of field layer according to the calculated object distance, where the depth of field layer includes one of the subject or a plurality of the objects having the same object distance from the user terminal;所述获取模块,还用于根据预先设定的物距与对焦位置的对应关系,获取与所述景深图层对应的目标对焦位置;The acquiring module is further configured to acquire a target focus position corresponding to the depth of field layer according to a preset correspondence between the object distance and the focus position;对焦模块,用于通过所述第一摄像头和/或所述第二摄像头对所述目标对焦位置进行对焦并拍摄照片。a focusing module, configured to focus the target focus position and take a photo by the first camera and/or the second camera.
- 根据权利要求6所述的用户终端,其特征在于,所述获取模块具体用于:The user terminal according to claim 6, wherein the obtaining module is specifically configured to:从生成的所述景深图层中获取包括人物的第一目标景深图层;Obtaining a first target depth map layer including a character from the generated depth map layer;根据预先设定的物距与对焦位置的对应关系,获取与所述第一目标景深图 层对应的目标对焦位置。Obtaining the first target depth map according to a preset correspondence between the object distance and the focus position The target focus position corresponding to the layer.
- 根据权利要求6所述的用户终端,其特征在于,所述获取模块具体用于:The user terminal according to claim 6, wherein the obtaining module is specifically configured to:从生成的所述景深图层中获取物距小于预设距离的第二目标景深图层;Obtaining, from the generated depth of field layer, a second target depth of field layer whose object distance is less than a preset distance;根据预先设定的物距与对焦位置的对应关系,获取与所述第二目标景深图层对应的目标对焦位置。And acquiring a target focus position corresponding to the second target depth of field layer according to a correspondence relationship between the object distance and the focus position set in advance.
- 根据权利要求6所述的用户终端,其特征在于,所述获取模块具体用于:The user terminal according to claim 6, wherein the obtaining module is specifically configured to:从生成的所述景深图层中获取包括的拍摄物数量大于预设数量的第三目标景深图层;Obtaining, from the generated depth map layer, that the number of included objects is greater than a preset number of third target depth layers;根据预先设定的物距与对焦位置的对应关系,获取与所述第三目标景深图层对应的目标对焦位置。And acquiring a target focus position corresponding to the third target depth of field layer according to a correspondence relationship between the object distance and the focus position set in advance.
- 根据权利要求6~9任意一项所述的用户终端,其特征在于,所述用户终端还包括:The user terminal according to any one of claims 6 to 9, wherein the user terminal further comprises:接收模块,用于接收摄像头启动指令;a receiving module, configured to receive a camera startup command;启动模块,用于响应所述启动指令,启动第一摄像头和第二摄像头;a startup module, configured to start the first camera and the second camera in response to the startup instruction;判断模块,用于判断当前对焦模式是否为自动对焦模式,当判断当前对焦模式为自动对焦模式时,触发所述获取模块执行所述当接收到自动对焦拍摄指令时,响应所述自动对焦拍摄指令,通过第一摄像头获取第一预览图像,并通过第二摄像头获取第二预览图像的步骤。 a determining module, configured to determine whether the current focus mode is an auto focus mode, and when determining that the current focus mode is an auto focus mode, triggering the acquiring module to perform the automatic focus shooting instruction when the auto focus shooting instruction is received a step of acquiring a first preview image by the first camera and acquiring a second preview image by the second camera.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510404513.3A CN105578026B (en) | 2015-07-10 | 2015-07-10 | A kind of image pickup method and user terminal |
CN201510404513.3 | 2015-07-10 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017008353A1 true WO2017008353A1 (en) | 2017-01-19 |
Family
ID=55887638
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/085884 WO2017008353A1 (en) | 2015-07-10 | 2015-07-31 | Capturing method and user terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105578026B (en) |
WO (1) | WO2017008353A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111209782A (en) * | 2018-11-22 | 2020-05-29 | 中国银联股份有限公司 | Method and system for identifying abnormal lamp of machine room equipment |
CN112995496A (en) * | 2019-12-18 | 2021-06-18 | 青岛海信移动通信技术股份有限公司 | Video recording method and mobile terminal |
CN117915200A (en) * | 2024-03-19 | 2024-04-19 | 成都唐米科技有限公司 | Fast focus-following shooting method and device based on binocular camera and binocular equipment |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105959555B (en) * | 2016-06-02 | 2019-07-19 | Oppo广东移动通信有限公司 | Screening-mode automatic adjusting method, device and mobile terminal |
CN106506958B (en) * | 2016-11-15 | 2020-04-10 | 维沃移动通信有限公司 | Method for shooting by adopting mobile terminal and mobile terminal |
CN108668069B (en) * | 2017-03-27 | 2020-04-14 | 华为技术有限公司 | Image background blurring method and device |
CN109246362B (en) * | 2017-04-28 | 2021-03-16 | 中兴通讯股份有限公司 | Image processing method and mobile terminal |
CN107911619A (en) * | 2017-12-28 | 2018-04-13 | 上海传英信息技术有限公司 | The camera system and its image capture method of a kind of intelligent terminal |
CN108632536B (en) * | 2018-07-31 | 2020-10-30 | Oppo广东移动通信有限公司 | Camera control method and device, terminal and storage medium |
CN109064390B (en) * | 2018-08-01 | 2023-04-07 | Oppo(重庆)智能科技有限公司 | Image processing method, image processing device and mobile terminal |
CN110418056A (en) * | 2019-07-16 | 2019-11-05 | Oppo广东移动通信有限公司 | A kind of image processing method, device, storage medium and electronic equipment |
CN110661970B (en) * | 2019-09-03 | 2021-08-24 | RealMe重庆移动通信有限公司 | Photographing method and device, storage medium and electronic equipment |
CN111083375B (en) * | 2019-12-27 | 2021-06-29 | 维沃移动通信有限公司 | Focusing method and electronic equipment |
CN111310567B (en) * | 2020-01-16 | 2023-06-23 | 中国建设银行股份有限公司 | Face recognition method and device in multi-person scene |
CN111885307B (en) * | 2020-07-30 | 2022-07-22 | 努比亚技术有限公司 | Depth-of-field shooting method and device and computer readable storage medium |
CN117156269A (en) * | 2022-07-06 | 2023-12-01 | 惠州Tcl移动通信有限公司 | Camera focusing method, device, electronic equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621619A (en) * | 2008-07-04 | 2010-01-06 | 华晶科技股份有限公司 | Shooting method for simultaneously focusing various faces and digital image capture device thereof |
CN102984530A (en) * | 2011-09-02 | 2013-03-20 | 宏达国际电子股份有限公司 | Image processing system and automatic focusing method |
CN103454833A (en) * | 2012-05-31 | 2013-12-18 | Lg伊诺特有限公司 | Camera system and auto focusing method thereof |
US20140071330A1 (en) * | 2012-09-10 | 2014-03-13 | Nvidia Corporation | System and method for enhanced monoimaging |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8553106B2 (en) * | 2009-05-04 | 2013-10-08 | Digitaloptics Corporation | Dual lens digital zoom |
CN103246130B (en) * | 2013-04-16 | 2016-01-20 | 广东欧珀移动通信有限公司 | A kind of focusing method and device |
CN104243838B (en) * | 2014-09-10 | 2018-01-16 | 广东欧珀移动通信有限公司 | A kind of photographic method and device based on flash lamp |
CN104349063B (en) * | 2014-10-27 | 2018-05-15 | 东莞宇龙通信科技有限公司 | A kind of method, apparatus and terminal for controlling camera shooting |
CN104333700B (en) * | 2014-11-28 | 2017-02-22 | 广东欧珀移动通信有限公司 | Image blurring method and image blurring device |
CN104639839B (en) * | 2015-03-16 | 2017-09-19 | 广东欧珀移动通信有限公司 | Image pickup method and device |
-
2015
- 2015-07-10 CN CN201510404513.3A patent/CN105578026B/en active Active
- 2015-07-31 WO PCT/CN2015/085884 patent/WO2017008353A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621619A (en) * | 2008-07-04 | 2010-01-06 | 华晶科技股份有限公司 | Shooting method for simultaneously focusing various faces and digital image capture device thereof |
CN102984530A (en) * | 2011-09-02 | 2013-03-20 | 宏达国际电子股份有限公司 | Image processing system and automatic focusing method |
CN103454833A (en) * | 2012-05-31 | 2013-12-18 | Lg伊诺特有限公司 | Camera system and auto focusing method thereof |
US20140071330A1 (en) * | 2012-09-10 | 2014-03-13 | Nvidia Corporation | System and method for enhanced monoimaging |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111209782A (en) * | 2018-11-22 | 2020-05-29 | 中国银联股份有限公司 | Method and system for identifying abnormal lamp of machine room equipment |
CN111209782B (en) * | 2018-11-22 | 2024-04-16 | 中国银联股份有限公司 | Recognition method and recognition system for abnormal lamp of equipment in machine room |
CN112995496A (en) * | 2019-12-18 | 2021-06-18 | 青岛海信移动通信技术股份有限公司 | Video recording method and mobile terminal |
CN112995496B (en) * | 2019-12-18 | 2022-07-05 | 青岛海信移动通信技术股份有限公司 | Video recording method and mobile terminal |
CN117915200A (en) * | 2024-03-19 | 2024-04-19 | 成都唐米科技有限公司 | Fast focus-following shooting method and device based on binocular camera and binocular equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105578026A (en) | 2016-05-11 |
CN105578026B (en) | 2017-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017008353A1 (en) | Capturing method and user terminal | |
WO2015180548A1 (en) | Method and device for implementing automatic shooting | |
US9313419B2 (en) | Image processing apparatus and image pickup apparatus where image processing is applied using an acquired depth map | |
WO2018228467A1 (en) | Image exposure method and device, photographing device, and storage medium | |
WO2017107629A1 (en) | Mobile terminal, data transmission system and shooting method of mobile terminal | |
US9300858B2 (en) | Control device and storage medium for controlling capture of images | |
US8718459B2 (en) | Method and digital camera having improved autofocus | |
WO2017045558A1 (en) | Depth-of-field adjustment method and apparatus, and terminal | |
CN106226976B (en) | A kind of dual camera image pickup method, system and terminal | |
WO2021169686A1 (en) | Photo capture control method and apparatus and computer readable storage medium | |
JP2007281760A (en) | Electronic camera | |
WO2018099004A1 (en) | Method and unit for focusing dual camera, and terminal device | |
EP2670127B1 (en) | Method and digital camera having improved autofocus | |
EP3062513B1 (en) | Video apparatus and photography method thereof | |
JP2019515519A5 (en) | ||
KR102150470B1 (en) | Method for setting shooting condition and electronic device performing thereof | |
US20140210941A1 (en) | Image capture apparatus, image capture method, and image capture program | |
WO2017054475A1 (en) | Image capturing method, device, and terminal | |
US11190670B2 (en) | Method and a system for processing images based a tracked subject | |
CN106488128B (en) | Automatic photographing method and device | |
TW201911853A (en) | Dual-camera image pick-up apparatus and image capturing method thereof | |
WO2016074414A1 (en) | Image processing method and apparatus | |
JP2019083580A (en) | Image processing apparatus, image processing method, and program | |
US9581882B2 (en) | Image capturing device and auto-focus method thereof | |
CN107613212A (en) | Mobile terminal and its image pickup method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15898080 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15898080 Country of ref document: EP Kind code of ref document: A1 |