WO2018040443A1 - Image capturing method and device - Google Patents

Image capturing method and device Download PDF

Info

Publication number
WO2018040443A1
WO2018040443A1 PCT/CN2016/113603 CN2016113603W WO2018040443A1 WO 2018040443 A1 WO2018040443 A1 WO 2018040443A1 CN 2016113603 W CN2016113603 W CN 2016113603W WO 2018040443 A1 WO2018040443 A1 WO 2018040443A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
dynamic
camera
photo
photos
Prior art date
Application number
PCT/CN2016/113603
Other languages
French (fr)
Chinese (zh)
Inventor
王璇
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018040443A1 publication Critical patent/WO2018040443A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/684Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time
    • H04N23/6845Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time by combination of a plurality of images sequentially taken

Definitions

  • the present invention relates to the field of photographing technology, and in particular, to a photographing method and apparatus.
  • the camera has become the standard configuration of most mobile terminals.
  • the camera function in the mobile terminal is also more and more powerful, which brings convenience to users who like to take pictures.
  • Many existing mobile terminals have powerful functions such as automatic beauty, wide-angle shooting, and continuous shooting when taking pictures, which enhances the user experience.
  • Embodiments of the present invention provide a photographing method and apparatus, which can display a dynamic focus object of a photographing area and a photographing area on a photograph.
  • an embodiment of the present invention provides a photographing method, including:
  • the first image and the second image are spliced to obtain a photo.
  • an embodiment of the present invention provides a photographing apparatus, including:
  • the first image acquisition module is configured to control the fixed camera to capture the photographed area to obtain a first image
  • a second image acquisition module configured to control the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image
  • An image splicing module is configured to splicing the first image and the second image to obtain a photo.
  • the photographing method and device provided by the embodiment of the invention captures the photographing area by controlling the fixed camera to obtain a first image, and controls the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image, and then the first image. And splicing and synthesizing with the second image to obtain a photo.
  • the program captures the dynamic focus object by using the dynamic camera while shooting the photographing area, and can display the dynamic focus object and the photographed photographed area on the same photo, which increases the fun of photographing and improves the user experience.
  • FIG. 1 is a flowchart of a method for a first embodiment of a photographing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a terminal according to a first embodiment of a photographing method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for a second embodiment of a photographing method according to an embodiment of the present invention.
  • FIG. 4 is a first schematic diagram of a second embodiment of a photographing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a second photo of a second embodiment of a photographing method according to an embodiment of the present invention.
  • FIG. 6 is a third photo diagram of a second embodiment of a photographing method according to an embodiment of the present invention.
  • FIG. 7 is a fourth photo diagram of a second embodiment of a photographing method according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for a third embodiment of a photographing method according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a first embodiment of a photographing apparatus according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of a second embodiment of a photographing apparatus according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for a first embodiment of a photographing method according to an embodiment of the present invention
  • the method of the embodiment may be performed by a photographing device, and the device may be implemented by software and/or hardware. And generally can be integrated in the mobile terminal.
  • the photographing method includes:
  • the embodiment of the invention creatively uses a dual camera to take a picture, and the two cameras respectively capture the shooting area and the dynamic focus object, and then combine the captured photos, so that the moving object can be conveniently associated with the desired background area.
  • the dynamic focus object may be a dynamic human, an animal, a plant, and other objects, for example, a running animal, a swaying flower, and a kite floating in the air, etc., which is not limited in this embodiment.
  • the terminal screen When the user takes a photo using the mobile terminal, the terminal screen simultaneously displays a preview or shooting page of the two cameras.
  • the preview or the shooting page of the two cameras can be divided into the terminal screens, or displayed in a small window, which is not limited in this embodiment.
  • a fixed camera is used to take a picture area, which is the background area that the user wants to take, usually a still area. For example, it can be a piece of grass, a picture, or a person posing. Even if there are a few movements, the movement is not very large. So you can shoot with a fixed camera.
  • the fixed camera in this embodiment refers to a camera that is fixed in position and cannot be rotated.
  • the first image is an image captured by a fixed camera, and generally only needs to take a first image.
  • a fixed camera can also take multiple first images.
  • the second image is an image captured by a dynamic camera
  • the dynamic camera is used for tracking and shooting a dynamic focus object
  • the mobile terminal senses a dynamic focus object in the camera through a dynamic camera, and then controls the dynamic camera to track the dynamic focus object, that is, The camera moves as the dynamic focus object moves.
  • the terminal can control the fixed camera to take a first image, and control the dynamic camera to continuously capture the dynamic focus object;
  • the dynamic camera is controlled to track the dynamic focus object, and the user presses the shooting button according to the tracking state of the dynamic camera, the fixed camera captures a first image, and the second image of the dynamic focus object when the dynamic camera captures the position, the second image Only one shot was taken.
  • the embodiment of the present invention focuses on the first mode, so that the dynamic camera continuously captures the dynamic focus object, and takes multiple photos for the user to select. If only one picture is taken, the position and shape of the dynamic focus object may not match the user. Expectations. Exemplarily, if a dynamic camera is used to capture a child in a running, and a plurality of captured children are in a blinking state and a closed eye state, the user only needs to select the child's blinking state to use. It is very convenient to shoot. If you only take one shot, it is possible that the child is in a closed-eye state and needs to retake the shot.
  • the dynamic camera includes: a dynamic camera moving along a preset track, or a rotatable dynamic camera.
  • FIG. 2 is a schematic structural diagram of a terminal according to a first embodiment of a photographing method according to an embodiment of the present invention.
  • the dynamic camera 11 follows the dynamic focus object movement along the preset track 12 in the horizontal direction, and the fixed camera 13 is used to capture the user-selected shooting area.
  • the preset track 12 may be in the terminal width direction, or may be in the terminal length direction, or other preset directions.
  • FIG. 2 is only a specific example of the preset track 12 in the terminal width direction.
  • the dynamic camera can also be rotatable. Such a dynamic camera is fixed in position but can be rotated in any direction for flexibility. If the dynamic focus object moves not only in the horizontal direction, for example, the bird will move up.
  • the rotatable dynamic camera makes it easier to track dynamic focus objects.
  • the mobile terminal After acquiring the first image and the second image, the mobile terminal splices it to obtain a photo in which the dynamic focus object and the shooting area are presented together.
  • the second image may have multiple photos
  • the terminal may present the multiple photos for the user to select, or set the terminal to automatically select. You can select one of the photos to be spliced with the first image, or you can select multiple photos to be spliced with the first image to get the photos you want.
  • the camera is photographed by controlling the fixed camera to obtain a first image
  • the dynamic camera is controlled to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image
  • the first image and the second image are stitched and combined.
  • Get the photo The program captures the dynamic focus object by using the dynamic camera while shooting the photographing area, and can display the dynamic focus object and the still photographed area of the photograph on the same photo, which increases the fun of photographing and improves the user experience.
  • FIG. 3 is a flowchart of a method for the second embodiment of the photographing method according to the embodiment of the present invention.
  • the embodiment of the present invention performs the stitching of the first image and the second image on the basis of the first embodiment.
  • the first image includes a photo
  • the second image includes a plurality of photos.
  • the photographing method includes:
  • the focused object detected by the fixed camera is in a moving state.
  • Dual camera photo mode “fixed camera photo mode” and “dynamic camera photo mode” can be set in the application. Users can customize the selection. For example, if the user only shoots a plant, you can use the “fixed camera photo mode” to open only the fixed camera for shooting; if the user does not limit the background, only one walking kitten can be used, then “dynamic camera” can be used. Photo mode", only the dynamic camera is turned on for shooting.
  • the dual camera photographing mode may be assisted by the mobile terminal according to the state of the focused object of the photographing area. After the mobile terminal turns on the camera function, the camera is only turned on by the fixed camera for shooting. The mobile terminal controls the fixed camera to focus on the object to be shot. If the focus object of the shooting area is detected to be in motion, the camera is prompted to turn on the dual camera mode. When the focus object to the shooting area is not in motion, shooting is performed only by fixing the camera, that is, using the "fixed camera shooting mode".
  • S220 Output whether the prompt information of the dual camera photographing mode is turned on.
  • S230 Receive an input instruction for turning on the dual camera photographing mode.
  • the terminal receives the instruction of the user to input the dual camera photographing mode, and turns on the dual camera photographing mode.
  • the dynamic camera can be controlled to track and shoot the dynamic focus object according to the time.
  • the dynamic camera can be set to capture every 0.5S, and the dynamic camera tracks the dynamic focus object 3S, so that the dynamic camera captures six photos.
  • the dynamic camera can also be controlled to intelligently track the dynamic focus object according to the pixel change.
  • the above “smart” refers to the terminal automatically controlling the shooting of the dynamic camera according to the pixel change.
  • the terminal detects that the image of the dynamic focus object previewed by the dynamic camera is different from the previous captured photo by 10 pixels, the dynamic camera is controlled to take a picture.
  • the dynamic focus object is a running child, after controlling the dynamic camera to track 3S, it may take 10 photos; if the dynamic focus object is a walking elderly, control the dynamic camera to track it after 3S, possibly shooting 5 photos.
  • Intelligent tracking shooting saves the operation of the terminal and saves the energy used for shooting.
  • the terminal may select the last photo taken by the dynamic camera to be spliced with the first image to obtain a still photo.
  • the first one can be selected, or the terminal can display all the captured photos for the user to select.
  • FIG. 4 and FIG. 5 are respectively a first photo view and a second photo view of a second embodiment of the photographing method provided by the embodiment of the present invention.
  • the mobile terminal controls the dynamic camera to take a picture of the little boy playing the plane.
  • FIG. 4 and FIG. 5 are the first and last photos of the captured little boy respectively
  • FIG. 6 is a photo of the grandfather photographed by the fixed camera, and if the mobile terminal selects the last photo in the second image of the little boy, The resulting static picture is shown in Figure 7.
  • the terminal or the user selects a plurality of photos taken, and then splices the selected photo with the first image to dynamically focus the photographed area.
  • the same shooting area is presented on a single photo, which enhances the user's shooting experience.
  • FIG. 8 is a flowchart of a method for a third embodiment of a photographing method according to an embodiment of the present invention.
  • the embodiment of the present invention performs splicing of a first image and a second image on the basis of the second embodiment.
  • the first image is a photo
  • the second image includes a plurality of photos.
  • the photographing method includes:
  • the fixed object detects that the focused object of the shooting area is in a motion state.
  • S320 Output whether the prompt information of the dual camera photographing mode is turned on.
  • S330 Receive an input instruction for turning on the dual camera photographing mode.
  • S360 Select a plurality of consecutive photos from the plurality of photos of the second image to create a dynamic picture, and splicing the first image with the dynamic picture to obtain a dynamic photo.
  • a plurality of consecutive photos may be selected from a plurality of photos of the second image to be made into a dynamic picture, and then spliced with the first image to obtain a dynamic photo for storage.
  • it can be made into a Graphics Interchange Format (GIF), that is, a plurality of consecutive photos are saved as one image file to form an animation.
  • GIF Graphics Interchange Format
  • the completed animation can be used as a GIF animation for users to use in the live chat tool, which enhances the fun of taking pictures.
  • a small boy can be made from the beginning of throwing a paper plane to a paper plane, and then stitching with the grandfather's photo to complete the dynamic photo production.
  • the terminal or the user selects several consecutive photos in a plurality of photos to create a motion picture, and then splicing with the first image to obtain the motion desired by the user.
  • the acquisition of the animation enhances the interest of the photograph.
  • the following is an embodiment of a photographing device provided in an embodiment of the present invention.
  • the embodiment of the photographing device is implemented based on the embodiment of the photographing method described above.
  • the embodiment of the photographing device please refer to the foregoing photographing.
  • An embodiment of the method An embodiment of the method.
  • FIG. 9 is a structural block diagram of a first embodiment of a photographing apparatus according to an embodiment of the present invention.
  • the apparatus may be configured in a mobile terminal.
  • the photographing apparatus includes:
  • the first image obtaining module 41 is configured to control the fixed camera to photograph the photographing area to obtain a first image
  • the second image obtaining module 42 is configured to control the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image
  • the image splicing module 43 is configured to splicing the first image and the second image to obtain a photo.
  • the camera is photographed by controlling the fixed camera to obtain a first image
  • the dynamic camera is controlled to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image
  • the first image and the second image are stitched and combined.
  • Get the photo The program captures the dynamic focus object by using the dynamic camera while shooting the photographing area, and can display the dynamic focus object and the still photographing area of the photograph on the same picture, which increases the fun of photographing and improves the user experience.
  • FIG. 10 is a structural block diagram of a second embodiment of a photographing apparatus according to an embodiment of the present invention.
  • the photographing apparatus includes:
  • the first image obtaining module 41 is configured to control the fixed camera to photograph the photographing area to obtain a first image
  • the second image obtaining module 42 is configured to control the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image
  • the image splicing module 43 is configured to splicing the first image and the second image to obtain a photo.
  • the device further includes:
  • the motion detecting module 44 is configured to detect that the focused object of the shooting area is in a motion state by the fixed camera;
  • the prompt display module 45 is configured to output prompt information of whether to turn on the dual camera photographing mode
  • the command receiving module 46 is configured to receive an input command to turn on the dual camera photographing mode.
  • the first image includes a photo
  • the second image may include several photos
  • the image splicing module 43 can be specifically configured as:
  • the first image includes a photo
  • the second image may include several photos
  • the image splicing module 43 can be specifically configured as:
  • the dynamic camera may include: a dynamic camera moving along a preset track, or a rotatable dynamic camera.
  • the terminal or the user filters in a plurality of photos, and then splices the selected photo with the first image to obtain a still photo desired by the user or Selecting a plurality of consecutive photos to obtain dynamic photos, the program satisfies the user's requirements for dynamic focusing objects and fixed background photos, and obtaining moving images enhances the interest of taking pictures.
  • the above device can perform the photographing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • the terminal 60 in the embodiment of the present invention may be different types of electronic devices, such as: a smart phone, a tablet computer, a palmtop computer, and a mobile internet device, a personal digital assistant, a media player, a smart TV, a smart watch. , smart glasses, smart bracelets, etc.
  • the terminal 60 in the embodiment of the present invention includes: at least one processor 601, such as a CPU, at least one memory 602, and at least one transceiver 603.
  • the processor 601, the memory 602, and the transceiver 603 are connected and communicated through a bus system.
  • the memory 602 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • Program code is stored in the memory 602, and the processor 601 can call the program code stored in the memory 602 through a bus system to perform related functions.
  • each module described in FIG. 9 and FIG. 10 for example, the first image acquisition module 41, the second image acquisition module 42, the image splicing module 43, the motion detection module 44, the instruction receiving module 46, etc.
  • the program code stored in the memory 602 is executed by the processor 601 to implement the functions of the respective modules to implement a photographing method.
  • the processor 601 executes the plurality of instructions to: control the fixed camera to capture the photographing area to obtain the first image; and control the dynamic camera to perform tracking and shooting on the dynamic focus object of the photographing area, to obtain the first a second image; splicing the first image with the second image to obtain a photo.
  • the processor 601 executing the plurality of instructions further includes:
  • the fixed object detects that the focused object of the shooting area is in motion
  • the first image comprises a photo
  • the second image comprises a plurality of photos
  • the first image comprises a photo
  • the second image comprises a plurality of photos
  • the dynamic camera comprises: a dynamic camera moving along a preset track, or a rotatable dynamic camera.

Abstract

Disclosed in the present invention are an image capturing method and device. The method comprises: controlling a fixed camera to photograph an image capturing region to obtain a first image; controlling a movable camera to track and photograph a movable focus object in the image capturing region to obtain a second image; and stitching the first image and the second image to obtain a photograph. The technical solution provided in embodiments of the present invention enables a movable focus object in an image capturing region and the image capturing region to be shown on one photograph.

Description

一种拍照方法和装置Photographing method and device
本申请要求于2016年08月31日提交中国专利局,申请号为201610799276.X、发明名称为“一种拍照方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610799276.X, entitled "A Photographing Method and Apparatus" on August 31, 2016, the entire contents of which are incorporated herein by reference. in.
技术领域Technical field
本发明涉及拍照技术领域,尤其涉及一种拍照方法和装置。The present invention relates to the field of photographing technology, and in particular, to a photographing method and apparatus.
背景技术Background technique
目前,摄像头已经成为大多移动终端的标准配置,随着摄像头性能的不断提升,移动终端中的拍照功能也越来越强大,为喜欢拍照的用户带来了便利。现有的很多移动终端拍照时具有自动美颜,广角拍摄,连拍等强大的功能,提升了用户体验。At present, the camera has become the standard configuration of most mobile terminals. As the performance of the camera continues to increase, the camera function in the mobile terminal is also more and more powerful, which brings convenience to users who like to take pictures. Many existing mobile terminals have powerful functions such as automatic beauty, wide-angle shooting, and continuous shooting when taking pictures, which enhances the user experience.
但是在生活中,用户经常会遇到这样的问题,若想要将动态物体同想要的背景区域拍摄在一起,往往很困难。例如,若想要让小朋友同墙上的一幅画合影,而小朋友活泼好动可能不会在此幅画前停留,当我们将摄像头对准此幅画时,小朋友可能已经跑离此区域,则不能将小朋友和此幅画捕捉到同一张照片上,降低了拍照乐趣,影响用户体验。But in life, users often encounter such problems. It is often difficult to shoot a dynamic object with the desired background area. For example, if you want a child to take a picture with a picture on the wall, and the child is lively and active, it may not stay in front of the picture. When we point the camera at the picture, the child may have already left the area. You can't capture the children and the picture on the same photo, which reduces the fun of taking pictures and affects the user experience.
发明内容Summary of the invention
本发明实施例提供一种拍照方法和装置,可将拍照区域的动态聚焦对象同拍摄区域呈现在一张照片上。Embodiments of the present invention provide a photographing method and apparatus, which can display a dynamic focus object of a photographing area and a photographing area on a photograph.
第一方面,本发明实施例提供了一种拍照方法,包括:In a first aspect, an embodiment of the present invention provides a photographing method, including:
控制固定摄像头对拍照区域进行拍摄,得到第一图像;Controlling the fixed camera to take a picture of the photographed area to obtain a first image;
控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像;Controlling the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image;
将所述第一图像与所述第二图像进行拼接,得到照片。The first image and the second image are spliced to obtain a photo.
第二方面,本发明实施例提供了一种拍照装置,包括:In a second aspect, an embodiment of the present invention provides a photographing apparatus, including:
第一图像获取模块,设置为控制固定摄像头对拍照区域进行拍摄,得到第一图像;The first image acquisition module is configured to control the fixed camera to capture the photographed area to obtain a first image;
第二图像获取模块,设置为控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像;a second image acquisition module, configured to control the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image;
图像拼接模块,设置为将所述第一图像与所述第二图像进行拼接,得到照片。An image splicing module is configured to splicing the first image and the second image to obtain a photo.
本发明实施例提供的拍照方法和装置,通过控制固定摄像头对拍照区域进行拍摄,得到第一图像,控制动态摄像头对拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像,然后将第一图像和第二图像进行拼接合成,得到照片。本方案在拍摄拍照区域的同时,利用动态摄像头跟踪拍摄动态聚焦对象,可将动态聚焦对象同拍摄的拍照区域呈现在同一张照片上,增加了拍照的乐趣,提升了用户体验。The photographing method and device provided by the embodiment of the invention captures the photographing area by controlling the fixed camera to obtain a first image, and controls the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image, and then the first image. And splicing and synthesizing with the second image to obtain a photo. The program captures the dynamic focus object by using the dynamic camera while shooting the photographing area, and can display the dynamic focus object and the photographed photographed area on the same photo, which increases the fun of photographing and improves the user experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据本发明实施例的内容和这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings may be obtained according to the contents of the embodiments of the present invention and the drawings without any creative work.
图1是本发明实施例提供的拍照方法第一个实施例的方法流程图。FIG. 1 is a flowchart of a method for a first embodiment of a photographing method according to an embodiment of the present invention.
图2是本发明实施例提供的拍照方法第一个实施例的终端结构示意图。FIG. 2 is a schematic structural diagram of a terminal according to a first embodiment of a photographing method according to an embodiment of the present invention.
图3是本发明实施例提供的拍照方法第二个实施例的方法流程图。FIG. 3 is a flowchart of a method for a second embodiment of a photographing method according to an embodiment of the present invention.
图4是本发明实施例提供的拍照方法第二个实施例的第一个照片示意图。FIG. 4 is a first schematic diagram of a second embodiment of a photographing method according to an embodiment of the present invention.
图5是本发明实施例提供的拍照方法第二个实施例的第二个照片示意图。FIG. 5 is a schematic diagram of a second photo of a second embodiment of a photographing method according to an embodiment of the present invention.
图6是本发明实施例提供的拍照方法第二个实施例的第三个照片示意图。FIG. 6 is a third photo diagram of a second embodiment of a photographing method according to an embodiment of the present invention.
图7是本发明实施例提供的拍照方法第二个实施例的第四个照片示意图。FIG. 7 is a fourth photo diagram of a second embodiment of a photographing method according to an embodiment of the present invention.
图8是本发明实施例提供的拍照方法第三个实施例的方法流程图。FIG. 8 is a flowchart of a method for a third embodiment of a photographing method according to an embodiment of the present invention.
图9是本发明实施例提供的拍照装置第一个实施例的结构方框图。FIG. 9 is a structural block diagram of a first embodiment of a photographing apparatus according to an embodiment of the present invention.
图10是本发明实施例提供的拍照装置第二个实施例的结构方框图。FIG. 10 is a structural block diagram of a second embodiment of a photographing apparatus according to an embodiment of the present invention.
图11是本发明实施例提供的一种终端的组成结构示意。FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should also be noted that, for ease of description, only some, but not all, of the present invention are shown in the drawings.
另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。It should also be noted that, for ease of description, only some, but not all, of the present invention are shown in the drawings. Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowcharts describe various operations (or steps) as a sequential process, many of the operations can be implemented in parallel, concurrently or concurrently. In addition, the order of operations can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
请参考图1,其是本发明实施例提供的拍照方法第一个实施例的方法流程图,本实施例的方法可由拍照装置来执行,所述装置可通过软件和/或硬件的方式实现,并一般可集成于移动终端中。如图1所示,该拍照方法,包括:Referring to FIG. 1 , which is a flowchart of a method for a first embodiment of a photographing method according to an embodiment of the present invention, the method of the embodiment may be performed by a photographing device, and the device may be implemented by software and/or hardware. And generally can be integrated in the mobile terminal. As shown in FIG. 1, the photographing method includes:
S110、控制固定摄像头对拍照区域进行拍摄,得到第一图像。S110. Control a fixed camera to take a picture of the photographed area to obtain a first image.
生活中,我们常常遇到,想要将拍照区域的动态的物体以拍摄区域为背景进行拍摄,但因动态聚焦对象总是移动而导致拍摄失败的问题,影响了拍摄的效果和拍摄的心情。例如,用户想要以一朵月季为背景对一只蝴蝶进行拍摄,当我们对准月季进行拍摄时,蝴蝶可能就飞走了,则月季和蝴蝶就不能拍在一张照片上了。In life, we often encounter that we want to shoot a dynamic object in the photographing area with the shooting area as the background. However, the problem of shooting failure due to the moving of the moving subject always affects the shooting effect and the mood of shooting. For example, the user wants to shoot a butterfly against the background of a rose. When we shoot for the moon, the butterfly may fly away, and the rose and the butterfly cannot be photographed on a photo.
本发明实施例创造性地使用双摄像头进行拍照,两个摄像头分别对拍摄区域和动态聚焦对象进行拍摄,然后将拍得的照片进行拼合,则可很方便地将移动的物体同想要的背景区域呈现在同一张照片上。所述动态聚焦对象可以为动态的人、动物、植物和其他的物体等,例如,奔跑的动物、摇曳的花朵和飘在空中的风筝等,本实施例对此不进行限定。The embodiment of the invention creatively uses a dual camera to take a picture, and the two cameras respectively capture the shooting area and the dynamic focus object, and then combine the captured photos, so that the moving object can be conveniently associated with the desired background area. Presented on the same photo. The dynamic focus object may be a dynamic human, an animal, a plant, and other objects, for example, a running animal, a swaying flower, and a kite floating in the air, etc., which is not limited in this embodiment.
在用户使用移动终端进行拍照时,终端屏幕同时显示两个摄像头的预览或拍摄页面。两个摄像头的预览或拍摄页面可等分终端屏幕,或按照小大窗口进行显示,在本实施例中对此不作限定。When the user takes a photo using the mobile terminal, the terminal screen simultaneously displays a preview or shooting page of the two cameras. The preview or the shooting page of the two cameras can be divided into the terminal screens, or displayed in a small window, which is not limited in this embodiment.
首先,使用一个固定摄像头拍摄拍照区域,拍照区域为用户想要拍照的背景区域,一般为静止的区域。例如,可以为一片草地、一幅画或者摆拍的人。即使会出现些许的动作,但动作幅度不是很大。所以可以用固定摄像头进行拍摄。本实施例中的固定摄像头指的是位置固定且不能转动的摄像头。所述第一图像为固定摄像头拍摄的图像,一般只需拍摄一张第一图像即可。当然,固定摄像头也可以拍摄多张第一图像。First, a fixed camera is used to take a picture area, which is the background area that the user wants to take, usually a still area. For example, it can be a piece of grass, a picture, or a person posing. Even if there are a few movements, the movement is not very large. So you can shoot with a fixed camera. The fixed camera in this embodiment refers to a camera that is fixed in position and cannot be rotated. The first image is an image captured by a fixed camera, and generally only needs to take a first image. Of course, a fixed camera can also take multiple first images.
S120、控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像。S120. Control a dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image.
所述第二图像为动态摄像头拍摄的图像,动态摄像头用于对动态聚焦对象进行跟踪拍摄,移动终端通过动态摄像头感应到摄像头中的动态聚焦对象,然后控制动态摄像机对动态聚焦对象进行跟踪,即摄像头随着动态聚焦对象的移动而移动。The second image is an image captured by a dynamic camera, the dynamic camera is used for tracking and shooting a dynamic focus object, the mobile terminal senses a dynamic focus object in the camera through a dynamic camera, and then controls the dynamic camera to track the dynamic focus object, that is, The camera moves as the dynamic focus object moves.
可有两种拍照方式,第一种,当用户按下拍摄键开始拍照时,终端可控制固定摄像图拍下一张第一图像,控制动态摄像头对动态聚焦对象连续抓拍;第二种,在预览时控制动态摄像头对动态聚焦对象进行跟踪,用户根据动态摄像头的跟踪状态按下拍摄键,固定摄像头拍摄一张第一图像,动态摄像头抓拍此位置时动态聚焦对象的第二图像,第二图像仅拍摄了一张。There are two ways to take pictures. The first type, when the user presses the shooting button to start taking a picture, the terminal can control the fixed camera to take a first image, and control the dynamic camera to continuously capture the dynamic focus object; During the preview, the dynamic camera is controlled to track the dynamic focus object, and the user presses the shooting button according to the tracking state of the dynamic camera, the fixed camera captures a first image, and the second image of the dynamic focus object when the dynamic camera captures the position, the second image Only one shot was taken.
本发明实施例重点介绍第一种方式,使动态摄像头对动态聚焦对象连续抓拍,拍摄多张照片以供用户进行选择,若仅拍摄一张,可能此时动态聚焦对象的位置和形态不符合用户的期望。示例性的,若使用动态摄像头对奔跑中的小孩子进行抓拍,抓拍的多张中有小孩子处于睁眼状态和闭眼状态的,那么用户只需选择小孩子睁眼状态的来使用即可,拍摄非常方便,若仅抓拍一张,则有可能小孩子处于闭眼状态,需要重新抓拍。The embodiment of the present invention focuses on the first mode, so that the dynamic camera continuously captures the dynamic focus object, and takes multiple photos for the user to select. If only one picture is taken, the position and shape of the dynamic focus object may not match the user. Expectations. Exemplarily, if a dynamic camera is used to capture a child in a running, and a plurality of captured children are in a blinking state and a closed eye state, the user only needs to select the child's blinking state to use. It is very convenient to shoot. If you only take one shot, it is possible that the child is in a closed-eye state and needs to retake the shot.
所述动态摄像头,包括:沿预设轨道移动的动态摄像头,或可旋转的动态摄像头。参考图2,图2是本发明实施例提供的拍照方法第一个实施例的终端结构示意图。动态摄像头11沿着水平方向的预设轨道12跟随动态聚焦对象移动,固定摄像头13用来拍摄用户选定的拍摄区域。值得说明的是,预设轨道12可以为终端宽度方向上的,也可以为终端长度方向上的,或者其他预设方向的。图2仅为预设轨道12在终端宽度方向上的一个具体的示例。The dynamic camera includes: a dynamic camera moving along a preset track, or a rotatable dynamic camera. Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a terminal according to a first embodiment of a photographing method according to an embodiment of the present invention. The dynamic camera 11 follows the dynamic focus object movement along the preset track 12 in the horizontal direction, and the fixed camera 13 is used to capture the user-selected shooting area. It should be noted that the preset track 12 may be in the terminal width direction, or may be in the terminal length direction, or other preset directions. FIG. 2 is only a specific example of the preset track 12 in the terminal width direction.
动态摄像头也可以为可旋转的。这样的动态摄像头位置固定,但可以向任意方向进行转动,具有灵活性。若动态聚焦对象不仅在水平方向移动,例如,小鸟还会向上移动等。则可旋转的动态摄像头更加方便了对动态聚焦对象进行跟踪。The dynamic camera can also be rotatable. Such a dynamic camera is fixed in position but can be rotated in any direction for flexibility. If the dynamic focus object moves not only in the horizontal direction, for example, the bird will move up. The rotatable dynamic camera makes it easier to track dynamic focus objects.
S130、将所述第一图像与所述第二图像进行拼接,得到照片。S130. Splicing the first image and the second image to obtain a photo.
在获取第一图像和第二图像后,移动终端对其进行拼接,得到了动态聚焦对象和拍摄区域呈现在一起的照片。After acquiring the first image and the second image, the mobile terminal splices it to obtain a photo in which the dynamic focus object and the shooting area are presented together.
值得说明的是,第二图像可能会有多张照片,则终端可呈现此多张照片供用户选择,也可以设定终端自动选择。可以选择其中一张照片与第一图像进行拼接,也可以选择多张照片分别与第一图像进行拼接,得到用户需要的照片。It is worth noting that the second image may have multiple photos, and the terminal may present the multiple photos for the user to select, or set the terminal to automatically select. You can select one of the photos to be spliced with the first image, or you can select multiple photos to be spliced with the first image to get the photos you want.
综上,通过控制固定摄像头对拍照区域进行拍摄,得到第一图像,控制动态摄像头对拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像,然后将第一图像和第二图像进行拼接合成,得到照片。本方案在拍摄拍照区域的同时,利用动态摄像头跟踪拍摄动态聚焦对象,可将动态聚焦对象同拍摄的静止拍照区域呈现在同一张照片上,增加了拍照的乐趣,提升了用户体验。In summary, the camera is photographed by controlling the fixed camera to obtain a first image, and the dynamic camera is controlled to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image, and then the first image and the second image are stitched and combined. Get the photo. The program captures the dynamic focus object by using the dynamic camera while shooting the photographing area, and can display the dynamic focus object and the still photographed area of the photograph on the same photo, which increases the fun of photographing and improves the user experience.
请参考图3,其是本发明实施例提供的拍照方法第二个实施例的方法流程图,本发明实施例在第一个实施例的基础上,对第一图像和第二图像的拼接进行详述。在本实施例中,所述第一图像包括一张照片,所述第二图像包含若干张照片。如图3所示,该拍照方法,包括:Please refer to FIG. 3 , which is a flowchart of a method for the second embodiment of the photographing method according to the embodiment of the present invention. The embodiment of the present invention performs the stitching of the first image and the second image on the basis of the first embodiment. Detailed. In this embodiment, the first image includes a photo, and the second image includes a plurality of photos. As shown in FIG. 3, the photographing method includes:
S210、通过固定摄像头检测到拍摄区域的聚焦对象处于运动状态。S210. The focused object detected by the fixed camera is in a moving state.
在进行双摄像头拍照之前,首先要启动双摄像头拍照模式。为了适应用户不同的需要。可在应用程序中设置“双摄像头拍照模式”、“固定摄像头拍照模式”和“动态摄像头拍照模式”。用户可自定义选择。例如,若用户仅是拍一株植物,则可使用“固定摄像头拍照模式”,只开启固定摄像头进行拍摄;若用户不限制背景,仅拍摄一只行走中的小猫,则可使用“动态摄像头拍照模式”,只开启动态摄像头进行拍摄。Before taking a dual camera, first start the dual camera mode. In order to adapt to the different needs of users. "Dual camera photo mode", "fixed camera photo mode" and "dynamic camera photo mode" can be set in the application. Users can customize the selection. For example, if the user only shoots a plant, you can use the “fixed camera photo mode” to open only the fixed camera for shooting; if the user does not limit the background, only one walking kitten can be used, then “dynamic camera” can be used. Photo mode", only the dynamic camera is turned on for shooting.
或者,可由移动终端根据拍摄区域的聚焦对象的状态辅助打开双摄像头拍照模式。移动终端打开摄像功能后,默认只打开固定摄像头进行拍摄,移动终端控制固定摄像头对所要拍摄的对象进行聚焦,若检测到拍摄区域的聚焦对象处于运动状态,则提示打开双摄像头拍照模式,若检测到拍摄区域的聚焦对象没有处于运动状态,则仅通过固定摄像头进行拍摄,即采用“固定摄像头拍照模式”进行拍摄。Alternatively, the dual camera photographing mode may be assisted by the mobile terminal according to the state of the focused object of the photographing area. After the mobile terminal turns on the camera function, the camera is only turned on by the fixed camera for shooting. The mobile terminal controls the fixed camera to focus on the object to be shot. If the focus object of the shooting area is detected to be in motion, the camera is prompted to turn on the dual camera mode. When the focus object to the shooting area is not in motion, shooting is performed only by fixing the camera, that is, using the "fixed camera shooting mode".
S220、输出是否开启双摄像头拍照模式的提示信息。S220: Output whether the prompt information of the dual camera photographing mode is turned on.
若检测到拍摄区域的聚焦对象处于运动状态,则输出是否开启双摄像头拍照模式的提示信息,并提供“是”和“否”的选项供用户进行选择;或者输出“双摄像头拍照模式”、“固定摄像头拍照模式”和“动态摄像头拍照模式”三种模式供用户进行选择。If it is detected that the focused object of the shooting area is in motion, output whether to prompt the dual camera shooting mode prompt information, and provide "Yes" and "No" options for the user to select; or output "dual camera shooting mode", " There are three modes: fixed camera shooting mode and dynamic camera shooting mode for users to choose.
S230、接收输入的开启双摄像头拍照模式的指令。S230. Receive an input instruction for turning on the dual camera photographing mode.
当用户选择开启双摄像头拍照模式时,点击按钮进行选择。终端接收到用户输入的开启双摄像头拍照模式的指令,开启双摄像头拍照模式。When the user chooses to turn on the dual camera photo mode, click the button to select. The terminal receives the instruction of the user to input the dual camera photographing mode, and turns on the dual camera photographing mode.
S240、控制固定摄像头对拍照区域进行拍摄,得到第一图像。S240. Control the fixed camera to take a picture of the photographed area to obtain a first image.
S250、控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像。S250. Control a dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image.
可控制动态摄像机根据时间对动态聚焦对象进行跟踪拍摄。示例性的,可设置动态摄像头每0.5S抓拍一次,动态摄像头共跟踪动态聚焦对象3S,这样动态摄像头抓拍六张照片。The dynamic camera can be controlled to track and shoot the dynamic focus object according to the time. For example, the dynamic camera can be set to capture every 0.5S, and the dynamic camera tracks the dynamic focus object 3S, so that the dynamic camera captures six photos.
另外,也可控制动态摄像头根据像素变化对动态聚焦对象进行智能跟踪拍摄。上述的“智能”指的是终端根据像素变化情况自动控制动态摄像机的拍摄。示例性的,若终端检测到动态摄像头预览的动态聚焦对象的图像与上一张拍摄的照片相差10个像素,则控制动态摄像头进行拍照。具体的,若动态聚焦对象是个奔跑的小孩子,控制动态摄像头对其跟踪3S后,可能拍摄了10张照片;若动态聚焦对象是个行走的老人,则控制动态摄像头对其跟踪3S后,可能拍摄了5张照片。智能跟踪拍摄,节约了终端的操作,也节省了拍摄使用的能量。In addition, the dynamic camera can also be controlled to intelligently track the dynamic focus object according to the pixel change. The above "smart" refers to the terminal automatically controlling the shooting of the dynamic camera according to the pixel change. Exemplarily, if the terminal detects that the image of the dynamic focus object previewed by the dynamic camera is different from the previous captured photo by 10 pixels, the dynamic camera is controlled to take a picture. Specifically, if the dynamic focus object is a running child, after controlling the dynamic camera to track 3S, it may take 10 photos; if the dynamic focus object is a walking elderly, control the dynamic camera to track it after 3S, possibly shooting 5 photos. Intelligent tracking shooting saves the operation of the terminal and saves the energy used for shooting.
S260、从所述第二图像的若干张照片中选取一张照片,将所述第一图像与所述选取的一张照片进行拼接,得到静态照片。S260. Select a photo from the plurality of photos of the second image, and splicing the first image with the selected one to obtain a still photo.
当动态摄像头拍摄完第二图像的多张照片后,终端可选择动态摄像头拍摄的最后一张照片与第一图像进行拼接,得到静态照片。或者也可选择最开始的一张,又或者终端可将抓拍的所有的照片进行显示,以供用户进行选择。After the dynamic camera captures multiple photos of the second image, the terminal may select the last photo taken by the dynamic camera to be spliced with the first image to obtain a still photo. Alternatively, the first one can be selected, or the terminal can display all the captured photos for the user to select.
示例性的,参考图4和5,其分别是本发明实施例提供的拍照方法第二个实施例的第一个照片示意图和第二个照片示意图。其为爷爷和小男孩进行合影时,移动终端控制动态摄像头对玩飞机的小男孩进行抓拍所得的照片。若图4和图5分别为抓拍的小男孩的第一张和最后一张照片,图6为固定摄像头拍摄的爷爷的照片,若移动终端选择小男孩的第二图像中的最后一张照片,则得到的静态图片如图7所示。Illustratively, referring to FIG. 4 and FIG. 5, which are respectively a first photo view and a second photo view of a second embodiment of the photographing method provided by the embodiment of the present invention. When the group is photographed for the grandfather and the little boy, the mobile terminal controls the dynamic camera to take a picture of the little boy playing the plane. If FIG. 4 and FIG. 5 are the first and last photos of the captured little boy respectively, FIG. 6 is a photo of the grandfather photographed by the fixed camera, and if the mobile terminal selects the last photo in the second image of the little boy, The resulting static picture is shown in Figure 7.
综上,通过控制动态摄像头对动态聚焦对象进行连续跟踪拍摄,由终端或用户在拍摄的若干照片中进行筛选,然后再将选取出来的照片同第一图像进行拼接,将拍照区域的动态聚焦对象同拍摄区域呈现在一张照片上,提升了用户的拍摄体验。In summary, by controlling the dynamic camera to continuously track the dynamic focus object, the terminal or the user selects a plurality of photos taken, and then splices the selected photo with the first image to dynamically focus the photographed area. The same shooting area is presented on a single photo, which enhances the user's shooting experience.
请参考图8,其是本发明实施例提供的拍照方法第三个实施例的方法流程图,本发明实施例在第二个实施例的基础上,对第一图像和第二图像的拼接进行详述。同样的,在本实施例中,所述第一图像为一张照片,所述第二图像包含若干张照片。如图8所示,该拍照方法,包括:Please refer to FIG. 8 , which is a flowchart of a method for a third embodiment of a photographing method according to an embodiment of the present invention. The embodiment of the present invention performs splicing of a first image and a second image on the basis of the second embodiment. Detailed. Similarly, in this embodiment, the first image is a photo, and the second image includes a plurality of photos. As shown in FIG. 8, the photographing method includes:
S310、通过固定摄像头检测到拍摄区域的聚焦对象处于运动状态。S310. The fixed object detects that the focused object of the shooting area is in a motion state.
S320、输出是否开启双摄像头拍照模式的提示信息。S320: Output whether the prompt information of the dual camera photographing mode is turned on.
S330、接收输入的开启双摄像头拍照模式的指令。S330. Receive an input instruction for turning on the dual camera photographing mode.
S340、控制固定摄像头对拍照区域进行拍摄,得到第一图像。S340. Control the fixed camera to take a picture of the photographed area to obtain a first image.
S350、控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像。S350. Control a dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image.
S360、从所述第二图像的若干张照片中选取连续的若干张照片,制成动态图片,将所述第一图像与所述动态图片进行拼接,得到动态照片。S360. Select a plurality of consecutive photos from the plurality of photos of the second image to create a dynamic picture, and splicing the first image with the dynamic picture to obtain a dynamic photo.
可从第二图像的若干照片中选取连续的若干张照片,制成动态图片,然后再与第一图像进行拼接,得到动态照片,进行保存。示例性的,可将其制作成图像互换格式(Graphics Interchange Format,GIF),即将连续的多个照片保存为一个图像文件,形成动画。完成的动画可作为GIF动图供用户使用在即时聊天工具中,增强了拍照的趣味性。示例性的,参考图4、5和6,则可制作一个小男孩从开始扔纸飞机到捡纸飞机的一个动图,再与爷爷的照片相拼接,则完成了动态照片的制作。A plurality of consecutive photos may be selected from a plurality of photos of the second image to be made into a dynamic picture, and then spliced with the first image to obtain a dynamic photo for storage. Exemplarily, it can be made into a Graphics Interchange Format (GIF), that is, a plurality of consecutive photos are saved as one image file to form an animation. The completed animation can be used as a GIF animation for users to use in the live chat tool, which enhances the fun of taking pictures. Exemplarily, referring to Figures 4, 5 and 6, a small boy can be made from the beginning of throwing a paper plane to a paper plane, and then stitching with the grandfather's photo to complete the dynamic photo production.
综上,通过控制动态摄像头对动态聚焦对象进行连续跟踪拍摄,由终端或用户在若干照片中筛选连续的若干照片,制成动图,然后同第一图像进行拼接,得到了用户想要的动图,在满足用户对动态聚焦对象和固定背景合照的要求的同时,获取动图增强了拍照的趣味性。In summary, by controlling the dynamic camera to continuously track the dynamic focus object, the terminal or the user selects several consecutive photos in a plurality of photos to create a motion picture, and then splicing with the first image to obtain the motion desired by the user. In the figure, while satisfying the user's requirements for the dynamic focus object and the fixed background photo, the acquisition of the animation enhances the interest of the photograph.
以下是本发明具体实施方式中提供的一种拍照装置的实施例,拍照装置的实施例基于前述的拍照方法的实施例实现,在拍照装置的实施例中未尽的描述,请参考前述的拍照方法的实施例。The following is an embodiment of a photographing device provided in an embodiment of the present invention. The embodiment of the photographing device is implemented based on the embodiment of the photographing method described above. In the embodiment of the photographing device, please refer to the foregoing photographing. An embodiment of the method.
请参考图9,其是本发明实施例提供的拍照装置第一个实施例的结构方框图,该装置可配置于移动终端中,如图9所示,该拍照装置,包括:Please refer to FIG. 9 , which is a structural block diagram of a first embodiment of a photographing apparatus according to an embodiment of the present invention. The apparatus may be configured in a mobile terminal. As shown in FIG. 9 , the photographing apparatus includes:
第一图像获取模块41,设置为控制固定摄像头对拍照区域进行拍摄,得到第一图像;The first image obtaining module 41 is configured to control the fixed camera to photograph the photographing area to obtain a first image;
第二图像获取模块42,设置为控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像;The second image obtaining module 42 is configured to control the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image;
图像拼接模块43,设置为将所述第一图像与所述第二图像进行拼接,得到照片。The image splicing module 43 is configured to splicing the first image and the second image to obtain a photo.
综上,通过控制固定摄像头对拍照区域进行拍摄,得到第一图像,控制动态摄像头对拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像,然后将第一图像和第二图像进行拼接合成,得到照片。本方案在拍摄拍照区域的同时,利用动态摄像头跟踪拍摄动态聚焦对象,可将动态聚焦对象同拍摄的静止拍照区域呈现在同一张图片上,增加了拍照的乐趣,提升了用户体验。In summary, the camera is photographed by controlling the fixed camera to obtain a first image, and the dynamic camera is controlled to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image, and then the first image and the second image are stitched and combined. Get the photo. The program captures the dynamic focus object by using the dynamic camera while shooting the photographing area, and can display the dynamic focus object and the still photographing area of the photograph on the same picture, which increases the fun of photographing and improves the user experience.
请参考图10,其是本发明实施例提供的拍照装置第二个实施例的结构方框图。如图10所示,该拍照装置,包括:Please refer to FIG. 10, which is a structural block diagram of a second embodiment of a photographing apparatus according to an embodiment of the present invention. As shown in FIG. 10, the photographing apparatus includes:
第一图像获取模块41,设置为控制固定摄像头对拍照区域进行拍摄,得到第一图像;The first image obtaining module 41 is configured to control the fixed camera to photograph the photographing area to obtain a first image;
第二图像获取模块42,设置为控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像;The second image obtaining module 42 is configured to control the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image;
图像拼接模块43,设置为将所述第一图像与所述第二图像进行拼接,得到照片。The image splicing module 43 is configured to splicing the first image and the second image to obtain a photo.
可选的,所述装置还包括:Optionally, the device further includes:
运动检测模块44,设置为通过固定摄像头检测到拍摄区域的聚焦对象处于运动状态;The motion detecting module 44 is configured to detect that the focused object of the shooting area is in a motion state by the fixed camera;
提示显示模块45,设置为输出是否开启双摄像头拍照模式的提示信息;The prompt display module 45 is configured to output prompt information of whether to turn on the dual camera photographing mode;
指令接收模块46,设置为接收输入的开启双摄像头拍照模式的指令。The command receiving module 46 is configured to receive an input command to turn on the dual camera photographing mode.
可选的,所述第一图像包括一张照片,所述第二图像可包含若干张照片;Optionally, the first image includes a photo, and the second image may include several photos;
图像拼接模块43,具体可设置为:The image splicing module 43 can be specifically configured as:
从所述第二图像的若干张照片中选取一张照片,将所述第一图像与所述选取的一张照片进行拼接,得到静态照片。Selecting a photo from a plurality of photos of the second image, and stitching the first image with the selected one to obtain a still photo.
可选的,所述第一图像包括一张照片,所述第二图像可包含若干张照片;Optionally, the first image includes a photo, and the second image may include several photos;
图像拼接模块43,具体可设置为:The image splicing module 43 can be specifically configured as:
从所述第二图像的若干张照片中选取连续的若干张照片,制成动态图片,将所述第一图像与所述动态图片进行拼接,得到动态照片。Selecting a plurality of consecutive photos from the plurality of photos of the second image to form a dynamic picture, and splicing the first image with the dynamic picture to obtain a dynamic photo.
可选的,所述动态摄像头,可包括:沿预设轨道移动的动态摄像头,或可旋转的动态摄像头。Optionally, the dynamic camera may include: a dynamic camera moving along a preset track, or a rotatable dynamic camera.
综上,通过控制动态摄像头对动态聚焦对象进行连续跟踪拍摄,由终端或用户在若干照片中进行筛选,然后再将选取出来的照片同第一图像进行拼接,得到了用户想要的静止照片或者选取出多张连续照片得到动态照片,本方案在满足用户对动态聚焦对象和固定背景合照的要求的同时,获取动图增强了拍照的趣味性。In summary, by controlling the dynamic camera to continuously track the dynamic focus object, the terminal or the user filters in a plurality of photos, and then splices the selected photo with the first image to obtain a still photo desired by the user or Selecting a plurality of consecutive photos to obtain dynamic photos, the program satisfies the user's requirements for dynamic focusing objects and fixed background photos, and obtaining moving images enhances the interest of taking pictures.
上述装置可执行本发明任意实施例所提供的拍照方法,具备执行方法相应的功能模块和有益效果。The above device can perform the photographing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
如图11所示,本发明实施例中的终端60可以是不同类型的电子设备,例如:智能手机、平板电脑、掌上电脑以及移动互联网设备、个人数字助理、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等。如图11所示,本发明实施例中的终端60包括:至少一个处理器601,例如CPU,至少一个存储器602,至少一个收发器603。其中,所述处理器601、存储器602、收发器603通过总线系统连接通信。所述存储器602可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。As shown in FIG. 11, the terminal 60 in the embodiment of the present invention may be different types of electronic devices, such as: a smart phone, a tablet computer, a palmtop computer, and a mobile internet device, a personal digital assistant, a media player, a smart TV, a smart watch. , smart glasses, smart bracelets, etc. As shown in FIG. 11, the terminal 60 in the embodiment of the present invention includes: at least one processor 601, such as a CPU, at least one memory 602, and at least one transceiver 603. The processor 601, the memory 602, and the transceiver 603 are connected and communicated through a bus system. The memory 602 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
所述存储器602中存储有程序代码,且所述处理器601可通过总线系统,调用所述存储器602中存储的程序代码以执行相关的功能。例如,图9、图10中所述的各个模块(例如,第一图像获取模块41、第二图像获取模块42、图像拼接模块43、所述运动检测模块44、所述指令接收模块46等)是存储在所述存储器602中的程序代码,并由所述处理器601所执行,从而实现所述各个模块的功能以实现一种拍照方法。Program code is stored in the memory 602, and the processor 601 can call the program code stored in the memory 602 through a bus system to perform related functions. For example, each module described in FIG. 9 and FIG. 10 (for example, the first image acquisition module 41, the second image acquisition module 42, the image splicing module 43, the motion detection module 44, the instruction receiving module 46, etc.) The program code stored in the memory 602 is executed by the processor 601 to implement the functions of the respective modules to implement a photographing method.
具体而言,所述处理器601执行所述多个指令从而实现:控制固定摄像头对拍照区域进行拍摄,得到第一图像;控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像;将所述第一图像与所述第二图像进行拼接,得到照片。Specifically, the processor 601 executes the plurality of instructions to: control the fixed camera to capture the photographing area to obtain the first image; and control the dynamic camera to perform tracking and shooting on the dynamic focus object of the photographing area, to obtain the first a second image; splicing the first image with the second image to obtain a photo.
根据本发明优选实施例,所述控制固定摄像头对拍照区域进行拍摄之前,所述处理器601执行所述多个指令还包括:According to a preferred embodiment of the present invention, before the controlling the fixed camera to capture the photographing area, the processor 601 executing the plurality of instructions further includes:
通过固定摄像头检测到拍摄区域的聚焦对象处于运动状态;The fixed object detects that the focused object of the shooting area is in motion;
输出是否开启双摄像头拍照模式的提示信息;Whether to output the prompt information of the dual camera photographing mode;
接收输入的开启双摄像头拍照模式的指令。Receive an input command to turn on the dual camera photo mode.
根据本发明优选实施例,所述第一图像包括一张照片,所述第二图像包含若干张照片;According to a preferred embodiment of the present invention, the first image comprises a photo, and the second image comprises a plurality of photos;
将所述第一图像与所述第二图像进行拼接,得到照片,包括:Splicing the first image and the second image to obtain a photo, including:
从所述第二图像的若干张照片中选取一张照片,将所述第一图像与所述选取的一张照片进行拼接,得到静态照片。Selecting a photo from a plurality of photos of the second image, and stitching the first image with the selected one to obtain a still photo.
根据本发明优选实施例,所述第一图像包括一张照片,所述第二图像包含若干张照片;According to a preferred embodiment of the present invention, the first image comprises a photo, and the second image comprises a plurality of photos;
将所述第一图像与所述第二图像进行拼接,得到照片,包括:Splicing the first image and the second image to obtain a photo, including:
从所述第二图像的若干张照片中选取连续的若干张照片,制成动态图片,将所述第一图像与所述动态图片进行拼接,得到动态照片。Selecting a plurality of consecutive photos from the plurality of photos of the second image to form a dynamic picture, and splicing the first image with the dynamic picture to obtain a dynamic photo.
根据本发明优选实施例,所述动态摄像头,包括:沿预设轨道移动的动态摄像头,或可旋转的动态摄像头。According to a preferred embodiment of the invention, the dynamic camera comprises: a dynamic camera moving along a preset track, or a rotatable dynamic camera.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only the preferred embodiments of the present invention and the technical principles applied thereto. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments described herein, and that various modifications, changes and substitutions may be made without departing from the scope of the invention. Therefore, the present invention has been described in detail by the above embodiments, but the present invention is not limited to the above embodiments, and other equivalent embodiments may be included without departing from the inventive concept. The scope is determined by the scope of the appended claims.

Claims (10)

  1. 一种拍照方法,其特征在于,包括:A photographing method, comprising:
    控制固定摄像头对拍照区域进行拍摄,得到第一图像;Controlling the fixed camera to take a picture of the photographed area to obtain a first image;
    控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像;Controlling the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image;
    将所述第一图像与所述第二图像进行拼接,得到照片。The first image and the second image are spliced to obtain a photo.
  2. 根据权利要求1所述的方法,其特征在于,所述控制固定摄像头对拍照区域进行拍摄之前,还包括:The method according to claim 1, wherein the controlling the fixed camera to photograph the photographing area further comprises:
    通过固定摄像头检测到拍摄区域的聚焦对象处于运动状态;The fixed object detects that the focused object of the shooting area is in motion;
    输出是否开启双摄像头拍照模式的提示信息;Whether to output the prompt information of the dual camera photographing mode;
    接收输入的开启双摄像头拍照模式的指令。Receive an input command to turn on the dual camera photo mode.
  3. 根据权利要求1所述的方法,其特征在于:The method of claim 1 wherein:
    所述第一图像包括一张照片,所述第二图像包含若干张照片;The first image includes a photo, and the second image includes a plurality of photos;
    将所述第一图像与所述第二图像进行拼接,得到照片,包括:Splicing the first image and the second image to obtain a photo, including:
    从所述第二图像的若干张照片中选取一张照片,将所述第一图像与所述选取的一张照片进行拼接,得到静态照片。Selecting a photo from a plurality of photos of the second image, and stitching the first image with the selected one to obtain a still photo.
  4. 根据权利要求1所述的方法,其特征在于:The method of claim 1 wherein:
    所述第一图像包括一张照片,所述第二图像包含若干张照片;The first image includes a photo, and the second image includes a plurality of photos;
    将所述第一图像与所述第二图像进行拼接,得到照片,包括:Splicing the first image and the second image to obtain a photo, including:
    从所述第二图像的若干张照片中选取连续的若干张照片,制成动态图片,将所述第一图像与所述动态图片进行拼接,得到动态照片。Selecting a plurality of consecutive photos from the plurality of photos of the second image to form a dynamic picture, and splicing the first image with the dynamic picture to obtain a dynamic photo.
  5. 根据权利要求1所述的方法,其特征在于:The method of claim 1 wherein:
    所述动态摄像头,包括:沿预设轨道移动的动态摄像头,或可旋转的动态摄像头。The dynamic camera includes: a dynamic camera moving along a preset track, or a rotatable dynamic camera.
  6. 一种拍照装置,其特征在于,包括:A photographing device, comprising:
    第一图像获取模块,设置为控制固定摄像头对拍照区域进行拍摄,得到第一图像;The first image acquisition module is configured to control the fixed camera to capture the photographed area to obtain a first image;
    第二图像获取模块,设置为控制动态摄像头对所述拍照区域的动态聚焦对象进行跟踪拍摄,得到第二图像;a second image acquisition module, configured to control the dynamic camera to perform tracking shooting on the dynamic focus object of the photographing area to obtain a second image;
    图像拼接模块,设置为将所述第一图像与所述第二图像进行拼接,得到照片。An image splicing module is configured to splicing the first image and the second image to obtain a photo.
  7. 根据权利要求6所述的装置,其特征在于,还包括:The device according to claim 6, further comprising:
    运动检测模块,设置为通过固定摄像头检测到拍摄区域的聚焦对象处于运动状态;a motion detecting module configured to detect that the focused object of the shooting area is in a moving state by the fixed camera;
    提示显示模块,设置为输出是否开启双摄像头拍照模式的提示信息;The prompt display module is set to output whether the information of the dual camera photographing mode is turned on;
    指令接收模块,设置为接收输入的开启双摄像头拍照模式的指令。The command receiving module is configured to receive an input command to turn on the dual camera photographing mode.
  8. 根据权利要求6所述的装置,其特征在于:,The apparatus according to claim 6, wherein:
    所述第一图像包括一张照片,所述第二图像包含若干张照片;The first image includes a photo, and the second image includes a plurality of photos;
    所述图像拼接模块,具体设置为:The image splicing module is specifically configured as:
    从所述第二图像的若干张照片中选取一张照片,将所述第一图像与所述选取的一张照片进行拼接,得到静态照片。Selecting a photo from a plurality of photos of the second image, and stitching the first image with the selected one to obtain a still photo.
  9. 根据权利要求6所述的装置,其特征在于:The device of claim 6 wherein:
    所述第一图像包括一张照片,所述第二图像包含若干张照片;The first image includes a photo, and the second image includes a plurality of photos;
    所述图像拼接模块,具体设置为:The image splicing module is specifically configured as:
    从所述第二图像的若干张照片中选取连续的若干张照片,制成动态图片,将所述第一图像与所述动态图片进行拼接,得到动态照片。Selecting a plurality of consecutive photos from the plurality of photos of the second image to form a dynamic picture, and splicing the first image with the dynamic picture to obtain a dynamic photo.
  10. 根据权利要求6所述的装置,其特征在于:The device of claim 6 wherein:
    所述动态摄像头,包括:沿预设轨道移动的动态摄像头,或可旋转的动态摄像头。The dynamic camera includes: a dynamic camera moving along a preset track, or a rotatable dynamic camera.
PCT/CN2016/113603 2016-08-31 2016-12-30 Image capturing method and device WO2018040443A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610799276.X 2016-08-31
CN201610799276.XA CN106161964A (en) 2016-08-31 2016-08-31 A kind of photographic method and device

Publications (1)

Publication Number Publication Date
WO2018040443A1 true WO2018040443A1 (en) 2018-03-08

Family

ID=57344603

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113603 WO2018040443A1 (en) 2016-08-31 2016-12-30 Image capturing method and device

Country Status (2)

Country Link
CN (1) CN106161964A (en)
WO (1) WO2018040443A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161964A (en) * 2016-08-31 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of photographic method and device
CN106776831A (en) * 2016-11-24 2017-05-31 维沃移动通信有限公司 A kind of edit methods and mobile terminal of Multimedia Combination data
CN106454130A (en) * 2016-11-29 2017-02-22 广东欧珀移动通信有限公司 Control method, control device and electric device
WO2018113203A1 (en) * 2016-12-24 2018-06-28 华为技术有限公司 Photographing method and mobile terminal
CN106713716B (en) * 2017-01-23 2020-03-31 努比亚技术有限公司 Shooting control method and device for double cameras
CN107483832A (en) * 2017-09-22 2017-12-15 惠州Tcl移动通信有限公司 A kind of mobile terminal virtual group photographic method, mobile terminal and storage medium
CN108833777A (en) * 2018-06-08 2018-11-16 成都第二记忆科技有限公司 A kind of video-photographic device and the method for carrying out video-photographic
CN108965710A (en) * 2018-07-26 2018-12-07 努比亚技术有限公司 Method, photo taking, device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539896A (en) * 2014-12-25 2015-04-22 桂林远望智能通信科技有限公司 Intelligent panoramic monitoring and hotspot close-up monitoring system and method
CN105208323A (en) * 2015-07-31 2015-12-30 深圳英飞拓科技股份有限公司 Panoramic splicing picture monitoring method and panoramic splicing picture monitoring device
CN105407297A (en) * 2015-10-30 2016-03-16 北京奇艺世纪科技有限公司 Multi-view-angle video acquisition systems
CN105516661A (en) * 2015-12-10 2016-04-20 吴健辉 Master-slave target monitoring system and method in combination of fisheye camera and PTZ camera
CN105578015A (en) * 2014-10-09 2016-05-11 聚晶半导体股份有限公司 Object tracking image processing method and object tracking image processing system
CN106161964A (en) * 2016-08-31 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of photographic method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080084482A1 (en) * 2006-10-04 2008-04-10 Sony Ericsson Mobile Communications Ab Image-capturing system and method
CN106713768B (en) * 2013-10-30 2019-07-09 Oppo广东移动通信有限公司 People's scape image composition method, system and computer equipment
CN104023172A (en) * 2014-06-27 2014-09-03 深圳市中兴移动通信有限公司 Shooting method and shooting device of dynamic image
CN104954689B (en) * 2015-06-30 2018-06-26 努比亚技术有限公司 A kind of method and filming apparatus that photo is obtained using dual camera
CN105827934B (en) * 2015-07-01 2019-08-20 维沃移动通信有限公司 The image processing method and electronic equipment of a kind of electronic equipment
CN105025222A (en) * 2015-07-03 2015-11-04 广东欧珀移动通信有限公司 Shooting method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578015A (en) * 2014-10-09 2016-05-11 聚晶半导体股份有限公司 Object tracking image processing method and object tracking image processing system
CN104539896A (en) * 2014-12-25 2015-04-22 桂林远望智能通信科技有限公司 Intelligent panoramic monitoring and hotspot close-up monitoring system and method
CN105208323A (en) * 2015-07-31 2015-12-30 深圳英飞拓科技股份有限公司 Panoramic splicing picture monitoring method and panoramic splicing picture monitoring device
CN105407297A (en) * 2015-10-30 2016-03-16 北京奇艺世纪科技有限公司 Multi-view-angle video acquisition systems
CN105516661A (en) * 2015-12-10 2016-04-20 吴健辉 Master-slave target monitoring system and method in combination of fisheye camera and PTZ camera
CN106161964A (en) * 2016-08-31 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of photographic method and device

Also Published As

Publication number Publication date
CN106161964A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
WO2018040443A1 (en) Image capturing method and device
WO2020186969A1 (en) Multi-path video recording method and device
JP7131647B2 (en) Control device, control method and control program
JP5383356B2 (en) IMAGING DEVICE, INFORMATION PROCESSING DEVICE, IMAGING DEVICE CONTROL METHOD, INFORMATION PROCESSING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
WO2022252660A1 (en) Video capturing method and electronic device
BRPI0807679A2 (en) IMAGE PROCESSING DEVICE AND METHOD
WO2018053909A1 (en) Photographic method, photographic device, and terminal
WO2013094891A1 (en) Digital photographing apparatus and method of controlling the same
JP2011035486A (en) Camera system and control method of camera
WO2021223500A1 (en) Photographing method and device
JP2008193196A (en) Imaging device and specified voice output method
WO2018040269A1 (en) Image processing method and terminal
KR101660837B1 (en) Photographing control method and appratus for capturing a moment
WO2012165845A2 (en) Display apparatus and method
CN103685958A (en) Information processing method and electronic equipment
WO2023160241A1 (en) Video processing method and related device
JP2011114487A (en) Imaging apparatus
WO2023134583A1 (en) Video recording method and apparatus, and electronic device
JP6512961B2 (en) Imaging control apparatus, control method therefor, program, and storage medium
WO2021096339A1 (en) Method for transforming image
WO2015156547A2 (en) Electronic apparatus and method of controlling the same
JP2019120748A (en) Electronic equipment and method of controlling the same
JP2019075719A (en) Electronic device and control method of the same
WO2022257687A1 (en) Video capturing method and electronic device
WO2018018357A1 (en) Vr image photographing device and mobile terminal-based vr image photographing system thereof

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: 16915003

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: 16915003

Country of ref document: EP

Kind code of ref document: A1