CN104333701B - Method and device for displaying camera preview pictures as well as terminal - Google Patents
Method and device for displaying camera preview pictures as well as terminal Download PDFInfo
- Publication number
- CN104333701B CN104333701B CN201410705811.1A CN201410705811A CN104333701B CN 104333701 B CN104333701 B CN 104333701B CN 201410705811 A CN201410705811 A CN 201410705811A CN 104333701 B CN104333701 B CN 104333701B
- Authority
- CN
- China
- Prior art keywords
- camera
- preview image
- preview
- terminal
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000001514 detection method Methods 0.000 claims description 8
- 238000003384 imaging method Methods 0.000 claims description 8
- 230000002194 synthesizing effect Effects 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 10
- 239000002699 waste material Substances 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000008921 facial expression Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 231100000289 photo-effect Toxicity 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Studio Devices (AREA)
Abstract
本发明适用于终端技术领域,提供了一种相机预览画面的显示方法、装置及终端,包括:将第一摄像头拍摄的画面实时传输至终端的显示屏,作为第一预览画面;检测所述预览画面中的对焦物体;令第二摄像头变焦至所述对焦物体区域,根据所述第二摄像头实时拍摄的画面生成第二预览画面;将所述第二预览画面合成至所述第一预览画面的指定像素区域中,在终端的显示屏同时显示。本发明可以在拍照过程中在终端显示屏上呈现画中画的效果,对整个拍照场景及对焦物体进行同时展示,实现对对焦物体的细节预览,防止拍摄出对焦物体表现不佳的照片,避免了对时间及系统资源的浪费。
The present invention is applicable to the technical field of terminals, and provides a camera preview screen display method, device and terminal, including: transmitting the screen captured by the first camera to the display screen of the terminal in real time as the first preview screen; detecting the preview screen The focus object in the picture; make the second camera zoom to the focus object area, generate a second preview picture according to the picture captured by the second camera in real time; synthesize the second preview picture into the first preview picture In the specified pixel area, it is simultaneously displayed on the display screen of the terminal. The present invention can present the picture-in-picture effect on the terminal display screen during the photographing process, display the entire photographing scene and the focused object at the same time, realize the detailed preview of the focused object, prevent the photographs of the focused object from taking poor performance, and avoid Waste of time and system resources.
Description
技术领域technical field
本发明属于终端技术领域.,尤其涉及一种相机预览画面的显示方法、装置及终端。The invention belongs to the technical field of terminals, and in particular relates to a display method, device and terminal of a camera preview screen.
背景技术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.
由于手机在显示屏尺寸上的限制,当通过手机进行拍照时,用户无法很好地看清对焦物体的细节。例如,通过手机拍摄旅行者站在广阔草原中的画面,对焦物体为该旅行者的面部,那么通过手机显示屏显示的拍摄场景预览画面,拍照者实际是无法看清该旅行者的面部表情的,如此一来,可能出现在旅行者眨眼时完成拍照的情况,导致拍照效果不理想,且白白耗费了拍照时间,并对手机系统资源和能耗造成了浪费。Due to the limitation of the display size of the mobile phone, the user cannot clearly see the details of the focused object when taking pictures through the mobile phone. For example, if you take a picture of a traveler standing in the vast grassland with a mobile phone, and the focus object is the face of the traveler, then the photographer cannot actually see the facial expression of the traveler clearly through the preview screen of the shooting scene displayed on the mobile phone display , In this way, it may happen that the photo is taken when the traveler blinks, resulting in unsatisfactory photo effects, waste of time for taking pictures, and waste of mobile phone system resources and energy consumption.
发明内容Contents of the invention
本发明实施例的目的在于提供一种相机预览画面的显示方法、装置及终端,旨在解决现阶段通过手机拍照时,手机显示屏无法对对焦物体的细节实现预览的问题。The purpose of the embodiments of the present invention is to provide a method, device and terminal for displaying a preview image of a camera, aiming at solving the problem that the display screen of the mobile phone cannot preview the details of the focused object when taking pictures with a mobile phone at this stage.
第一方面,提供了一种相机预览画面的显示方法,包括:将第一摄像头拍摄的画面实时传输至终端的显示屏,作为第一预览画面;检测所述预览画面中的对焦物体;令第二摄像头变焦至所述对焦物体区域,根据所述第二摄像头实时拍摄的画面生成第二预览画面;将所述第二预览画面合成至所述第一预览画面的指定像素区域中,在终端的显示屏同时显示。In the first aspect, a method for displaying a camera preview image is provided, including: transmitting the image captured by the first camera to the display screen of the terminal in real time as the first preview image; detecting the focused object in the preview image; The second camera zooms to the focused object area, and generates a second preview picture according to the picture captured by the second camera in real time; the second preview picture is synthesized into the specified pixel area of the first preview picture, and is displayed on the terminal's The display shows at the same time.
在第一方面的第一种可能的实现方式中,所述将所述第二预览画面合成至所述第一预览画面的指定像素区域中,包括:获取所述指定像素区域的图像分辨率;将所述第二预览画面压缩至所述图像分辨率后,覆盖在所述指定像素区域之上。In a first possible implementation manner of the first aspect, the synthesizing the second preview image into a specified pixel area of the first preview image includes: acquiring an image resolution of the specified pixel area; After the second preview image is compressed to the image resolution, it is overlaid on the designated pixel area.
在第一方面的第二种可能的实现方式中,所述令第二摄像头变焦至所述对焦物体区域,根据所述第二摄像头实时拍摄的画面生成第二预览画面,包括:获取所述指定像素区域的图像分辨率;将所述第二摄像头的成像分辨率调整为所述图像分辨率大小;令所述第二摄像头变焦至所述对焦物体,根据所述第二摄像头实时拍摄的画面生成所述图像分辨率大小的所述第二预览画面。In a second possible implementation manner of the first aspect, the zooming the second camera to the focused object area, and generating the second preview picture according to the picture captured by the second camera in real time includes: acquiring the specified The image resolution of the pixel area; adjusting the imaging resolution of the second camera to the size of the image resolution; making the second camera zoom to the focus object, and generating according to the picture captured by the second camera in real time The second preview frame of the image resolution size.
在第一方面的第三种可能的实现方式中,所述指定像素区域在所述第一预览画面中的位置包括:所述第一预览画面的左上角、右上角、左下角或者右下角。In a third possible implementation manner of the first aspect, the position of the specified pixel area in the first preview image includes: an upper left corner, an upper right corner, a lower left corner, or a lower right corner of the first preview image.
结合第一方面或者第一方面的任一种可能的实现方式,在第四种可能的实现方式中,所述方法还包括:在终端的显示屏中检测对所述第二预览画面的拖动操作;获取所述拖动操作的拖动轨迹和终止位置;将所述第二预览画面沿着所述拖动轨迹移动,并最终覆盖在所述终止位置所在的像素区域之上。With reference to the first aspect or any possible implementation manner of the first aspect, in a fourth possible implementation manner, the method further includes: detecting dragging of the second preview image on the display screen of the terminal Operation: Acquire the drag track and end position of the drag operation; move the second preview image along the drag track, and finally cover the pixel area where the end position is located.
第二方面,提供了一种相机预览画面的显示装置,包括:第一显示单元,用于将第一摄像头拍摄的画面实时传输至终端的显示屏,作为第一预览画面;第一检测单元,用于检测所述预览画面中的对焦物体;生成单元,用于令第二摄像头变焦至所述对焦物体区域,根据所述第二摄像头实时拍摄的画面生成第二预览画面;第二显示单元,用于将所述第二预览画面合成至所述第一预览画面的指定像素区域中,在终端的显示屏同时显示。In a second aspect, a display device for a camera preview image is provided, including: a first display unit configured to transmit the image captured by the first camera to the display screen of the terminal in real time as the first preview image; a first detection unit, For detecting the focused object in the preview image; a generating unit, configured to zoom the second camera to the focused object area, and generate a second preview image according to the real-time captured image of the second camera; the second display unit, It is used to synthesize the second preview image into the specified pixel area of the first preview image, and simultaneously display it on the display screen of the terminal.
在第二方面的第一种可能的实现方式中,所述第二显示单元包括:第一获取子单元,用于获取所述指定像素区域的图像分辨率;覆盖子单元,用于将所述第二预览画面压缩至所述图像分辨率后,覆盖在所述指定像素区域之上。In a first possible implementation manner of the second aspect, the second display unit includes: a first acquiring subunit, configured to acquire the image resolution of the designated pixel area; a covering subunit, configured to After the second preview image is compressed to the image resolution, it is overlaid on the specified pixel area.
在第二方面的第二种可能的实现方式中,所述生成单元包括:第二获取子单元,用于获取所述指定像素区域的图像分辨率;调整子单元,用于将所述第二摄像头的成像分辨率调整为所述图像分辨率大小;拍摄子单元,用于令所述第二摄像头变焦至所述对焦物体,根据所述第二摄像头实时拍摄的画面生成所述图像分辨率大小的所述第二预览画面。In a second possible implementation manner of the second aspect, the generation unit includes: a second acquisition subunit, configured to acquire the image resolution of the specified pixel area; an adjustment subunit, configured to convert the second The imaging resolution of the camera is adjusted to the image resolution size; the shooting subunit is used to make the second camera zoom to the focus object, and generate the image resolution size according to the picture captured by the second camera in real time The second preview screen of .
在第二方面的第三种可能的实现方式中,所述指定像素区域在所述第一预览画面中的位置包括:所述第一预览画面的左上角、右上角、左下角或者右下角。In a third possible implementation manner of the second aspect, the position of the specified pixel area in the first preview image includes: an upper left corner, an upper right corner, a lower left corner, or a lower right corner of the first preview image.
结合第二方面或者第二方面的任一种可能的实现方式,在第四种可能的实现方式中,所述装置还包括:第二检测单元,用于在终端的显示屏中检测对所述第二预览画面的拖动操作;获取单元,用于获取所述拖动操作的拖动轨迹和终止位置;第三显示单元,用于将所述第二预览画面沿着所述拖动轨迹移动,并最终覆盖在所述终止位置所在的像素区域之上。With reference to the second aspect or any possible implementation manner of the second aspect, in a fourth possible implementation manner, the device further includes: a second detection unit, configured to detect, on a display screen of the terminal, the The drag operation of the second preview image; the acquiring unit, configured to acquire the drag track and the termination position of the drag operation; the third display unit, configured to move the second preview image along the drag track , and finally cover the pixel area where the end position is located.
第三方面,提供了一种终端,所述终端包括如上所述的相机预览画面的显示装置。In a third aspect, a terminal is provided, and the terminal includes the device for displaying a preview image of a camera as described above.
在第三方面的第一种可能的实现方式中,所述终端包括智能手机或平板。In a first possible implementation manner of the third aspect, the terminal includes a smart phone or a tablet.
本发明实施例可以在拍照过程中在终端显示屏上呈现画中画的效果,对整个拍照场景及对焦物体进行同时展示,实现对对焦物体的细节预览,防止拍摄出对焦物体表现不佳的照片,避免了对时间及系统资源的浪费。The embodiment of the present invention can present a picture-in-picture effect on the display screen of the terminal during the photographing process, display the entire photographing scene and the focused object at the same time, realize the detailed preview of the focused object, and prevent the shooting of poorly performing photos of the focused object , avoiding the waste of time and system resources.
附图说明Description of drawings
图1是本发明实施例提供的相机预览画面的显示方法的实现流程图;FIG. 1 is a flow chart of an implementation of a method for displaying a camera preview screen provided by an 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 an example diagram of a first preview screen and a second preview screen provided by an embodiment of the present invention;
图4是本发明实施例提供的第一预览画面和第二预览画面的合成效果图;Fig. 4 is a synthetic effect diagram of the first preview image and the second preview image provided by the embodiment of the present invention;
图5是本发明实施例提供的相机预览画面的显示方法S104的具体实现流程图;FIG. 5 is a specific implementation flowchart of the method S104 for displaying a camera preview screen provided by an embodiment of the present invention;
图6是本发明另一实施例提供的相机预览画面的显示方法S104的具体实现流程图;FIG. 6 is a flow chart of a specific realization of the camera preview image display method S104 provided by another embodiment of the present invention;
图7是本发明另一实施例提供的相机预览画面的显示方法的实现流程图;Fig. 7 is a flow chart of realizing a method for displaying a camera preview screen provided by another embodiment of the present invention;
图8是本发明实施例提供的对第二预览画面进行拖动操作的示意图;FIG. 8 is a schematic diagram of a drag operation on a second preview image provided by an embodiment of the present invention;
图9是本发明实施例提供的相机预览画面的显示装置的结构框图;9 is a structural block diagram of a display device for a camera preview screen provided by an embodiment of the present invention;
图10是与本发明实施例提供的终端相关的手机的部分结构的框图。Fig. 10 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 description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。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 displaying a camera preview screen 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, and the like. Among them, the camera in the terminal is used to realize the function of taking pictures and recording video, and the display screen is used to realize the preview function of the shooting picture, that is, the picture currently received by the camera is displayed in real time for the user to preview, so as to achieve the function of the viewfinder. Effect.
图1示出了本发明实施例提供的相机预览画面的显示方法的实现流程,详述如下:Fig. 1 shows the implementation process of the method for displaying the camera preview screen provided by the embodiment of the present invention, which is described in detail as follows:
在S101中,将第一摄像头拍摄的画面实时传输至终端的显示屏,作为第一预览画面。In S101, a picture captured by a first camera is transmitted to a display screen of a terminal in real time as a first preview picture.
在本实施例中,对终端的操作系统运行的进程进行监听,当监听到操作系统中的“相机”应用程序被调用至前台运行时,首先启动终端的第一摄像头,并将第一摄像头成像的画面实时地输出至终端的显示屏中,作为预览画面显示。In this embodiment, the process running on the operating system of the terminal is monitored. When it is detected that the "camera" application in the operating system is called to run in the foreground, the first camera of the terminal is first started, and the first camera is imaged. The screen is output to the display screen of the terminal in real time and displayed as a preview screen.
具体地,第一摄像头拍摄到的画面通过其镜头生成光学图像,再投射到传感器上,然后光学图像被转换成电信号,电信号再经过模数转换变为数字信号,数字信号经过DSP加工处理,再被送到终端处理器中进行处理,最终输出至终端的显示屏上,成为用户能够看见的实时预览画面。Specifically, the picture captured by the first camera generates an optical image through its lens, and then projects it on the sensor, 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.
在S102中,检测所述预览画面中的对焦物体。In S102, a focused object in the preview image is detected.
在对焦指令下达之时,检测对焦指令在预览画面中指示的对焦物体,且一旦对焦指令下达,则第一摄像头按照正常的处理流程,对确定出的对焦物体执行对焦操作,调整焦距,将焦点落在对焦物体上,使对焦物体成像清晰。When the focus command is issued, the focus object indicated by the focus command in the preview screen is detected, and once the focus command is issued, the first camera performs the focus operation on the determined focus object according to the normal processing flow, adjusts the focal length, and sets the focus Fall on the focused object to make the image of the focused object clear.
所述对焦指令的下达至少可以包括以下两种方式:由用户在具备触摸功能的显示屏上对预览画面中的景物进行点选,选定需要进行对焦的被摄物;通过系统配置好的对焦方式,在拍照按键被轻触时自动下达对焦指令,其中,对焦方式包括但不限于:中心对焦、指定区域对焦,等等,相应地,中心对焦时对焦物体为位于预览画面中心的被摄物,指定区域对焦时对焦物体为位于预览画面指定区域的被摄物。The issuing of the focusing instruction may at least include the following two methods: the user clicks on the scene in the preview screen on the display screen with touch function, and selects the subject to be focused; mode, when the camera button is tapped, the focus command is automatically issued, wherein the focus mode includes but not limited to: center focus, designated area focus, etc., correspondingly, the focus object is the subject located in the center of the preview screen , when the specified area is focused, the focus object is the subject located in the specified area of the preview screen.
在S103中,令第二摄像头变焦至所述对焦物体区域,根据所述第二摄像头实时拍摄的画面生成第二预览画面。In S103, the second camera is made to zoom to the focused object area, and a second preview image is generated according to the images captured by the second camera in real time.
在本实施例中,所述终端同时具备两个摄像头,且第一摄像头和第二摄像头位于所述终端的同一侧面板之上,优选地,第一摄像头和第二摄像头可以为相邻的、位于同一拍摄平面上的摄像头。图2作为一种实现示例,示出了第一摄像头21和第二摄像头22被配置于手机23上的一种具体实现方式。In this embodiment, the terminal has two cameras at the same time, and the first camera and the second camera are located on the same side panel of the terminal. Preferably, the first camera and the second camera can be adjacent, Cameras located on the same shooting plane. 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.
所述第二摄像头,可以在监听到操作系统中的“相机”应用程序被调用至前台运行时,与第一摄像头同时启动,也可以在S102检测出预览画面中的对焦物体之后启动。The second camera can be started simultaneously with the first camera when it is detected that the "camera" application in the operating system is called to run in the foreground, or it can be started after S102 detects the focused object in the preview image.
第二摄像头在启动之后,以对焦物体为主体,在其变焦范围内执行变焦操作,改变其镜头的焦距,达到将对焦物体放大成像的效果。其中,第二摄像头的变焦方式可以为数码变焦或者光学变焦,所述变焦范围,即第二摄像头的镜头本身的焦距范围,代表了该镜头可视范围的大小,焦距越大则代表可见范围越小,反之,焦距越小则代表可见范围越大。例如,18-135mm的变焦镜头,其广角段(即可视范围最大的情况)的焦距是18mm,窄角段(即可视范围最小的情况)的焦距是135mm。在本实施例中,第二摄像头变焦至所述对焦物体区域,通常意义上来说,是将第二摄像头变焦至焦距较大的位置上,从而将可视范围仅锁定在对焦物体区域,达到对对焦物体放大成像的效果。After the second camera is started, it takes the focused object as the main body, performs a zoom operation within its zoom range, changes the focal length of its lens, and achieves the effect of zooming in on the focused object. Wherein, the zoom mode of the second camera can be digital zoom or optical zoom, and the zoom range, that is, the focal length range of the lens of the second camera itself, represents the size of the visible range of the lens, and the larger the focal length, the wider the visible range. Conversely, the smaller the focal length, the larger the visible range. For example, for an 18-135mm zoom lens, the focal length of the wide-angle segment (that is, the case with the largest viewing range) is 18mm, and the focal length of the narrow-angle segment (that is, the case with the smallest viewing range) is 135mm. In this embodiment, the second camera zooms to the focused object area. In a general sense, the second camera zooms to a position with a larger focal length, so that the visible range is only locked in the focused object area, achieving The effect of zooming in on a focused object.
作为本发明的一个实现示例,图3示出了在同一时刻第一预览画面和第二预览画面的示例图,其中,第二预览画面中展示的是第一预览画面中选定的对焦物体。As an implementation example of the present invention, FIG. 3 shows an example diagram of a first preview image and a second preview image at the same moment, wherein the second preview image shows the focus object selected in the first preview image.
在S104中,将所述第二预览画面合成至所述第一预览画面的指定像素区域中,在终端的显示屏同时显示。In S104, the second preview image is synthesized into the designated pixel area of the first preview image, and simultaneously displayed on the display screen of the terminal.
在本实施例中,将第二预览画面叠加在第一预览画面之上,并覆盖第一预览画面指定像素区域的像素,从而得到将第一预览画面与第二预览画面合成显示的效果,并输出至终端的显示屏中显示。为了达到较佳的合成显示效果,避免第二预览画面的主要内容被遮盖,在本实施例中,所述指定像素区域要仅为第一预览画面的部分像素区域,优选地,指定像素区域仅占据第一预览画面的九分之一。In this embodiment, the second preview image is superimposed on the first preview image, and covers the pixels in the designated pixel area of the first preview image, thereby obtaining the effect of synthesizing the first preview image and the second preview image, and The output is displayed on the display screen of the terminal. In order to achieve a better composite display effect and avoid the main content of the second preview image being covered, in this embodiment, the specified pixel area should only be a part of the pixel area of the first preview image. Preferably, the specified pixel area is only Occupies one-ninth of the first preview screen.
其中,所述指定像素区域在所述第一预览画面中的位置包括:Wherein, the position of the designated pixel area in the first preview image includes:
所述第一预览画面的左上角、右上角、左下角或者右下角,上述位置分别对应的第一预览画面与第二预览画面的合成显示效果如图4所示。The upper left corner, the upper right corner, the lower left corner or the lower right corner of the first preview image, and the combined display effect of the first preview image and the second preview image corresponding to the above positions are shown in FIG. 4 .
通过图1所示实施例所提供的拍照预览画面的显示方法,可以在拍照过程中在终端显示屏上呈现画中画的效果,对整个拍照场景及对焦物体进行同时展示,实现对对焦物体的细节预览,防止拍摄出对焦物体表现不佳的照片,避免了对时间及系统资源的浪费。Through the display method of the photo preview screen provided by the embodiment shown in Figure 1, the effect of picture-in-picture can be presented on the terminal display screen during the photo taking process, and the entire photo scene and the focused object can be displayed at the same time, so as to realize the display of the focused object Detail preview prevents taking pictures of poorly focused objects and avoids wasting time and system resources.
作为对图1所示实施例的进一步解释说明,以下通过若干个实施例,来具体阐述将第二预览画面合成至第一预览画面的实现方法:As a further explanation of the embodiment shown in FIG. 1, the implementation method of synthesizing the second preview image into the first preview image will be specifically described through several embodiments below:
作为本发明的一个实施例,可以在第二预览画面生成之后对该预览画面进行处理,使其有效地合成至第一预览画面之中。如图5所示,在本实施例中,S104具体为:As an embodiment of the present invention, after the second preview image is generated, the preview image can be processed so that it can be effectively synthesized into the first preview image. As shown in Figure 5, in this embodiment, S104 is specifically:
S501,获取所述指定像素区域的图像分辨率。S501. Acquire the image resolution of the specified pixel area.
所述指定像素区域的图像分辨率,即该指定像素区域内所包含的像素点的数量。例如,1024*768的图像分辨率,即代表该图像的每一条水平线上包含有1024个像素点,总共有768条水平线。The image resolution of the specified pixel area is the number of pixels contained in the specified pixel area. For example, an image resolution of 1024*768 means that each horizontal line of the image contains 1024 pixels, and there are 768 horizontal lines in total.
由于指定像素区域已知,因此,该区域的图像分辨率可以预先存储在数据库中,在执行S501时通过调用数据库即可获取到该指定像素区域的图像分辨率。Since the specified pixel area is known, the image resolution of this area can be pre-stored in the database, and the image resolution of the specified pixel area can be obtained by calling the database when executing S501.
S502,将所述第二预览画面压缩至所述图像分辨率后,覆盖在所述指定像素区域之上。S502. After compressing the second preview image to the image resolution, overlay it on the designated pixel area.
将第二摄像头拍摄的第二预览画面进行压缩,压缩至指定像素区域的图像分辨率大小,使其能够被容纳在该指定像素区域内,以恰好覆盖在指定像素区域之上。Compress the second preview image captured by the second camera to the image resolution size of the specified pixel area, so that it can be accommodated in the specified pixel area, so as to just cover the specified pixel area.
作为本发明的另一实施例,可以直接根据指定像素区域的图像分辨率来生成第二预览画面,使其有效地合成至第一预览画面之中。如图6所示,在本实施例中,S104具体为:As another embodiment of the present invention, the second preview image can be generated directly according to the image resolution of the specified pixel area, so that it can be effectively synthesized into the first preview image. As shown in Figure 6, in this embodiment, S104 is specifically:
S601,获取所述指定像素区域的图像分辨率。S601. Acquire the image resolution of the specified pixel area.
指定像素区域图像分辨率的获取方式可以如图5实施例S501所述。The manner of acquiring the image resolution of the specified pixel area may be as described in the embodiment S501 of FIG. 5 .
S602,将所述第二摄像头的成像分辨率调整为所述图像分辨率大小。S602. Adjust the imaging resolution of the second camera to the size of the image resolution.
S603,令所述第二摄像头变焦至所述对焦物体,拍摄并生成所述图像分辨率大小的所述第二预览画面。S603. Make the second camera zoom to the focused object, shoot and generate the second preview image with the image resolution size.
在S602中,直接将第二摄像头拍摄图像的成像分辨率调整为该指定像素区域的图像分辨率大小,如此一来,S603中第二摄像头拍摄的画面将直接按照该图像分辨率大小输出。由于指定像素区域的分辨率通常要小于第二摄像头所能成像的最大分辨率,因此相比于本发明图5所示实施例,本实施例中直接令第二摄像头采用较低的分辨率进行拍摄,能够有效地节省终端闪存空间,节约系统资源。In S602, the imaging resolution of the image captured by the second camera is directly adjusted to the image resolution of the specified pixel area. In this way, the picture captured by the second camera in S603 will be directly output according to the image resolution. Since the resolution of the specified pixel area is usually smaller than the maximum resolution that the second camera can image, so compared with the embodiment shown in FIG. Shooting can effectively save terminal flash memory space and system resources.
通常意义上说来,第一摄像头和第二摄像头所拍摄的图像的长宽比都是相同的,因此,第二摄像头拍摄的图像可以直接被压缩至与该图像分辨率大小相符,而倘若一旦出现第一摄像头和第二摄像头所拍摄的图像的长宽比不相符,仍然需要保证压缩后的第二预览画面能够被容纳在指定像素区域内,以保证最后在进行合成时第二预览画面不会遮挡第一预览画面指定像素区域之外的画面,而指定像素区域内剩余的其他区域可以用黑色像素或者其他灰度值的像素进行填充。Generally speaking, the aspect ratio of the images captured by the first camera and the second camera are the same, therefore, the images captured by the second camera can be directly compressed to match the image resolution size, and if once If the aspect ratios of the images captured by the first camera and the second camera do not match, it is still necessary to ensure that the compressed second preview image can be accommodated in the specified pixel area, so as to ensure that the second preview image does not The images outside the specified pixel area of the first preview image will be blocked, and the remaining areas within the specified pixel area can be filled with black pixels or pixels of other gray values.
作为本发明的一个实施例,在第二预览画面与第一预览画面合成之后,为了保证第一预览画面的全部内容均能够得已展现,可以对第二预览画面进行拖动操作,将第二预览画面拖动至第一预览画面的其他像素区域,以灵活地调整第二预览画面所占据的位置。如图7所示,在S104之后,所述方法还包括:As an embodiment of the present invention, after the second preview image is combined with the first preview image, in order to ensure that all the contents of the first preview image can be displayed, the second preview image can be dragged, and the second Drag the preview image to other pixel areas of the first preview image to flexibly adjust the position occupied by the second preview image. As shown in FIG. 7, after S104, the method further includes:
在S701中,在终端的显示屏中检测对所述第二预览画面的拖动操作。In S701, a drag operation on the second preview image is detected on a display screen of a terminal.
在S702中,获取所述拖动操作的拖动轨迹和终止位置。In S702, a drag track and an end position of the drag operation are obtained.
其中,所述拖动操作可以在集成了触摸面板的显示屏中实现,该拖动操作以指定像素区域为起始位置,通过检测用户手指在显示屏上的滑动轨迹,来获取到该拖动操作的拖动轨迹和终止位置。Wherein, the dragging operation can be implemented in a display screen integrated with a touch panel. The dragging operation takes the specified pixel area as the starting position, and obtains the dragging operation by detecting the sliding track of the user's finger on the display screen. The drag trajectory and end position of the operation.
在S703中,将所述第二预览画面沿着所述拖动轨迹移动,并最终覆盖在所述终止位置所在的像素区域之上。In S703, move the second preview image along the dragging track, and finally cover the pixel area where the ending position is located.
其中,所述终止位置所在的像素区域,即以该终止位置的触摸点为中心,面积为指定像素区域大小的区域。Wherein, the pixel area where the end position is located is an area whose area is the size of the specified pixel area centered on the touch point at the end position.
图8示出了在一次拖动操作中第二预览画面的拖动轨迹,通过拖动第二预览画面,可以展现第一预览画面中被第二预览画面所遮挡部分的内容,保证拍摄场景的全部内容均能够得以展现。Fig. 8 shows the drag track of the second preview image in one drag operation, by dragging the second preview image, the content of the part of the first preview image that is blocked by the second preview image can be displayed, ensuring the accuracy of the shooting scene All content can be displayed.
应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。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.
对应于本发明实施例所提供的拍照场景的预览方法,图9示出了本发明实施例提供的拍照场景的预览装置的结构框图,该装置可以运行于集成了摄像头和显示屏的终端设备之中,例如智能手机、平板、PDA、照相机,等等。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the method for previewing a photographing scene provided by an embodiment of the present invention, FIG. 9 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.
参照图9,该装置包括:Referring to Figure 9, the device includes:
第一显示单元91,将第一摄像头拍摄的画面实时传输至终端的显示屏,作为第一预览画面。The first display unit 91 transmits the picture taken by the first camera to the display screen of the terminal in real time as the first preview picture.
第一检测单元92,检测所述预览画面中的对焦物体。The first detection unit 92 is configured to detect the focused object in the preview image.
生成单元93,令第二摄像头变焦至所述对焦物体区域,根据所述第二摄像头实时拍摄的画面生成第二预览画面。The generation unit 93 is configured to make the second camera zoom to the focused object area, and generate a second preview image according to the images captured by the second camera in real time.
第二显示单元94,将所述第二预览画面合成至所述第一预览画面的指定像素区域中,在终端的显示屏同时显示。The second display unit 94 synthesizes the second preview image into the designated pixel area of the first preview image, and simultaneously displays it on the display screen of the terminal.
可选地,所述第二显示单元94包括:Optionally, the second display unit 94 includes:
第一获取子单元,获取所述指定像素区域的图像分辨率。The first acquiring subunit acquires the image resolution of the specified pixel area.
覆盖子单元,将所述第二预览画面压缩至所述图像分辨率后,覆盖在所述指定像素区域之上。The overlay subunit compresses the second preview image to the image resolution and overlays it on the specified pixel area.
可选地,所述生成单元93包括:Optionally, the generating unit 93 includes:
第二获取子单元,获取所述指定像素区域的图像分辨率。The second acquiring subunit acquires the image resolution of the specified pixel area.
调整子单元,将所述第二摄像头的成像分辨率调整为所述图像分辨率大小。The adjustment subunit adjusts the imaging resolution of the second camera to the size of the image resolution.
拍摄子单元,令所述第二摄像头变焦至所述对焦物体,根据所述第二摄像头实时拍摄的画面生成所述图像分辨率大小的所述第二预览画面。The shooting subunit is configured to make the second camera zoom to the focused object, and generate the second preview picture with the image resolution size according to the picture captured by the second camera in real time.
可选地,所述指定像素区域在所述第一预览画面中的位置包括:Optionally, the position of the specified pixel area in the first preview image includes:
所述第一预览画面的左上角、右上角、左下角或者右下角。The upper left corner, upper right corner, lower left corner or lower right corner of the first preview image.
可选地,所述装置还包括:Optionally, the device also includes:
第二检测单元,在终端的显示屏中检测对所述第二预览画面的拖动操作。The second detecting unit is configured to detect a drag operation on the second preview image on the display screen of the terminal.
获取单元,获取所述拖动操作的拖动轨迹和终止位置。The acquisition unit is configured to acquire the drag track and the end position of the drag operation.
第三显示单元,将所述第二预览画面沿着所述拖动轨迹移动,并最终覆盖在所述终止位置所在的像素区域之上。The third display unit moves the second preview image along the dragging track, and finally covers the pixel area where the ending position is located.
图10示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图10,手机包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、第一摄像头1050、第二摄像头1060、以及处理器1070等部件。本领域技术人员可以理解,图10中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 10 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to FIG. 10 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a first camera 1050, a second camera 1060, and a processor 1070. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 10 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
下面结合图10对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 10:
RF电路1010可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1070处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(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 1010 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 1070; 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 1010 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.
存储器1020可用于存储软件程序以及模块,处理器1070通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1020 can be used to store software programs and modules, and the processor 1070 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020 . The memory 1020 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 1020 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.
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机1000的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1070,并能接收处理器1070发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1030 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 1000 . Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032 . The touch panel 1031, 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 1031 or near the touch panel 1031). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 1031 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 1070, and can receive and execute commands sent by the processor 1070. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1031 , the input unit 1030 may also include other input devices 1032 . Specifically, other input devices 1032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示屏1041,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏1041。进一步的,触控面板1031可覆盖显示屏1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1070以确定触摸事件的类型,随后处理器1070根据触摸事件的类型在显示屏1041上提供相应的视觉输出。虽然在图10中,触控面板1031与显示屏1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示屏1041集成而实现手机的输入和输出功能。The display unit 1040 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 1040 may include a display screen 1041. Optionally, the display screen 1041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode (Organic Light-Emitting Diode, OLED). Further, the touch panel 1031 may cover the display screen 1041, and when the touch panel 1031 detects a touch operation on or near it, it transmits to the processor 1070 to determine the type of the touch event, and then the processor 1070 determines the type of the touch event according to the The type provides a corresponding visual output on the display screen 1041 . Although in FIG. 10 , the touch panel 1031 and the display screen 1041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display screen 1041 can be integrated and Realize the input and output functions of the mobile phone.
处理器1070是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1070可包括一个或多个处理单元;优选的,处理器1070可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1070中。The processor 1070 is the control center of the mobile phone. It 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 1020, and calling data stored in the memory 1020, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 1070 may include one or more processing units; preferably, the processor 1070 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, 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 1070 .
尽管未示出,手机1000还可以包括电源、无线模块、蓝牙模块、音频电路、传感器等,在此不再赘述。Although not shown, the mobile phone 1000 may also include a power supply, a wireless module, a Bluetooth module, an audio circuit, a sensor, etc., which will not be repeated here.
在本发明实施例中,该终端所包括的处理器1070还具有以下功能:相机预览画面的显示方法,包括:In the embodiment of the present invention, the processor 1070 included in the terminal also has the following functions: a method for displaying a camera preview image, including:
将第一摄像头拍摄的画面实时传输至终端的显示屏,作为第一预览画面;The picture captured by the first camera is transmitted to the display screen of the terminal in real time as the first preview picture;
检测所述预览画面中的对焦物体;Detecting a focused object in the preview image;
令第二摄像头变焦至所述对焦物体区域,根据所述第二摄像头实时拍摄的画面生成第二预览画面;Make the second camera zoom to the focus object area, and generate a second preview picture according to the picture captured by the second camera in real time;
将所述第二预览画面合成至所述第一预览画面的指定像素区域中,在终端的显示屏同时显示。Synthesizing the second preview image into the specified pixel area of the first preview image and simultaneously displaying it on the display screen of the terminal.
进一步地,所述将所述第二预览画面合成至所述第一预览画面的指定像素区域中,包括:Further, the synthesizing the second preview image into the specified pixel area of the first preview image includes:
获取所述指定像素区域的图像分辨率;Obtain the image resolution of the specified pixel area;
将所述第二预览画面压缩至所述图像分辨率后,覆盖在所述指定像素区域之上。After the second preview image is compressed to the image resolution, it is overlaid on the specified pixel area.
进一步地,所述令第二摄像头变焦至所述对焦物体区域,根据所述第二摄像头实时拍摄的画面生成第二预览画面,包括:Further, the zooming of the second camera to the focused object area, and generating a second preview image according to the real-time captured images of the second camera include:
获取所述指定像素区域的图像分辨率;Obtain the image resolution of the specified pixel area;
将所述第二摄像头的成像分辨率调整为所述图像分辨率大小;adjusting the imaging resolution of the second camera to the size of the image resolution;
令所述第二摄像头变焦至所述对焦物体,根据所述第二摄像头实时拍摄的画面生成所述图像分辨率大小的所述第二预览画面。making the second camera zoom to the focus object, and generating the second preview picture with the image resolution size according to the picture captured by the second camera in real time.
进一步地,所述指定像素区域在所述第一预览画面中的位置包括:Further, the position of the specified pixel area in the first preview image includes:
所述第一预览画面的左上角、右上角、左下角或者右下角。The upper left corner, upper right corner, lower left corner or lower right corner of the first preview image.
进一步地,所述方法还包括:Further, the method also includes:
在终端的显示屏中检测对所述第二预览画面的拖动操作;Detecting a drag operation on the second preview image on a display screen of the terminal;
获取所述拖动操作的拖动轨迹和终止位置;Obtain the drag track and end position of the drag operation;
将所述第二预览画面沿着所述拖动轨迹移动,并最终覆盖在所述终止位置所在的像素区域之上。The second preview image is moved along the dragging track, and finally covered on the pixel area where the ending position is located.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。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. Skilled artisans 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 shown 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 (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410705811.1A CN104333701B (en) | 2014-11-28 | 2014-11-28 | Method and device for displaying camera preview pictures as well as terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410705811.1A CN104333701B (en) | 2014-11-28 | 2014-11-28 | Method and device for displaying camera preview pictures as well as terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104333701A CN104333701A (en) | 2015-02-04 |
CN104333701B true CN104333701B (en) | 2017-04-26 |
Family
ID=52408343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410705811.1A Active CN104333701B (en) | 2014-11-28 | 2014-11-28 | Method and device for displaying camera preview pictures as well as terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104333701B (en) |
Families Citing this family (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104902179B (en) * | 2015-05-27 | 2018-01-16 | 广东欧珀移动通信有限公司 | The method for previewing and device of a kind of camera image |
CN105282433A (en) * | 2015-06-25 | 2016-01-27 | 维沃移动通信有限公司 | Shooting method and terminal |
CN105519103A (en) * | 2015-10-22 | 2016-04-20 | 深圳市锐明技术股份有限公司 | Vehicle monitoring method and apparatus |
KR102536083B1 (en) * | 2015-12-24 | 2023-05-24 | 삼성전자주식회사 | Imaging device, electronic device and image acquisition method of the same |
CN105721787B (en) * | 2016-02-01 | 2019-08-20 | Oppo广东移动通信有限公司 | Method and device for adjusting local area exposure and mobile terminal |
CN106131394A (en) * | 2016-06-15 | 2016-11-16 | 青岛海信移动通信技术股份有限公司 | A kind of method and device taken pictures |
CN106231289A (en) * | 2016-08-01 | 2016-12-14 | 珠海格力电器股份有限公司 | Mobile terminal and 3D image shooting control method and system thereof |
KR102593824B1 (en) * | 2016-08-31 | 2023-10-25 | 삼성전자주식회사 | Method for controlling a camera and electronic device thereof |
KR102611056B1 (en) * | 2017-01-16 | 2023-12-07 | 엘지전자 주식회사 | Mobile terminal and Method for controlling the same |
CN106909274B (en) * | 2017-02-27 | 2020-12-15 | 南京车链科技有限公司 | Image display method and device |
CN106993131B (en) * | 2017-03-13 | 2020-11-20 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN107682622A (en) * | 2017-09-08 | 2018-02-09 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN108307111A (en) * | 2018-01-22 | 2018-07-20 | 努比亚技术有限公司 | A kind of zoom photographic method, mobile terminal and storage medium |
CN108495029B (en) * | 2018-03-15 | 2020-03-31 | 维沃移动通信有限公司 | A kind of photographing method and mobile terminal |
CN108632536B (en) * | 2018-07-31 | 2020-10-30 | Oppo广东移动通信有限公司 | A camera control method and device, terminal, and storage medium |
CN109525819B (en) * | 2018-12-19 | 2024-01-09 | 深圳市宇通联发科技有限公司 | Picture-in-picture display device for shooting |
CN109729266A (en) * | 2018-12-25 | 2019-05-07 | 努比亚技术有限公司 | A kind of image capturing method, terminal and computer readable storage medium |
CN110072059A (en) * | 2019-05-28 | 2019-07-30 | 珠海格力电器股份有限公司 | Image shooting device and method and terminal |
CN112073765A (en) * | 2019-06-10 | 2020-12-11 | 海信视像科技股份有限公司 | Display device |
CN110225255B (en) * | 2019-06-21 | 2021-02-09 | 网易(杭州)网络有限公司 | Photographing control method and device |
CN110896451B (en) * | 2019-11-20 | 2022-01-28 | 维沃移动通信有限公司 | Preview picture display method, electronic device and computer readable storage medium |
CN114205522B (en) * | 2020-01-23 | 2023-07-18 | 华为技术有限公司 | A telephoto shooting method and electronic device |
CN111324763B (en) * | 2020-02-07 | 2023-08-15 | Tcl移动通信科技(宁波)有限公司 | Photo preview method and system, storage medium and terminal equipment thereof |
CN112770100B (en) * | 2020-12-31 | 2023-03-21 | 南昌欧菲光电技术有限公司 | Image acquisition method, photographic device and computer readable storage medium |
CN112929566B (en) * | 2021-01-22 | 2022-09-13 | 维沃移动通信(杭州)有限公司 | Display control method, display control device, electronic apparatus, and medium |
CN114827391A (en) * | 2021-01-28 | 2022-07-29 | 北京小米移动软件有限公司 | Camera switching method, camera switching device and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4785548B2 (en) * | 2006-02-02 | 2011-10-05 | キヤノン株式会社 | Imaging apparatus and control method thereof |
JP5173453B2 (en) * | 2008-01-22 | 2013-04-03 | キヤノン株式会社 | Imaging device and display control method of imaging device |
JP5640155B2 (en) * | 2011-09-30 | 2014-12-10 | 富士フイルム株式会社 | Stereoscopic image pickup apparatus and in-focus state confirmation image display method |
CN107509029A (en) * | 2013-01-07 | 2017-12-22 | 华为技术有限公司 | An image processing method and device |
CN103685940A (en) * | 2013-11-25 | 2014-03-26 | 上海斐讯数据通信技术有限公司 | Method for recognizing shot photos by facial expressions |
-
2014
- 2014-11-28 CN CN201410705811.1A patent/CN104333701B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104333701A (en) | 2015-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104333701B (en) | Method and device for displaying camera preview pictures as well as terminal | |
CN111355886B (en) | Photographing method, photographing device and mobile terminal | |
EP3531689B1 (en) | Optical imaging method and apparatus | |
CN104363375B (en) | A kind of method, apparatus and terminal of photo noise reduction | |
CN107230192B (en) | Image processing method, apparatus, computer-readable storage medium, and mobile terminal | |
CN109040643B (en) | Mobile terminal and remote group photo method and device | |
JP6259095B2 (en) | Method and terminal for acquiring panoramic image | |
US20220408020A1 (en) | Image Processing Method, Electronic Device, and Cloud Server | |
CN104333704B (en) | A kind of method for previewing, device and the terminal of scene of taking pictures | |
CN104333702A (en) | A method, device and terminal for automatic focusing | |
CN113572980B (en) | Photographing method and device, terminal equipment and storage medium | |
WO2020078273A1 (en) | Photographing method, and electronic device | |
CN104363376A (en) | Continuous focusing method, device and terminal | |
CN108156378B (en) | Photographing method, mobile terminal and computer-readable storage medium | |
CN115002347B (en) | Image processing method, intelligent terminal and storage medium | |
CN108650442A (en) | Image processing method and device, storage medium and electronic equipment | |
CN114143471B (en) | Image processing method, system, mobile terminal and computer readable storage medium | |
CN110944114B (en) | Photographing method and electronic device | |
CN115514876A (en) | Image fusion method, electronic device, storage medium, and computer program product | |
CN118018835A (en) | Image capturing method, image capturing device, image capturing apparatus, and storage medium | |
JP6653310B2 (en) | Method and terminal for acquiring panoramic image | |
CN113194227A (en) | Processing method, mobile terminal and storage medium | |
CN118317203A (en) | Image processing method and device, electronic equipment and chip | |
CN116980745A (en) | Method and device for displaying camera viewfinder | |
CN116634262A (en) | Shooting method, intelligent terminal and storage medium |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523841 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. |