CN104793910A - Method and electronic equipment for processing information - Google Patents

Method and electronic equipment for processing information Download PDF

Info

Publication number
CN104793910A
CN104793910A CN 201410025858 CN201410025858A CN104793910A CN 104793910 A CN104793910 A CN 104793910A CN 201410025858 CN201410025858 CN 201410025858 CN 201410025858 A CN201410025858 A CN 201410025858A CN 104793910 A CN104793910 A CN 104793910A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
preview
depth
region
depth information
image
Prior art date
Application number
CN 201410025858
Other languages
Chinese (zh)
Other versions
CN104793910B (en )
Inventor
黄茂林
郑启忠
Original Assignee
联想(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Abstract

The invention discloses a method and electronic equipment for processing information. The electronic equipment comprises an image collecting unit. When a first preview image in a first space area is obtained through the image collecting unit and displayed on a displaying unit of the electronic equipment, the method comprises the steps of obtaining depth information of the first preview image, wherein the depth information is used for representing the distance between the image collecting unit and a feature point in the first space area; determining first depth-of-field information in the first preview image; according to the depth information and the first depth-of-field information, determining a first preview area and a second preview area in the first preview image, wherein the first preview area corresponds to a first depth-of-field area where the first depth-of-field information is located, the second preview area corresponds to the first space area other than the first depth-of-field area, and the first preview area and the second preview area have different display modes.

Description

一种信息处理的方法及电子设备 An information processing method for an electronic device, and

技术领域 FIELD

[0001] 本申请涉及电子技术领域,特别涉及一种信息处理的方法及电子设备。 [0001] The present application relates to electronic technologies, and in particular relates to an information processing method and an electronic device.

背景技术 Background technique

[0002] 随着电子技术的快速发展,各种电子设备的功能也越来越丰富,越来越人性化,令用户在使用电子设备的过程中拥有了更好的体验度。 [0002] With the rapid development of electronic technology, it features a variety of electronic devices more and more rich, more humane, so that users have a better experience in the use of electronic devices. 就拿手机来说,现在的智能手机,除了保持最基本的通话功能,可以说已经改进成了一个小型的电脑了,不仅具有强大的存储空间,可以安装各种软件,而且手机的各种功能也做得越来越精细与人性。 Take mobile phones, smart phones and now, in addition to maintaining the basic call function, can be said to have improved into a small computer, not only has a powerful storage space, you can install a variety of software, but the phone's various functions also doing more and more sophisticated and user-friendly.

[0003] 现有的相机基本都能拍摄出具有景深效果的图像,景深是指相机对焦点前后相对清晰的成像范围,在景深之内的影像比较清楚,在这个范围之前或是之后的影像则比较模糊。 [0003] The conventional camera can capture an image having substantially the depth of field effects, the camera field is the relatively clear focus before and after the imaging range, the depth of field images more clearly, the image before or after this range is rather ambiguous. 拍摄画面的景深与相机的传感器大小,镜头焦距,对焦距离和光圈值有关,一般来讲,传感器越小景深越大,焦距越短景深越大,对焦距离越远景深越大,光圈值越大(光圈越小)景深越大;反之景深越小。 Depth of field screen shot with the camera sensor size, lens focal length, focus distance and the aperture value, generally speaking, the smaller the depth of field of the sensor, the greater the shorter the focal depth, the depth of focus distance vision, the larger the aperture value (smaller aperture) greater depth of field; conversely the smaller the depth of field.

[0004]目前,想要拍摄出有景深效果的图像时,可以采用专业相机镜头,通过观察景深提示窗口得到前后景深范围,但这种直接对相机上的参数进行设置的方式由于没有景深预览功能,不够直观,需要较深的摄像知识和拍摄经验,且在手机、卡片机等摄像设备上无法实现。 [0004] Currently, when you want to capture the effect of depth of field of an image, you can use a professional camera lens, but the parameters directly on the camera because there is no way to set the depth of field by observing the depth of field preview function before and after the prompt window to get the depth of field range , not intuitive, requires deeper knowledge and camera shooting experience, and can not be implemented on a mobile phone camera equipment, card machines.

[0005] 因此,又出现了有景深预览功能的相机,由于这些相机在预览时一般使用最大光圈,与实际拍摄所使用的光圈不一定一致,所以一些相机中带有景深预览功能,可以看到当前设置与场景下,焦点前后哪些是虚化的,哪些是清晰的,即预览背景虚化的程度,从而获得较好的预期拍摄效果,但在拍摄时,由于屏幕或者取景器比较小,不好确定景深范围,另外需要人的主观进行判断,不同的人认识不一样,所以拍摄出来的景深效果和预想的会不—致。 [0005] Thus, there was a depth of field preview function of the camera, because these cameras generally use the maximum aperture in the preview, with the actual shooting aperture used is not necessarily the same, so some cameras with a depth of field preview function, you can see setting the current scene, which is the front focus blur, which is clear, i.e., the degree of blur of the background preview, so that better imaging results expected, but when shooting, since the relatively small screen or viewfinder, not good determine the depth of field range, additional needs subjective judgment, different people understanding is not the same, so shoot out of the depth of field effects and expected will not - cause.

[0006] 可见,现有的图像采集设备存在不能提供直观的景深预览效果的技术问题。 [0006] visible, there is not intuitive depth of field preview of the problems of the prior art image pickup apparatus.

发明内容 SUMMARY

[0007] 本申请实施例通过提供一种信息处理的方法及电子设备,用以解决现有的图像采集设备存在的不能提供直观的景深预览效果的技术问题。 [0007] Examples of the present application by providing an information processing method and an embodiment of an electronic device to solve the problems of the conventional image pickup apparatus can not provide visual depth of field preview technical problem.

[0008] 一方面,本申请实施例提供一种信息处理的方法,应用于一电子设备,所述电子设备包括图像采集单元,在通过所述图像采集单元获得第一空间区域内的第一预览图像,并将所述第一预览图像显示在所述电子设备的显示单元上时,所述方法包括:获取所述第一预览图像的深度信息,其中,所述深度信息用于表征所述图像采集单元与所述第一空间区域内中的特征点之间的距离;确定所述第一预览图像中的第一景深信息;根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式。 [0008] In one aspect, provides an information processing method of the present application, is applied to an electronic device, said electronic device comprising an image acquisition unit, in a first preview image obtained by the first space region acquisition unit image and the preview image is displayed on the first display unit of the electronic device, the method comprising: obtaining depth information of the first preview image, wherein the image depth information for characterizing the the distance between the collection unit and the feature point of the first space region; determining a first depth information for the first preview image; determined according to the depth of the first information and the first depth information a preview image in the preview area of ​​the first and second preview area, the depth of the first region and the first region of the preview information is located corresponding to the first depth, the second depth of field preview region and the first region a first space corresponding to a region other than the first region and the second preview preview area having different display modes.

[0009] 可选的,所述获取所述第一预览图像的深度信息,具体为:通过摄像头阵列方式或者结构光方式,获取所述第一空间区域中的M个特征点与所述图像采集单元之间的M个距离值,由所述M个距离值组成所述第一预览图像的深度信息,M为大于等于I的整数。 [0009] Optionally, the first acquiring depth information for the preview image, specifically: by way of a camera array or structured light mode, acquiring M feature points in said first space region and the image acquisition M distance values ​​between the unit consisting of the M distance values ​​of the first depth information composed preview image, M is an integer of I.

[0010] 可选的,所述确定所述第一预览图像中的第一景深信息,具体为:根据所述图像采集单元的焦距,光圈值,以及对焦点距离,计算获得所述第一预览图像的第一景深信息。 [0010] Optionally, the first depth information of the first preview image is determined, in particular: The focal length of the image pickup unit, an aperture value, and focus distance calculation to obtain the first preview first depth information of the image.

[0011] 可选的,所述根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式,具体包括:基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,N为大于等于I小于等于M的整数;将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式。 [0011] Optionally, the determining based on the first information and the depth information of the depth of the first preview image in the preview area of ​​the first and second preview area, the first region and the preview a first region of a first depth where the depth information corresponding to the first space region other than the second region and the first depth of field preview region corresponding to the first region and the second preview preview area have different display modes, comprising: based on the depth information and the first depth information, it is determined that N feature points N distance values ​​within said first depth information from the corresponding distance values ​​of M, N I greater than or equal to an integer less than M; and the N feature points in the first preview area displaying a first display mode, the MN and the second feature points in the second display mode displaying a preview region, the first display mode and the second display mode is a different display modes.

[0012] 可选的,所述基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,具体为:当所述第一景深信息所在的第一景深区域具体为距离Dl至距离D2之间的距离范围时,从所述M个距离值中确定出距离值大于D1,以及小于D2的N个距离值,从而确定出位于所述第一景深信息内的N个距离值所对应的N个特征点。 [0012] Alternatively, the depth based on the first information and the depth information, it is determined that the N distance values ​​within said first depth information corresponding to the N from the M distance values feature point, in particular: when the first depth of the first region where the depth information specific to the distance Dl is a distance range between the distance D2, it is determined from the M distance values ​​is greater than the distance D1, and less than D2 is a distance value of N to determine the number of feature points N N distance values ​​within said first depth information corresponds.

[0013] 可选的,所述将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式,具体为:在所述第一预览图像中将所述N个特征点对应的第一预览区域以第一亮度显示,以及将所述MN个特征点对应的第二预览区域以第二亮度显示,所述第一亮度与所述第二亮度为不同的显示亮度。 [0013] Optionally, the said N feature points in the first display mode is displayed in the preview area first, and the second MN feature points in the second display mode displaying the preview area , the first display mode and the second display mode is a different display modes, specifically: in the preview image in the first of the N feature points corresponding to a first display at a first luminance preview area, and a second region of the MN preview feature points corresponding to the display brightness to a second, the first luminance and the second luminance different display brightness.

[0014]另一方面,本申请实施例还提供一种电子设备,所述电子设备包括图像采集单元,在通过所述图像采集单元获得第一空间区域内的第一预览图像,并将所述第一预览图像显示在所述电子设备的显示单元上时,所述电子设备还包括:深度获取单元,用于获取所述第一预览图像的深度信息,其中,所述深度信息用于表征所述图像采集单元与所述第一空间区域内中的特征点之间的距离;景深确定单元,用于确定所述第一预览图像中的第一景深信息;区域确定单元,用于根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示 [0014] In another aspect, the present application further provides an electronic device, said electronic device comprising an image acquisition unit, in the first preview image obtained by the image capturing unit of the first space region, and the first preview image is displayed on the display unit of the electronic device, the electronic device further comprising: a depth acquisition unit for acquiring the depth information of the first preview image, wherein the depth information is used to characterize the the distance between said image pickup means and the feature points in the first area of ​​space is; depth of field determining unit for determining the first preview image in a first depth information; region determining unit, according to the first depth information and the depth information determines the first region of the first preview image in the preview area and a second preview, preview a first depth of the first region and the first region where the depth information corresponding to other than the first spatial region, the second region and the first depth of field preview region corresponding to the first region and the second preview preview area have different display 模式。 mode.

[0015] 可选的,所述深度获取单元,具体用于:通过摄像头阵列方式或者结构光方式,获取所述第一空间区域中的M个特征点与所述图像采集单元之间的M个距离值,由所述M个距离值组成所述第一预览图像的深度信息,M为大于等于I的整数。 [0015] Alternatively, the depth obtaining unit is specifically configured to: by a camera or an array of structured light mode, acquires the M space between the first region M feature points and the image acquisition unit distance value by the M distance values ​​of the first depth information composed of a preview image, M is an integer of I.

[0016] 可选的,所述景深确定单元,具体用于:根据所述图像采集单元的焦距,光圈值,以及对焦点距离,计算获得所述第一预览图像的第一景深信息。 [0016] Alternatively, the depth determination unit is configured to: according to the focal length of the image acquisition unit, an aperture value, and focus distance, the first depth information obtained by calculation of the first preview image.

[0017] 可选的,所述区域确定单元,具体包括:确定子单元,用于基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,N为大于等于I小于等于M的整数;显示单元,用于将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式。 [0017] Alternatively, the area determination unit comprises: a determining sub-unit, based on the depth information and the first depth information, it is determined that the M is located a distance from said first value N of distance values ​​within the depth information corresponding to the N feature points, N being an integer less than or equal to I M; and a display unit for the N feature points displayed in the first display mode, in a first preview area, and the second MN feature points in the second display mode displaying the preview area, the first display mode and the second display mode is a different display modes.

[0018] 可选的,所述确定子单元,具体用于:当所述第一景深信息所在的第一景深区域具体为距离Dl至距离D2之间的距离范围时,从所述M个距离值中确定出距离值大于D1,以及小于D2的N个距离值,从而确定出位于所述第一景深信息内的N个距离值所对应的N个特征点。 [0018] Optionally, the determining subunit, configured to: when the first depth of the first region where the depth information specific to the distance Dl is a distance range between the distance D2, distance from the M determined value is greater than the distance D1, and D2 are smaller than the distance value of N to determine the number of feature points N N distance values ​​within said first depth information corresponds.

[0019] 可选的,所述显示单元,具体用于:在所述第一预览图像中将所述N个特征点对应的第一预览区域以第一亮度显示,以及将所述MN个特征点对应的第二预览区域以第二亮度显示,所述第一亮度与所述第二亮度为不同的显示亮度。 [0019] Alternatively, the display unit is specifically configured to: in the first preview image in the N feature points corresponding to a first display at a first luminance preview area, and the MN feature the second point corresponding to the preview display area to a second luminance, the first luminance and the second luminance different display brightness.

[0020] 本申请实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点: [0020] The present application to one or more technical solutions provided in the embodiment, at least the following technical effects or advantages:

[0021] (I)由于在本申请实施例中,采用在通过图像采集单元预览要采集的图像时,采用获得预览图像的深度信息以及景深信息,以根据深度信息与景深信息在浏览图像中确定出两个显示模式的第一浏览区域和第二浏览区域,其中,使景深信息显示在第一浏览区域,非景深信息显示在第二浏览区域的技术手段,解决了现有的图像采集设备存在的不能提供直观的景深预览效果的技术问题,实现了能够通过不同的显示模式将浏览图像的景深信息与非景深信息展示给用户的技术效果。 [0021] (I) due embodiment, employed at the time by the image acquisition unit Preview To capture an image, using the depth information and depth information obtained preview image, in the present application to determine the review image according to depth information and depth information Browse the first region and the second viewing area of ​​two display modes, wherein the depth information is displayed in a first viewing area, the non-display technology depth information browsing means in the second region, to solve the conventional image pickup device exists We can not provide visual depth of field preview of technical problems, to achieve a technical effect capable of browsing through images of different display modes depth information presented to the user with non-depth information.

[0022] (2)由于在本申请实施例中,采用不同的显示模式将第一预览图像中的第一预览区域与第二预览区域显示出来的技术手段,更直观的将景深区域与非景深区域区分显示出来,实现了方便用户对拍照画面进行调整的技术效果。 [0022] (2) Since the embodiment, different display modes of the first preview image in the preview area of ​​the first and second preview area shown in the technical means of the present application embodiment, the depth is more intuitive and non-depth region area division is displayed, user achieved technical effect of adjusting the camera picture.

附图说明 BRIEF DESCRIPTION

[0023] 图1为本申请实施例提供的一种信息处理的方法流程图; [0023] Figure 1 is a flowchart of a method of application information according to a process embodiment;

[0024]图2为本申请实施例提供的采集深度信息的示意图; [0024] FIG. 2 is a schematic acquired depth information according to an embodiment of the present application;

[0025] 图3为本申请实施例提供的确定景深信息的示意图; [0025] FIG. 3 is a schematic view of determining the depth information according to an embodiment of the present application;

[0026]图4为本申请实施例提供的将第一预览图像分为第一预览区域与第二预览区域的不意图; [0026] FIG. 4 the first preview image preview area is divided into a first region and a second preview is not intended according to an embodiment of the present application;

[0027] 图5为本申请实施例提供的电子设备的结构示意图。 [0027] FIG. 5 is a schematic configuration of an electronic apparatus according to an embodiment of the present application.

具体实施方式 Detailed ways

[0028] 本申请实施例通过提供一种信息处理的方法及电子设备,解决了现有的图像采集设备存在的不能提供直观的景深预览效果的技术问题。 Example [0028] The present application by providing an information processing method and an electronic device, solves the problems of the conventional image pickup apparatus can not provide visual depth of field preview technical problem.

[0029] 本申请实施例中的技术方案为解决上述问题,总体思路如下: [0029] The technical solutions in the present application to solve the aforementioned problems in the embodiments, the general idea is as follows:

[0030] 提供一种信息处理的方法,应用于一电子设备,所述电子设备包括图像采集单元,在通过所述图像采集单元获得第一空间区域内的第一预览图像,并将所述第一预览图像显示在所述电子设备的显示单元上时,所述方法包括:获取所述第一预览图像的深度信息,其中,所述深度信息用于表征所述图像采集单元与所述第一空间区域内中的特征点之间的距离;确定所述第一预览图像中的第一景深信息;根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式。 [0030] provided an information processing method, applied to an electronic device, said electronic device comprising an image acquisition unit, in the first preview image obtained by the image capturing unit of the first space region, and the second when a preview image is displayed on the display unit of the electronic device, the method comprising: obtaining depth information of the first preview image, wherein the depth information for characterizing the image acquisition unit and the first the distance between the feature points in the spatial region; determining a first depth information for the first preview image; a first determining that the first preview image based on the depth information and the first depth information preview preview area and a second region, the first region and the first preview first depth where the depth information of the region corresponding to the first space region other than the second region and the first depth of field preview phase region corresponding to the first region and the second preview preview area having different display modes.

[0031] 可见,本申请实施例由于在通过图像采集单元预览要采集的图像时,采用获得预览图像的深度信息以及景深信息,以根据深度信息与景深信息在浏览图像中确定出两个显示模式的第一浏览区域和第二浏览区域,其中,使景深信息显示在第一浏览区域,非景深信息显示在第二浏览区域的技术手段,解决了现有的图像采集设备存在的不能提供直观的景深预览效果的技术问题,实现了能够通过不同的显示模式将浏览图像的景深信息与非景深信息展示给用户的技术效果。 [0031] visible, since the present embodiment, when the application by the image acquisition unit preview image to be acquired using the depth information and depth information obtained preview image to determine the two view image display mode according to the depth information and depth information a first region and a second browsing viewing area, wherein the depth information is displayed in a first viewing area, the non-display technology depth information browsing means in the second region, solves the problems of the conventional image pickup apparatus can not provide an intuitive technical problems depth of field preview, to achieve a technical effect capable of browsing through images of different display modes depth information presented to the user with non-depth information.

[0032] 为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明,应当理解本申请实施例以及实施例中的具体特征是对本申请技术方案的详细的说明,而不是对本申请技术方案的限定,在不冲突的情况下,本申请实施例以及实施例中的技术特征可以相互组合。 [0032] For a better understanding of the above technical solutions, in conjunction with the following drawings and specific embodiments of the above technical solutions described in detail, it should be understood that the present application specific embodiments and features of embodiments of the present application is the technical solution detailed description, but not limiting aspect of the present application, in the case of no conflict, the present application embodiments and features of the embodiments may be combined with each other.

[0033] 在本申请中提供的信息处理的方法应用到的电子设备主要是指包括图像采集单元的电子设备,图像采集单元具体指的是摄像头,因此,本申请中提到的电子设备就是安装有摄像头的电子设备,比如,相机,平板电脑,笔记本电脑,智能手机,PDA (PersonalDigital Assistant,个人数字助理)等,只要是能够通过摄像头获取图像的电子设备都可以。 [0033] A method for information processing is provided in the present application applied to an electronic device mainly refers to an electronic apparatus includes an image acquisition unit, an image acquisition unit particularly it refers to a camera, and therefore, the electronic device mentioned in this application is installed electronic camera equipment, such as cameras, tablet PCs, laptops, smart phones, PDA (PersonalDigital Assistant, personal digital assistants), etc., as long as it can acquire images through the camera of the electronic device can be.

[0034]当电子设备在通过图像采集单元采集第一空间区域中的图像时,首先会获得第一空间区域的第一预览图像并将该第一预览图像显示在电子设备的显示单元,以使用户可以预览要拍摄的图像,比如,不论是通过专业的相机拍照还是手机等电子设备进行拍照,在按下快门之前,用户都可以通过相机或手机的显示屏预览要拍摄的景物。 [0034] When the electronic device in the image by a first spatial region of the image acquisition unit, will first obtain a first spatial region of the first preview image and a preview of the first image displayed on the display unit of the electronic device, so that users can preview images to be captured, for example, whether taking pictures by a professional camera to take pictures or mobile phones and other electronic equipment, before pressing the shutter, the user can display a preview camera or cell phone to shoot the scene. 但是由于图像采集设备不能直观的将景深效果反应在预览图像上面,用户预览到的画面和实际拍摄到的图像有一定的差异,为了要获得满意的图像可能需要拍摄多张进行选取,因此,为了解决现有的图像采集设备存在的不能提供直观的景深预览效果的技术问题,本申请实施例中提供了以下方法。 However, since the image pickup apparatus can not be intuitive to depth of field reaction in the preview image above, the user preview screen and actually taken image have some differences, in order to obtain a satisfactory image you may need to take more than one be selected, and therefore, in order solve the problems of the conventional image pickup apparatus can not provide visual depth of field preview technical problems, the present embodiment provides the following method.

[0035] 如图1所示,本申请实施例提供的信息处理的方法,具体包括步骤: [0035] As shown in FIG 1, the information processing method according to an embodiment of the present application, comprises the steps of:

[0036] S1:获取所述第一预览图像的深度信息,其中,所述深度信息用于表征所述图像采集单元与所述第一空间区域内中的特征点之间的距离; [0036] S1: first acquiring depth information for the preview image, wherein the depth information for characterizing the distance between the image acquisition unit and the feature points in the first area of ​​space is;

[0037] 在具体实施过程中,当通过图像采集单元获取第一空间区域的第一预览图像并将该第一预览图像显示在显示单元上时,执行步骤SI,获取第一预览图像的深度信息,即获取的是第一预览图像所包含的景物的深度信息,深度信息用于表征图像采集单元与第一空间区域内中的特征点之间的距离。 [0037] In a specific implementation, when the first preview image acquired by the first spatial region of the image acquisition unit and the first preview image displayed on the display unit, the SI step, obtaining the depth information of the first preview image , i.e., the depth information is acquired preview image included in the first scene, the depth information on the distance between the image acquisition unit and the feature points in a first spatial region for characterization. 特征点是系统在获取深度信息的时候从第一空间区域内的景物上选取的比较突出的点,比如,在第一空间区域中有一张桌子,四个桌腿和桌面的棱角都可以被选为特征点,通过获取每个特征点与图像采集单元之间的距离,从而就可以得出这张桌子在第一空间区域中的大致位置,即深度信息。 Feature points are acquired in the system when the depth information from the selected scene in the first space region prominent points, for example, with a table at a first spatial region, the four corners of the table leg, and can be selected feature points, by obtaining the distance between each feature point and the image acquisition unit, can be drawn so that the approximate location of this table in a first spatial region, i.e., depth information.

[0038] 进一步的,步骤SI,具体为: [0038] Further, the step of the SI, specifically:

[0039] 通过摄像头阵列方式或者结构光方式,获取所述第一空间区域中的M个特征点与所述图像采集单元之间的M个距离值,由所述M个距离值组成所述第一预览图像的深度信息,M为大于等于I的整数。 [0039] By way of a camera array or structured light mode, obtain M distance values ​​between the first spatial region of the M feature points in the image acquisition unit, by the M distance values ​​of the first composition depth information of a preview image, M being an integer greater than or equal to I.

[0040] 在具体实施过程中,在本申请实施例中对于获取深度信息的方式不作具体限定,但是对第一预览图像获取深度信息主要是通过获取第一空间区域中的M个特征点与图像采集单元之间的M个距离值,由M个距离值组成第一预览图像的深度信息。 [0040] In a specific implementation, the application in the present embodiment, for acquiring depth information as not particularly limited, but a first obtaining depth information acquired by the preview image is mainly a first spatial region of the image feature points M M distance values ​​between the acquisition unit, a first preview image depth information of M distance values. 可以通过摄像阵列方式或者结构光方式来获取第一预览图像的深度信息。 The depth information may be acquired by a first imaging preview image or an array of structured light mode. 事实上,图像采集单元在采集第一空间区域的图像时,是有一个采集范围的,也就是说,在本申请实施例提到的在第一空间区域中的M个特征点特指的是在采集范围内的M个特征点,如图2所示,电子设备100中的图像采集单元200在对第一空间区域进行图像采集时,形成一个采集区域800,系统选取采集区域800中的M个特征点,通过摄像阵列方式或者结构光方式获取每个特征点到图像采集单元200之间的距离值,如图2中的特征点501到图像采集单元200之间的距离为502,也就是说特征点501的深度值为502。 Indeed, the image acquisition unit, when the image acquisition of the first spatial region, there is a range of acquisition, i.e., M feature points in the first space region embodiment of the present application refers specifically mentioned embodiment is M feature points within the acquisition range, as shown, the electronic device 100 in the image acquisition unit 200 at the time of image acquisition of a first spatial region, forming a collection area 8002, the system 800 to select the M acquisition area feature points, acquired by imaging a structured light mode or an array of each feature point to the distance value between the image acquisition unit 200, a feature point shown in FIG. 2 501 200 the distance between the image acquisition unit 502, i.e. the depth of said characteristic point 501 is 502. 其中,摄像阵列方式主要是采用多个摄像头,根据视觉差来判断特征点的深度值;结构光方式主要是通过向空间区域发射光线,在特征点上会形成光斑,光斑与图像采集单元之间的距离值就是特征点的深度信息。 Wherein the imaging array mode is mainly used multiple cameras to determine the depth value of the feature point based on the visual difference; structured light emits light mainly through the space region, the feature point on the spot will form between the spot and the image acquisition unit the depth information is a distance value of the feature point.

[0041] S2:确定所述第一预览图像中的第一景深信息; [0041] S2: determining a first depth information for the first preview image;

[0042] 进一步的,步骤S2,具体为: [0042] Further, in step S2, specifically:

[0043] 根据所述图像采集单元的焦距,光圈值,以及对焦点距离,计算获得所述第一预览图像的第一景深信息。 [0043] The focal length of the image pickup unit, an aperture value, and focus distance, the first depth information obtained by calculation of the first preview image.

[0044] 在具体实施过程中,可以通过景深计算公式计算获得景深信息,如图3所示,其中——容许弥散圆直径;f——镜头焦距;F——镜头的拍摄光圈值;L——对焦距离;ALl——前景深;AL2——后景深;AL——景深;前景深ALl=FSL2/ (f2+F5L);后景深AL2=F5L2/ Cf2-F 5L);景深AL=AL1+AL2= (2f2F5L2)/ Cf4-F2 δ 2L2);δ =0.125*B*V/300*C,B——传感器对角线长;C——图片对角线长'N——乎视距离;由景深计算公式可以看出,景深Λ L只与镜头使用光圈F、镜头焦距f、拍摄距离L以及对像质的要求(表现为对容许弥散圆的大小S)有关,由于B,C,V分别是常数,所以δ也是常数,所以景深Λ L只与镜头使用光圈F、镜头焦距f、拍摄距离L有关,因此,一旦相机的镜头使用光圈F、镜头焦距f、拍摄距离L固定,景深AL也就是固定了。 [0044] In a specific implementation, the depth can be calculated by the calculation formula to obtain the depth information shown in Figure 3, wherein - the diameter of permissible circle of confusion; F-- lens focal length; F-- photographing lens aperture value; L- - focusing distance; ALl-- foreground depth; after AL2-- depth; AL - depth; Prospects deep ALl = FSL2 / (f2 + F5L); depth of Field AL2 = F5L2 / Cf2-F 5L); depth AL = AL1 + AL2 = (2f2F5L2) / Cf4-F2 δ 2L2); δ = 0.125 * B * V / 300 * C, B-- diagonal length of the sensor; C-- image diagonal 'N-- almost visibility distance; as can be seen by the depth of field is calculated, only the depth of field of the lens L using the Lambda aperture F., lens focal length f, and the shooting distance L of the image quality requirements (expressed as the magnitude of the permissible circle of confusion S) related, since B, C, V are constant, so that δ is constant, the depth of field Lambda L with only the lens using an aperture F., lens focal length f, the shooting-related distance L, and therefore, once the camera lens using the aperture F., lens focal length f, the shooting distance L is fixed, the depth AL that is fixed. 其中,镜头使用光圈F、镜头焦距f可以通过相机中设置的数据或者调整的位置得到,拍摄距离L可以通过步骤SI中获取的深度信息得到,也就是焦点到摄像头之间的距离值。 Wherein the lens aperture using the data F., The lens focal length f may be provided by a camera or the adjusted position obtained, the shooting distance L may be the depth information acquired by the step SI obtained, i.e. the value of the focal distance between the camera.

[0045] S3:根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式。 [0045] S3: determining based on the first information and the depth information of the depth of the first preview image in the preview area of ​​the first and second preview area, a preview of the first region and the first depth information a first region where the depth of field corresponding to the second preview area with the first space region other than the region corresponding to the first depth, the first region and the second preview preview area having different display modes.

[0046] 在具体实施过程中,当通过步骤SI和S2获得了第一预览图像的深度信息和景深信息时,在步骤S3中主要是要将深度信息结合至景深信息中,也就是说通过深度信息将图像的景深信息直观的展示出来。 [0046] In a specific implementation, when obtaining the depth information and the depth information of the first preview image in step SI and S2, in Step S3 is mainly bound to want the depth information in the depth information, i.e. the depth the depth information of the image information intuitively displayed. 首先是根据在整个采集区域内的深度信息,从采集范围中将景深信息所在的景深区域确定出来,由于第一预览图像所展示的是整个采集范围内的景物,因此,就相当于是将第一预览区域划分为第一预览区域和第二预览区域,其中,第一预览区域与景深区域相对应,第二预览区域与非景深区域相对应,再将第一预览区域与第二预览区域采用不同的显示模式显示出来,则用户就可以直观的从第一预览图像中看出景深区域和非景深区域。 The first is based on the depth information acquired over the entire region, the depth of field is determined from the region where the depth information in the collection range, since the preview image of the first scene is displayed over the entire range of acquired, therefore, is equivalent to the first preview preview area divided into a first region and a second preview area, wherein the first depth of field preview area corresponding to the area, a second preview area corresponding to the area of ​​the non-depth, then preview the first region and the second region different preview the display mode is displayed, the user can directly see the depth region from the first region and the non-depth preview image.

[0047] 进一步的,步骤S3,具体包括: [0047] Further, step S3, comprises:

[0048] 基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,N为大于等于I小于等于M的整数; [0048] based on the depth information and the first depth information, determined at the N feature points N of distance values ​​within the first depth information from the corresponding distance values ​​M, N is greater than an integer equal to I less than or equal to M;

[0049] 将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式。 [0049] the N feature points is displayed in a first display mode in the first preview area, and the second MN feature points in the second display mode displaying the preview area, the first display mode and the second display mode is different display modes.

[0050] 在具体实施过程中,在步骤S3中,将在第一预览图像中确定出第一预览区域与第二预览区域(即确定出景深区域与非景深区域)的主要方式为,根据深度信息中M个特征点的M个距离值,以及第一景深信息的景深AL,从M分距离值中确定出位于景深AL中的N个距离值,从而确定该N个距离值对应的N个特征点就属于景深区域内,因此,就可以将N个特征点以第一显示模式显示在第一预览区域,同时将MN个特征点以第二显示模式显示在第二预览区域。 The main embodiment [0050] In a specific implementation process, in step S3, the preview image is determined in the first region of the first and the second preview preview area (i.e., the non-determined depth with the depth of field region area) is, according to the depth M feature points information of the M distance values, and depth information of the depth of the first AL, determined depth at the N distance values ​​AL, half of the distance from the M value, to determine the N of the N value corresponding to a distance the depth of the feature point belonging to the region, and therefore, it can be the N-point feature in the first preview display area, and a second display feature points MN preview area in a second display mode to the first display mode.

[0051] 进一步的,所述基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,具体为: [0051] Further, the depth based on the first information and the depth information, it is determined that the N distance values ​​within said first depth information corresponding to the N feature values ​​from the distance in the M points, in particular:

[0052] 当所述第一景深信息所在的第一景深区域具体为距离Dl至距离D2之间的距离范围时,从所述M个距离值中确定出距离值大于D1,以及小于D2的N个距离值,从而确定出位于所述第一景深信息内的N个距离值所对应的N个特征点。 [0052] When the first depth of the first region where the depth information specific to the distance Dl is a distance range between the distance D2, is determined from the M distance values ​​is greater than the distance D1, and D2 is less than N distance values, to determine the N feature points N distance values ​​within said first depth information corresponds.

[0053] 在具体实施过程中,在上一个实施例中提到的从M个距离值中确定出位于第一景深信息内的N个距离值所对应的N个特征点的方式,具体如图4所示,在采集范围800内,景深Λ L所对应的第一景深区域801为与图像采集单元200的距离值为Dl至D2之间的范围,如果在深度信息中的M个特征点中的N个特征点所对应的N个距离值大于Dl且小于D2,则该N个特征点是属于第一景深区域700的,第一景深区域801中的N个特征点就属于第一预览区域,而位于第一景深区域801之前和之后的区域都为非景深区域802,即属于第二预览区域。 [0053] In a specific embodiment the process mentioned in the previous embodiment, it is determined that N feature points located embodiment the N value within a first distance corresponding to the depth information from the M distance values, in particular in FIG. 4, in the collection 800, the depth of field region 801 L Λ first depth corresponding to the distance from the image acquisition unit 200 is a value in a range between Dl to D2, if M feature points in the depth information the N feature points corresponding to the N value is greater than a distance less than Dl and D2, the N feature points belonging to a first depth region 700, N feature points in the first depth region 801 belonging to the first preview area , while the depth of field located before the first area 801 and the area after the area 802 are non-depth, i.e. the second part of the preview area. 在利用不同的显示模式将第一预览区域与第二预览区域显示出来,就可以很直观的将景深区域与非景深区域展示出来。 Using different display modes will be shown in the preview area of ​​the first and the second preview area, it can be very intuitive to the non-depth region depth region displayed.

[0054] 进一步的,所述将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式,具体为: [0054] Further, the said N feature points in the first display mode is displayed in the preview area first, and the second MN feature points in the second display mode displaying the preview area, the first display mode and the second display mode is a different display modes, specifically:

[0055] 在所述第一预览图像中将所述N个特征点对应的第一预览区域以第一亮度显示,以及将所述MN个特征点对应的第二预览区域以第二亮度显示,所述第一亮度与所述第二亮度为不同的显示亮度。 [0055] In the preview image in the first of the N feature points corresponding to a first display at a first luminance preview area, and a second region of the MN preview feature points corresponding to a second display luminance, the first luminance and the second luminance different display brightness.

[0056] 在具体实施过程中,本申请实施例对第一显示模式与第二显示模式的具体方式不做具体限定,但必须要是两个不同的显示模式,在最优实施例中显示模式可以为不同的亮度显示,即将N个特征点所在的第一预览区域以第一亮度显示,将MN个特征点所在的第一预览区域以第二亮度显示,也就是由两种不同亮度来区分第一预览区域与第二预览区域,以直观的将景深区域展现出来。 [0056] In a specific implementation, the first embodiment of the present application and specific embodiment of the second display mode the display mode is not particularly limited, but must be if the two different display modes can be displayed in the preferred embodiment mode of embodiment different display brightness, the first region coming N preview feature points located in a first display luminance, a first point where the preview area to a second feature of the MN display luminance, which is distinguished by the brightness of the two different a preview area and a second preview area, the depth of field region intuitive unfolded. 在本申请实施例中所提到的特征点其实指的就是画面中的像素点,因此,采用不同亮度显示第一预览区域与第二预览区域,其实就是将景深区域的像素点与非景深区域的像素点以不同亮度显示出来。 In fact, the feature point refers to the screen pixels embodiment mentioned in the present application embodiment, therefore, a first preview display different luminance preview area and the second area, in fact, the pixel region with a non-depth depth region the pixels are displayed in different brightness. 除了显示亮度不同,还可以采用闪烁模式,比如,实际拍摄过程中预览画面时,对非景深范围的区域进行高亮闪烁提示,目前使用的频率为闪I秒停3秒,以提示用户没有闪烁的区域呈现在图像中的时候是清晰度比较高的景深区域,方便用户通过改变相机的参数或者拍摄位置对预览画面进行调整。 In addition to displaying different brightness, blinking patterns may also be employed, for example, when the actual photographing during the preview screen, the depth of field region of the non-flashing prompt be highlighted, the frequency currently used for the flash I seconds 3 seconds off, to prompt the user does not flash presents in the area in the image resolution is relatively high when the depth of field area, user, or by changing the parameters of the camera preview screen on the photographing position is adjusted.

[0057] 基于同一发明构思,本申请实施例还提供一种电子设备,所述电子设备包括图像采集单元,在通过所述图像采集单元获得第一空间区域内的第一预览图像,并将所述第一预览图像显示在所述电子设备的显示单元上时,如图5所示,所述电子设备包括: [0057] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, said electronic device comprising an image acquisition unit, in the first preview image obtained by the image capturing unit of the first spatial region, and the said first preview image displayed on the display unit of the electronic device shown in Figure 5, the electronic device comprising:

[0058] 深度获取单元10,用于获取所述第一预览图像的深度信息,其中,所述深度信息用于表征所述图像采集单元与所述第一空间区域内中的特征点之间的距离; [0058] The depth of the acquisition unit 10 for acquiring the depth information of the first preview image, wherein, between the depth information for the image acquisition unit and the characterizing feature points in said first region of space distance;

[0059] 景深确定单元20,用于确定所述第一预览图像中的第一景深信息; [0059] The depth determining means 20, a preview of the first image for determining a first depth information;

[0060] 区域确定单元30,用于根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式。 [0060] The area determining unit 30 for determining based on the first information and the depth information of the depth of the first preview image in the preview area of ​​the first and second preview area, and the first region of the preview said first region a first depth where the depth information corresponding to the second preview area other than the first region a first depth corresponding to a spatial region, the first region and the second preview preview area having different display mode.

[0061] 进一步的,所述深度获取单元10,具体用于: [0061] Further, the depth acquisition unit 10 is configured to:

[0062] 通过摄像头阵列方式或者结构光方式,获取所述第一空间区域中的M个特征点与所述图像采集单元之间的M个距离值,由所述M个距离值组成所述第一预览图像的深度信息,M为大于等于I的整数。 [0062] By way of a camera array or structured light mode, obtain M distance values ​​between the first spatial region of the M feature points in the image acquisition unit, by the M distance values ​​of the first composition depth information of a preview image, M being an integer greater than or equal to I.

[0063] 进一步的,所述景深确定单元20,具体用于: [0063] Further, the depth of field determination unit 20 is configured to:

[0064] 根据所述图像采集单元的焦距,光圈值,以及对焦点距离,计算获得所述第一预览图像的第一景深信息。 [0064] The focal length of the image pickup unit, an aperture value, and focus distance, the first depth information obtained by calculation of the first preview image.

[0065] 进一步的,所述区域确定单元30,具体包括: [0065] Further, the area determination unit 30, comprises:

[0066] 确定子单元,用于基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,N为大于等于I小于等于M的整数; [0066] The determination subunit, based on the depth information and the first depth information, it is determined that the N distance values ​​within said first depth information corresponding to the N from the M distance values feature point, N being an integer greater than or equal M, less than I;

[0067] 显示单元,用于将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式。 [0067] a display unit for displaying the N feature points in the first display mode in the first preview area, and the second MN feature points in the second display mode displaying the preview area, the first display mode and the second display mode is a different display modes.

[0068] 进一步的,所述确定子单元,具体用于: [0068] Further, the determining subunit is configured to:

[0069] 当所述第一景深信息所在的第一景深区域具体为距离Dl至距离D2之间的距离范围时,从所述M个距离值中确定出距离值大于D1,以及小于D2的N个距离值,从而确定出位于所述第一景深信息内的N个距离值所对应的N个特征点。 [0069] When the first depth of the first region where the depth information specific to the distance Dl is a distance range between the distance D2, is determined from the M distance values ​​is greater than the distance D1, and D2 is less than N distance values, to determine the N feature points N distance values ​​within said first depth information corresponds.

[0070] 进一步的,所述显示单元,具体用于: [0070] Further, the display unit is specifically configured to:

[0071] 在所述第一预览图像中将所述N个特征点对应的第一预览区域以第一亮度显示,以及将所述MN个特征点对应的第二预览区域以第二亮度显示,所述第一亮度与所述第二亮度为不同的显示亮度。 [0071] In the preview image in the first of the N feature points corresponding to a first display at a first luminance preview area, and a second region of the MN preview feature points corresponding to a second display luminance, the first luminance and the second luminance different display brightness.

[0072] 根据上面对本申请提供的信息处理的方法的描述,上述电子设备用于实现上述方法,所以,该电子设备的工作过程与上述方法的一个或多个实施例一致,在此就不一一赘述了。 [0072] The above description of the method for processing the information provided herein, the electronic device for implementing the above method, therefore, the operation of the electronic device with one or more embodiments consistent with the method described above, this is not a a repeat.

[0073] 本申请实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点: [0073] The present application to one or more technical solutions provided in the embodiment, at least the following technical effects or advantages:

[0074] (I)由于在本申请实施例中,采用在通过图像采集单元预览要采集的图像时,采用获得预览图像的深度信息以及景深信息,以根据深度信息与景深信息在浏览图像中确定出两个显示模式的第一浏览区域和第二浏览区域,其中,使景深信息显示在第一浏览区域,非景深信息显示在第二浏览区域的技术手段,解决了现有的图像采集设备存在的不能提供直观的景深预览效果的技术问题,实现了能够通过不同的显示模式将浏览图像的景深信息与非景深信息展示给用户的技术效果。 [0074] (I) due embodiment, employed at the time by the image acquisition unit Preview To capture an image, using the depth information and depth information obtained preview image, in the present application to determine the review image according to depth information and depth information Browse the first region and the second viewing area of ​​two display modes, wherein the depth information is displayed in a first viewing area, the non-display technology depth information browsing means in the second region, to solve the conventional image pickup device exists We can not provide visual depth of field preview of technical problems, to achieve a technical effect capable of browsing through images of different display modes depth information presented to the user with non-depth information.

[0075] (2)由于在本申请实施例中,采用不同的显示模式将第一预览图像中的第一预览区域与第二预览区域显示出来的技术手段,更直观的将景深区域与非景深区域区分显示出来,实现了方便用户对拍照画面进行调整的技术效果。 [0075] (2) Since the embodiment, different display modes of the first preview image in the preview area of ​​the first and second preview area shown in the technical means of the present application embodiment, the depth is more intuitive and non-depth region area division is displayed, user achieved technical effect of adjusting the camera picture.

[0076] 本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。 [0076] skilled in the art should understand that the embodiments of the present invention may provide a method, system, or computer program product. 因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。 Thus, embodiments of the present invention may be employed entirely hardware embodiment, an entirely software embodiment, or an embodiment in conjunction with the form of software and hardware aspects. 而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。 Further, the present invention may take the form of a computer program product embodied in one or more of which comprises a computer usable storage medium having computer-usable program code (including but not limited to, disk storage, CD-ROM, optical memory, etc.).

[0077] 本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。 [0077] The present invention has been described in accordance with the method of Example of the present invention, apparatus (systems) and computer program products flowchart and / or block diagrams described. 应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。 It should be understood and implemented by computer program instructions and block, and the flowchart / or block diagrams each process and / or flowchart illustrations and / or block diagrams of processes and / or blocks. 可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 These computer program instructions may be provided to a processor a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus generating in a device for implementing the flow chart or more flows and / or block diagram block or blocks in a specified functions.

[0078] 这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 [0078] These computer program instructions may also be stored in a computer can direct a computer or other programmable data processing apparatus to function in a particular manner readable memory produce an article of manufacture such that the storage instruction means comprises a memory in the computer-readable instructions the instruction means implemented in a flowchart or more flows and / or block diagram block or blocks in a specified function.

[0079] 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。 [0079] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps on the computer or other programmable apparatus to produce a computer implemented so that the computer or other programmable apparatus execute instructions to provide processes for implementing a process or flows and / or block diagram block or blocks a function specified step.

[0080] 具体来讲,本申请实施例中的信息处理的方法对应的计算机程序指令可以被存储在光盘,硬盘,U盘等存储介质上,当存储介质中的与信息处理的方法对应的计算机程序指令被一电子设备读取或被执行时,包括如下步骤: [0080] Specifically, the information processing method of computer program instructions corresponding to the embodiment may be stored on the optical disk, hard disk, U disk storage medium such as a computer and the method of storage medium storing information processing corresponding to the embodiment of the present application the program instructions, when executed a read or electronic device, comprising the steps of:

[0081] 获取所述第一预览图像的深度信息,其中,所述深度信息用于表征所述图像采集单元与所述第一空间区域内中的特征点之间的距离;确定所述第一预览图像中的第一景深信息;根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式。 [0081] acquire the depth information of the first preview image, wherein the depth information is a distance between feature points in characterizing the image acquisition unit and the first spatial region; determining the first first depth information in the preview image; determined according to the depth of said first depth information and the first information of the preview image in the preview area of ​​the first and second preview area, the first region and the preview a first region of a first depth where the depth information corresponding to the first space region other than the second region and the first depth of field preview region corresponding to the first region and the second preview preview area have different display mode.

[0082] 可选的,所述获取所述第一预览图像的深度信息,具体为:通过摄像头阵列方式或者结构光方式,获取所述第一空间区域中的M个特征点与所述图像采集单元之间的M个距离值,由所述M个距离值组成所述第一预览图像的深度信息,M为大于等于I的整数。 [0082] Optionally, the first acquiring depth information for the preview image, specifically: by way of a camera array or structured light mode, acquiring M feature points in said first space region and the image acquisition M distance values ​​between the unit consisting of the M distance values ​​of the first depth information composed preview image, M is an integer of I.

[0083] 可选的,所述确定所述第一预览图像中的第一景深信息,具体为:根据所述图像采集单元的焦距,光圈值,以及对焦点距离,计算获得所述第一预览图像的第一景深信息。 [0083] Optionally, the first depth information of the first preview image is determined, in particular: The focal length of the image pickup unit, an aperture value, and focus distance calculation to obtain the first preview first depth information of the image.

[0084] 可选的,所述根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式,具体包括:基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,N为大于等于I小于等于M的整数;将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式。 [0084] Optionally, the determining based on the first information and the depth information of the depth of the first preview image in the preview area of ​​the first and second preview area, the first region and the preview a first region of a first depth where the depth information corresponding to the first space region other than the second region and the first depth of field preview region corresponding to the first region and the second preview preview area have different display modes, comprising: based on the depth information and the first depth information, it is determined that N feature points N distance values ​​within said first depth information from the corresponding distance values ​​of M, N I greater than or equal to an integer less than M; and the N feature points in the first preview area displaying a first display mode, the MN and the second feature points in the second display mode displaying a preview region, the first display mode and the second display mode is a different display modes.

[0085] 可选的,所述基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,具体为:当所述第一景深信息所在的第一景深区域具体为距离Dl至距离D2之间的距离范围时,从所述M个距离值中确定出距离值大于D1,以及小于D2的N个距离值,从而确定出位于所述第一景深信息内的N个距离值所对应的N个特征点。 [0085] Alternatively, the depth based on the first information and the depth information, it is determined that the N distance values ​​within said first depth information corresponding to the N from the M distance values feature point, in particular: when the first depth of the first region where the depth information specific to the distance Dl is a distance range between the distance D2, it is determined from the M distance values ​​is greater than the distance D1, and less than D2 is a distance value of N to determine the number of feature points N N distance values ​​within said first depth information corresponds.

[0086] 可选的,所述将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式,具体为:在所述第一预览图像中将所述N个特征点对应的第一预览区域以第一亮度显示,以及将所述MN个特征点对应的第二预览区域以第二亮度显示,所述第一亮度与所述第二亮度为不同的显示亮度。 [0086] Optionally, the said N feature points in the first display mode is displayed in the preview area first, and the second MN feature points in the second display mode displaying the preview area , the first display mode and the second display mode is a different display modes, specifically: in the preview image in the first of the N feature points corresponding to a first display at a first luminance preview area, and a second region of the MN preview feature points corresponding to the display brightness to a second, the first luminance and the second luminance different display brightness.

[0087] 尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。 [0087] While the present invention has been described with preferred embodiments, but those skilled in the art from the underlying inventive concept can make other modifications and variations to these embodiments. 所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。 Therefore, the appended claims are intended to explain embodiments including the preferred embodiment as fall within the scope of the invention and all changes and modifications.

[0088] 显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。 [0088] Obviously, those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. 这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Thus, if these modifications and variations of the present invention fall within the claims of the invention and the scope of equivalents thereof, the present invention intends to include these modifications and variations.

Claims (12)

  1. 1.一种信息处理的方法,应用于一电子设备,所述电子设备包括图像采集单元,在通过所述图像采集单元获得第一空间区域内的第一预览图像,并将所述第一预览图像显示在所述电子设备的显示单元上时,所述方法包括: 获取所述第一预览图像的深度信息,其中,所述深度信息用于表征所述图像采集单元与所述第一空间区域内中的特征点之间的距离; 确定所述第一预览图像中的第一景深信息; 根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式。 1. An information processing method, applied to an electronic device, said electronic device comprising an image acquisition unit, in the first preview image obtained by the image capturing unit of the first spatial region, and the first preview when the image is displayed on the display unit of the electronic device, the method comprising: obtaining depth information of the first preview image, wherein the depth information for the first area of ​​space characterizing the image acquisition unit the distance between the feature points; determining a first depth information for the first preview image; determining the first region of the first preview of the preview image according to the first depth information and the depth information and a second region of the preview, the preview of the first region and the first depth of the first depth region where the information corresponding to the first region and the second preview space region other than the region corresponding to a first depth, the first region and the second preview preview area having different display modes.
  2. 2.如权利要求1所述的方法,其特征在于,所述获取所述第一预览图像的深度信息,具体为: 通过摄像头阵列方式或者结构光方式,获取所述第一空间区域中的M个特征点与所述图像采集单元之间的M个距离值,由所述M个距离值组成所述第一预览图像的深度信息,M为大于等于I的整数。 2. The method according to claim 1, wherein said first acquiring depth information for the preview image, specifically: by way of a camera array or structured light mode, acquiring the first space region M M distance values ​​between the feature points of the image acquisition unit, by the M distance values ​​of the first depth information composed preview image, M is an integer of I.
  3. 3.如权利要求1或2所述的方法,其特征在于,所述确定所述第一预览图像中的第一景深信息,具体为: 根据所述图像采集单元的焦距,光圈值,以及对焦点距离,计算获得所述第一预览图像的第一景深信息。 3. The method according to claim 1, wherein the first depth information in the first preview image is determined, specifically as follows: The focal length of the image pickup unit, an aperture value, and for focal length, calculating first depth information to obtain the first preview image.
  4. 4.如权利要求3所述的方法,其特征在于,所述根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式,具体包括: 基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,N为大于等于I小于等于M的整数; 将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式。 4. The method according to claim 3, wherein said determining a first region of the preview image in the preview of the first and second preview area according to the first depth information and the depth information, the said first preview the first region and the first depth where the depth information corresponding to a region, the second preview area with the first space region other than the region corresponding to the first depth, the first region and the preview the second preview display regions having different modes, comprising: based on the depth information and the first depth information, determined from values ​​of the N located within the first depth information from the distance values ​​in the M corresponding to the N feature points, N being an integer less than or equal to I M; and the N feature points displaying the preview area first, and the MN feature points in the second display in the first display mode preview mode is shown in the second region, the first display mode and the second display mode is a different display modes.
  5. 5.如权利要求4所述的方法,其特征在于,所述基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,具体为: 当所述第一景深信息所在的第一景深区域具体为距离Dl至距离D2之间的距离范围时,从所述M个距离值中确定出距离值大于D1,以及小于D2的N个距离值,从而确定出位于所述第一景深信息内的N个距离值所对应的N个特征点。 5. The method according to claim 4, characterized in that the depth based on the first information and the depth information, N is determined within said first depth information from the distance values ​​in the M distance values ​​corresponding to the N feature points, specifically: when the first depth of the first region where the depth information specific to the distance Dl is a distance range between the distance D2, the distance is determined from the values ​​of the M value is greater than the distance D1, and D2 are smaller than the distance value of N to determine the number of feature points N N distance values ​​within said first depth information corresponds.
  6. 6.如权利要求4所述的方法,其特征在于,所述将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式,具体为: 在所述第一预览图像中将所述N个特征点对应的第一预览区域以第一亮度显示,以及将所述MN个特征点对应的第二预览区域以第二亮度显示,所述第一亮度与所述第二亮度为不同的显示亮度。 6. The method according to claim 4, wherein the said N feature points in the first preview display area, and the second feature points of the MN in a first display mode the display mode in the second preview display area, the first display mode and the second display mode is a different display modes, specifically: in the first preview image corresponding to the N feature points in the first a first display luminance in the preview area, the MN and the second feature points corresponding to a second region of the preview display brightness, the first luminance and the second luminance different display brightness.
  7. 7.一种电子设备,所述电子设备包括图像采集单元,在通过所述图像采集单元获得第一空间区域内的第一预览图像,并将所述第一预览图像显示在所述电子设备的显示单元上时,所述电子设备还包括: 深度获取单元,用于获取所述第一预览图像的深度信息,其中,所述深度信息用于表征所述图像采集单元与所述第一空间区域内中的特征点之间的距离; 景深确定单元,用于确定所述第一预览图像中的第一景深信息; 区域确定单元,用于根据所述深度信息以及所述第一景深信息确定出所述第一预览图像中的第一预览区域和第二预览区域,所述第一预览区域与所述第一景深信息所在的第一景深区域相对应,所述第二预览区域与所述第一景深区域以外的第一空间区域相对应,所述第一预览区域与第二预览区域具有不同的显示模式。 An electronic device, said electronic device comprising an image acquisition unit, obtaining a first preview image in the first area of ​​space by the image capturing unit, and the preview image displayed on the first electronic device when the display unit, the electronic device further comprising: a depth acquisition unit for acquiring the depth information of the first preview image, wherein the depth information for the first area of ​​space characterizing the image acquisition unit the distance between the feature points in the; depth of field determining means, a first of said first depth information for determining a preview image; region determining unit for determining based on the first information and the depth information of the depth a first region of the first preview image in the preview area and a second preview, the preview of the first region and the first depth of the first depth region where the information corresponding to said first region and said second preview a first spatial region other than the region corresponding to the depth of the first region and the second preview preview area having different display modes.
  8. 8.如权利要求7所述的电子设备,其特征在于,所述深度获取单元,具体用于: 通过摄像头阵列方式或者结构光方式,获取所述第一空间区域中的M个特征点与所述图像采集单元之间的M个距离值,由所述M个距离值组成所述第一预览图像的深度信息,M为大于等于I的整数。 8. The electronic apparatus according to claim 7, wherein the depth obtaining unit is specifically configured to: by a camera or an array of structured light mode, acquires the M feature points of the first spatial region and the M distance values ​​between said image acquisition unit, by the depth information from the M preview image of the first composition value, M is an integer of I.
  9. 9.如权利要求7或8所述的电子设备,其特征在于,所述景深确定单元,具体用于: 根据所述图像采集单元的焦距,光圈值,以及对焦点距离,计算获得所述第一预览图像的第一景深信息。 9. The electronic apparatus of claim 7 or claim 8, wherein the depth determination unit is configured to: according to the focal length of the image acquisition unit, an aperture value, and focus distance, the second calculation is obtained first depth information of a preview image.
  10. 10.如权利要求9所述的电子设备,其特征在于,所述区域确定单元,具体包括: 确定子单元,用于基于所述深度信息以及所述第一景深信息,从所述M个距离值中确定出位于所述第一景深信息内的N个距离值所对应的N个特征点,N为大于等于I小于等于M的整数; 显示单元,用于将所述N个特征点以第一显示模式显示在所述第一预览区域,以及将所述MN个特征点第二显示模式显示在所述第二预览区域,所述第一显示模式与所述第二显示模式为不同的显示模式。 10. The electronic apparatus according to claim 9, wherein the area determination unit comprises: a determining sub-unit, based on the depth information and the first depth information, the distance from the M values ​​determined at the N of the N feature points in the first distance values ​​corresponding to the depth information, N being an integer less than or equal to I M; and a display unit for the feature points of the N a first display mode is displayed in the preview area, and the second MN feature points in the second display mode displaying the preview area, the first display mode and the second display mode is a different display mode.
  11. 11.如权利要求10所述的电子设备,其特征在于,所述确定子单元,具体用于: 当所述第一景深信息所在的第一景深区域具体为距离Dl至距离D2之间的距离范围时,从所述M个距离值中确定出距离值大于D1,以及小于D2的N个距离值,从而确定出位于所述第一景深信息内的N个距离值所对应的N个特征点。 11. The electronic apparatus according to claim 10, wherein the determining subunit is configured to: when the first region a first depth where the depth information specific to the distance Dl is a distance between the distance D2 when the range is determined from the M distance values ​​is greater than the distance D1, and D2 are smaller than the distance value of N to determine the number N of distance values ​​within said first depth information corresponding to the N feature points .
  12. 12.如权利要求10所述的电子设备,其特征在于,所述显示单元,具体用于: 在所述第一预览图像中将所述N个特征点对应的第一预览区域以第一亮度显示,以及将所述MN个特征点对应的第二预览区域以第二亮度显示,所述第一亮度与所述第二亮度为不同的显示亮度。 12. The electronic device according to claim 10, wherein the display unit is specifically configured to: in the first preview image in the N feature points corresponding to a first region of a first luminance preview show preview area and the second feature points MN corresponding to a second display brightness, the first luminance and the second luminance different display brightness.
CN 201410025858 2014-01-20 2014-01-20 An information processing method for an electronic device, and CN104793910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410025858 CN104793910B (en) 2014-01-20 2014-01-20 An information processing method for an electronic device, and

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410025858 CN104793910B (en) 2014-01-20 2014-01-20 An information processing method for an electronic device, and

Publications (2)

Publication Number Publication Date
CN104793910A true true CN104793910A (en) 2015-07-22
CN104793910B CN104793910B (en) 2018-11-09

Family

ID=53558732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410025858 CN104793910B (en) 2014-01-20 2014-01-20 An information processing method for an electronic device, and

Country Status (1)

Country Link
CN (1) CN104793910B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7221398B2 (en) * 2003-05-01 2007-05-22 Hewlett-Packard Development Company, L.P. Accurate preview for digital cameras
CN101193209A (en) * 2006-11-28 2008-06-04 索尼株式会社 Imaging device
CN101656817A (en) * 2008-08-19 2010-02-24 株式会社理光 Image processing apparatus, image processing process and image processing procedures
CN102447933A (en) * 2011-11-01 2012-05-09 浙江捷尚视觉科技有限公司 Depth information acquisition method based on binocular framework
CN102696219A (en) * 2010-11-08 2012-09-26 松下电器产业株式会社 Imaging device, imaging method, program, and integrated circuit
CN103152521A (en) * 2013-01-30 2013-06-12 广东欧珀移动通信有限公司 Effect of depth of field achieving method for mobile terminal and mobile terminal
CN103322937A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Method and device for measuring depth of object using structured light method
CN103366352A (en) * 2012-03-30 2013-10-23 北京三星通信技术研究有限公司 Device and method for producing image with background being blurred

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7221398B2 (en) * 2003-05-01 2007-05-22 Hewlett-Packard Development Company, L.P. Accurate preview for digital cameras
CN101193209A (en) * 2006-11-28 2008-06-04 索尼株式会社 Imaging device
CN101656817A (en) * 2008-08-19 2010-02-24 株式会社理光 Image processing apparatus, image processing process and image processing procedures
CN102696219A (en) * 2010-11-08 2012-09-26 松下电器产业株式会社 Imaging device, imaging method, program, and integrated circuit
CN102447933A (en) * 2011-11-01 2012-05-09 浙江捷尚视觉科技有限公司 Depth information acquisition method based on binocular framework
CN103322937A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Method and device for measuring depth of object using structured light method
CN103366352A (en) * 2012-03-30 2013-10-23 北京三星通信技术研究有限公司 Device and method for producing image with background being blurred
CN103152521A (en) * 2013-01-30 2013-06-12 广东欧珀移动通信有限公司 Effect of depth of field achieving method for mobile terminal and mobile terminal

Also Published As

Publication number Publication date Type
CN104793910B (en) 2018-11-09 grant

Similar Documents

Publication Publication Date Title
CN102055834A (en) Double-camera photographing method of mobile terminal
CN103888683A (en) Mobile terminal and shooting method thereof
CN102938825A (en) Method and device for shooting pictures and recording videos
CN103905730A (en) Shooting method of mobile terminal and mobile terminal
CN102722321A (en) Method and device for switching between double cameras
US20130076941A1 (en) Systems And Methods For Editing Digital Photos Using Surrounding Context
CN103533244A (en) Shooting device and automatic visual effect processing shooting method thereof
CN103986874A (en) Image acquiring device, method and terminal
CN102645836A (en) Photograph shooting method and electronic apparatus
CN103049175A (en) Method, device and terminal for presenting preview images
CN104618640A (en) Photographing method and device
JP2007194819A (en) Camera device, and photography condition setting method
CN101034253A (en) Device and method for implementing shooting panoramic photo
CN103888672A (en) Terminal and terminal shooting method
CN103002152A (en) Method and device for continuous shooting of mobile terminal
JP2008003335A (en) Imaging apparatus, focus control method, focus control program
CN102957870A (en) Photographing method and device
CN103945121A (en) Information processing method and electronic equipment
CN104052931A (en) Image shooting device, method and terminal
CN103841328A (en) Low-speed shutter shooting method and device
CN103685940A (en) Method for recognizing shot photos by facial expressions
CN101715063A (en) Method for starting automatic focusing function and electronic device thereof
CN101086604A (en) Imaging apparatus, control method of imaging apparatus, and computer program
CN103685952A (en) Terminal and image processing method
CN1992811A (en) Method and system for displaying adjacent image in the preview window of camera

Legal Events

Date Code Title Description
C06 Publication
EXSB Decision made by sipo to initiate substantive examination