CN104994292B - The control method and electric terminal of a kind of wide-angle camera - Google Patents
The control method and electric terminal of a kind of wide-angle camera Download PDFInfo
- Publication number
- CN104994292B CN104994292B CN201510383075.7A CN201510383075A CN104994292B CN 104994292 B CN104994292 B CN 104994292B CN 201510383075 A CN201510383075 A CN 201510383075A CN 104994292 B CN104994292 B CN 104994292B
- Authority
- CN
- China
- Prior art keywords
- wide
- edge area
- angle
- angle camera
- electronic terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000004044 response Effects 0.000 claims description 6
- 230000001960 triggered effect Effects 0.000 claims description 5
- 238000012512 characterization method Methods 0.000 abstract 3
- 230000000007 visual effect Effects 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000017260 vegetative to reproductive phase transition of meristem Effects 0.000 description 2
- 241001465754 Metazoa Species 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种广角摄像头的控制方法及电子终端。The invention relates to the technical field of computers, in particular to a control method of a wide-angle camera and an electronic terminal.
背景技术Background technique
随着电子技术的快速发展,拍照功能的应用也越来越广泛和人性化,人们可以随心所欲地拍摄各种画面,很多拍客的拍照技术已经达到了非常高的境界,例如,可以借助光线来展现不同的格调,能够利用视角实现多种景物的完美结合等。With the rapid development of electronic technology, the application of camera function is becoming more and more extensive and humanized. People can shoot various pictures as they like. Many photographers have reached a very high level of camera technology. For example, they can use light to Show different styles, be able to use the perspective to achieve the perfect combination of multiple scenes, etc.
然而,技术再好的拍客在拍摄人数较多的合影时,往往也会遇到比较棘手的问题,例如,需要不断地调整焦距以保证将每个人都拍摄到画面中,同时又不能调整的太过而导致画面空闲,现有技术中,焦距都是人为进行调整,效率较低且效果不佳。However, no matter how good the technique is, photographers often encounter more difficult problems when taking group photos with a large number of people. If it is too large, the picture will be idle. In the prior art, the focal length is adjusted manually, which is inefficient and ineffective.
发明内容Contents of the invention
本发明实施例公开了一种广角摄像头的控制方法及电子终端,通过对预览画面边缘区域的特征因子进行分析以判断是否需要调整摄像头的广角焦距或拍摄角度,若是,则自动进行调整,提高了对焦效率。The embodiment of the present invention discloses a wide-angle camera control method and an electronic terminal. By analyzing the characteristic factors of the edge area of the preview screen, it is judged whether it is necessary to adjust the wide-angle focal length or shooting angle of the camera. focus efficiency.
第一方面,本发明实施例提供了一种广角摄像头的控制方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for controlling a wide-angle camera, the method comprising:
电子终端通过所述广角摄像头获取第一预览画面,其中,所述第一预览画面中包含多个特征因子;The electronic terminal acquires a first preview picture through the wide-angle camera, wherein the first preview picture contains a plurality of feature factors;
所述电子终端判断所述第一预览画面的边缘区域是否包含所述特征因子;The electronic terminal judges whether the edge area of the first preview picture contains the feature factor;
若包含,则所述电子终端控制所述广角摄像头向所述边缘区域延伸视角。If included, the electronic terminal controls the wide-angle camera to extend the angle of view to the edge area.
结合第一方面,在第一方面的第一种可能的实现方式中,所述控制所述广角摄像头向所述边缘区域延伸视角之后,执行所述判断所述第一预览画面的边缘区域是否包含所述特征因子的步骤。With reference to the first aspect, in a first possible implementation manner of the first aspect, after the controlling the wide-angle camera to extend the angle of view to the edge area, performing the judging whether the edge area of the first preview image contains The eigenfactor step.
结合第一方面,在第一方面的第二种可能的实现方式中,所述控制所述广角摄像头向所述边缘区域延伸视角之后,当判断出所述边缘区域不包含所述特征因子时,还包括:With reference to the first aspect, in a second possible implementation manner of the first aspect, after controlling the wide-angle camera to extend the angle of view to the edge area, when it is determined that the edge area does not contain the feature factor, Also includes:
所述电子终端输出提示消息以提示输入拍摄指令;The electronic terminal outputs a prompt message to prompt input of a shooting instruction;
所述电子终端接收所述拍摄指令;The electronic terminal receives the shooting instruction;
所述电子终端响应所述拍摄指令,拍摄所述第一预览画面。The electronic terminal responds to the shooting instruction to shoot the first preview image.
结合第一方面,在第一方面的第三种可能的实现方式中,所述电子终端包括普通摄像头,用于在默认模式下执行拍摄任务;所述通过所述广角摄像头获取第一预览画面之前,还包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, the electronic terminal includes an ordinary camera for performing a shooting task in a default mode; before acquiring the first preview image through the wide-angle camera ,Also includes:
所述电子终端在所述默认模式下通过所述普通摄像头获取第二预览画面;The electronic terminal obtains a second preview image through the ordinary camera in the default mode;
所述电子终端判断所述第二预览画面中的所述特征因子的数量是否超过预设值;The electronic terminal judges whether the number of the feature factors in the second preview screen exceeds a preset value;
若超过,则所述电子终端启动所述广角摄像头,以使所述广角摄像头获取所述第一预览画面。If it exceeds, the electronic terminal activates the wide-angle camera, so that the wide-angle camera acquires the first preview image.
结合第一方面、第一方面的第一种可能的实现方式、第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述边缘区域包括第一边缘区域和第二边缘区域,所述第一边缘区域和所述第二边缘区域位于所述第一预览画面中相对的两侧;In combination with the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, or the third possible implementation of the first aspect, the fourth possible implementation of the first aspect In an implementation manner, the edge area includes a first edge area and a second edge area, and the first edge area and the second edge area are located on opposite sides of the first preview image;
所述判断所述第一预览画面的边缘区域是否包含所述特征因子,包括:The judging whether the edge area of the first preview picture contains the feature factor includes:
判断所述第一边缘区域和所述第二边缘区域是否都包含所述特征因子;judging whether both the first edge region and the second edge region contain the feature factor;
所述控制所述广角摄像头向所述边缘区域延伸视角,包括:The controlling the wide-angle camera to extend the viewing angle to the edge area includes:
调整所述广角摄像头的广角焦距以扩大所述广角摄像头的视角。The wide-angle focal length of the wide-angle camera is adjusted to expand the viewing angle of the wide-angle camera.
第二方面,本发明实施例提供一种电子终端,该电子终端包括:In a second aspect, an embodiment of the present invention provides an electronic terminal, and the electronic terminal includes:
第一获取单元,用于通过所述广角摄像头获取第一预览画面,其中,所述第一预览画面中包含多个特征因子;A first acquiring unit, configured to acquire a first preview picture through the wide-angle camera, wherein the first preview picture contains a plurality of feature factors;
第一判断单元,用于判断所述第一预览画面的边缘区域是否包含所述特征因子;A first judging unit, configured to judge whether the edge area of the first preview picture contains the feature factor;
控制单元,用于在所述第一判断单元的判断结果为是时,控制所述广角摄像头向所述边缘区域延伸视角。A control unit, configured to control the wide-angle camera to extend the angle of view to the edge area when the determination result of the first determination unit is yes.
结合第二方面,在第二方面的第一种可能的实现方式中,所述控制单元控制所述广角摄像头向所述边缘区域延伸视角之后,触发所述第一判断单元判断所述第一预览画面的边缘区域是否包含所述特征因子。With reference to the second aspect, in a first possible implementation manner of the second aspect, after the control unit controls the wide-angle camera to extend the angle of view to the edge area, trigger the first judgment unit to judge the first preview Whether the edge area of the picture contains the feature factor.
结合第二方面,在第二方面的第二种可能的实现方式中,还包括:In combination with the second aspect, in a second possible implementation manner of the second aspect, it also includes:
提示单元,用于在所述控制单元控制所述广角摄像头向所述边缘区域延伸视角使得所述边缘区域不包含所述特征因子后,输出提示消息以提示输入拍摄指令;A prompting unit, configured to output a prompt message to prompt input of a shooting instruction after the control unit controls the wide-angle camera to extend the angle of view to the edge area so that the edge area does not contain the feature factor;
接收单元,用于接收所述拍摄指令;a receiving unit, configured to receive the shooting instruction;
响应单元,用于响应所述拍摄指令,拍摄所述第一预览画面。The response unit is configured to respond to the shooting instruction and shoot the first preview image.
结合第二方面,在第二方面的第三种可能的实现方式中,所述电子终端包括普通摄像头,用于在默认模式下执行拍摄任务;还包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, the electronic terminal includes an ordinary camera, configured to perform a shooting task in a default mode; and further includes:
第二获取单元,用于在所述默认模式下通过所述普通摄像头获取第二预览画面;a second acquiring unit, configured to acquire a second preview image through the common camera in the default mode;
第二判断单元,用于判断所述第二预览画面中的所述特征因子的数量是否超过预设值;A second judging unit, configured to judge whether the number of the feature factors in the second preview picture exceeds a preset value;
启动单元,用于在所述第二判断单元的判断结果为是时,启动所述广角摄像头,以使所述广角摄像头获取所述第一预览画面。The starting unit is configured to start the wide-angle camera when the judgment result of the second judgment unit is yes, so that the wide-angle camera acquires the first preview image.
结合第二方面、第二方面的第一种可能的实现方式、第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,所述边缘区域包括第一边缘区域和第二边缘区域,所述第一边缘区域和所述第二边缘区域位于所述第一预览画面中相对的两侧;In combination with the second aspect, the first possible implementation of the second aspect, the second possible implementation of the second aspect, or the third possible implementation of the second aspect, the fourth possible implementation of the second aspect In an implementation manner, the edge area includes a first edge area and a second edge area, and the first edge area and the second edge area are located on opposite sides of the first preview image;
所述第一判断单元具体用于判断所述第一边缘区域和所述第二边缘区域是否都包含所述特征因子;The first judging unit is specifically configured to judge whether both the first edge area and the second edge area contain the feature factor;
所述控制单元具体用于调整所述广角摄像头的广角焦距以扩大所述广角摄像头的视角。The control unit is specifically configured to adjust the wide-angle focal length of the wide-angle camera to expand the viewing angle of the wide-angle camera.
通过实施本发明实施例,对预览画面边缘区域的特征因子进行分析以判断是否需要调整摄像头的广角焦距或拍摄角度,若是,则自动进行调整,提高对焦效率。By implementing the embodiment of the present invention, the characteristic factors of the edge area of the preview image are analyzed to determine whether it is necessary to adjust the wide-angle focal length or shooting angle of the camera, and if so, automatically adjust to improve focusing efficiency.
将广角焦距调整到合理范围时,在接收到用户输入的拍摄指令后再进行拍摄,提升了用户体验;在使用广角摄像头获取预览画面之前,先用普通摄像头获取预览画面,当普通摄像头获取的预览画面满足触发广角摄像头的条件时才启动广角摄像头,进一步提升了用户体验。When adjusting the wide-angle focal length to a reasonable range, shoot after receiving the shooting command input by the user, which improves the user experience; The wide-angle camera is activated only when the picture meets the conditions for triggering the wide-angle camera, which further improves the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例提供的一种广角摄像头的控制方法的流程示意图;FIG. 1 is a schematic flowchart of a method for controlling a wide-angle camera provided by an embodiment of the present invention;
图2是本发明实施例提供的又一种广角摄像头的控制方法的流程示意图;FIG. 2 is a schematic flowchart of another method for controlling a wide-angle camera provided by an embodiment of the present invention;
图3是本发明实施例提供的一种电子终端的结构示意图;FIG. 3 is a schematic structural diagram of an electronic terminal provided by an embodiment of the present invention;
图3A是本发明实施例提供的又一种电子终端的结构示意图;FIG. 3A is a schematic structural diagram of another electronic terminal provided by an embodiment of the present invention;
图4是本发明实施例提供的又一种电子终端的结构示意图;FIG. 4 is a schematic structural diagram of another electronic terminal provided by an embodiment of the present invention;
图5是本发明实施例提供的又一种电子终端的结构示意图。FIG. 5 is a schematic structural diagram of another electronic terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。另外,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items. In addition, the terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.
本发明实施例所描述的电子终端可以是手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobile internet device)、可穿戴设备(例如智能手表(如iWatch等)、智能手环、计步器等)或其他可安装部署即时通讯应用客户端的终端设备。该电子终端上设有广角摄像头,广角摄像头由于视角广阔,通常用于拍摄合影,如人的合影、鸟的合影、花的合影、动物的合影等,在进行拍摄时,如果预览画面的边缘位置都有拍摄对象,则表明广角摄像头的视角太小使得合影中的目标物体没有被全部抓取到,因此需要扩大广角摄像头的视角,以使拍摄到的画面完整地展示合影中的目标对象。The electronic terminal described in the embodiment of the present invention can be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID, mobile internet device), a wearable device (such as a smart watch (such as iWatch, etc.), a smart bracelet, pedometer, etc.) or other terminal devices that can install and deploy instant messaging application clients. The electronic terminal is provided with a wide-angle camera. Due to its wide viewing angle, the wide-angle camera is usually used for taking group photos, such as group photos of people, birds, flowers, animals, etc. When shooting, if the edge position of the preview screen If there are all subjects, it means that the angle of view of the wide-angle camera is too small to capture all the target objects in the group photo. Therefore, it is necessary to expand the angle of view of the wide-angle camera so that the captured picture can fully display the target objects in the group photo.
请参见图1,图1是本发明实施例提供的一种广角摄像头的控制方法的流程示意图,该方法包括但不限于如下步骤。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for controlling a wide-angle camera provided by an embodiment of the present invention. The method includes but is not limited to the following steps.
步骤S101:电子终端通过广角摄像头获取第一预览画面,其中,第一预览画面中包含多个特征因子。Step S101: The electronic terminal acquires a first preview image through a wide-angle camera, wherein the first preview image includes a plurality of feature factors.
具体地,电子终端上设置有广角摄像头,广角摄像头开启后可以获取画面数据,获取的画面数据即为第一预览画面。第一预览画面中多个具有相同特征的目标对象均为特征因子,如第一预览画面中包含多个人脸时,人脸即为特征因子;再如,第一预览画面中包含很多相同类型的花时,花即为特征因子。Specifically, the electronic terminal is provided with a wide-angle camera. After the wide-angle camera is turned on, picture data can be acquired, and the acquired picture data is the first preview picture. A plurality of target objects with the same characteristics in the first preview picture are feature factors, such as when the first preview picture contains multiple human faces, the faces are feature factors; for another example, the first preview picture contains many objects of the same type When flowering, the flower is the feature factor.
进一步地,电子终端还可以包括显示屏,电子终端将广角摄像头获取的第一预览画面通过显示屏展示给用户。Further, the electronic terminal may further include a display screen, and the electronic terminal displays the first preview image acquired by the wide-angle camera to the user through the display screen.
步骤S102:电子终端判断第一预览画面的边缘区域是否包含特征因子。Step S102: the electronic terminal judges whether the edge area of the first preview image contains the feature factor.
具体地,边缘区域为预先设定的区域,例如,到第一预览画面边缘的距离介于0~1cm的区域;再如,到第一预览画面边缘的距离介于0~5%第一预览画面宽度的区域。Specifically, the edge area is a preset area, for example, an area whose distance to the edge of the first preview screen is between 0 and 1 cm; for another example, the distance to the edge of the first preview screen is between 0 and 5%. area of the screen width.
需要说明的是,在实际应用当中,相关数值可根据需要来设置;另外,上述两种定义边缘区域的方式仅为部分可选的方式,其他方式此处不再一一举例。It should be noted that in practical applications, relevant values can be set according to needs; in addition, the above two ways of defining the edge area are only some optional ways, and other ways will not be exemplified here.
进一步地,特征因子具有一定的特征,并且该特征可以通过数据体现出来,在判断边缘区域是否包含特征因子时,可以具体判断边缘区域是否具有上述数据特征,如果有,则说明边缘区域具有特征因子。Furthermore, the eigenfactor has certain characteristics, and this characteristic can be reflected by the data. When judging whether the edge area contains the eigenfactor, it can be specifically judged whether the edge area has the above-mentioned data characteristics. If so, it means that the edge area has the eigenfactor .
步骤S103:若包含,则电子终端控制广角摄像头向边缘区域延伸视角。Step S103: If it is included, the electronic terminal controls the wide-angle camera to extend the angle of view to the edge area.
具体地,当第一预览画面的边缘也包含特征因子时,表明可能还有特征因子没有被广角摄像头抓取到,因此需要向边缘区域视角以抓取可能未被抓取到的特征因子。Specifically, when the edge of the first preview image also contains feature factors, it indicates that there may be feature factors that have not been captured by the wide-angle camera, so it is necessary to view the edge area to capture feature factors that may not be captured.
在一种可选的方案中,延伸视角的方式可以是:电子终端控制广角摄像头旋转,以使广角摄像头的拍摄角度往边缘区域调整,其中,广角摄像头与电子终端活动连接。In an optional solution, the way to extend the viewing angle may be: the electronic terminal controls the rotation of the wide-angle camera so that the shooting angle of the wide-angle camera is adjusted toward the edge area, wherein the wide-angle camera is movably connected to the electronic terminal.
在又一种可选的方案中,延伸视角的方式可以是:电子终端控制广角摄像头的广角焦距,以增大广角摄像头的视角范围,进而抓取到边缘区域周围的画面。In yet another optional solution, the manner of extending the viewing angle may be: the electronic terminal controls the wide-angle focal length of the wide-angle camera to increase the viewing angle range of the wide-angle camera, and then captures pictures around the edge area.
在又一种可选的方案中,延伸视角的方式可以是:电子终端输出提示信息以提示用户调整电子终端的角度或者位置。In yet another optional solution, the manner of extending the viewing angle may be: the electronic terminal outputs prompt information to prompt the user to adjust the angle or position of the electronic terminal.
举例来说,在毕业季,大学生们通过带有广角摄像头的手机拍摄全班同学的合影照,广角摄像头首先会获取第一预览画面,并且将该第一预览画面显示在手机的触摸显示屏上,第一预览画面中每一位学生都是特征因子,电子终端分析第一预览画面的边缘区域是否有学生,如果有,则向该边缘区域延伸视角,以将所有的学生都抓取到第一预览画面中。For example, in the graduation season, college students take a group photo of the whole class through a mobile phone with a wide-angle camera. The wide-angle camera will first obtain the first preview image and display the first preview image on the touch screen of the mobile phone , each student in the first preview screen is a feature factor, and the electronic terminal analyzes whether there are students in the edge area of the first preview screen, and if so, extends the viewing angle to the edge area to capture all the students to the second in a preview screen.
结合图1的实施例,在一种可选的方案中,控制广角摄像头向边缘区域延伸视角之后,执行判断第一预览画面的边缘区域是否包含特征因子的步骤。With reference to the embodiment in FIG. 1 , in an optional solution, after controlling the wide-angle camera to extend the angle of view to the edge area, the step of judging whether the edge area of the first preview image contains the feature factor is performed.
具体地,电子终端边延伸视角边判断边缘区域是否还有特征因子,若是,则进一步地调整视角,直到边缘区域不再包含特征因子。Specifically, while extending the viewing angle, the electronic terminal judges whether there is any feature factor in the edge area, and if so, further adjusts the viewing angle until the edge area no longer contains the feature factor.
结合图1的实施例,在一种可选的方案中,控制广角摄像头向边缘区域延伸视角之后,当判断出边缘区域不包含特征因子时,还包括:电子终端输出提示消息以提示输入拍摄指令;电子终端接收拍摄指令;电子终端响应拍摄指令,拍摄第一预览画面。In conjunction with the embodiment of FIG. 1 , in an optional solution, after controlling the wide-angle camera to extend the angle of view to the edge area, when it is determined that the edge area does not contain a feature factor, it further includes: the electronic terminal outputs a prompt message to prompt input of a shooting instruction ; The electronic terminal receives the shooting instruction; the electronic terminal responds to the shooting instruction and shoots the first preview image.
具体地,当电子终端调整视角使得边缘区域不再包含特征因子时,电子终端提示用户进行拍摄,当检测到用户输入的拍摄操作后,拍摄第一预览画面。Specifically, when the electronic terminal adjusts the viewing angle so that the edge region no longer includes the feature factor, the electronic terminal prompts the user to take a picture, and takes a first preview picture after detecting the shooting operation input by the user.
结合图1的实施例,在一种可选的方案中,边缘区域包括第一边缘区域和第二边缘区域,第一边缘区域和第二边缘区域位于第一预览画面中相对的两侧;判断第一预览画面的边缘区域是否包含特征因子,包括:判断第一边缘区域和第二边缘区域是否都包含特征因子;控制广角摄像头向边缘区域延伸视角,包括:调整广角摄像头的广角焦距以扩大广角摄像头的视角。With reference to the embodiment of FIG. 1, in an optional solution, the edge area includes a first edge area and a second edge area, and the first edge area and the second edge area are located on opposite sides of the first preview image; judging Whether the edge area of the first preview image contains feature factors, including: judging whether the first edge area and the second edge area all contain feature factors; controlling the wide-angle camera to extend the viewing angle to the edge area, including: adjusting the wide-angle focal length of the wide-angle camera to expand the wide-angle The angle of view of the camera.
具体地,电子终端获取的第一预览画面包含两个相对的边缘区域,判断边缘区域是否包含特征因子时,如果判断出两个边缘区域都包含特征因子,则说明电子终端的广角摄像头的拍摄角度可能不存在问题,但是广角摄像头的视角偏小,因此电子终端调整广角摄像头的广角角度以扩大广角摄像头的视角。Specifically, the first preview image acquired by the electronic terminal contains two opposite edge areas. When judging whether the edge areas contain feature factors, if it is judged that both edge areas contain feature factors, it means that the shooting angle of the wide-angle camera of the electronic terminal is There may not be a problem, but the viewing angle of the wide-angle camera is relatively small, so the electronic terminal adjusts the wide-angle angle of the wide-angle camera to expand the viewing angle of the wide-angle camera.
在图1所描述的广角摄像头的控制方法中,对预览画面边缘区域的特征因子进行分析以判断是否需要调整摄像头的广角焦距或拍摄角度,若是,则自动进行调整,提高对焦效率。In the control method of the wide-angle camera described in FIG. 1 , the characteristic factors of the edge area of the preview image are analyzed to determine whether it is necessary to adjust the wide-angle focal length or shooting angle of the camera, and if so, automatically adjust to improve focusing efficiency.
请参见图2,图2是本发明实施例提供的又一种广角摄像头的控制方法的流程示意图,该方法包括但不限于如下步骤。Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another method for controlling a wide-angle camera provided by an embodiment of the present invention. The method includes but is not limited to the following steps.
步骤S201:电子终端在默认模式下通过普通摄像头获取第二预览画面。Step S201: The electronic terminal obtains a second preview image through a common camera in a default mode.
具体地,电子终端包括普通摄像头和广角摄像头,其中,普通摄像头为电子终端在默认模式下获取拍摄数据的摄像头,第二预览画面为通过普通摄像头获取的画面。广角摄像头需要用户输入切换指令来进行切换,或者电子终端中的相关参数达到预设条件时自动触发切换。广角摄像头的拍摄视角比普通摄像头的拍摄视角大,且拍摄的到的照片具有鱼眼效果。Specifically, the electronic terminal includes a normal camera and a wide-angle camera, wherein the normal camera is a camera used by the electronic terminal to acquire shooting data in a default mode, and the second preview picture is a picture acquired through the normal camera. The wide-angle camera requires the user to input a switching command to switch, or the switching is automatically triggered when the relevant parameters in the electronic terminal meet the preset conditions. The shooting angle of view of the wide-angle camera is larger than that of the ordinary camera, and the photos taken have a fisheye effect.
步骤S202:电子终端判断第二预览画面中的特征因子的数量是否超过预设值。Step S202: the electronic terminal determines whether the number of feature factors in the second preview image exceeds a preset value.
具体地,通过普通摄像头获取了第二预览画面后,电子终端自动判断第二预览画面中是否有较多相同类型的目标对象(若有,则这些目标对象都为特征因子),例如,画面中是否有较多的人、同类型的花等,若是,则进一步的判断特征因子的数量是否超过预设值。当判断出第二预览画面中的特征因子为人物时,可以设置该预设值为5,及判断第二预览画面中的人数是否超过5个,当然,预设值应根据需要来设置,上述提到的预设值5仅用于举例。Specifically, after acquiring the second preview image through the ordinary camera, the electronic terminal automatically judges whether there are more target objects of the same type in the second preview image (if there are, these target objects are all feature factors), for example, the Whether there are more people, flowers of the same type, etc., if so, then further judge whether the number of feature factors exceeds the preset value. When it is judged that the feature factor in the second preview picture is a character, the preset value can be set to 5, and it is judged whether the number of people in the second preview picture exceeds 5. Of course, the preset value should be set according to needs, the above-mentioned The default value of 5 mentioned is for example only.
步骤S203:若超过,则电子终端启动广角摄像头,以使电子终端通过广角摄像头获取第一预览画面,其中,第一预览画面中包含多个特征因子。Step S203: If it exceeds, the electronic terminal activates the wide-angle camera, so that the electronic terminal acquires a first preview image through the wide-angle camera, wherein the first preview image includes a plurality of feature factors.
具体地,当判断出特征因子的数量超过预设值时,电子终端切换摄像头,以使广角摄像头获取第一预览画面。Specifically, when it is determined that the number of characteristic factors exceeds a preset value, the electronic terminal switches cameras so that the wide-angle camera acquires the first preview image.
进一步地,电子终端还可以包括显示屏,电子终端将广角摄像头获取的第一预览画面通过显示屏展示给用户。Further, the electronic terminal may further include a display screen, and the electronic terminal displays the first preview image acquired by the wide-angle camera to the user through the display screen.
步骤S204:电子终端判断第一预览画面的边缘区域是否包含特征因子。Step S204: the electronic terminal determines whether the edge area of the first preview image contains the feature factor.
具体地,边缘区域为预先设定的区域,例如,到第一预览画面边缘的距离介于0~1cm的区域;再如,到第一预览画面边缘的距离介于0~5%第一预览画面宽度的区域。Specifically, the edge area is a preset area, for example, an area whose distance to the edge of the first preview screen is between 0 and 1 cm; for another example, the distance to the edge of the first preview screen is between 0 and 5%. area of the screen width.
需要说明的是,在实际应用当中,相关数值可根据需要来设置;另外,上述两种定义边缘区域的方式仅为部分可选的方式,其他方式此处不再一一举例。It should be noted that in practical applications, relevant values can be set according to needs; in addition, the above two ways of defining the edge area are only some optional ways, and other ways will not be exemplified here.
进一步地,特征因子具有一定的特征,并且该特征可以通过数据体现出来,在判断边缘区域是否包含特征因子时,可以具体判断边缘区域是否具有上述数据特征,如果有,则说明边缘区域具有特征因子。Furthermore, the eigenfactor has certain characteristics, and this characteristic can be reflected by the data. When judging whether the edge area contains the eigenfactor, it can be specifically judged whether the edge area has the above-mentioned data characteristics. If so, it means that the edge area has the eigenfactor .
步骤S205:若包含,则电子终端控制广角摄像头向边缘区域延伸视角。Step S205: If it is included, the electronic terminal controls the wide-angle camera to extend the angle of view to the edge area.
具体地,当第一预览画面的边缘也包含特征因子时,表明可能还有特征因子没有被广角摄像头抓取到,因此需要向边缘区域视角以抓取可能未被抓取到的特征因子。Specifically, when the edge of the first preview image also contains feature factors, it indicates that there may be feature factors that have not been captured by the wide-angle camera, so it is necessary to view the edge area to capture feature factors that may not be captured.
在一种可选的方案中,延伸视角的方式可以是:电子终端控制广角摄像头旋转,以使广角摄像头的拍摄角度往边缘区域调整,其中,广角摄像头与电子终端活动连接。In an optional solution, the way to extend the viewing angle may be: the electronic terminal controls the rotation of the wide-angle camera so that the shooting angle of the wide-angle camera is adjusted toward the edge area, wherein the wide-angle camera is movably connected to the electronic terminal.
在又一种可选的方案中,延伸视角的方式可以是:电子终端控制广角摄像头的广角焦距,以增大广角摄像头的视角范围,进而抓取到边缘区域周围的画面。In yet another optional solution, the manner of extending the viewing angle may be: the electronic terminal controls the wide-angle focal length of the wide-angle camera to increase the viewing angle range of the wide-angle camera, and then captures pictures around the edge area.
在又一种可选的方案中,延伸视角的方式可以是:电子终端输出提示信息以提示用户调整电子终端的角度或者位置。In yet another optional solution, the manner of extending the viewing angle may be: the electronic terminal outputs prompt information to prompt the user to adjust the angle or position of the electronic terminal.
举例来说,在毕业季,大学生们通过带有广角摄像头的手机拍摄全班同学的合影照,广角摄像头首先会获取第一预览画面,并且将该第一预览画面显示在手机的触摸显示屏上,第一预览画面中每一位学生都是特征因子,电子终端分析第一预览画面的边缘区域是否有学生,如果有,则向该边缘区域延伸视角,以将所有的学生都抓取到第一预览画面中。For example, in the graduation season, college students take a group photo of the whole class through a mobile phone with a wide-angle camera. The wide-angle camera will first obtain the first preview image and display the first preview image on the touch screen of the mobile phone , each student in the first preview screen is a feature factor, and the electronic terminal analyzes whether there are students in the edge area of the first preview screen, and if so, extends the viewing angle to the edge area to capture all the students to the second in a preview screen.
在图2所描述的广角摄像头的控制方法中,对预览画面边缘区域的特征因子进行分析以判断是否需要调整摄像头的广角焦距或拍摄角度,若是,则自动进行调整,提高对焦效率。In the control method of the wide-angle camera described in FIG. 2 , the characteristic factors of the edge area of the preview image are analyzed to determine whether it is necessary to adjust the wide-angle focal length or shooting angle of the camera, and if so, automatically adjust to improve focusing efficiency.
将广角焦距调整到合理范围时,在接收到用户输入的拍摄指令后再进行拍摄,提升了用户体验;在使用广角摄像头获取预览画面之前,先用普通摄像头获取预览画面,当普通摄像头获取的预览画面满足触发广角摄像头的条件时才启动广角摄像头,进一步提升了用户体验。When adjusting the wide-angle focal length to a reasonable range, shoot after receiving the shooting command input by the user, which improves the user experience; The wide-angle camera is activated only when the picture meets the conditions for triggering the wide-angle camera, which further improves the user experience.
上述详细阐述了本发明实施例的方法,为了便于更好地实施本发明实施例的上述方案,相应地,下面提供了本发明实施例的装置。The method of the embodiment of the present invention has been described in detail above. In order to facilitate better implementation of the above solution of the embodiment of the present invention, correspondingly, the following provides the device of the embodiment of the present invention.
请参见图3,图3是本发明实施例提供的一种电子终端30的结构示意图,该电子终端30可以包括第一获取单元301、第一判断单元302和控制单元303,其中,各个单元的详细描述如下。Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of an electronic terminal 30 provided by an embodiment of the present invention. The electronic terminal 30 may include a first acquiring unit 301, a first judging unit 302, and a control unit 303, wherein each unit The detailed description is as follows.
第一获取单元301用于通过广角摄像头获取第一预览画面,其中,第一预览画面中包含多个特征因子。The first acquiring unit 301 is configured to acquire a first preview picture through a wide-angle camera, wherein the first preview picture includes a plurality of feature factors.
具体地,电子终端上设置有广角摄像头,第一获取单元301通过广角摄像头获取画面数据,获取的画面数据即为第一预览画面。第一预览画面中多个具有相同特征的目标对象均为特征因子,如第一预览画面中包含多个人脸时,人脸即为特征因子;再如,第一预览画面中包含很多相同类型的花时,花即为特征因子。Specifically, the electronic terminal is provided with a wide-angle camera, and the first acquiring unit 301 acquires picture data through the wide-angle camera, and the acquired picture data is the first preview picture. A plurality of target objects with the same characteristics in the first preview picture are feature factors, such as when the first preview picture contains multiple human faces, the faces are feature factors; for another example, the first preview picture contains many objects of the same type When flowering, the flower is the feature factor.
进一步地,电子终端还可以包括显示屏,电子终端30将第一获取单元301获取的第一预览画面通过显示屏展示给用户。Further, the electronic terminal may further include a display screen, and the electronic terminal 30 displays the first preview image obtained by the first obtaining unit 301 to the user through the display screen.
第一判断单元302用于判断第一预览画面的边缘区域是否包含特征因子。The first judging unit 302 is used for judging whether the edge area of the first preview picture contains the feature factor.
具体地,边缘区域为预先设定的区域,例如,到第一预览画面边缘的距离介于0~1cm的区域;再如,到第一预览画面边缘的距离介于0~5%第一预览画面宽度的区域。Specifically, the edge area is a preset area, for example, an area whose distance to the edge of the first preview screen is between 0 and 1 cm; for another example, the distance to the edge of the first preview screen is between 0 and 5%. area of the screen width.
需要说明的是,在实际应用当中,相关数值可根据需要来设置;另外,上述两种定义边缘区域的方式仅为部分可选的方式,其他方式此处不再一一举例。It should be noted that in practical applications, relevant values can be set according to needs; in addition, the above two ways of defining the edge area are only some optional ways, and other ways will not be exemplified here.
进一步地,特征因子具有一定的特征,并且该特征可以通过数据体现出来,在判断边缘区域是否包含特征因子时,可以具体判断边缘区域是否具有上述数据特征,如果有,则说明边缘区域具有特征因子。Furthermore, the eigenfactor has certain characteristics, and this characteristic can be reflected by the data. When judging whether the edge area contains the eigenfactor, it can be specifically judged whether the edge area has the above-mentioned data characteristics. If so, it means that the edge area has the eigenfactor .
控制单元303用于在第一判断单元的判断结果为是时,控制广角摄像头向边缘区域延伸视角。The control unit 303 is configured to control the wide-angle camera to extend the viewing angle to the edge area when the determination result of the first determination unit is yes.
具体地,当第一预览画面的边缘也包含特征因子时,表明可能还有特征因子没有被广角摄像头抓取到,因此需要向边缘区域视角以抓取可能未被抓取到的特征因子。Specifically, when the edge of the first preview image also contains feature factors, it indicates that there may be feature factors that have not been captured by the wide-angle camera, so it is necessary to view the edge area to capture feature factors that may not be captured.
在一种可选的方案中,延伸视角的方式可以是:控制单元303控制广角摄像头旋转,以使广角摄像头的拍摄角度往边缘区域调整,其中,广角摄像头与电子终端活动连接。In an optional solution, the manner of extending the viewing angle may be: the control unit 303 controls the rotation of the wide-angle camera so that the shooting angle of the wide-angle camera is adjusted toward the edge area, wherein the wide-angle camera is movably connected with the electronic terminal.
在又一种可选的方案中,延伸视角的方式可以是:控制单元303控制广角摄像头的广角焦距,以增大广角摄像头的视角范围,进而抓取到边缘区域周围的画面。In yet another optional solution, the manner of extending the viewing angle may be: the control unit 303 controls the wide-angle focal length of the wide-angle camera to increase the viewing angle range of the wide-angle camera, and then capture pictures around the edge area.
在又一种可选的方案中,延伸视角的方式可以是:控制单元303输出提示信息以提示用户调整电子终端的角度或者位置。In yet another optional solution, the manner of extending the viewing angle may be: the control unit 303 outputs prompt information to prompt the user to adjust the angle or position of the electronic terminal.
举例来说,在毕业季,大学生们通过带有广角摄像头的手机拍摄全班同学的合影照,第一获取单元301首先会获取第一预览画面,并且将该第一预览画面显示在手机的触摸显示屏上,第一预览画面中每一位学生都是特征因子,第一判断单元302分析第一预览画面的边缘区域是否有学生,如果有,则触发控制单元303向该边缘区域延伸视角,以将所有的学生都抓取到第一预览画面中。For example, in the graduation season, college students take a group photo of the whole class through a mobile phone with a wide-angle camera, the first acquisition unit 301 will first obtain the first preview image, and display the first preview image on the touch screen of the mobile phone. On the display screen, each student in the first preview picture is a feature factor, and the first judging unit 302 analyzes whether there are students in the edge area of the first preview picture, and if so, triggers the control unit 303 to extend the viewing angle to the edge area, to capture all the students in the first preview screen.
结合图3所示的实施例,在一种可选的方案中,控制单元303控制广角摄像头向边缘区域延伸视角之后,触发第一判断单元302判断第一预览画面的边缘区域是否包含特征因子。With reference to the embodiment shown in FIG. 3 , in an optional solution, after the control unit 303 controls the wide-angle camera to extend the angle of view to the edge area, it triggers the first determination unit 302 to determine whether the edge area of the first preview image contains feature factors.
具体地,控制单元303边延伸视角边触发判断单元303判断边缘区域是否还有特征因子,若是,则进一步地调整视角,直到边缘区域不再包含特征因子。Specifically, the control unit 303 triggers the judging unit 303 to judge whether there are feature factors in the edge area while extending the viewing angle, and if so, further adjusts the viewing angle until the edge area no longer contains feature factors.
结合图3所示的实施例,在一种可选的方案中,电子终端30为图3A所示的结构,在图3A中,电子终端30除了包括第一获取单元301、第一判断单元302和控制单元303外,还可以包括提示单元304、接收单元305和响应单元306,其中,提示单元304、接收单元305和响应单元306的详细描述如下。In conjunction with the embodiment shown in FIG. 3 , in an optional solution, the electronic terminal 30 has the structure shown in FIG. 3A . In FIG. In addition to the control unit 303, it may further include a prompt unit 304, a receiving unit 305, and a response unit 306, wherein the detailed description of the prompt unit 304, the receiving unit 305, and the response unit 306 is as follows.
提示单元304用于在控制单元控制303广角摄像头向边缘区域延伸视角使得边缘区域不包含特征因子后,输出提示消息以提示输入拍摄指令。The prompt unit 304 is configured to output a prompt message to prompt input of a shooting instruction after the control unit controls 303 the wide-angle camera to extend the angle of view to the edge area so that the edge area does not contain the feature factor.
接收单元305用于接收拍摄指令。The receiving unit 305 is configured to receive a shooting instruction.
响应单元306用于响应拍摄指令,拍摄第一预览画面。The response unit 306 is configured to respond to the shooting instruction and shoot the first preview image.
具体地,当控制单元303调整视角使得边缘区域不再包含特征因子时,提示单元304提示用户进行拍摄,当检测到用户输入的拍摄操作后,响应单元306拍摄第一预览画面。Specifically, when the control unit 303 adjusts the viewing angle so that the edge region no longer contains the feature factor, the prompt unit 304 prompts the user to take a picture, and after detecting the shooting operation input by the user, the response unit 306 takes a first preview image.
需要说明的是,在本发明实施例中,各个单元的具体实现还可以对应参照图1所示的方法实施例的相应描述。It should be noted that, in the embodiment of the present invention, the specific implementation of each unit may also refer to the corresponding description of the method embodiment shown in FIG. 1 .
在图3所描述的电子终端30中,对预览画面边缘区域的特征因子进行分析以判断是否需要调整摄像头的广角焦距或拍摄角度,若是,则自动进行调整,提高对焦效率。In the electronic terminal 30 described in FIG. 3 , the characteristic factors of the edge area of the preview image are analyzed to determine whether it is necessary to adjust the wide-angle focal length or shooting angle of the camera, and if so, automatically adjust to improve focusing efficiency.
请参见图4,图4是本发明实施例提供的又一种电子终端30的结构示意图,该电子终端30除了包括第一获取单元301、第一判断单元302和控制单元303外,还可以包括第二获取单元307、第二判断单元308和启动单元309,其中,各个单元的详细描述如下。Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of another electronic terminal 30 provided by an embodiment of the present invention. In addition to the first acquisition unit 301, the first judgment unit 302 and the control unit 303, the electronic terminal 30 may also include The second acquiring unit 307, the second judging unit 308, and the starting unit 309, wherein the detailed description of each unit is as follows.
第二获取单元307用于在默认模式下通过普通摄像头获取第二预览画面。The second acquisition unit 307 is configured to acquire a second preview image through a common camera in a default mode.
具体地,电子终端包括普通摄像头和广角摄像头,其中,普通摄像头为电子终端在默认模式下获取拍摄数据的摄像头,第二预览画面为第二获取单元307触发普通摄像头获取的画面。广角摄像头需要用户输入切换指令来进行切换,或者电子终端中的相关参数达到预设条件时自动触发切换。广角摄像头的拍摄视角比普通摄像头的拍摄视角大,且拍摄的到的照片具有鱼眼效果。Specifically, the electronic terminal includes a normal camera and a wide-angle camera, wherein the normal camera is a camera that the electronic terminal acquires shooting data in a default mode, and the second preview picture is a picture captured by the normal camera triggered by the second acquisition unit 307 . The wide-angle camera requires the user to input a switching command to switch, or the switching is automatically triggered when the relevant parameters in the electronic terminal meet the preset conditions. The shooting angle of view of the wide-angle camera is larger than that of the ordinary camera, and the photos taken have a fisheye effect.
第二判断单元308用于判断第二预览画面中的特征因子的数量是否超过预设值。The second judging unit 308 is used for judging whether the number of feature factors in the second preview image exceeds a preset value.
具体地,第二获取单元307获取了第二预览画面后,第二判断单元308自动判断第二预览画面中是否有较多相同类型的目标对象(若有,则这些目标对象都为特征因子),例如,画面中是否有较多的人、同类型的花等,若是,则进一步的判断特征因子的数量是否超过预设值。当判断出第二预览画面中的特征因子为人物时,可以设置该预设值为5,及判断第二预览画面中的人数是否超过5个,当然,预设值应根据需要来设置,上述提到的预设值5仅用于举例。Specifically, after the second acquiring unit 307 acquires the second preview image, the second judging unit 308 automatically judges whether there are more target objects of the same type in the second preview image (if so, these target objects are all feature factors) , For example, whether there are more people, flowers of the same type, etc. in the picture, and if so, further determine whether the number of feature factors exceeds a preset value. When it is judged that the feature factor in the second preview picture is a character, the preset value can be set to 5, and it is judged whether the number of people in the second preview picture exceeds 5. Of course, the preset value should be set according to needs, the above-mentioned The default value of 5 mentioned is for example only.
启动单元309用于在第二判断单元的判断结果为是时,启动广角摄像头,以使广角摄像头获取第一预览画面。The starting unit 309 is configured to start the wide-angle camera so that the wide-angle camera acquires the first preview image when the determination result of the second determination unit is yes.
具体地,当第二判断单元308判断出特征因子的数量超过预设值时,触发启动单元309切换摄像头,以使广角摄像头获取第一预览画面。Specifically, when the second judging unit 308 judges that the number of characteristic factors exceeds a preset value, the triggering unit 309 is triggered to switch cameras, so that the wide-angle camera acquires the first preview image.
进一步地,电子终端还可以包括显示屏,电子终端将第二获取单元307获取的第二预览画面通过显示屏展示给用户。Further, the electronic terminal may further include a display screen, and the electronic terminal displays the second preview image obtained by the second obtaining unit 307 to the user through the display screen.
需要说明的是,在本发明实施例中,各个单元的具体实现还可以对应参照图2所示的方法实施例的相应描述。It should be noted that, in the embodiment of the present invention, the specific implementation of each unit may also refer to the corresponding description of the method embodiment shown in FIG. 2 .
在图4所描述的电子终端30中,对预览画面边缘区域的特征因子进行分析以判断是否需要调整摄像头的广角焦距或拍摄角度,若是,则自动进行调整,提高对焦效率。In the electronic terminal 30 described in FIG. 4 , the characteristic factors of the edge area of the preview image are analyzed to determine whether it is necessary to adjust the wide-angle focal length or shooting angle of the camera, and if so, automatically adjust to improve focusing efficiency.
将广角焦距调整到合理范围时,在接收到用户输入的拍摄指令后再进行拍摄,提升了用户体验;在使用广角摄像头获取预览画面之前,先用普通摄像头获取预览画面,当普通摄像头获取的预览画面满足触发广角摄像头的条件时才启动广角摄像头,进一步提升了用户体验。When adjusting the wide-angle focal length to a reasonable range, shoot after receiving the shooting command input by the user, which improves the user experience; The wide-angle camera is activated only when the picture meets the conditions for triggering the wide-angle camera, which further improves the user experience.
请参照图5,图5时本发明实施例提供的另一种电子终端50的结构示意图,该电子终端50可以包括:至少一个处理器501,例如CPU,至少一个网络接口504,用户接口503,存储器505,至少一个通信总线502以及显示屏506。其中,通信总线502用于实现这些组件之间的连接通信。其中,用户接口503可以包括显示屏(Displ5y)506,可选用户接口503还可以包括标准的有线接口、无线接口。通信接口504可选的可以包括标准的有线接口(如数据线接口、网线接口等)、无线接口(如WI-FI接口、蓝牙接口、近场通讯接口)。存储器505可以是高速R5M存储器,也可以是非不稳定的存储器(non-vol5tile memory),例如至少一个磁盘存储器。存储器505可选的还可以是至少一个位于远离前述处理器501的存储装置。如图5所示,作为一种计算机存储介质的存储器505中可以包括操作系统、网络通信模块、用户接口模块以及控制程序。Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of another electronic terminal 50 provided by an embodiment of the present invention. The electronic terminal 50 may include: at least one processor 501, such as a CPU, at least one network interface 504, and a user interface 503. memory 505 , at least one communication bus 502 and display 506 . Wherein, the communication bus 502 is used to realize connection and communication between these components. Wherein, the user interface 503 may include a display screen (Displ5y) 506, and the optional user interface 503 may also include a standard wired interface and a wireless interface. Optionally, the communication interface 504 may include a standard wired interface (such as a data cable interface, a network cable interface, etc.), a wireless interface (such as a WI-FI interface, a Bluetooth interface, and a near field communication interface). The memory 505 may be a high-speed R5M memory, or a non-volume tile memory, such as at least one disk memory. Optionally, the memory 505 may also be at least one storage device located away from the aforementioned processor 501 . As shown in FIG. 5 , the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a control program.
在图5所示的电子终端50中,通信接口504主要用于连接第二终端,与第二终端进行数据通信;而处理器501可以用于调用存储器505中存储的控制程序,并执行以下操作:In the electronic terminal 50 shown in FIG. 5 , the communication interface 504 is mainly used to connect the second terminal and perform data communication with the second terminal; and the processor 501 can be used to call the control program stored in the memory 505 and perform the following operations :
电子终端通过所述广角摄像头获取第一预览画面,其中,所述第一预览画面中包含多个特征因子;The electronic terminal acquires a first preview picture through the wide-angle camera, wherein the first preview picture contains a plurality of feature factors;
所述电子终端判断所述第一预览画面的边缘区域是否包含所述特征因子;The electronic terminal judges whether the edge area of the first preview picture contains the feature factor;
若包含,则所述电子终端控制所述广角摄像头向所述边缘区域延伸视角。If included, the electronic terminal controls the wide-angle camera to extend the angle of view to the edge area.
进一步地,所述控制所述广角摄像头向所述边缘区域延伸视角之后,执行所述判断所述第一预览画面的边缘区域是否包含所述特征因子的步骤。Further, after controlling the wide-angle camera to extend the angle of view to the edge area, the step of judging whether the edge area of the first preview image contains the feature factor is performed.
进一步地,所述控制所述广角摄像头向所述边缘区域延伸视角之后,当判断出所述边缘区域不包含所述特征因子时,还包括:Further, after controlling the wide-angle camera to extend the angle of view to the edge area, when it is determined that the edge area does not contain the feature factor, it also includes:
所述电子终端输出提示消息以提示输入拍摄指令;The electronic terminal outputs a prompt message to prompt input of a shooting instruction;
所述电子终端接收所述拍摄指令;The electronic terminal receives the shooting instruction;
所述电子终端响应所述拍摄指令,拍摄所述第一预览画面。The electronic terminal responds to the shooting instruction to shoot the first preview image.
进一步地,所述电子终端包括普通摄像头,用于在默认模式下执行拍摄任务;所述通过所述广角摄像头获取第一预览画面之前,还包括:Further, the electronic terminal includes an ordinary camera for performing shooting tasks in a default mode; before acquiring the first preview image through the wide-angle camera, it also includes:
所述电子终端在所述默认模式下通过所述普通摄像头获取第二预览画面;The electronic terminal obtains a second preview image through the ordinary camera in the default mode;
所述电子终端判断所述第二预览画面中的所述特征因子的数量是否超过预设值;The electronic terminal judges whether the number of the feature factors in the second preview screen exceeds a preset value;
若超过,则所述电子终端启动所述广角摄像头,以使所述广角摄像头获取所述第一预览画面。If it exceeds, the electronic terminal activates the wide-angle camera, so that the wide-angle camera acquires the first preview image.
进一步地,所述边缘区域包括第一边缘区域和第二边缘区域,所述第一边缘区域和所述第二边缘区域位于所述第一预览画面中相对的两侧;Further, the edge area includes a first edge area and a second edge area, and the first edge area and the second edge area are located on opposite sides of the first preview image;
所述判断所述第一预览画面的边缘区域是否包含所述特征因子,包括:The judging whether the edge area of the first preview picture contains the feature factor includes:
判断所述第一边缘区域和所述第二边缘区域是否都包含所述特征因子;judging whether both the first edge region and the second edge region contain the feature factor;
所述控制所述广角摄像头向所述边缘区域延伸视角,包括:The controlling the wide-angle camera to extend the viewing angle to the edge area includes:
调整所述广角摄像头的广角焦距以扩大所述广角摄像头的视角。The wide-angle focal length of the wide-angle camera is adjusted to expand the viewing angle of the wide-angle camera.
综上所述,通过实施本发明实施例,通过对预览画面边缘区域的特征因子进行分析以判断是否需要调整摄像头的广角焦距或拍摄角度,若是,则自动进行调整,提高对焦效率。In summary, through the implementation of the embodiment of the present invention, it is judged whether it is necessary to adjust the wide-angle focal length or the shooting angle of the camera by analyzing the characteristic factors of the edge area of the preview image, and if so, it is automatically adjusted to improve the focusing efficiency.
将广角焦距调整到合理范围时,在接收到用户输入的拍摄指令后再进行拍摄,提升了用户体验;在使用广角摄像头获取预览画面之前,先用普通摄像头获取预览画面,当普通摄像头获取的预览画面满足触发广角摄像头的条件时才启动广角摄像头,进一步提升了用户体验。When adjusting the wide-angle focal length to a reasonable range, shoot after receiving the shooting command input by the user, which improves the user experience; The wide-angle camera is activated only when the picture meets the conditions for triggering the wide-angle camera, which further improves the user experience.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and of course it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand all or part of the process for realizing the above embodiments, and according to the rights of the present invention The equivalent changes required still belong to the scope covered by the invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510383075.7A CN104994292B (en) | 2015-06-30 | 2015-06-30 | The control method and electric terminal of a kind of wide-angle camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510383075.7A CN104994292B (en) | 2015-06-30 | 2015-06-30 | The control method and electric terminal of a kind of wide-angle camera |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104994292A CN104994292A (en) | 2015-10-21 |
CN104994292B true CN104994292B (en) | 2018-07-06 |
Family
ID=54306042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510383075.7A Expired - Fee Related CN104994292B (en) | 2015-06-30 | 2015-06-30 | The control method and electric terminal of a kind of wide-angle camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104994292B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506970B (en) * | 2016-11-30 | 2019-10-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of image pickup method and terminal |
WO2018137264A1 (en) | 2017-01-26 | 2018-08-02 | 华为技术有限公司 | Photographing method and photographing apparatus for terminal, and terminal |
US11108953B2 (en) | 2017-08-18 | 2021-08-31 | Huawei Technologies Co., Ltd. | Panoramic photo shooting method and apparatus |
CN110519416A (en) * | 2018-05-21 | 2019-11-29 | 深圳富泰宏精密工业有限公司 | Portable electronic device and photographic method |
WO2021031608A1 (en) * | 2019-08-18 | 2021-02-25 | 海信视像科技股份有限公司 | Displaying method and device for locking state of camera physical switch |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216881A (en) * | 2007-12-28 | 2008-07-09 | 北京中星微电子有限公司 | A method and device for automatic image acquisition |
CN101453568A (en) * | 2007-12-03 | 2009-06-10 | 佛山普立华科技有限公司 | Image forming system and image forming method thereof |
CN104184947A (en) * | 2014-08-22 | 2014-12-03 | 惠州Tcl移动通信有限公司 | Remote photographing focusing method and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5446546B2 (en) * | 2009-07-28 | 2014-03-19 | ソニー株式会社 | Imaging control apparatus, imaging control method, program, imaging system |
CN102300043B (en) * | 2010-06-23 | 2014-06-11 | 中兴通讯股份有限公司 | Method for adjusting meeting place camera of remote presentation meeting system |
CN202818502U (en) * | 2012-09-24 | 2013-03-20 | 天津市亚安科技股份有限公司 | Multidirectional monitoring area early warning positioning monitoring device |
CN104038700B (en) * | 2014-06-26 | 2017-11-14 | Tcl集团股份有限公司 | A kind of photographic method and device |
-
2015
- 2015-06-30 CN CN201510383075.7A patent/CN104994292B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101453568A (en) * | 2007-12-03 | 2009-06-10 | 佛山普立华科技有限公司 | Image forming system and image forming method thereof |
US7778537B2 (en) * | 2007-12-03 | 2010-08-17 | Premier Image Technology (China) Ltd. | Zooming system and method |
CN101216881A (en) * | 2007-12-28 | 2008-07-09 | 北京中星微电子有限公司 | A method and device for automatic image acquisition |
CN104184947A (en) * | 2014-08-22 | 2014-12-03 | 惠州Tcl移动通信有限公司 | Remote photographing focusing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104994292A (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105049711B (en) | A kind of photographic method and user terminal | |
US10165201B2 (en) | Image processing method and apparatus and terminal device to obtain a group photo including photographer | |
CN104917959A (en) | Photographing method and terminal | |
CN103916589B (en) | Method for running video camera and its electronic equipment | |
WO2017016030A1 (en) | Image processing method and terminal | |
CN104994292B (en) | The control method and electric terminal of a kind of wide-angle camera | |
EP2722850A1 (en) | Method for generating thumbnail image and electronic device thereof | |
CN105007418A (en) | Photographing method and mobile terminal | |
CN104994287B (en) | A kind of image pickup method and mobile terminal based on wide-angle camera | |
CN104853091A (en) | Picture taking method and mobile terminal | |
CN104883498A (en) | Shooting method based on rotary camera, and terminal | |
CN104994285A (en) | Control method of wide-angle camera and electronic terminal | |
US10298827B2 (en) | Shooting method and mobile device | |
CN104967774B (en) | A kind of method and terminal for controlling dual camera shooting | |
CN108093177A (en) | Image acquiring method, device, storage medium and electronic equipment | |
CN111970437A (en) | Text shooting method, wearable device and storage medium | |
CN104994293B (en) | The control method and electric terminal of a kind of wide-angle camera | |
CN111757003A (en) | Shooting processing method, device, mobile terminal, and storage medium | |
CN104994284B (en) | A kind of control method and electric terminal of wide-angle camera | |
US8711247B2 (en) | Automatically capturing images that include lightning | |
CN105049714A (en) | Figure image preview method and device | |
CN105007415A (en) | Method and device for previewing image | |
CN111567034A (en) | Exposure compensation method, device and computer readable storage medium | |
CN105025209B (en) | A kind of image preview method and apparatus | |
CN104601884B (en) | A kind of camera control method and terminal |
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 |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180706 |
|
CF01 | Termination of patent right due to non-payment of annual fee |