[go: up one dir, main page]

CN104333704B - A kind of method for previewing, device and the terminal of scene of taking pictures - Google Patents

A kind of method for previewing, device and the terminal of scene of taking pictures Download PDF

Info

Publication number
CN104333704B
CN104333704B CN201410712739.5A CN201410712739A CN104333704B CN 104333704 B CN104333704 B CN 104333704B CN 201410712739 A CN201410712739 A CN 201410712739A CN 104333704 B CN104333704 B CN 104333704B
Authority
CN
China
Prior art keywords
camera
current scene
preview
terminal
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410712739.5A
Other languages
Chinese (zh)
Other versions
CN104333704A (en
Inventor
孙剑波
张弓
蓝和
张学勇
韦怡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410712739.5A priority Critical patent/CN104333704B/en
Publication of CN104333704A publication Critical patent/CN104333704A/en
Application granted granted Critical
Publication of CN104333704B publication Critical patent/CN104333704B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

本发明适用于终端技术领域,提供了一种拍照场景的预览方法、装置及终端,包括:启动第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头相邻且位于同一拍摄平面;当检测到快门指令时,触发所述第一摄像头对当前场景进行拍照;在所述第一摄像头对当前场景进行拍照的同时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。本发明由一个摄像头执行拍照动作,由另一个摄像头同步生成拍照场景的实时画面,并作为预览画面显示在终端的显示屏中,克服了单个摄像头在曝光过程中无法输出预览画面的缺陷。

The present invention is applicable to the technical field of terminals, and provides a preview method, device and terminal for photographing scenes, including: starting a first camera and a second camera, the first camera and the second camera are adjacent and located at the same shooting plane; when a shutter instruction is detected, the first camera is triggered to take pictures of the current scene; while the first camera takes pictures of the current scene, the picture of the current scene imaged by the second camera is real-time Output to the display screen of the terminal as a preview image. In the present invention, one camera performs the photographing action, another camera synchronously generates a real-time picture of the photographing scene, and displays it on the display screen of the terminal as a preview picture, which overcomes the defect that a single camera cannot output a preview picture during the exposure process.

Description

一种拍照场景的预览方法、装置及终端A preview method, device and terminal of a photographing scene

技术领域technical field

本发明属于终端技术,尤其涉及一种拍照场景的预览方法、装置及终端。The invention belongs to terminal technology, and in particular relates to a method, device and terminal for previewing a photographing scene.

背景技术Background technique

目前,拍照功能已成为了手机等消费类电子产品所必备的基本功能之一,用户已习惯于随时随地利用手机记录并分享生活影像,享受数码生活带来的乐趣。At present, the camera function has become one of the essential functions of consumer electronic products such as mobile phones. Users have become accustomed to using mobile phones to record and share life images anytime and anywhere, and enjoy the fun brought by digital life.

当用户通过手机在光线不足的情况下进行拍照时,为了保证照片的亮度,通常,需要通过延长曝光时间以增加照片的曝光量,曝光时间可以延长至几分钟甚至几十分钟不等,在此过程中,摄像头无法输出影像,因此,用户无法通过手机显示屏来实现拍照场景的实时预览。When a user takes a photo with a mobile phone under low light conditions, in order to ensure the brightness of the photo, it is usually necessary to increase the exposure of the photo by extending the exposure time. The exposure time can be extended to several minutes or even dozens of minutes. Here During the process, the camera cannot output images, therefore, the user cannot realize the real-time preview of the camera scene through the display screen of the mobile phone.

发明内容Contents of the invention

本发明实施例的目的在于提供一种拍照场景的预览方法、装置及终端,旨在解决目前在手机拍照曝光的过程中用户无法对拍照场景进行实时预览的问题。The purpose of the embodiments of the present invention is to provide a preview method, device and terminal of a photographing scene, aiming at solving the current problem that the user cannot preview the photographing scene in real time during the exposure process of the mobile phone photographing.

第一方面,提供了一种拍照场景的预览方法,包括:启动第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头相邻且位于同一拍摄平面;当检测到快门指令时,触发所述第一摄像头对当前场景进行拍照;在所述第一摄像头对当前场景进行拍照的同时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。In a first aspect, there is provided a method for previewing a photographing scene, comprising: starting a first camera and a second camera, the first camera and the second camera are adjacent and located on the same shooting plane; when a shutter instruction is detected , triggering the first camera to take pictures of the current scene; while the first camera is taking pictures of the current scene, outputting the picture of the current scene imaged by the second camera to the display screen of the terminal in real time, as a preview screen.

在第一方面的第一种可能的实现方式中,所述方法还包括:在所述第一摄像头对当前场景进行拍照的同时,在所述预览画面上叠加显示所述第一摄像头的当前曝光时间。In a first possible implementation manner of the first aspect, the method further includes: while the first camera is taking pictures of the current scene, superimposing and displaying the current exposure of the first camera on the preview screen time.

在第一方面的第二种可能的实现方式中,所述第一摄像头的分辨率高于所述第二摄像头的分辨率。In a second possible implementation manner of the first aspect, a resolution of the first camera is higher than a resolution of the second camera.

在第一方面的第三种可能的实现方式中,所述在所述第一摄像头对当前场景进行拍照的同时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面包括:当所述第一摄像头开始对所述当前场景进行拍照时,启动对所述第一摄像头的当前曝光时间的计时;当所述计时的时间超过了预设时长,且所述第一摄像头仍然在对所述当前场景进行拍照时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。In a third possible implementation manner of the first aspect, while the first camera is taking pictures of the current scene, outputting the picture of the current scene imaged by the second camera to the display of the terminal in real time In the screen, as a preview image, it includes: when the first camera starts to take pictures of the current scene, start timing the current exposure time of the first camera; when the timing exceeds the preset duration, And when the first camera is still taking pictures of the current scene, output the picture of the current scene imaged by the second camera to the display screen of the terminal in real time as a preview picture.

在第一方面的第四种可能的实现方式中,所述方法还包括:检测到终止拍照指令,终止所述第一摄像头对所述当前场景的拍照动作。In a fourth possible implementation manner of the first aspect, the method further includes: detecting an instruction to stop taking pictures, and terminating the action of taking pictures of the current scene by the first camera.

第二方面,提供了一种拍照场景的预览装置,包括:启动单元,用于启动第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头相邻且位于同一拍摄平面;拍照单元,用于当检测到快门指令时,触发所述第一摄像头对当前场景进行拍照;预览单元,用于在所述第一摄像头对当前场景进行拍照的同时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。In a second aspect, a device for previewing a photographing scene is provided, including: an activation unit configured to activate a first camera and a second camera, the first camera and the second camera are adjacent and located on the same photographing plane; A unit configured to trigger the first camera to take pictures of the current scene when a shutter instruction is detected; a preview unit configured to image the second camera while the first camera takes pictures of the current scene The picture of the current scene is output to the display screen of the terminal in real time as a preview picture.

在第二方面的第一种可能的实现方式中,所述装置还包括:显示单元,用于在所述第一摄像头对当前场景进行拍照的同时,在所述预览画面上叠加显示所述第一摄像头的当前曝光时间。In a first possible implementation manner of the second aspect, the device further includes: a display unit configured to superimpose and display the first The current exposure time of a camera.

在第二方面的第二种可能的实现方式中,所述第一摄像头的分辨率高于所述第二摄像头的分辨率。In a second possible implementation manner of the second aspect, the resolution of the first camera is higher than the resolution of the second camera.

在第二方面的第三种可能的实现方式中,所述预览单元包括:计时子单元,用于当所述第一摄像头开始对所述当前场景进行拍照时,启动对所述第一摄像头的当前曝光时间的计时;输出子单元,用于当所述计时的时间超过了预设时长,且所述第一摄像头仍然在对所述当前场景进行拍照时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。In a third possible implementation manner of the second aspect, the preview unit includes: a timing subunit, configured to, when the first camera starts to take pictures of the current scene, start the recording of the first camera Timing of the current exposure time; an output subunit, configured to, when the timing exceeds a preset duration and the first camera is still taking pictures of the current scene, image the second camera The picture describing the current scene is output to the display screen of the terminal in real time as a preview picture.

在第二方面的第四种可能的实现方式中,所述装置还包括:终止单元,用于检测到终止拍照指令,终止所述第一摄像头对所述当前场景的拍照动作。In a fourth possible implementation manner of the second aspect, the device further includes: a terminating unit, configured to detect an instruction to terminate the photographing, and terminate the photographing action of the first camera on the current scene.

第三方面,提供了一种终端,所述终端包括如上所述的拍照场景的预览装置。In a third aspect, a terminal is provided, and the terminal includes the above-mentioned apparatus for previewing a photographed scene.

在第三方面的第一种可能的实现方式中,所述终端包括智能手机或者平板。In a first possible implementation manner of the third aspect, the terminal includes a smart phone or a tablet.

本发明实施例由一个摄像头执行拍照动作,由另一个摄像头同步生成拍照场景的实时画面,并作为预览画面显示在终端的显示屏中,克服了单个摄像头在曝光过程中无法输出预览画面的缺陷。In the embodiment of the present invention, one camera performs the photographing action, and another camera synchronously generates a real-time picture of the photographing scene, and displays it as a preview picture on the display screen of the terminal, which overcomes the defect that a single camera cannot output a preview picture during the exposure process.

附图说明Description of drawings

图1是本发明实施例提供的拍照场景的预览方法的实现流程图;Fig. 1 is the implementation flowchart of the method for previewing the photographing scene provided by the embodiment of the present invention;

图2是本发明实施例提供的第一摄像头和第二摄像头的位置示例图;Fig. 2 is an example diagram of positions of a first camera and a second camera provided by an embodiment of the present invention;

图3是本发明另一实施例提供的拍照场景的预览方法的实现流程图;Fig. 3 is a flow chart of realizing a preview method of a photographing scene provided by another embodiment of the present invention;

图4是本发明实施例提供的终端的显示屏的预览画面示意图;FIG. 4 is a schematic diagram of a preview screen of a display screen of a terminal provided by an embodiment of the present invention;

图5是本发明实施例提供的拍照场景的预览方法S103的具体实现流程图;FIG. 5 is a specific implementation flow chart of the method S103 for previewing a photographing scene provided by an embodiment of the present invention;

图6是本发明另一实施例提供的拍照场景的预览方法的实现流程图;Fig. 6 is a flow chart of realizing a preview method of a photographing scene provided by another embodiment of the present invention;

图7是本发明实施例提供的拍照场景的预览装置的结构框图;Fig. 7 is a structural block diagram of a preview device for photographing a scene provided by an embodiment of the present invention;

图8是与本发明实施例提供的终端相关的手机的部分结构的框图。Fig. 8 is a block diagram of a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例提供的拍照场景的预览方法及装置可以应用于集成了摄像头和显示屏的终端设备中,包括智能手机、平板、掌上电脑(Personal Digital Assistant,PDA)、照相机,等等,其中,终端中的摄像头用于实现拍照、摄像功能,而显示屏用于实现对拍照场景的预览功能,即,通过对摄像头当前收入的画面进行实时显示,使得用户可以预览到实时的拍照场景。The method and device for previewing a photographed scene provided by the embodiments of the present invention can be applied to terminal devices integrating a camera and a display screen, including smart phones, tablets, PDAs (Personal Digital Assistant, PDA), cameras, etc., wherein, The camera in the terminal is used to realize the functions of taking pictures and recording videos, and the display screen is used to realize the preview function of the taking pictures, that is, by displaying the pictures currently captured by the camera in real time, the user can preview the real-time taking pictures.

图1示出了本发明实施例提供的拍照场景的预览方法的实现流程,详述如下:Fig. 1 shows the implementation process of the method for previewing the scene of photographing provided by the embodiment of the present invention, which is described in detail as follows:

在S101中,启动第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头相邻且位于同一拍摄平面。In S101, start a first camera and a second camera, where the first camera and the second camera are adjacent and located on the same shooting plane.

在本实施例中,终端上同时配置了两个摄像头,其中,第一摄像头和第二摄像头为相邻的、位于同一拍摄平面上的摄像头,二者的位置关系需要满足:两个摄像头到被摄物的距离基本相同,且两个摄像头相对于被摄物的拍摄角度基本相同,所述基本相同,即所述距离或者所述拍摄角度的差异小到可以忽略不计,基于上述位置关系,两个摄像头针对同一被摄物体拍出来的照片基本一致。图2作为一种实现示例,示出了第一摄像头21和第二摄像头22被配置于手机23上的一种具体实现方式。In this embodiment, two cameras are configured on the terminal at the same time, wherein the first camera and the second camera are adjacent cameras located on the same shooting plane, and the positional relationship between the two cameras needs to satisfy: The distance of the subject is basically the same, and the shooting angles of the two cameras relative to the subject are basically the same, which means that the difference between the distance or the shooting angle is so small that it can be ignored. Based on the above positional relationship, the two cameras The photos taken by two cameras for the same subject are basically the same. FIG. 2 shows a specific implementation manner in which the first camera 21 and the second camera 22 are configured on a mobile phone 23 as an implementation example.

在本实施例中,对终端的操作系统运行的进程进行监听,当监听到操作系统中的“相机”应用程序被调用至前台运行时,同时启动终端的第一摄像头和第二摄像头。In this embodiment, the running process of the operating system of the terminal is monitored, and when it is detected that the "camera" application program in the operating system is called to run in the foreground, the first camera and the second camera of the terminal are started at the same time.

在S102中,当检测到快门指令时,触发所述第一摄像头对当前场景进行拍照。In S102, when a shutter instruction is detected, the first camera is triggered to take pictures of the current scene.

在本实施例中,所述快门指令的发出方式包括但不限于以下几种:通过按下终端物理按键来发出快门指令,相应地,需要通过检测与该物理按键相连接的电路是否联通来确定快门指令的下达;或者,通过按下终端触摸屏上的虚拟按键来发出快门指令,相应地,需要通过检测该虚拟按键所在屏幕区域的电路是否导通来确定快门指令的下达;或者,通过语音方式来发出快门指令,相应地,需要通过终端的麦克风装置接收语音数据,并分析该语音数据,来确定快门指令的下达。In this embodiment, the ways of issuing the shutter command include but are not limited to the following: the shutter command is issued by pressing a physical button of the terminal, and accordingly, it needs to be determined by detecting whether the circuit connected to the physical button is connected. The release of the shutter command; or, by pressing the virtual key on the terminal touch screen to issue the shutter command, correspondingly, it is necessary to determine whether the circuit of the screen area where the virtual key is located is conductive to determine the release of the shutter command; or, by voice To issue a shutter command, correspondingly, it is necessary to receive voice data through the microphone device of the terminal, and analyze the voice data to determine the release of the shutter command.

当快门指令下达时,触发双摄像头中的其中一个摄像头对其当前成像的场景进行拍照。When the shutter command is issued, one of the cameras in the dual cameras is triggered to take a photo of the scene currently being imaged.

在S103中,在所述第一摄像头对当前场景进行拍照的同时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。In S103, while the first camera is taking pictures of the current scene, the picture of the current scene imaged by the second camera is output to a display screen of the terminal in real time as a preview picture.

在第一摄像头对当前场景进行拍照时,由于第一摄像头处于曝光过程中,其无法输出图像至终端的显示屏上,终端显示屏只能显示黑色画面,因此,通过第二摄像头同步地对相同的场景进行成像,并将其成像的画面实时地输出至终端的显示屏中,使得终端显示屏在第一摄像头曝光成像的过程中也能够显示出拍照场景的实时图像。具体地,第二摄像头拍摄到的画面通过其镜头生成光学图像,再投射到传感器上,然后光学图像被转换成电信号,电信号再经过模数转换变为数字信号,数字信号经过DSP加工处理,再被送到终端处理器中进行处理,最终输出至终端的显示屏上,成为用户能够看见的实时预览画面。When the first camera is taking pictures of the current scene, because the first camera is in the exposure process, it cannot output images to the display screen of the terminal, and the display screen of the terminal can only display a black picture. Therefore, the same The scene is imaged, and the imaged picture is output to the display screen of the terminal in real time, so that the display screen of the terminal can also display the real-time image of the photographed scene during the exposure imaging process of the first camera. Specifically, the picture captured by the second camera generates an optical image through its lens, and then projects it on the sensor, and then the optical image is converted into an electrical signal, and the electrical signal is converted into a digital signal through analog-to-digital conversion, and the digital signal is processed by DSP , and then sent to the terminal processor for processing, and finally output to the display screen of the terminal, becoming a real-time preview screen that the user can see.

通过图1所示实施例,在其中一个摄像头执行拍照动作的过程中,由另一个摄像头同步生成拍照场景的实时画面,并作为预览画面显示在终端的显示屏中,使得用户在摄像头曝光成像的过程中也能够实时地观察到拍照场景的各种细节。尤其在光线较暗从而导致曝光时间较长(可能长达几分钟至几十分钟)的拍摄条件之下,上述拍照场景的预览方案能够很好地帮助用户观察在曝光过程中拍照场景是否出现异常。例如,拍摄灯光璀璨的夜景所需要的曝光时间为3分钟,在此过程中,若拍照场景中出现了移动的人,由于曝光时间过长,那么在最终输出的照片中会出现长长的人像拖影,导致照片作废,且白白耗费了时间和系统能耗,利用图1所示实施例,用户可以及时发现拍照场景中的异常,并尽早地终止拍摄,避免了时间和系统能耗、资源的浪费。Through the embodiment shown in Figure 1, during the process of one of the cameras taking pictures, the other camera synchronously generates a real-time picture of the scene being taken, and displays it on the display screen of the terminal as a preview picture, so that the user can take a picture of the exposure and imaging of the camera. During the process, various details of the photographed scene can also be observed in real time. Especially under the shooting conditions where the light is dark and the exposure time is long (maybe as long as several minutes to tens of minutes), the preview solution of the above shooting scene can help the user to observe whether there is any abnormality in the shooting scene during the exposure process. . For example, the exposure time required for shooting a brightly lit night scene is 3 minutes. During this process, if there are moving people in the shooting scene, long portraits will appear in the final output photo due to the long exposure time. Smearing causes the photos to be invalidated, and wastes time and system energy consumption in vain. Using the embodiment shown in Figure 1, the user can find abnormalities in the shooting scene in time and stop shooting as soon as possible, avoiding time and system energy consumption and resource consumption. waste.

作为本发明的一个实施例,如图3所示,所述方法还包括:As an embodiment of the present invention, as shown in Figure 3, the method also includes:

S104,在所述第一摄像头对当前场景进行拍照的同时,在所述预览画面上叠加显示所述第一摄像头的当前曝光时间。S104. While the first camera is taking pictures of the current scene, superimpose and display the current exposure time of the first camera on the preview screen.

本实施例能够量化拍照的曝光进程,有助于用户更好地了解到当前的拍照进程,实时了解曝光时间参数。图4示出了在预览画面上叠加当前曝光时间的一种具体的实现方式,如图4所示,曝光时间可以动态地叠加在显示屏的边界区域,在不影响用户观察预览画面细节的同时,起到了提示当前拍照曝光进程的效果。This embodiment can quantify the exposure process of photographing, which helps the user to better understand the current photographing process and the exposure time parameters in real time. Figure 4 shows a specific implementation of superimposing the current exposure time on the preview screen, as shown in Figure 4, the exposure time can be dynamically superimposed on the border area of the display screen, without affecting the user's observation of the details of the preview screen , which has the effect of prompting the current photo exposure process.

由于在本发明实施例中,第一摄像头负责完成对当前场景的拍照动作,第二摄像头负责生成当前场景的预览画面,因此,每个摄像头对各自的帧分辨率要求也不同。作为本发明的一个实施例,所述第一摄像头的分辨率高于所述第二摄像头的分辨率。In the embodiment of the present invention, the first camera is responsible for taking pictures of the current scene, and the second camera is responsible for generating a preview image of the current scene. Therefore, each camera has different requirements for its own frame resolution. As an embodiment of the present invention, the resolution of the first camera is higher than the resolution of the second camera.

所述分辨率,用于表征摄像头拍摄出的照片的清晰度,摄像头的分辨率越高,则其拍摄出的照片或者视频就越清晰。由于第二摄像头仅用于预览画面的生成,且终端的显示屏通常只有四五英寸大小,普通分辨率已足以满足用户的预览需求,因此,第二摄像头对分辨率的要求较低。而第一摄像头需要负责最终的成像,可以为第一摄像头配置较高的分辨率。因此,在本实施例中,配置的第一摄像头的分辨率高于第二摄像头的分辨率,这样一来,在第二摄像头进行预览画面生成的过程中,产生的图像的分辨率低,带来的效果是图像处理器在计算图像的反差值时需要处理的数据也相对较少,可以有效降低图像处理器的功耗,达到节能的效果。The resolution is used to characterize the clarity of the photos taken by the camera, and the higher the resolution of the camera, the clearer the photos or videos taken by it. Since the second camera is only used to generate preview images, and the display screen of the terminal is usually only four or five inches in size, the ordinary resolution is sufficient to meet the user's preview needs. Therefore, the second camera has lower requirements for resolution. The first camera needs to be responsible for the final imaging, and a higher resolution can be configured for the first camera. Therefore, in this embodiment, the resolution of the configured first camera is higher than that of the second camera. In this way, when the second camera generates a preview image, the resolution of the generated image is low, with The resulting effect is that the image processor needs to process relatively less data when calculating the contrast value of the image, which can effectively reduce the power consumption of the image processor and achieve the effect of energy saving.

作为本发明的一个实施例,可以根据实际拍照过程中曝光时间的长短,来决定是否启用第二摄像头生成预览画面,如图5所示,S103具体为:As an embodiment of the present invention, it is possible to decide whether to enable the second camera to generate a preview image according to the length of the exposure time in the actual photographing process, as shown in Figure 5, S103 is specifically:

在S501中,当所述第一摄像头开始对所述当前场景进行拍照时,启动对所述第一摄像头的当前曝光时间的计时。In S501, when the first camera starts to take pictures of the current scene, start counting the current exposure time of the first camera.

在S502中,当所述计时的时间超过了预设时长,且所述第一摄像头仍然在对所述当前场景进行拍照时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。In S502, when the counted time exceeds the preset duration and the first camera is still taking pictures of the current scene, output the picture of the current scene imaged by the second camera to the on the display screen of the terminal as a preview screen.

在本实施例中,将预设时长作为判定是否要启用第二摄像头生成预览画面的阈值,若第一摄像头曝光的时间超过了该预设时长,则表明当前第一摄像头正在进行长曝光,那么启用第二摄像头生成预览画面,便于用户在长曝光过程中观察拍照画面的细节;若第一摄像头在未到达该预设时长的时间内就已拍照完毕,则表明第一摄像头当前拍摄的照片无需经过长时间的曝光,那么在此期间若在终端显示屏中显示预览画面意义不大,于是不再显示第二摄像头拍摄生成的预览画面,从而有效地节省系统资源。In this embodiment, the preset duration is used as the threshold for determining whether to enable the second camera to generate a preview image. If the exposure time of the first camera exceeds the preset duration, it indicates that the first camera is currently performing a long exposure, then Enable the second camera to generate a preview image, which is convenient for users to observe the details of the picture taken during the long exposure process; if the first camera has taken a picture before reaching the preset duration, it means that the current photo taken by the first camera does not need After a long time of exposure, it is meaningless to display a preview image on the terminal display screen during this period, so the preview image generated by the second camera is no longer displayed, thereby effectively saving system resources.

作为本发明的一个实现示例,预设时长可以设置为5秒。As an implementation example of the present invention, the preset duration may be set to 5 seconds.

作为本发明的一个实施例,如图6所示,在S103之后,所述方法还包括:As an embodiment of the present invention, as shown in FIG. 6, after S103, the method further includes:

S105,检测到终止拍照指令,终止所述第一摄像头对所述当前场景的拍照动作。S105. Detecting an instruction to terminate the photographing, and terminating the photographing action of the first camera on the current scene.

在本实施例中,在第一摄像头完成拍照之前的曝光过程中,一旦用户通过第二摄像头生成的预览画面观察出拍照场景出现了异常,例如,终端或者支撑终端的平面发生了抖动,又或者拍照场景中出现了预料之外的物体移动,则用户可以随时发出终止拍照指令,在检测到该终止拍照指令之后,立即终止第一摄像头当前的拍照动作,退出拍摄模式,以方便用户尽早地开始下一次拍照,避免了时间和系统资源的浪费。In this embodiment, during the exposure process before the first camera completes the photoshoot, once the user observes an abnormality in the photoshoot scene through the preview image generated by the second camera, for example, the terminal or the plane supporting the terminal shakes, or If there is an unexpected object movement in the shooting scene, the user can issue a stop shooting command at any time. After detecting the stop shooting command, the current shooting action of the first camera will be terminated immediately, and the shooting mode will be exited, so that the user can start as soon as possible. The next time you take a picture, you avoid wasting time and system resources.

本发明实施例由一个摄像头执行拍照动作,由另一个摄像头同步生成拍照场景的实时画面,并作为预览画面显示在终端的显示屏中,克服了单个摄像头在曝光过程中无法输出预览画面的缺陷,使得用户在摄像头曝光成像的过程中也能够实时地观察到拍照场景的各种细节,及时发现拍照场景中的异常,并尽早地终止拍摄,避免了时间和系统能耗、资源的浪费。In the embodiment of the present invention, one camera performs the photographing action, and another camera synchronously generates a real-time picture of the photographing scene, and displays it on the display screen of the terminal as a preview picture, which overcomes the defect that a single camera cannot output a preview picture during the exposure process, It enables users to observe various details of the photographing scene in real time during the exposure and imaging process of the camera, discover abnormalities in the photographing scene in time, and stop shooting as soon as possible, avoiding waste of time, system energy consumption, and resources.

应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment of the present invention. constitute any limitation.

对应于本发明实施例所提供的拍照场景的预览方法,图7示出了本发明实施例提供的拍照场景的预览装置的结构框图,该装置可以运行于集成了摄像头和显示屏的终端设备之中,例如智能手机、平板、PDA、照相机,等等。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the method for previewing a photographing scene provided by an embodiment of the present invention, FIG. 7 shows a structural block diagram of a device for previewing a photographing scene provided by an embodiment of the present invention. The device can run on a terminal device that integrates a camera and a display screen. , such as smartphones, tablets, PDAs, cameras, etc. For ease of description, only the parts related to this embodiment are shown.

参照图7,该装置包括:Referring to Figure 7, the device includes:

启动单元71,启动第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头相邻且位于同一拍摄平面。The activation unit 71 is configured to activate a first camera and a second camera, the first camera and the second camera are adjacent and located on the same shooting plane.

拍照单元72,当检测到快门指令时,触发所述第一摄像头对当前场景进行拍照。The photographing unit 72, when a shutter instruction is detected, triggers the first camera to photograph the current scene.

预览单元73,在所述第一摄像头对当前场景进行拍照的同时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。The preview unit 73 is configured to output the picture of the current scene imaged by the second camera to the display screen of the terminal in real time as a preview picture while the first camera is taking pictures of the current scene.

可选地,所述装置还包括:Optionally, the device also includes:

显示单元,用于在所述第一摄像头对当前场景进行拍照的同时,在所述预览画面上叠加显示所述第一摄像头的当前曝光时间。The display unit is configured to superimpose and display the current exposure time of the first camera on the preview screen while the first camera is taking pictures of the current scene.

可选地,所述第一摄像头的分辨率高于所述第二摄像头的分辨率。Optionally, the resolution of the first camera is higher than the resolution of the second camera.

可选地,所述预览单元73包括:Optionally, the preview unit 73 includes:

计时子单元,当所述第一摄像头开始对所述当前场景进行拍照时,启动对所述第一摄像头的当前曝光时间的计时。The timing subunit is configured to start timing the current exposure time of the first camera when the first camera starts to take pictures of the current scene.

输出子单元,当所述计时的时间超过了预设时长,且所述第一摄像头仍然在对所述当前场景进行拍照时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。The output subunit is configured to output the picture of the current scene imaged by the second camera to the on the display screen of the terminal as a preview screen.

可选地,所述装置还包括:Optionally, the device also includes:

终止单元,检测到终止拍照指令,终止所述第一摄像头对所述当前场景的拍照动作。The terminating unit detects an instruction to terminate the photographing, and terminates the photographing action of the first camera on the current scene.

图8示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图8,手机包括:射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、第一摄像头850、第二摄像头860、以及处理器870等部件。本领域技术人员可以理解,图8中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 8 is a block diagram showing a partial structure of a mobile phone related to the terminal provided by the embodiment of the present invention. Referring to FIG. 8 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a first camera 850, a second camera 860, and a processor 870 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 8 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图8对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 8:

RF电路810可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器870处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路810还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 810 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information from the base station, it is processed by the processor 870; in addition, the designed uplink data is sent to the base station. Generally, an RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 810 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), email, Short Messaging Service (SMS), etc.

存储器820可用于存储软件程序以及模块,处理器870通过运行存储在存储器820的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器820可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 820 can be used to store software programs and modules, and the processor 870 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 820 . The memory 820 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元830可用于接收输入的数字或字符信息,以及产生与手机800的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括触控面板831以及其他输入设备832。触控面板831,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上或在触控面板831附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器870,并能接收处理器870发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 830 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone 800 . Specifically, the input unit 830 may include a touch panel 831 and other input devices 832 . The touch panel 831, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 831 or near the touch panel 831). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 831 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 870, and can receive and execute commands sent by the processor 870. In addition, the touch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 831 , the input unit 830 may also include other input devices 832 . Specifically, other input devices 832 may include but not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.

显示单元840可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元840可包括显示屏841,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏841。进一步的,触控面板831可覆盖显示屏841,当触控面板831检测到在其上或附近的触摸操作后,传送给处理器870以确定触摸事件的类型,随后处理器870根据触摸事件的类型在显示屏841上提供相应的视觉输出。虽然在图8中,触控面板831与显示屏841是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板831与显示屏841集成而实现手机的输入和输出功能。The display unit 840 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 840 may include a display screen 841. Optionally, the display screen 841 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel 831 can cover the display screen 841, and when the touch panel 831 detects a touch operation on or near it, the touch operation is sent to the processor 870 to determine the type of the touch event, and then the processor 870 according to the touch event The type provides a corresponding visual output on the display screen 841 . Although in FIG. 8 , the touch panel 831 and the display screen 841 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 831 and the display screen 841 can be integrated and Realize the input and output functions of the mobile phone.

处理器870是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器870可包括一个或多个处理单元;优选的,处理器870可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器870中。The processor 870 is the control center of the mobile phone, and uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 820, and calling data stored in the memory 820, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 870 may include one or more processing units; preferably, the processor 870 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that, the foregoing modem processor may not be integrated into the processor 870 .

尽管未示出,手机800还可以包括电源、无线模块、蓝牙模块、音频电路、传感器等,在此不再赘述。Although not shown, the mobile phone 800 may also include a power supply, a wireless module, a Bluetooth module, an audio circuit, a sensor, etc., which will not be repeated here.

在本发明实施例中,该终端所包括的处理器870还具有以下功能:拍照场景的预览方法,包括:In the embodiment of the present invention, the processor 870 included in the terminal also has the following functions: a method for previewing a photographed scene, including:

启动第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头相邻且位于同一拍摄平面;Start the first camera and the second camera, the first camera and the second camera are adjacent and located on the same shooting plane;

当检测到快门指令时,触发所述第一摄像头对当前场景进行拍照;When a shutter instruction is detected, trigger the first camera to take pictures of the current scene;

在所述第一摄像头对当前场景进行拍照的同时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。While the first camera is taking pictures of the current scene, the picture of the current scene imaged by the second camera is output to the display screen of the terminal in real time as a preview picture.

进一步地,所述方法还包括:Further, the method also includes:

在所述第一摄像头对当前场景进行拍照的同时,在所述预览画面上叠加显示所述第一摄像头的当前曝光时间。While the first camera is taking pictures of the current scene, the current exposure time of the first camera is superimposed and displayed on the preview screen.

进一步地,所述第一摄像头的分辨率高于所述第二摄像头的分辨率。Further, the resolution of the first camera is higher than the resolution of the second camera.

进一步地,所述在所述第一摄像头对当前场景进行拍照的同时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面包括:Further, while the first camera is taking pictures of the current scene, outputting the picture of the current scene imaged by the second camera to the display screen of the terminal in real time, the preview picture includes:

当所述第一摄像头开始对所述当前场景进行拍照时,启动对所述第一摄像头的当前曝光时间的计时;When the first camera starts to take pictures of the current scene, start timing the current exposure time of the first camera;

当所述计时的时间超过了预设时长,且所述第一摄像头仍然在对所述当前场景进行拍照时,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面。When the counted time exceeds the preset duration and the first camera is still taking pictures of the current scene, output the picture of the current scene imaged by the second camera to the display screen of the terminal in real time , as a preview screen.

进一步地,所述方法还包括:Further, the method also includes:

检测到终止拍照指令,终止所述第一摄像头对所述当前场景的拍照动作。An instruction to terminate the photographing is detected, and the photographing action of the first camera on the current scene is terminated.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1.一种拍照场景的预览方法,其特征在于,包括:1. A method for previewing a photographed scene, comprising: 当监听到操作系统中的相机应用程序被调用至前台运行时,同时启动第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头相邻且位于同一拍摄平面;When it is detected that the camera application in the operating system is called to run in the foreground, start the first camera and the second camera at the same time, the first camera and the second camera are adjacent and located on the same shooting plane; 当检测到快门指令时,触发所述第一摄像头对当前场景进行拍照;When a shutter instruction is detected, trigger the first camera to take pictures of the current scene; 在所述第一摄像头对当前场景进行拍照的同时,在曝光成像的过程中,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面,包括:While the first camera is taking pictures of the current scene, in the process of exposure imaging, output the picture of the current scene imaged by the second camera to the display screen of the terminal in real time, as a preview picture, including: 当所述第一摄像头开始对所述当前场景进行拍照时,启动对所述第一摄像头的当前曝光时间的计时;When the first camera starts to take pictures of the current scene, start timing the current exposure time of the first camera; 当所述计时的时间超过了预设时长,且所述第一摄像头仍然在对所述当前场景进行拍照时,在曝光成像的过程中,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面;When the counted time exceeds the preset duration and the first camera is still taking pictures of the current scene, during the exposure imaging process, the picture of the current scene imaged by the second camera Real-time output to the display screen of the terminal as a preview screen; 若所述第一摄像头在未到达所述预设时长的时间内就已拍照完毕,则在曝光成像的过程中,不显示所述第二摄像头拍摄生成的预览画面。If the first camera finishes taking pictures before the preset duration, the preview image generated by the second camera will not be displayed during the exposure and imaging process. 2.如权利要求1所述的方法,其特征在于,所述方法还包括:2. The method of claim 1, further comprising: 在所述第一摄像头对当前场景进行拍照的同时,在所述预览画面上叠加显示所述第一摄像头的当前曝光时间。While the first camera is taking pictures of the current scene, the current exposure time of the first camera is superimposed and displayed on the preview screen. 3.如权利要求1所述的方法,其特征在于,所述第一摄像头的分辨率高于所述第二摄像头的分辨率。3. The method according to claim 1, wherein the resolution of the first camera is higher than the resolution of the second camera. 4.如权利要求1所述的方法,其特征在于,所述方法还包括:4. The method of claim 1, further comprising: 检测到终止拍照指令,终止所述第一摄像头对所述当前场景的拍照动作。An instruction to terminate the photographing is detected, and the photographing action of the first camera on the current scene is terminated. 5.一种拍照场景的预览装置,其特征在于,包括:5. A preview device for photographing a scene, characterized in that it comprises: 启动单元,用于当监听到操作系统中的相机应用程序被调用至前台运行时,同时启动第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头相邻且位于同一拍摄平面;The starting unit is used to start the first camera and the second camera at the same time when it is detected that the camera application in the operating system is called to run in the foreground, the first camera and the second camera are adjacent and located on the same shooting plane ; 拍照单元,用于当检测到快门指令时,触发所述第一摄像头对当前场景进行拍照;A photographing unit, configured to trigger the first camera to photograph the current scene when a shutter instruction is detected; 预览单元,用于在所述第一摄像头对当前场景进行拍照的同时,在曝光成像的过程中,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面;The preview unit is configured to output the picture of the current scene imaged by the second camera to the display screen of the terminal in real time during the exposure imaging process while the first camera is taking pictures of the current scene, as preview screen; 所述预览单元包括:The preview unit includes: 计时子单元,用于当所述第一摄像头开始对所述当前场景进行拍照时,启动对所述第一摄像头的当前曝光时间的计时;A timing subunit, configured to start timing the current exposure time of the first camera when the first camera starts to take pictures of the current scene; 输出子单元,用于当所述计时的时间超过了预设时长,且所述第一摄像头仍然在对所述当前场景进行拍照时,在曝光成像的过程中,将所述第二摄像头成像的所述当前场景的画面实时输出至终端的显示屏中,作为预览画面;若所述第一摄像头在未到达所述预设时长的时间内就已拍照完毕,则在曝光成像的过程中,不显示所述第二摄像头拍摄生成的预览画面。An output subunit, configured to, when the counted time exceeds a preset duration and the first camera is still taking pictures of the current scene, during the exposure imaging process, image the second camera The picture of the current scene is output to the display screen of the terminal in real time as a preview picture; if the first camera has finished taking pictures before reaching the preset duration, then during the exposure imaging process, no A preview image generated by shooting with the second camera is displayed. 6.如权利要求5所述的装置,其特征在于,所述装置还包括:6. The device of claim 5, further comprising: 显示单元,用于在所述第一摄像头对当前场景进行拍照的同时,在所述预览画面上叠加显示所述第一摄像头的当前曝光时间。The display unit is configured to superimpose and display the current exposure time of the first camera on the preview screen while the first camera is taking pictures of the current scene. 7.如权利要求5所述的装置,其特征在于,所述第一摄像头的分辨率高于所述第二摄像头的分辨率。7. The device according to claim 5, wherein the resolution of the first camera is higher than the resolution of the second camera. 8.如权利要求5所述的装置,其特征在于,所述装置还包括:8. The device of claim 5, further comprising: 终止单元,用于检测到终止拍照指令,终止所述第一摄像头对所述当前场景的拍照动作。The terminating unit is configured to detect an instruction to terminate the photographing, and terminate the photographing action of the first camera on the current scene. 9.一种终端,其特征在于,所述终端包括如权利要求5至8任一项所述的拍照场景的预览装置。9. A terminal, characterized in that the terminal comprises the device for previewing a photographed scene according to any one of claims 5 to 8. 10.如权利要求9所述的终端,其特征在于,所述终端包括智能手机或者平板。10. The terminal according to claim 9, wherein the terminal comprises a smart phone or a tablet.
CN201410712739.5A 2014-11-28 2014-11-28 A kind of method for previewing, device and the terminal of scene of taking pictures Expired - Fee Related CN104333704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410712739.5A CN104333704B (en) 2014-11-28 2014-11-28 A kind of method for previewing, device and the terminal of scene of taking pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410712739.5A CN104333704B (en) 2014-11-28 2014-11-28 A kind of method for previewing, device and the terminal of scene of taking pictures

Publications (2)

Publication Number Publication Date
CN104333704A CN104333704A (en) 2015-02-04
CN104333704B true CN104333704B (en) 2018-01-16

Family

ID=52408346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410712739.5A Expired - Fee Related CN104333704B (en) 2014-11-28 2014-11-28 A kind of method for previewing, device and the terminal of scene of taking pictures

Country Status (1)

Country Link
CN (1) CN104333704B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917974A (en) * 2015-05-13 2015-09-16 青岛海信移动通信技术股份有限公司 Long exposure method and camera device
CN105611139B (en) * 2015-07-15 2018-04-10 宇龙计算机通信科技(深圳)有限公司 Image processing method, image processing apparatus and terminal
CN105472245B (en) * 2015-12-21 2019-09-24 联想(北京)有限公司 A kind of photographic method, electronic equipment
CN105959574B (en) * 2016-06-30 2019-01-15 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN106060406B (en) * 2016-07-27 2020-03-06 维沃移动通信有限公司 A kind of photographing method and mobile terminal
JP2020516094A (en) * 2016-12-24 2020-05-28 華為技術有限公司Huawei Technologies Co.,Ltd. Camera control method and terminal
CN108259741A (en) * 2018-01-10 2018-07-06 上海展扬通信技术有限公司 Method, mobile terminal and the computer readable storage medium of multiple terminals synchronous photo taking
CN109729270A (en) 2018-12-30 2019-05-07 联想(北京)有限公司 A kind of control method, device and electronic equipment
CN110187812B (en) * 2019-04-28 2022-04-08 珠海格力电器股份有限公司 Method for activating touch screen, electronic equipment and touch communication equipment
CN113366819B (en) * 2019-05-29 2022-08-16 深圳市欢太科技有限公司 Camera starting method, related device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102914941A (en) * 2011-08-03 2013-02-06 Lg电子株式会社 3D camera assembly and mobile terminal having the same
CN103402055A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Camera chip for mobile terminal, mobile terminal with camera function, photographing method and device thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4483841B2 (en) * 2006-09-06 2010-06-16 カシオ計算機株式会社 Imaging device
KR20110002630A (en) * 2009-07-02 2011-01-10 삼성전자주식회사 Camera operation method and device of mobile terminal
CN102244722B (en) * 2010-05-10 2013-09-04 曜鹏科技股份有限公司 Image capture module and image capture method for avoiding shutter delay
CN102984355A (en) * 2012-11-08 2013-03-20 深圳桑菲消费通信有限公司 Cell phone and dual-camera achieving method thereof
CN103297696B (en) * 2013-05-24 2016-12-28 小米科技有限责任公司 Image pickup method, device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102914941A (en) * 2011-08-03 2013-02-06 Lg电子株式会社 3D camera assembly and mobile terminal having the same
CN103402055A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Camera chip for mobile terminal, mobile terminal with camera function, photographing method and device thereof

Also Published As

Publication number Publication date
CN104333704A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN104333704B (en) A kind of method for previewing, device and the terminal of scene of taking pictures
CN104333701B (en) Method and device for displaying camera preview pictures as well as terminal
CN104363375B (en) A kind of method, apparatus and terminal of photo noise reduction
CN109671106B (en) Image processing method, device and equipment
CN103400108B (en) Face identification method, device and mobile terminal
KR101839569B1 (en) Method and terminal for acquiring panoramic image
CN106027916A (en) A supplementary light photographing method and terminal
CN104333702A (en) A method, device and terminal for automatic focusing
CN112449099A (en) Image processing method, electronic equipment and cloud server
CN110225237B (en) Image acquisition method, device and mobile terminal
CN110913139B (en) Photographing method and electronic equipment
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
CN104363376A (en) Continuous focusing method, device and terminal
WO2016019926A1 (en) Photo shooting method, device, and mobile terminal
CN107566746B (en) Photographing method and user terminal
CN107807772A (en) Image processing method, device and mobile terminal
CN105120181B (en) The image capture method and device of mobile terminal
CN106161931A (en) Image preview method and device
CN105915815A (en) Method and device for shooting based on mobile device, and mobile device
CN110944114B (en) Photographing method and electronic device
CN109561255B (en) Terminal photographing method and device and storage medium
CN112019738A (en) A photographing method and terminal device
JP6653310B2 (en) Method and terminal for acquiring panoramic image
CN106341610A (en) Photographing method and mobile terminal
CN107249022B (en) Image backup method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Granted publication date: 20180116