CN109089023B - A terminal and control method - Google Patents
A terminal and control method Download PDFInfo
- Publication number
- CN109089023B CN109089023B CN201810846823.4A CN201810846823A CN109089023B CN 109089023 B CN109089023 B CN 109089023B CN 201810846823 A CN201810846823 A CN 201810846823A CN 109089023 B CN109089023 B CN 109089023B
- Authority
- CN
- China
- Prior art keywords
- camera
- terminal
- camera module
- module
- move
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004590 computer program Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 5
- 230000004913 activation Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000004308 accommodation Effects 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/57—Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
本发明提供一种终端及终端的控制方法,其中,所述终端包括驱动装置及摄像头模组,所述驱动装置与所述摄像头模组传动连接,用以驱动所述摄像头模组能相对所述终端进行伸缩活动至以收容于所述终端内或显露于所述终端外;所述摄像头模组包括基座及至少两个摄像头,所述基座与所述驱动装置传动连接,所述至少两个摄像头均设于所述基座上;所述至少两个摄像头包括第一摄像头及第二摄像头,且所述第一摄像头与所述第二摄像头的连线方向与所述摄像头模组的活动方向一致。本发明实施例提供的技术方案解决了现有的终端显示屏上方被摄像头占据,而限制显示屏向更高屏占比发展的问题。
The present invention provides a terminal and a control method for the terminal, wherein the terminal includes a driving device and a camera module, the driving device is drivingly connected with the camera module, and is used to drive the camera module to be relatively opposite to the camera module. The terminal is telescopic so as to be accommodated in the terminal or exposed outside the terminal; the camera module includes a base and at least two cameras, the base is drivingly connected with the driving device, and the at least two Each camera is arranged on the base; the at least two cameras include a first camera and a second camera, and the connection direction of the first camera and the second camera is related to the movement of the camera module the same direction. The technical solutions provided by the embodiments of the present invention solve the problem that the top of the existing terminal display screen is occupied by a camera, which limits the development of the display screen to a higher screen ratio.
Description
技术领域technical field
本发明涉及终端设备技术领域,尤其涉及一种终端及控制方法。The present invention relates to the technical field of terminal equipment, and in particular, to a terminal and a control method.
背景技术Background technique
随着终端设备技术领域的飞速发展,屏幕的占比也越来越大,以满足人们的视觉体验需求。以移动终端为例,全面屏已成为移动终端领域的发展主流。现有的移动终端的摄像头通常设置在显示屏上方,以实现人们的自拍或视频通话的需求。但是,这样的设置也就占用了显示屏的显示区域面积,限制了显示屏向更高屏占比发展。With the rapid development of terminal equipment technology, the proportion of the screen is also increasing to meet the needs of people's visual experience. Taking mobile terminals as an example, full-screen displays have become the mainstream in the field of mobile terminals. The camera of the existing mobile terminal is usually set above the display screen to meet people's needs of taking selfies or making video calls. However, such a setting also occupies the display area of the display screen, which limits the development of the display screen to a higher screen ratio.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种终端及控制方法,以解决了现有的终端显示屏上方被摄像头占据,而限制显示屏向更高屏占比发展的问题。Embodiments of the present invention provide a terminal and a control method, so as to solve the problem that the upper part of the display screen of the existing terminal is occupied by a camera, which limits the development of the display screen to a higher screen ratio.
为解决上述问题,本发明是这样实现的:In order to solve the above-mentioned problems, the present invention is realized as follows:
第一方面,本发明实施例提供了一种终端,包括驱动装置及摄像头模组,所述驱动装置与所述摄像头模组传动连接,用以驱动所述摄像头模组能相对所述终端进行伸缩活动至以收容于所述终端内或显露于所述终端外;In a first aspect, an embodiment of the present invention provides a terminal, including a driving device and a camera module, the driving device is drivingly connected with the camera module, and is used to drive the camera module to expand and contract relative to the terminal move so as to be contained within the terminal or to be exposed outside the terminal;
所述摄像头模组包括基座及至少两个摄像头,所述基座与所述驱动装置传动连接,所述至少两个摄像头均设于所述基座上;所述至少两个摄像头包括第一摄像头及第二摄像头,且所述第一摄像头与所述第二摄像头的连线方向与所述摄像头模组的活动方向一致。The camera module includes a base and at least two cameras, the base is drivingly connected to the driving device, and the at least two cameras are both arranged on the base; the at least two cameras include a first A camera and a second camera, and the connection direction of the first camera and the second camera is consistent with the moving direction of the camera module.
第二方面,本发明实施例还提供了一种终端的控制方法,应用于如第一方面中所述的终端,所述方法包括:In a second aspect, an embodiment of the present invention further provides a method for controlling a terminal, which is applied to the terminal described in the first aspect, and the method includes:
当接收到摄像头启动指令,根据所述启动指令确定待启动的摄像头;When receiving the camera startup instruction, determine the camera to be activated according to the startup instruction;
当待启动的摄像头为所述第一摄像头,控制所述摄像头模组运动至以使所述第一摄像头显露于所述终端外;When the camera to be activated is the first camera, controlling the camera module to move so that the first camera is exposed outside the terminal;
当待启动的摄像头为所述第二摄像头,控制所述摄像头模组运动至以使所述第二摄像头显露于所述终端外。When the camera to be activated is the second camera, the camera module is controlled to move so that the second camera is exposed outside the terminal.
第三方面,本发明实施例还提供了一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第二方面中所述的终端的控制方法的步骤。In a third aspect, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program is executed by the processor At the same time, the steps of implementing the control method of the terminal as described in the second aspect.
本发明实施例提供的技术方案中,摄像头模组通过驱动装置的驱动能够相对终端进行伸缩活动,摄像头不会占用终端显示屏上方的空间,更有利于终端实现更高的屏占比。另外,摄像头模组上设有第一摄像头及第二摄像头,且第一摄像头及第二摄像头的连线方向与摄像头模组的活动方向一致,也就使得摄像头模组能够根据拍摄需求活动至以使第一摄像头显露于终端外,或者是活动至以使第一摄像头及第二摄像头均显露于终端外;这样,也就为摄像头模组的活动状态提供了更多的可能,使得对可伸缩的摄像头模组的控制更加智能。In the technical solution provided by the embodiment of the present invention, the camera module can be extended and retracted relative to the terminal through the driving of the driving device, and the camera does not occupy the space above the display screen of the terminal, which is more conducive to the terminal to achieve a higher screen ratio. In addition, the camera module is provided with a first camera and a second camera, and the connection direction of the first camera and the second camera is consistent with the moving direction of the camera module, which also enables the camera module to move according to the shooting requirements. The first camera is exposed outside the terminal, or it is movable so that both the first camera and the second camera are exposed outside the terminal; in this way, more possibilities are provided for the active state of the camera module, so that the scalable The control of the camera module is more intelligent.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获取其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明实施例提供的一种终端的结构图;1 is a structural diagram of a terminal according to an embodiment of the present invention;
图2是图1提供的终端的局部结构图;Fig. 2 is the partial structure diagram of the terminal that Fig. 1 provides;
图3是图1提供的终端中摄像头模组的一种状态示意图;Fig. 3 is a kind of state schematic diagram of the camera module in the terminal provided by Fig. 1;
图4是图1提供的终端中摄像头模组的另一种状态的示意图;Fig. 4 is a schematic diagram of another state of the camera module in the terminal provided by Fig. 1;
图5是图4的背面示意图;Fig. 5 is the back schematic diagram of Fig. 4;
图6是本发明实施例提供的另一种终端的结构图;6 is a structural diagram of another terminal provided by an embodiment of the present invention;
图7是本发明实施例提供的另一种终端的结构图;7 is a structural diagram of another terminal provided by an embodiment of the present invention;
图8是图7的背面示意图;Fig. 8 is the back schematic diagram of Fig. 7;
图9是本发明实施例提供的终端的控制方法的流程图;9 is a flowchart of a method for controlling a terminal provided by an embodiment of the present invention;
图10是应用图9中方法的终端的状态示意图。FIG. 10 is a state diagram of a terminal to which the method in FIG. 9 is applied.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获取的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例提供一种终端,请参照图1至图6,所述终端100包括驱动装置及摄像头模组10,所述驱动装置与所述摄像头模组10传动连接,用以驱动所述摄像头模组10能相对所述终端100进行伸缩活动至以收容于所述终端100内或显露于所述终端100外;所述摄像头模组10包括基座11及至少两个摄像头,所述驱动装置与所述基座11传动连接,所述至少两个摄像头均设于所述基座11上;所述至少两个摄像头包括第一摄像头131及第二摄像头132,且所述第一摄像头131与所述第二摄像头132的连线方向与所述摄像头模组10的活动方向一致。An embodiment of the present invention provides a terminal. Please refer to FIG. 1 to FIG. 6 . The terminal 100 includes a driving device and a
需要说明的是,第一摄像头131和第二摄像头132可以分别用以采集终端100不同侧的图像,例如,所述第一摄像头131为前置摄像头,所述第二摄像头132为后置摄像头;或者,第一摄像头131和第二摄像头132也可以是用以采集终端100同侧的图像,例如,第一摄像头131为2D摄像头,第二摄像头132为3D摄像头。需要说明的是,摄像头与终端100的电路控制关系可参考现有的终端上摄像头的电路设计,在此不做赘述。It should be noted that the
本发明实施例中,第一摄像头131与第二摄像头132的连线方向与摄像头模组10的活动方向一致,进而,也就可以根据摄像头的使用需求,对摄像头模组10的不同状态进行针对性地控制。如图3所示,控制摄像头模组10活动至以使第一摄像头131显露于终端100外,而第二摄像头132收容于终端100内;或者如图4和图5所示,控制摄像头模组10活动至以使第一摄像头131及第二摄像头132均显露于终端100外。可选地,可以将更远离终端100的第一摄像头131设置为使用频次较高的摄像头,例如,可以将所述第一摄像头131设置为后置摄像头。这样,也就可以减少第二摄像头132的伸出频率,减少对第二摄像头132和基座11的损坏几率,延长摄像头模组10的使用寿命。另外需要注意的是,所述驱动装置可以是包括电机和传动机构,所述电机连接所述传动机构,所述电机还连接所述终端100的处理器,用以根据处理器发送的控制信号来控制传动机构的运转;所述传动机构可以是滑轨、滑槽、弹簧等。所述驱动装置的具体结构及与终端的电路控制关系可以是参考现有的终端上驱动装置的设计,在此不做赘述。通过驱动装置的设计,也就可以实现对摄像头模组的伸缩控制,为摄像头在终端上的安装及控制提供了新的设计思路,摄像头无需再占用终端显示屏上方的空间,更有利于终端向更高屏占比发展。In the embodiment of the present invention, the connection direction of the
本发明实施例提供的技术方案中,摄像头模组通过驱动装置的驱动能够相对终端进行伸缩活动,摄像头不会占用终端显示屏上方的空间,更有利于终端实现更高的屏占比。另外,摄像头模组上设有第一摄像头及第二摄像头,且第一摄像头及第二摄像头的连线方向与摄像头模组的活动方向一致,也就使得摄像头模组能够根据拍摄需求活动至以使第一摄像头显露于终端外,或者是活动至以使第一摄像头及第二摄像头均显露于终端外;这样,也就为摄像头模组的活动状态提供了更多的可能,使得对可伸缩的摄像头模组的控制更加智能。In the technical solution provided by the embodiment of the present invention, the camera module can be extended and retracted relative to the terminal through the driving of the driving device, and the camera does not occupy the space above the display screen of the terminal, which is more conducive to the terminal to achieve a higher screen ratio. In addition, the camera module is provided with a first camera and a second camera, and the connection direction of the first camera and the second camera is consistent with the moving direction of the camera module, which also enables the camera module to move according to the shooting requirements. The first camera is exposed outside the terminal, or it is movable so that both the first camera and the second camera are exposed outside the terminal; in this way, more possibilities are provided for the active state of the camera module, so that the scalable The control of the camera module is more intelligent.
可选地,所述摄像头模组10还包括传感器12,所述传感器12设于所述基座11上。需要说明的是,所述传感器12用以检测终端100当前所处的状态是否合适摄像头模组10活动至终端100外;所述传感器12可以是红外传感器、光敏传感器、重力传感器等。本发明实施例中,对所述传感器12的数量和类型不做限定,所述摄像头模组10上可以是设置有多个传感器12。所述传感器12连接所述终端100的电源或者是处理器,所述驱动装置及所述至少一个摄像头均连接所述终端100的处理器。例如,所述传感器12为红外传感器12,当所述红外传感器12检测到摄像头模组10活动方向的前方有遮挡物时,发送信号至处理器,使得所述处理器根据接收的信号能够控制所述摄像头模组10不活动,进而防止摄像头模组10与遮挡物发生碰撞,避免遮挡物对摄像头模组10造成应力损伤,更好地保护了摄像头模组10。Optionally, the
请参照图2至图5,所述终端100包括背对设置的第一面101和第二面102以及连接所述第一面101及所述第二面102的第一侧边103,所述摄像头模组10位于所述第一面101与所述第二面102之间,所述基座11包括平行所述第一侧边103的第二侧边111,所述传感器12设于所述第二侧边111。Referring to FIGS. 2 to 5 , the terminal 100 includes a
需要说明的是,所述终端100设有收容所述摄像头模组10的收容槽,所述第一侧边103设有开口,所述开口连通所述收容槽,以使得所述摄像头模组10能够通过所述开口进行伸缩活动。也就是说,所述摄像头模组10能够活动至凸出于所述第一侧边103外侧。所述传感器12设于基座11的第二侧边111上,第二侧边111平行终端100的第一侧边103,也就使得传感器12能够通过第一侧边103上的开口来接收感应信号,确保传感器12的正常工作。It should be noted that the terminal 100 is provided with an accommodation groove for accommodating the
本发明实施例中,所述摄像头模组10收容于所述壳体内时,所述第二侧边111与所述第一侧边103位于同一平面上。这样,确保了设于第二侧边111上的传感器12不会被遮挡而无法接收感应信号,也保证了终端100的美观性。In the embodiment of the present invention, when the
另外需要说明的是,如图7和图8所示,摄像头模组设于终端100的第一面101与第二面102之间,摄像头模组的基座11上还可以是包括第三摄像头133及第四摄像头134,所述第三摄像头133及所述第四摄像头134的连线平行所述第二侧边,也就是第三摄像头133与第四摄像头134的连线方向与所述摄像头模组的活动方向垂直。这种情况下,终端100对第三摄像头133与第四摄像头134的控制也就是同步的,无论是使用第三摄像头133或第四摄像头134,第三摄像头133与第四摄像头134都会显露于终端100外。这样的设置,能够在需要进行摄像头切换时,减少了摄像头模组的活动次数。In addition, it should be noted that, as shown in FIG. 7 and FIG. 8 , the camera module is disposed between the
请进一步参照图6,所述摄像头模组10还包括配置组件14,所述配置组件14设于所述基座11上;所述配置组件14包括闪光灯、陀螺仪中的至少一种。所述配置组件14可以是设置于第一摄像头131与第二摄像头132之间,或者,也可以是设置于基座11的靠近第二侧边111的位置处,也可以是设置于基座11的远离第二侧边111的一侧。Please further refer to FIG. 6 , the
本发明实施例还提供一种终端的控制方法,所述终端为上述实施例图1至图6中所提供的终端。如图9所示,所述终端的控制方法包括如下步骤:An embodiment of the present invention further provides a method for controlling a terminal, where the terminal is the terminal provided in FIG. 1 to FIG. 6 in the foregoing embodiment. As shown in Figure 9, the control method of the terminal includes the following steps:
步骤201、当接收到摄像头启动指令时,根据所述启动指令确定待启动的摄像头。Step 201: When a camera startup instruction is received, determine the camera to be activated according to the startup instruction.
可以理解地,所述摄像头启动指令可以是用户触发终端上特定的拍摄软件而触发,也可以是当接收到特定的指令而触发,例如社交聊天软件中接收到的视频通话请求等。It can be understood that the camera activation instruction may be triggered by a user triggering specific shooting software on the terminal, or may be triggered when a specific instruction is received, such as a video call request received in social chat software.
本发明实施例中,所述终端的至少两个摄像头包括第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头可以是用以采集终端不同侧的图像,如前置摄像头和后置摄像头;或者,所述第一摄像头和所述第二摄像头也可以是用以采集终端同侧的图像。所述第一摄像头与所述第二摄像头的连线方向与所述摄像头模组的活动方向一致。当接收到摄像头启动指令,根据该启动指令确定待启动的摄像头是第一摄像头还是第二摄像头。In this embodiment of the present invention, the at least two cameras of the terminal include a first camera and a second camera, and the first camera and the second camera may be used to collect images on different sides of the terminal, such as a front camera and a second camera. A rear camera; alternatively, the first camera and the second camera may also be used to capture images on the same side of the terminal. The connection direction of the first camera and the second camera is consistent with the moving direction of the camera module. When the camera startup instruction is received, it is determined whether the camera to be activated is the first camera or the second camera according to the startup instruction.
本发明实施例中,所述终端的摄像头模组上还设有传感器,所述步骤201可以包括:In the embodiment of the present invention, the camera module of the terminal is further provided with a sensor, and the
当接收到摄像头启动指令,在预设时间内控制传感器检测所述终端的预设范围内是否存在遮挡物;When receiving the camera start instruction, control the sensor to detect whether there is an obstruction within the preset range of the terminal within a preset time;
若在预设时间内检测到所述终端的预设范围内不存在遮挡物,根据所述启动指令确定待启动的摄像头。If it is detected within the preset time that there is no obstruction within the preset range of the terminal, the camera to be activated is determined according to the activation instruction.
本步骤中,当接收到摄像头启动指令,则在预设时间内控制传感器检测所述终端的预设范围内是否存在遮挡物阻碍摄像头模组进行伸缩活动,也就是检测终端的预设范围内是否存在阻碍摄像头模组伸出的遮挡物。In this step, when the camera startup instruction is received, the sensor is controlled within a preset time to detect whether there is an obstruction within the preset range of the terminal that prevents the camera module from performing telescopic activities, that is, to detect whether the preset range of the terminal exists. There are obstructions that prevent the camera module from extending out.
需要说明的是,所述传感器可以是红外传感器、光敏传感器、接近传感器等。所述预设范围可以是距离终端的预设值内;本发明实施例中,所述预设范围是指距离摄像头模组的预设值,该预设值的取值应为较小的数值,如1cm,以避免用户在启动摄像头进行近景拍摄时,也被误判为是处于终端预设范围内而影响拍摄。It should be noted that the sensor may be an infrared sensor, a photosensitive sensor, a proximity sensor, or the like. The preset range may be within the preset value of the distance to the terminal; in the embodiment of the present invention, the preset range refers to the preset value of the distance camera module, and the value of the preset value should be a smaller value , such as 1cm, to prevent the user from being mistakenly judged to be within the preset range of the terminal and affecting the shooting when the user starts the camera for close-up shooting.
本发明实施例中,所述预设时间为预先设定的时间值;当接收到摄像头启动指令时,则控制传感器在预设时间内检测诉讼终端的预设范围内是否存在遮挡物;或者,所述预设可以是多个时间值的总和,例如,所述预设时间为10ms,是5个2ms的总和;当接收到摄像头启动指令时,则控制传感器每2ms检测终端的预设范围内是否存在遮挡物,在10ms内完成5次检测;若在该5次检测中也即10ms中检测到终端的预设范围内不存在遮挡物,则根据启动指令启动摄像头。这样,能够对摄像头的启动进行更精准的判断,通过传感器的检测,进而能防止摄像头模组与遮挡物发生碰撞,避免遮挡物对摄像头模组造成应力损伤,更好地保护了摄像头模组In this embodiment of the present invention, the preset time is a preset time value; when the camera startup instruction is received, the sensor is controlled to detect whether there is an obstruction within the preset range of the litigation terminal within the preset time; or, The preset may be the sum of multiple time values, for example, the preset time is 10ms, which is the sum of five 2ms; when the camera startup command is received, the control sensor will detect the preset range of the terminal every 2ms. Whether there is an obstruction, complete 5 detections within 10ms; if it is detected that there is no obstruction within the preset range of the terminal during the 5 detections, that is, within 10ms, the camera will be activated according to the activation instruction. In this way, it is possible to make a more accurate judgment on the startup of the camera, and through the detection of the sensor, it is possible to prevent the camera module from colliding with the obstruction, avoid stress damage to the camera module caused by the obstruction, and better protect the camera module.
步骤202、当待启动的摄像头为所述第一摄像头,控制所述摄像头模组运动至以使所述第一摄像头显露于所述终端外。Step 202: When the camera to be activated is the first camera, control the camera module to move so that the first camera is exposed outside the terminal.
本发明实施例中,将以所述第一摄像头为前置摄像头,第二摄像头为后置摄像头为例进行说明,且所述第一摄像头更靠近所述摄像头模组的外侧,也就是说,当所述摄像头模组伸缩活动至终端外的过程中,所述第一摄像头先显露。In the embodiment of the present invention, the first camera is a front camera and the second camera is a rear camera as an example for description, and the first camera is closer to the outside of the camera module, that is, When the camera module is telescopically moved to the outside of the terminal, the first camera is exposed first.
例如,若所述启动指令为社交聊天软件中接收到的视频通话请求,此时需要启动的是第一摄像头;若所述启动指令为拍摄软件的开启指令,预设此时需要启动的是第二摄像头。For example, if the start command is a video call request received in the social chat software, the first camera needs to be started at this time; if the start command is the start command of the shooting software, it is preset that the first camera needs to be started at this time. Two cameras.
可以理解地,当根据所述启动指令确定待启动的摄像头为所述第一摄像头,则控制所述摄像头模组运动至以使第一摄像头显露于终端外,也就是控制摄像头模组向伸出终端的方向活动,使得第一摄像头显露于终端外,进而以完成拍摄。Understandably, when it is determined according to the startup instruction that the camera to be activated is the first camera, the camera module is controlled to move so that the first camera is exposed outside the terminal, that is, the camera module is controlled to extend toward the terminal. The direction of the terminal moves, so that the first camera is exposed outside the terminal, so as to complete the shooting.
需要说明的是,在摄像头模组活动至终端外的过程中,当第一摄像头相对于第二摄像头更早显露时,该步骤中也就是控制第一摄像头显露于终端外而第二摄像头收容于终端内;在摄像头模组活动至终端外的过程中,当第二摄像头相对于第一摄像头更早显露时,该步骤中在控制第一摄像头显露于终端外时,第二摄像头也显露于终端外。本发明实施例中,所述第一摄像头及所述第二摄像头连线方向与所述摄像头模组的活动方向一致,且当所述摄像头模组显露于所述终端外时,所述第一摄像头相对于所述第二摄像头更远离所述终端。在这种情况下,所述当待启动的摄像头为所述第一摄像头,控制所述摄像头模组运动至以使所述第一摄像头显露于所述终端外的步骤,可以包括:It should be noted that, in the process of moving the camera module to the outside of the terminal, when the first camera is exposed earlier than the second camera, this step is to control the first camera to be exposed outside the terminal and the second camera to be accommodated in the terminal. Inside the terminal; in the process of moving the camera module to the outside of the terminal, when the second camera is exposed earlier than the first camera, in this step, when the first camera is controlled to be exposed outside the terminal, the second camera is also exposed in the terminal outside. In the embodiment of the present invention, the connection direction of the first camera and the second camera is consistent with the moving direction of the camera module, and when the camera module is exposed outside the terminal, the first camera The camera is further away from the terminal than the second camera. In this case, when the camera to be activated is the first camera, the step of controlling the camera module to move so that the first camera is exposed outside the terminal may include:
当待启动的摄像头为所述第一摄像头,控制所述摄像头模组运动至以使所述第一摄像头显露于所述终端外,且所述第二摄像头收容于所述终端内。When the camera to be activated is the first camera, the camera module is controlled to move so that the first camera is exposed outside the terminal, and the second camera is accommodated in the terminal.
也就是说,所述第一摄像头与所述第二摄像头纵向设置,且所述第一摄像头位于所述第二摄像头上方,当只需要开启第一摄像头时,则可以控制所述摄像头模组运动至以使所述第一摄像头显露于所述终端外,而所述第二摄像头收容于所述终端内。这样,也就可以减少第二摄像头的伸出频率,减少对第二摄像头的损坏几率,延长摄像头模组的使用寿命。That is to say, the first camera and the second camera are arranged vertically, and the first camera is located above the second camera. When only the first camera needs to be turned on, the camera module can be controlled to move. So that the first camera is exposed outside the terminal, and the second camera is accommodated in the terminal. In this way, the extension frequency of the second camera can be reduced, the probability of damage to the second camera can be reduced, and the service life of the camera module can be prolonged.
进一步地,所述当带启动的摄像头为所述第一摄像头,控制所述摄像头模组运动至以使所述第一摄像头显露于所述终端外的步骤之后,还可以包括:Further, after the step of controlling the camera module to move so that the first camera is exposed outside the terminal when the camera activated with the belt is the first camera, it may further include:
当接收到切换摄像头指令,控制所述摄像头模组运动至以使所述第二摄像头显露于所述终端外。When receiving a camera switching instruction, the camera module is controlled to move so that the second camera is exposed outside the terminal.
请参照图10,在接收到摄像头启动指令之前,摄像头模组处于收容于终端内的状态,如图10中a所示;当接收到摄像头启动指令,且根据启动指令确定待启动的摄像头为第一摄像头时,控制摄像头模组活动至以使第一摄像头显露于终端外,而第二摄像头收容于终端内,如图10中b所示;若接收到切换摄像头指令,说明此时需要启动第二摄像头,则控制所述摄像头模组向终端外做伸出运动,以使所述第二摄像头显露于终端外,如图10中c所示。这样,能够根据接收的指令,有针对性地控制摄像头模组的活动,使得摄像头模组的控制更加智能化。Please refer to FIG. 10 , before receiving the camera startup instruction, the camera module is in a state of being accommodated in the terminal, as shown in a in FIG. 10 ; when the camera startup instruction is received, and according to the startup instruction, it is determined that the camera to be activated is the first camera to be activated. When there is a camera, control the camera module to move so that the first camera is exposed outside the terminal, and the second camera is accommodated in the terminal, as shown in b in Figure 10; if a camera switching command is received, it means that the first camera needs to be activated With two cameras, the camera module is controlled to extend out of the terminal, so that the second camera is exposed outside the terminal, as shown in c in FIG. 10 . In this way, the activities of the camera module can be controlled in a targeted manner according to the received instructions, so that the control of the camera module is more intelligent.
步骤203、当待启动的摄像头为所述第二摄像头,控制所述摄像头模组运动至以使所述第二摄像头显露于所述终端外。Step 203: When the camera to be activated is the second camera, control the camera module to move so that the second camera is exposed outside the terminal.
可以理解地,当根据所述启动指令确定待启动的摄像头为第二摄像头时,则控制所述摄像头模组运动至以使第二摄像头显露于终端外,进而以通过第二摄像头完成拍摄。Understandably, when the camera to be activated is determined to be the second camera according to the startup instruction, the camera module is controlled to move so that the second camera is exposed outside the terminal, so as to complete the shooting through the second camera.
例如,所述第一摄像头与所述第二摄像头纵向设置,也就是第一摄像头与第二摄像头的连线方向与摄像头模组的活动方向一致,且所述第一摄像头位于所述第二摄像头上方,则当控制所述第二摄像头显露于终端外时,第一摄像头同样显露于终端外。在这种情况下,所述步骤203之后,还可以包括:For example, the first camera and the second camera are arranged vertically, that is, the connection direction of the first camera and the second camera is consistent with the moving direction of the camera module, and the first camera is located in the second camera Above, when the second camera is controlled to be exposed outside the terminal, the first camera is also exposed outside the terminal. In this case, after
当接收到切换摄像头指令,控制所述摄像头模组运动至以使所述第二摄像头收容于所述终端内,且所述第一摄像头显露于所述终端外。When receiving a camera switching instruction, the camera module is controlled to move so that the second camera is accommodated in the terminal and the first camera is exposed outside the terminal.
可以理解地,当接收到切换摄像头指令,此时需要使用第一摄像头而不再使用第二摄像头,则控制摄像头模组向终端内运动,以使第二摄像头收容至终端内,而第一摄像头显露于终端外,进而以使用第一摄像头完成拍摄。这样,也就能够在不需要使用第二摄像头的时候将其收容至终端内,保护第二摄像头不受损伤,延长摄像头模组的使用寿命。本发明实施例中,所述方法还可以包括:It is understandable that when receiving the switch camera instruction, the first camera needs to be used instead of the second camera, then the camera module is controlled to move into the terminal, so that the second camera is accommodated in the terminal, and the first camera is It is exposed outside the terminal, and then the first camera is used to complete the shooting. In this way, the second camera can be accommodated in the terminal when it is not needed, so as to protect the second camera from damage and prolong the service life of the camera module. In this embodiment of the present invention, the method may further include:
当检测到所述终端的预设范围内存在遮挡物,控制所述摄像头模组收容于所述终端内。When it is detected that there is an obstruction within the preset range of the terminal, the camera module is controlled to be accommodated in the terminal.
例如,在所述摄像头模组收容于终端内的情况下,当接收到摄像头启动指令时,若在预设时间内检测到所述终端的预设范围内存在遮挡物,例如当终端放置在用户口袋中,并接收到启动摄像头的误操作时,则控制所述摄像头模组收容于所述终端内,也就是所述摄像头模组不活动,以防止所述摄像头模组伸出而与预设范围内的遮挡物发生碰撞或摩擦等而损坏摄像头模组,进而延长摄像头模组的使用寿命。For example, in the case where the camera module is accommodated in the terminal, when receiving the camera start command, if it is detected that there is an obstruction within the preset range of the terminal within the preset time, for example, when the terminal is placed in the user When receiving the misoperation of starting the camera, the camera module is controlled to be accommodated in the terminal, that is, the camera module is inactive, so as to prevent the camera module from protruding and being inconsistent with the preset. The camera module is damaged due to collision or friction of the obstructions within the range, thereby prolonging the service life of the camera module.
或者,也可以是在所述摄像头模组显露于终端外的情况下,若传感器检测到在所述终端的预设范围内存在遮挡物,则控制所述摄像头模组活动至收容于终端内。也就是说,设于摄像头模组上的传感器一直处于工作状态,以实时检测终端预设范围内是否存在遮挡物,以实时地对摄像头模组提供保护,避免摄像头模组被外物损坏,确保摄像头模组的使用寿命。Alternatively, when the camera module is exposed outside the terminal, if the sensor detects that there is an obstruction within the preset range of the terminal, the camera module is controlled to move to be accommodated in the terminal. That is to say, the sensor set on the camera module is always in working state to detect in real time whether there is an obstruction within the preset range of the terminal, so as to provide protection to the camera module in real time, to prevent the camera module from being damaged by foreign objects, and to ensure The service life of the camera module.
可选的,本发明实施例中,所述方法还包括:Optionally, in this embodiment of the present invention, the method further includes:
当接收到摄像头关闭指令,控制所述摄像头模组活动至以收容于所述终端内。When receiving the camera closing instruction, the camera module is controlled to move so as to be accommodated in the terminal.
需要说明的是,所述摄像头关闭指令可以是拍摄软件的退出指令,或者也可以是终端上其他软件的启动指令等。当接收到摄像头关闭指令,则控制所述摄像头模组活动至以收容于所述终端内。It should be noted that, the camera closing instruction may be an exit instruction of the shooting software, or may also be a startup instruction of other software on the terminal, or the like. When receiving the camera closing instruction, the camera module is controlled to move so as to be accommodated in the terminal.
本发明实施例提供的技术方案中,当接收到摄像头启动指令时,若在预设时间内检测到所述终端的预设范围内不存在遮挡物,根据所述启动指令确定待启动的摄像头;以控制摄像头模组运动至以使第一摄像头显露于终端外,或者运动至以使第二摄像头显露于终端外。这样,也使得终端能够根据接收的指令,有选择性地控制摄像头模组活动,使得摄像头模组的伸缩活动更加智能化。In the technical solution provided by the embodiment of the present invention, when a camera startup instruction is received, if it is detected that there is no obstruction within the preset range of the terminal within a preset time, the camera to be activated is determined according to the startup instruction; The camera module is controlled to move so that the first camera is exposed outside the terminal, or the camera module is moved so that the second camera is exposed outside the terminal. In this way, the terminal can selectively control the movement of the camera module according to the received instruction, so that the telescopic movement of the camera module is more intelligent.
终端可以包括:手机、平板电脑、数码相机、膝上型便携计算机、车载电脑、台式计算机、机顶盒、智能电视机、可穿戴设备中的至少一项。The terminal may include at least one of a mobile phone, a tablet computer, a digital camera, a laptop portable computer, a vehicle-mounted computer, a desktop computer, a set-top box, a smart TV, and a wearable device.
可选的,本发明实施例还提供一种移动终端,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述终端的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to realize the functions of the above-mentioned terminal. The various processes of the control method embodiments can achieve the same technical effect, and are not repeated here in order to avoid repetition.
可选的,本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述终端的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。Optionally, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the foregoing terminal control method embodiment is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (7)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810846823.4A CN109089023B (en) | 2018-07-27 | 2018-07-27 | A terminal and control method |
PCT/CN2019/097236 WO2020020135A1 (en) | 2018-07-27 | 2019-07-23 | Terminal and control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810846823.4A CN109089023B (en) | 2018-07-27 | 2018-07-27 | A terminal and control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109089023A CN109089023A (en) | 2018-12-25 |
CN109089023B true CN109089023B (en) | 2020-09-18 |
Family
ID=64831255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810846823.4A Active CN109089023B (en) | 2018-07-27 | 2018-07-27 | A terminal and control method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109089023B (en) |
WO (1) | WO2020020135A1 (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089023B (en) * | 2018-07-27 | 2020-09-18 | 维沃移动通信有限公司 | A terminal and control method |
CN111491045A (en) * | 2019-01-29 | 2020-08-04 | Oppo广东移动通信有限公司 | Electronic device |
CN110012134B (en) * | 2019-03-27 | 2022-11-22 | 维沃移动通信(杭州)有限公司 | Mobile terminal and control method thereof |
WO2020232679A1 (en) * | 2019-05-22 | 2020-11-26 | 深圳市欢太科技有限公司 | Photographing control method and related device |
CN112135035B (en) * | 2019-06-24 | 2022-03-25 | 北京小米移动软件有限公司 | Control method and device of image acquisition assembly and storage medium |
CN110418000B (en) * | 2019-07-24 | 2021-05-11 | RealMe重庆移动通信有限公司 | Terminal control method, device, mobile terminal and storage medium |
CN110691235B (en) * | 2019-09-11 | 2021-02-23 | 华为技术有限公司 | Detection method, device and equipment |
CN110557541A (en) * | 2019-09-23 | 2019-12-10 | 维沃移动通信(杭州)有限公司 | electronic apparatus, device control method, and computer-readable storage medium |
CN110719350B (en) * | 2019-09-26 | 2021-07-06 | 维沃移动通信(杭州)有限公司 | Image shooting method and electronic equipment |
CN110798617A (en) * | 2019-10-25 | 2020-02-14 | 深圳传音控股股份有限公司 | Mobile terminal, control method of mobile terminal, and computer storage medium |
CN111400207B (en) * | 2020-03-13 | 2023-11-10 | Oppo广东移动通信有限公司 | Expansion control method and device of expandable component, storage medium and electronic equipment |
CN111405155A (en) * | 2020-03-20 | 2020-07-10 | 维沃移动通信有限公司 | Electronic equipment and module of can independently making a video recording |
CN113542577A (en) | 2020-04-16 | 2021-10-22 | 北京小米移动软件有限公司 | Method and device for controlling telescopic camera and storage medium |
CN111726500B (en) * | 2020-06-24 | 2021-12-03 | 维沃移动通信(杭州)有限公司 | Image acquisition method and device, electronic equipment and readable storage medium |
CN115834998A (en) * | 2022-07-25 | 2023-03-21 | Oppo广东移动通信有限公司 | Electronic device and shooting method thereof |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106899721A (en) * | 2017-04-28 | 2017-06-27 | 广东欧珀移动通信有限公司 | Electronic device |
CN108200243A (en) * | 2017-12-29 | 2018-06-22 | 上海与德科技有限公司 | A kind of control method of mobile terminal and mobile terminal |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170034319A1 (en) * | 2015-07-28 | 2017-02-02 | Ieon C. Chenn | Smartphone accessory with camera module |
CN205320124U (en) * | 2016-01-26 | 2016-06-15 | 孔岳 | Full screen mobile phone |
CN205510137U (en) * | 2016-02-26 | 2016-08-24 | 维沃移动通信有限公司 | Electronic device |
CN207150658U (en) * | 2017-09-19 | 2018-03-27 | 广东欧珀移动通信有限公司 | Mobile terminal |
CN207588983U (en) * | 2017-10-31 | 2018-07-06 | 信利光电股份有限公司 | A kind of concealed equipment of camera |
CN107819988A (en) * | 2017-11-07 | 2018-03-20 | 广东欧珀移动通信有限公司 | Mobile terminal |
CN107800828A (en) * | 2017-11-16 | 2018-03-13 | 珠海市魅族科技有限公司 | Terminal device and its control method and computer-readable recording medium and device |
CN108076181A (en) * | 2018-02-09 | 2018-05-25 | 深圳思路名扬通讯技术股份有限公司 | A kind of mobile terminal |
CN108323060B (en) * | 2018-02-13 | 2019-09-13 | Oppo广东移动通信有限公司 | Electronic device and control method thereof |
CN108259728A (en) * | 2018-03-29 | 2018-07-06 | 昆山国显光电有限公司 | Display terminal and its photographic device |
CN109089023B (en) * | 2018-07-27 | 2020-09-18 | 维沃移动通信有限公司 | A terminal and control method |
-
2018
- 2018-07-27 CN CN201810846823.4A patent/CN109089023B/en active Active
-
2019
- 2019-07-23 WO PCT/CN2019/097236 patent/WO2020020135A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106899721A (en) * | 2017-04-28 | 2017-06-27 | 广东欧珀移动通信有限公司 | Electronic device |
CN108200243A (en) * | 2017-12-29 | 2018-06-22 | 上海与德科技有限公司 | A kind of control method of mobile terminal and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN109089023A (en) | 2018-12-25 |
WO2020020135A1 (en) | 2020-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109089023B (en) | A terminal and control method | |
CN108702446B (en) | Photographing method and terminal | |
CN104333654B (en) | Dangerous based reminding method and device and portable electric appts | |
US9594945B2 (en) | Method and apparatus for protecting eyesight | |
WO2015097568A1 (en) | Alternative camera function control | |
KR102379962B1 (en) | mobile terminal | |
US20160210034A1 (en) | Method and apparatus for switching display mode | |
WO2020108007A1 (en) | Camera module control method and device | |
US10057480B2 (en) | Electronic apparatus and control method thereof | |
EP3496391B1 (en) | Method and device for capturing image and storage medium | |
CN110418000B (en) | Terminal control method, device, mobile terminal and storage medium | |
CN102902452A (en) | Method for photographing image and mobile terminal | |
CN104202483A (en) | Display screen switch controller of mobile terminal | |
CN104780316A (en) | Camera starting detection method and camera starting detection device | |
WO2016145793A1 (en) | Driving mode switching method and device | |
CN102196176A (en) | Information processing apparatus, information processing method, and program | |
KR20220104235A (en) | Filming methods and electronic devices | |
CN105472157A (en) | Method and device for monitoring terminal motion state | |
CN108110854A (en) | Charging method, device and computer readable storage medium | |
CN111246011A (en) | Lifting type camera protection method and device and mobile terminal | |
CN105208378B (en) | Camera head protecting method, apparatus and terminal | |
CN109274829A (en) | A kind of call control method and device, equipment, storage medium | |
WO2019061536A1 (en) | Call processing method and related product | |
CN108924287A (en) | Anti-falling control method and device for sliding assembly and electronic device | |
CN104486553A (en) | Method and terminal for taking panoramic photos |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |