WO2021104347A1 - Camera control method and electronic device - Google Patents

Camera control method and electronic device Download PDF

Info

Publication number
WO2021104347A1
WO2021104347A1 PCT/CN2020/131668 CN2020131668W WO2021104347A1 WO 2021104347 A1 WO2021104347 A1 WO 2021104347A1 CN 2020131668 W CN2020131668 W CN 2020131668W WO 2021104347 A1 WO2021104347 A1 WO 2021104347A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
camera
input
target component
screen
Prior art date
Application number
PCT/CN2020/131668
Other languages
French (fr)
Chinese (zh)
Inventor
贺晨辉
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021104347A1 publication Critical patent/WO2021104347A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters

Definitions

  • FIG. 2 is a schematic diagram of the operation of step 101 in the camera control method provided by the embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the interface after the step of turning off the off-screen camera in the camera control method provided by the embodiment of the present invention.
  • the method of the present invention may further include:
  • the method of the present invention may further include:
  • the off-screen camera In response to the second input, the off-screen camera is turned off, and the display position or transparency of the target component is updated, so that the target component is displayed in the first area.
  • the under-screen camera is a front-facing camera; correspondingly, after the under-screen camera is turned off in response to the second input, the method of the present invention may further include:
  • FIG. 7 it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • An embodiment of the present invention provides an electronic device 700.
  • the electronic device 700 has an under-screen camera and may include:
  • the display unit 806 is used to display information input by the user or information provided to the user.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 807 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile electronic device.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072.
  • the touch panel 8071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating).
  • the touch panel 8071 may include two parts: a touch detection device and a touch controller.
  • the touch panel 8071 can cover the display panel 8061.
  • the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event, and then the processor 810 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 8061.
  • the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the mobile electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 can be used. Integrate to realize the input and output functions of mobile electronic devices, and the specifics are not limited here.

Abstract

The present invention provides a camera control method and an electronic device. The method is applied to the electronic device having an under-screen camera, and comprises: in the case of displaying a target component by means of a first area, receiving a first input, the first area being an area opposite to the position, inside the electronic device, of the under-screen camera; and in response to the first input, starting the under-screen camera, and updating the display position or transparency of the target component.

Description

摄像头控制方法及电子设备Camera control method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年11月27日在中国提交的中国专利申请No.201911181752.1的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911181752.1 filed in China on November 27, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明实施例涉及通信应用技术领域,尤其涉及一种摄像头控制方法及电子设备。The embodiments of the present invention relate to the technical field of communication applications, and in particular, to a camera control method and electronic equipment.
背景技术Background technique
屏下摄像头作为一种新的技术方向,能够使得电子设备真正实现全面屏。目前基于屏下摄像头的开关交互还是与传统的摄像头开关方式一样,通过进入相机软件来开启屏下摄像头,退出相机软件来关闭屏下摄像头,其操作不够便捷。As a new technical direction, the under-screen camera can make the electronic device truly realize a full screen. At present, the switch interaction based on the under-screen camera is still the same as the traditional camera switch. The operation is not convenient enough to open the under-screen camera by entering the camera software, and to close the under-screen camera by exiting the camera software.
发明内容Summary of the invention
本发明实施例提供一种摄像头控制方法及电子设备,以解决现有屏下摄像头开启操作较为机械,不够便捷的问题。The embodiments of the present invention provide a camera control method and electronic equipment to solve the problem that the conventional under-screen camera opening operation is relatively mechanical and not convenient enough.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above technical problems, the present invention is implemented as follows:
第一方面,本发明的实施例提供了一种摄像头控制方法,应用于具有屏下摄像头的电子设备,包括:In the first aspect, an embodiment of the present invention provides a camera control method, which is applied to an electronic device with an under-screen camera, including:
在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与所述屏下摄像头在所述电子设备内部的位置相对的区域;Receiving a first input when the target component is displayed through a first area, the first area being an area opposite to the position of the under-screen camera inside the electronic device;
响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度。In response to the first input, the under-screen camera is activated, and the display position or transparency of the target component is updated.
第二方面,本发明的实施例还提供了一种电子设备,所述电子设备具有屏下摄像头,包括:In the second aspect, an embodiment of the present invention also provides an electronic device having an under-screen camera, including:
第一接收模块,用于在通过第一区域显示目标组件的情况下,接收第一 输入,所述第一区域为与所述屏下摄像头在所述电子设备内部的位置相对的区域;A first receiving module, configured to receive a first input when the target component is displayed through a first area, the first area being an area opposite to the position of the under-screen camera inside the electronic device;
第一控制模块,用于响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度。The first control module is configured to activate the under-screen camera in response to the first input, and update the display position or transparency of the target component.
第三方面,本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的摄像头控制方法的步骤。In a third aspect, an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor. The steps of the camera control method as described above are realized during execution.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的摄像头控制方法的步骤。In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned camera control method is implemented. step.
第五方面,本发明实施例还提供了一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被配置成被至少一个处理器执行以实现如上所述的摄像头控制方法的步骤。In a fifth aspect, an embodiment of the present invention also provides a computer program product, wherein the program product is stored in a nonvolatile storage medium, and the program product is configured to be executed by at least one processor to achieve the above The steps of the camera control method.
第六方面,本发明实施例还提供了一种摄像头控制装置,其中,所述摄像头控制装置被配置成执行如上所述的摄像头控制方法的步骤。本发明实施例的上述方案中,在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与电子设备的屏下摄像头在所述电子设备内部的位置相对的区域;响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度,如此,通过简单地输入操作,能够快速启动屏下摄像头,提升操作便捷性,为用户提供了一种趣味性的操作体验。In a sixth aspect, an embodiment of the present invention also provides a camera control device, wherein the camera control device is configured to execute the steps of the camera control method described above. In the above solution of the embodiment of the present invention, the first input is received when the target component is displayed through the first area, the first area being the area opposite to the position of the under-screen camera of the electronic device inside the electronic device In response to the first input, start the under-screen camera, and update the display position or transparency of the target component. In this way, through a simple input operation, the under-screen camera can be quickly started, which improves the convenience of operation and provides users with Provides an interesting operating experience.
附图说明Description of the drawings
图1为本发明实施例提供的摄像头控制方法的流程示意图;FIG. 1 is a schematic flowchart of a camera control method provided by an embodiment of the present invention;
图2为本发明实施例提供的摄像头控制方法中步骤101的操作示意图;2 is a schematic diagram of the operation of step 101 in the camera control method provided by the embodiment of the present invention;
图3为本发明实施例提供的摄像头控制方法中执行步骤102后的界面示意图;3 is a schematic diagram of an interface after performing step 102 in the camera control method provided by an embodiment of the present invention;
图4为本发明实施例提供的摄像头控制方法中显示通知消息步骤的界面示意图;4 is a schematic diagram of an interface of a step of displaying a notification message in a camera control method provided by an embodiment of the present invention;
图5为本发明实施例提供的摄像头控制方法中关闭屏下摄像头步骤的操 作示意图;Fig. 5 is an operation schematic diagram of the step of turning off the off-screen camera in the camera control method provided by the embodiment of the present invention;
图6为本发明实施例提供的摄像头控制方法中关闭屏下摄像头步骤执行后的界面示意图;6 is a schematic diagram of the interface after the step of turning off the off-screen camera in the camera control method provided by the embodiment of the present invention;
图7为本发明实施例提供的电子设备的结构示意图;FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图8为本发明实施例提供的电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
如图1所示,为本发明实施例提供的摄像头控制方法的流程示意图,该方法应用于具有屏下摄像头的电子设备。该方法可具体包括:步骤101和102。As shown in FIG. 1, it is a schematic flowchart of a camera control method provided by an embodiment of the present invention, and the method is applied to an electronic device with an under-screen camera. The method may specifically include steps 101 and 102.
步骤101,在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与所述屏下摄像头在所述电子设备内部的位置相对的区域。Step 101: Receive a first input when the target component is displayed in a first area, where the first area is an area opposite to the position of the under-screen camera inside the electronic device.
本步骤中,第一区域为与屏下摄像头在所述电子设备内部的位置相对的区域,且该第一区域显示目标组件,说明屏下摄像头被目标组件遮挡住。In this step, the first area is an area opposite to the position of the under-screen camera inside the electronic device, and the first area displays the target component, indicating that the under-screen camera is blocked by the target component.
这里,第一输入为预先设置的输入,该第一输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第一输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。Here, the first input is a preset input, and the first input may include, but is not limited to, at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input. In other words, the first input may be one of the foregoing inputs, or may also be a combined input of two or more of the inputs.
可选地,目标组件为悬浮栏。Optionally, the target component is a floating bar.
这里,电子设备的屏幕上的悬浮栏1,如图2所示,在初始状态下,也就是默认情况下,屏下摄像头2被悬浮栏1遮挡住,屏下摄像头2处于关闭状态。Here, the floating bar 1 on the screen of the electronic device, as shown in FIG. 2, in the initial state, that is, by default, the under-screen camera 2 is blocked by the floating bar 1, and the under-screen camera 2 is in a closed state.
较优地,第一输入为对目标组件(如悬浮栏)的上拉划动输入。这里的上拉划动输入具体是指使目标组件朝向电子设备的听筒的方向移动的划动输入,如图2中的箭头所指的方向。Preferably, the first input is a pull-up and swipe input to the target component (such as a floating bar). The pull-up swipe input here specifically refers to a swipe input that moves the target component toward the earpiece of the electronic device, as indicated by the arrow in FIG. 2.
步骤102,响应于所述第一输入,启动所述屏下摄像头,并更新所述目标 组件的显示位置或透明度。Step 102: In response to the first input, start the off-screen camera, and update the display position or transparency of the target component.
需要说明的是,在接收第一输入之前,目标组件位于第一区域,本步骤中,更新所述目标组件的显示位置是指将目标组件显示于除第一区域之外的其他区域。也就是说,屏下摄像头不再被所述目标组件遮挡,通过屏幕显示出来。如图3所示,此时,启动该屏下摄像头,并更新所述目标组件的显示位置或透明度之后,电子设备进入拍摄界面3,也就是说,拍摄界面3显示在屏幕上。It should be noted that before receiving the first input, the target component is located in the first area. In this step, updating the display position of the target component refers to displaying the target component in other areas except the first area. In other words, the camera under the screen is no longer blocked by the target component and is displayed on the screen. As shown in FIG. 3, at this time, after starting the under-screen camera and updating the display position or transparency of the target component, the electronic device enters the shooting interface 3, that is, the shooting interface 3 is displayed on the screen.
还需要说明的是,更新所述目标组件的透明度可具体包括:将所述目标组件的透明度由第一数值调整为第二数值,所述第一数值大于所述第二数值,所述第二数值表示所述目标组件完全透明。It should also be noted that updating the transparency of the target component may specifically include: adjusting the transparency of the target component from a first value to a second value, where the first value is greater than the second value, and the second value The numerical value indicates that the target component is completely transparent.
这里,第一数值表示所述目标组件完全不透明,也就是说,在接收第一输入之前,目标组件的透明度为第一数值,即目标组件完全不透明,也就是说,屏下摄像头被目标组件遮挡住。Here, the first value indicates that the target component is completely opaque, that is, before receiving the first input, the transparency of the target component is the first value, that is, the target component is completely opaque, that is, the camera under the screen is blocked by the target component live.
在接收到第一输入之后,本步骤中,响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的透明度,将目标组件的透明度调整为第二数值,即所述目标组件完全透明,也就是说,屏下摄像头不再被所述目标组件遮挡,通过屏幕显示出来。After receiving the first input, in this step, in response to the first input, start the under-screen camera, update the transparency of the target component, and adjust the transparency of the target component to a second value, that is, the The target component is completely transparent, that is, the camera under the screen is no longer blocked by the target component and is displayed on the screen.
本发明实施例的摄像头控制方法,在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与电子设备的屏下摄像头在所述电子设备内部的位置相对的区域;响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度,如此,通过简单地输入操作,能够快速启动屏下摄像头,提升操作便捷性,为用户提供了一种趣味性的操作体验。In the camera control method of the embodiment of the present invention, the first input is received when the target component is displayed through the first area, the first area being the area opposite to the position of the under-screen camera of the electronic device inside the electronic device In response to the first input, start the under-screen camera, and update the display position or transparency of the target component. In this way, through a simple input operation, the under-screen camera can be quickly started, which improves the convenience of operation and provides users with Provides an interesting operating experience.
基于图1所示的实施例,作为一可选地实现方式,在步骤101之前,本发明方法还可包括:Based on the embodiment shown in FIG. 1, as an optional implementation, before step 101, the method of the present invention may further include:
接收启动所述屏下摄像头的请求消息;Receiving a request message for starting the camera under the screen;
为了防止第三方应用在用户不知情的情况下,启动屏下摄像头进行偷拍,导致用户隐私泄露情况的发生,进一步提升用户使用电子设备的安全性,可选地,本步骤可具体包括:In order to prevent third-party applications from starting the off-screen camera to take secret photos without the user’s knowledge, resulting in the leakage of user privacy and further improving the security of the user’s use of electronic equipment, this step may optionally include:
接收第三方应用启动所述屏下摄像头的请求消息。Receive a request message from a third-party application to start the under-screen camera.
这里,第三方应用是针对某种软件或应用在功能上的不足,而非软件编制方的其他组织或者个人开发的相关软件。也就是说,是由非官方编制的插件。Here, third-party applications are related to the lack of functionality of a certain software or application, not related software developed by other organizations or individuals of the software compiling party. In other words, it is a plug-in compiled by an unofficial.
需要说明的是,该请求消息可通过预设提示方式提示用户,预设提示方式但不限于振铃、灯光闪烁。It should be noted that the request message can prompt the user through a preset prompt mode, but the preset prompt mode is not limited to ringing and flashing lights.
相应的,步骤101可具体包括:Correspondingly, step 101 may specifically include:
在接收到所述请求消息后的第一预设时间内接收到第一输入。The first input is received within a first preset time after receiving the request message.
这里,在接收到该请求消息后的第一预设时间内接收到第一输入,说明用户允许启动屏下摄像头。Here, the first input is received within the first preset time after receiving the request message, indicating that the user is allowed to start the off-screen camera.
基于此,在接收启动所述屏下摄像头的请求消息之后,本发明实施例的方法还可包括:Based on this, after receiving the request message for starting the under-screen camera, the method in the embodiment of the present invention may further include:
在接收到所述请求消息后的第一预设时间内未接收到第一输入的情况下,忽略所述请求消息。If the first input is not received within the first preset time after receiving the request message, the request message is ignored.
需要说明的是,在接收到该请求消息后的第一预设时间内未接收到第一输入,忽略所述请求消息,说明用户不允许启动屏下摄像头,此时,屏下摄像头保持关闭状态。It should be noted that the first input is not received within the first preset time after receiving the request message, and the request message is ignored, indicating that the user is not allowed to start the under-screen camera. At this time, the under-screen camera remains closed. .
在接收启动所述屏下摄像头的请求消息之后,本发明实施例的方法还可包括:After receiving the request message for starting the under-screen camera, the method of the embodiment of the present invention may further include:
显示通知消息于所述电子设备的屏幕上,所述通知消息用于提示用户是否允许启动所述屏下摄像头。A notification message is displayed on the screen of the electronic device, and the notification message is used to prompt the user whether to allow the off-screen camera to be activated.
这里,在接收启动所述屏下摄像头的请求消息之后,显示通知消息于所述电子设备的屏幕上,如图4所示,其目的是给用户直观地提示,提醒用户存在应用想要启动屏下摄像头,同时也能够防止在用户不知情的情况下,未经用户同意,开启屏下摄像头进行偷拍,导致用户隐私泄露这一情况的发生,提升用户使用电子设备的安全性。Here, after receiving the request message for starting the under-screen camera, the notification message is displayed on the screen of the electronic device, as shown in FIG. 4, the purpose of which is to give the user an intuitive reminder that there is an application that wants to start the screen. Under the camera, it can also prevent the user from turning on the under-screen camera to take photos without the user’s consent without the user’s knowledge, leading to the leakage of user privacy, and improving the security of the user’s use of electronic equipment.
作为一可选地实现方式,在显示通知消息于所述电子设备的屏幕上之后,本发明的方法还可包括:As an optional implementation manner, after displaying the notification message on the screen of the electronic device, the method of the present invention may further include:
在第二预设时间内接收到第一输入。The first input is received within the second preset time.
这里,本步骤,在第二预设时间内接收到第一输入,说明用户允许启动屏下摄像头。在执行步骤102之后,本发明的方法还可包括:删除所述通知消息。Here, in this step, the first input is received within the second preset time, indicating that the user is allowed to start the off-screen camera. After step 102 is performed, the method of the present invention may further include: deleting the notification message.
需要说明的是,删除所述通知消息,其目的是为了释放电子设备的存储空间以及使得屏幕显示简洁美观,避免对屏幕上其他显示内容造成妨碍。It should be noted that the purpose of deleting the notification message is to release the storage space of the electronic device and make the screen display concise and beautiful, so as to avoid obstructing other display content on the screen.
作为另一可选地实现方式,在显示通知消息于所述电子设备的屏幕上之后,本发明的方法还可包括:As another optional implementation manner, after displaying the notification message on the screen of the electronic device, the method of the present invention may further include:
在接收到预设输入或者在第二预设时间内未接收到第一输入,则忽略所述通知消息并删除。When the preset input is received or the first input is not received within the second preset time, the notification message is ignored and deleted.
本步骤中,预设输入为预先设置的输入,可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第一输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。In this step, the preset input is a preset input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input, that is, In other words, the first input may be one of the foregoing inputs, or may also be a combined input of two or more of the inputs.
较优地,该预设输入为对目标组件的下拉划动输入。这里的下拉划动输入具体是指使目标组件朝向电子设备的话筒的方向移动的划动输入。Preferably, the preset input is a pull-down swipe input to the target component. The pull-down swipe input here specifically refers to a swipe input that moves the target component toward the direction of the microphone of the electronic device.
需要说明的是,在接收到预设输入或者在第二预设时间内未接收到第一输入时,忽略所述通知消息并删除,说明用户不允许启动屏下摄像头。也就是说,保持所述屏下摄像头处于关闭状态不变,也就是,并不启动屏下摄像头。It should be noted that when the preset input is received or the first input is not received within the second preset time, the notification message is ignored and deleted, indicating that the user is not allowed to start the off-screen camera. In other words, the off-screen camera is kept unchanged, that is, the off-screen camera is not activated.
作为一可选地实现方式,在步骤102之后,本发明方法还可包括:As an optional implementation manner, after step 102, the method of the present invention may further include:
接收第二输入;Receive the second input;
本步骤中,第二输入为预先设置的输入,该第二输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第二输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。In this step, the second input is a preset input, and the second input may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input In other words, the second input can be one of the above-mentioned inputs, or can also be a combined input of two or more of them.
较优地,该第二输入为对目标组件的下拉划动输入。这里的下拉划动输入具体是指使目标组件朝向电子设备的话筒的方向移动的划动输入,如图5中的箭头所指的方向。Preferably, the second input is a pull-down swipe input to the target component. The pull-down swipe input here specifically refers to a swipe input that moves the target component toward the direction of the microphone of the electronic device, as indicated by the arrow in FIG. 5.
响应于所述第二输入,关闭所述屏下摄像头,并更新所述目标组件的显 示位置或透明度,使所述目标组件显示于所述第一区域。In response to the second input, the off-screen camera is turned off, and the display position or transparency of the target component is updated, so that the target component is displayed in the first area.
这里,由于第一区域为与屏下摄像头在所述电子设备内部的位置相对的区域,本步骤中,更新所述目标组件的显示位置或透明度,使所述目标组件显示于所述第一区域,也就是说,使屏下摄像头被所述目标组件遮挡,如图6所示。Here, since the first area is the area opposite to the position of the under-screen camera inside the electronic device, in this step, the display position or transparency of the target component is updated so that the target component is displayed in the first area In other words, the camera under the screen is blocked by the target component, as shown in Figure 6.
需要说明的是,更新所述目标组件的显示位置是指将目标组件显示于所述第一区域。It should be noted that updating the display position of the target component refers to displaying the target component in the first area.
更新所述目标组件的透明度可具体包括:将所述目标组件的透明度由所述第二数值调整为所述第一数值,所述第一数值大于所述第二数值,第一数值表示所述目标组件完全不透明,所述第二数值表示所述目标组件完全透明。也就是说,通过调整所述目标组件的透明度使屏下摄像头被目标组件遮挡住。Updating the transparency of the target component may specifically include: adjusting the transparency of the target component from the second value to the first value, the first value being greater than the second value, and the first value representing the The target component is completely opaque, and the second value indicates that the target component is completely transparent. That is to say, by adjusting the transparency of the target component, the camera under the screen is blocked by the target component.
基于此,可选地,所述屏下摄像头为前置摄像头;相应的,在响应于所述第二输入,关闭所述屏下摄像头之后,本发明方法还可包括:Based on this, optionally, the under-screen camera is a front-facing camera; correspondingly, after the under-screen camera is turned off in response to the second input, the method of the present invention may further include:
在所述电子设备包括后置摄像头的情况下,启动所述后置摄像头。In the case that the electronic device includes a rear camera, the rear camera is activated.
本步骤中,关闭屏下摄像头之后,在所述电子设备包括后置摄像头的情况下,自动启动该后置摄像头,这样,不需要用户额外的操作,便可快速实现前置摄像头切换为后置摄像头,方便用户使用后置摄像头进行拍摄,提升用户的拍摄体验。In this step, after the off-screen camera is turned off, if the electronic device includes a rear camera, the rear camera is automatically started. In this way, the front camera can be quickly switched to the rear without additional operation by the user. The camera makes it convenient for users to use the rear camera to shoot, which improves the user's shooting experience.
基于图1所示的实施例,作为一可选地实现方式,在步骤102之后,本发明方法还可包括:Based on the embodiment shown in FIG. 1, as an optional implementation, after step 102, the method of the present invention may further include:
在拍摄界面关闭的情况下,关闭所述屏下摄像头,并更新所述目标组件的显示位置或透明度,使所述目标组件显示于所述第一区域。When the shooting interface is closed, the off-screen camera is turned off, and the display position or transparency of the target component is updated, so that the target component is displayed in the first area.
在拍摄界面关闭的情况下,说明用户暂时没有拍摄需求,为了防止此时其他应用在用户不知情的情况下,直接使用已经启动的屏下摄像头进行偷拍,自动关闭屏下摄像头,将所述目标组件遮挡在所述屏下摄像头位置处,从而能够保护用户隐私,提升安全性,还能达到节省电量的目的。When the shooting interface is closed, it means that the user has no shooting needs for the time being. In order to prevent other applications from directly using the activated under-screen camera for sneak shots without the user’s knowledge at this time, the under-screen camera is automatically turned off and the target is set. The component is shielded at the position of the camera under the screen, so that user privacy can be protected, safety can be improved, and the purpose of saving power can also be achieved.
本发明实施例的摄像头控制方法,在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与电子设备的屏下摄像头在所述电子设备内部的位置相对的区域;响应于所述第一输入,启动所述屏下摄像头,并 更新所述目标组件的显示位置或透明度,如此,通过简单地输入操作,能够快速启动屏下摄像头,提升操作便捷性,为用户提供了一种趣味性的操作体验。In the camera control method of the embodiment of the present invention, the first input is received when the target component is displayed through the first area, the first area being the area opposite to the position of the under-screen camera of the electronic device inside the electronic device In response to the first input, start the under-screen camera, and update the display position or transparency of the target component. In this way, through a simple input operation, the under-screen camera can be quickly started, which improves the convenience of operation and provides users with Provides an interesting operating experience.
基于上述方法,本发明实施例提供一种用以实现上述方法的电子设备。Based on the above method, an embodiment of the present invention provides an electronic device for implementing the above method.
如图7所示,为本发明实施例提供的电子设备的结构示意图。本发明实施例提供一种电子设备700,该电子设备700具有屏下摄像头,可以包括:As shown in FIG. 7, it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. An embodiment of the present invention provides an electronic device 700. The electronic device 700 has an under-screen camera and may include:
第一接收模块701,用于在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与所述屏下摄像头在所述电子设备内部的位置相对的区域;The first receiving module 701 is configured to receive a first input when the target component is displayed through a first area, the first area being an area opposite to the position of the under-screen camera inside the electronic device;
第一控制模块702,用于响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度。The first control module 702 is configured to activate the under-screen camera in response to the first input, and update the display position or transparency of the target component.
可选地,所述第一控制模块702,可包括:Optionally, the first control module 702 may include:
第一更新单元,用于将所述目标组件的透明度由第一数值调整为第二数值,所述第一数值大于所述第二数值,所述第二数值表示所述目标组件完全透明。The first update unit is configured to adjust the transparency of the target component from a first value to a second value, where the first value is greater than the second value, and the second value indicates that the target component is completely transparent.
可选地,该电子设备700还可包括:Optionally, the electronic device 700 may further include:
第二接收模块,用于接收启动所述屏下摄像头的请求消息;The second receiving module is configured to receive a request message for starting the off-screen camera;
所述第一接收模块701,包括:The first receiving module 701 includes:
第一接收单元,用于在接收到所述请求消息后的第一预设时间内接收到第一输入。The first receiving unit is configured to receive a first input within a first preset time after receiving the request message.
可选地,该电子设备700还可包括:Optionally, the electronic device 700 may further include:
第二控制模块,用于在接收到所述请求消息后的第一预设时间内未接收到第一输入的情况下,忽略所述请求消息。The second control module is configured to ignore the request message if the first input is not received within the first preset time after receiving the request message.
可选地,该电子设备700还可包括:Optionally, the electronic device 700 may further include:
显示模块,用于显示通知消息于所述电子设备的屏幕上,所述通知消息用于提示用户是否允许启动所述屏下摄像头。The display module is configured to display a notification message on the screen of the electronic device, and the notification message is used to prompt the user whether to allow the off-screen camera to be activated.
可选地,该电子设备700还可包括:Optionally, the electronic device 700 may further include:
第三接收模块,用于接收第二输入;The third receiving module is used to receive the second input;
第三控制模块,用于响应于所述第二输入,关闭所述屏下摄像头,并更 新所述目标组件的显示位置或透明度,使所述目标组件显示于所述第一区域。The third control module is configured to respond to the second input, turn off the under-screen camera, and update the display position or transparency of the target component, so that the target component is displayed in the first area.
可选地,所述屏下摄像头为前置摄像头;相应的,该电子设备700还可包括:Optionally, the under-screen camera is a front camera; correspondingly, the electronic device 700 may further include:
第四控制模块,用于在所述电子设备包括后置摄像头的情况下,启动所述后置摄像头。The fourth control module is configured to activate the rear camera when the electronic device includes a rear camera.
可选地,该电子设备700还可包括:Optionally, the electronic device 700 may further include:
第五控制模块,用于在拍摄界面关闭的情况下,关闭所述屏下摄像头,并更新所述目标组件的显示位置或透明度,使所述目标组件显示于所述第一区域。The fifth control module is configured to turn off the under-screen camera when the shooting interface is closed, and update the display position or transparency of the target component, so that the target component is displayed in the first area.
本发明实施例提供的电子设备能够实现图1至图6的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of FIGS. 1 to 6. To avoid repetition, details are not described herein again.
本发明实施例提供的电子设备,通过第一接收模块在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与所述屏下摄像头在所述电子设备内部的位置相对的区域;第一控制模块响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度,如此,通过简单地输入操作,能够快速启动屏下摄像头,提升操作便捷性,为用户提供了一种趣味性的操作体验。The electronic device provided by the embodiment of the present invention receives the first input through the first receiving module when the target component is displayed through the first area, and the first area is the interface between the under-screen camera and the electronic device. Relatively located area; in response to the first input, the first control module activates the under-screen camera, and updates the display position or transparency of the target component. In this way, the under-screen camera can be quickly activated by a simple input operation , Improve the convenience of operation, and provide users with an interesting operation experience.
图8为实现本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
其中,在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与所述屏下摄像头在所述电子设备内部的位置相对的区域;响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度。Wherein, when the target component is displayed through a first area, a first input is received, and the first area is an area opposite to the position of the under-screen camera inside the electronic device; in response to the first input , Start the under-screen camera, and update the display position or transparency of the target component.
本发明实施例中,通过简单地输入操作,能够快速启动屏下摄像头,提升操作便捷性,为用户提供了一种趣味性的操作体验。In the embodiment of the present invention, through simple input operations, the under-screen camera can be quickly started, which improves the convenience of operation, and provides users with an interesting operation experience.
应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 810; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。Electronic devices provide users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与电子设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。The audio output unit 803 can convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic device 800 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The input unit 804 is used to receive audio or video signals. The input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The graphics processor 8041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 806. The image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
电子设备800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在电子设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动电子设备姿态(比 如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 800 further includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light. The proximity sensor can close the display panel 8061 and the display panel 8061 when the electronic device 800 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of mobile electronic devices (such as horizontal and vertical screen switching, related Games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers , Infrared sensors, etc., I won’t repeat them here.
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元807可用于接收输入的数字或字符信息,以及产生与移动电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 807 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile electronic device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating). The touch panel 8071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 810, the command sent by the processor 810 is received and executed. In addition, the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 may also include other input devices 8072. Specifically, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现移动电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现移动电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 8071 can cover the display panel 8061. When the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event, and then the processor 810 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 8061. Although in FIG. 8, the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the mobile electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 can be used. Integrate to realize the input and output functions of mobile electronic devices, and the specifics are not limited here.
接口单元808为外部装置与电子设备800连接的接口。例如,外部装置 可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备800内的一个或多个元件或者可以用于在电子设备800和外部装置之间传输数据。The interface unit 808 is an interface for connecting an external device and the electronic device 800. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 808 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 800 or can be used to connect the electronic device 800 to an external device. Transfer data between devices.
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器810是移动电子设备的控制中心,利用各种接口和线路连接整个移动电子设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行移动电子设备的各种功能和处理数据,从而对移动电子设备进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is the control center of the mobile electronic device. It uses various interfaces and lines to connect the various parts of the entire mobile electronic device, runs or executes the software programs and/or modules stored in the memory 809, and calls and stores them in the memory 809. Data, perform various functions of mobile electronic devices and process data, so as to monitor the mobile electronic devices as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface and application programs, etc., the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
电子设备800还可以包括给各个部件供电的电源811(比如电池),优选的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 800 may also include a power supply 811 (such as a battery) for supplying power to various components. Preferably, the power supply 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system And other functions.
另外,电子设备800包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 800 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器810,存储器809,存储在存储器809上并可在处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述摄像头控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention also provides an electronic device, including a processor 810, a memory 809, and a computer program stored on the memory 809 and running on the processor 810. When the computer program is executed by the processor 810, the foregoing Each process of the embodiment of the camera control method can achieve the same technical effect, and in order to avoid repetition, it will not be repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上 存储有计算机程序,该计算机程序被处理器执行时实现上述摄像头控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned camera control method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
本发明实施例还提供一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被配置成被至少一个处理器执行以实现上述摄像头控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides a computer program product, wherein the program product is stored in a nonvolatile storage medium, and the program product is configured to be executed by at least one processor to implement the above-mentioned camera control method embodiment Each process can achieve the same technical effect. To avoid repetition, I won’t repeat it here.
本发明实施例还提供一种摄像头控制装置,其中,所述摄像头控制装置被配置成执行上述摄像头控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides a camera control device, wherein the camera control device is configured to execute each process of the above-mentioned camera control method embodiment, and can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
可以理解的是,本公开的一些实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,模块、单元、子模块、子单元等可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in some embodiments of the present disclosure may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, modules, units, sub-modules, sub-units, etc. can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (Digital Signal Processing, DSP), digital signal processing equipment ( DSP Device, DSPD), Programmable Logic Device (PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, Other electronic units or combinations thereof that perform the functions described in this application.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的 技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (20)

  1. 一种摄像头控制方法,应用于具有屏下摄像头的电子设备,包括:A camera control method, applied to an electronic device with an under-screen camera, includes:
    在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与所述屏下摄像头在所述电子设备内部的位置相对的区域;Receiving a first input when the target component is displayed through a first area, the first area being an area opposite to the position of the under-screen camera inside the electronic device;
    响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度。In response to the first input, the under-screen camera is activated, and the display position or transparency of the target component is updated.
  2. 根据权利要求1所述的方法,其中,所述更新所述目标组件的透明度,包括:The method according to claim 1, wherein said updating the transparency of said target component comprises:
    将所述目标组件的透明度由第一数值调整为第二数值,所述第一数值大于所述第二数值,所述第二数值表示所述目标组件完全透明。The transparency of the target component is adjusted from a first value to a second value, the first value is greater than the second value, and the second value indicates that the target component is completely transparent.
  3. 根据权利要求1所述的方法,其中,所述接收第一输入之前,还包括:The method according to claim 1, wherein before said receiving the first input, further comprising:
    接收启动所述屏下摄像头的请求消息;Receiving a request message for starting the camera under the screen;
    所述接收第一输入包括:The receiving the first input includes:
    在接收到所述请求消息后的第一预设时间内接收到第一输入。The first input is received within a first preset time after receiving the request message.
  4. 根据权利要求3所述的方法,其中,所述接收启动所述屏下摄像头的请求消息之后,所述方法还包括:The method according to claim 3, wherein after the receiving the request message for starting the off-screen camera, the method further comprises:
    在接收到所述请求消息后的第一预设时间内未接收到第一输入的情况下,忽略所述请求消息。If the first input is not received within the first preset time after receiving the request message, the request message is ignored.
  5. 根据权利要求3所述的方法,其中,接收启动所述屏下摄像头的请求消息之后,所述方法还包括:The method according to claim 3, wherein after receiving a request message for starting the off-screen camera, the method further comprises:
    显示通知消息于所述电子设备的屏幕上,所述通知消息用于提示用户是否允许启动所述屏下摄像头。A notification message is displayed on the screen of the electronic device, and the notification message is used to prompt the user whether to allow the off-screen camera to be activated.
  6. 根据权利要求1所述的方法,其中,响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度之后,所述方法还包括:The method according to claim 1, wherein, in response to the first input, after starting the off-screen camera and updating the display position or transparency of the target component, the method further comprises:
    接收第二输入;Receive the second input;
    响应于所述第二输入,关闭所述屏下摄像头,并更新所述目标组件的显示位置或透明度,使所述目标组件显示于所述第一区域。In response to the second input, the off-screen camera is turned off, and the display position or transparency of the target component is updated, so that the target component is displayed in the first area.
  7. 根据权利要求6所述的方法,其中,所述屏下摄像头为前置摄像头;The method according to claim 6, wherein the under-screen camera is a front camera;
    响应于所述第二输入,关闭所述屏下摄像头之后,所述方法还包括:In response to the second input, after the off-screen camera is turned off, the method further includes:
    在所述电子设备包括后置摄像头的情况下,启动所述后置摄像头。In the case that the electronic device includes a rear camera, the rear camera is activated.
  8. 根据权利要求1所述的方法,其中,响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度之后,所述方法还包括:The method according to claim 1, wherein, in response to the first input, after starting the off-screen camera and updating the display position or transparency of the target component, the method further comprises:
    在拍摄界面关闭的情况下,关闭所述屏下摄像头,并更新所述目标组件的显示位置或透明度,使所述目标组件显示于所述第一区域。When the shooting interface is closed, the off-screen camera is turned off, and the display position or transparency of the target component is updated, so that the target component is displayed in the first area.
  9. 一种电子设备,所述电子设备具有屏下摄像头,包括:An electronic device having an under-screen camera, including:
    第一接收模块,用于在通过第一区域显示目标组件的情况下,接收第一输入,所述第一区域为与所述屏下摄像头在所述电子设备内部的位置相对的区域;A first receiving module, configured to receive a first input when the target component is displayed through a first area, the first area being an area opposite to the position of the under-screen camera inside the electronic device;
    第一控制模块,用于响应于所述第一输入,启动所述屏下摄像头,并更新所述目标组件的显示位置或透明度。The first control module is configured to activate the under-screen camera in response to the first input, and update the display position or transparency of the target component.
  10. 根据权利要求9所述的电子设备,其中,所述第一控制模块,包括:The electronic device according to claim 9, wherein the first control module comprises:
    第一更新单元,用于将所述目标组件的透明度由第一数值调整为第二数值,所述第一数值大于所述第二数值,所述第二数值表示所述目标组件完全透明。The first update unit is configured to adjust the transparency of the target component from a first value to a second value, where the first value is greater than the second value, and the second value indicates that the target component is completely transparent.
  11. 根据权利要求9所述的电子设备,其中,所述电子设备还包括:The electronic device according to claim 9, wherein the electronic device further comprises:
    第二接收模块,用于接收启动所述屏下摄像头的请求消息;The second receiving module is configured to receive a request message for starting the off-screen camera;
    所述第一接收模块,包括:The first receiving module includes:
    第一接收单元,用于在接收到所述请求消息后的第一预设时间内接收到第一输入。The first receiving unit is configured to receive a first input within a first preset time after receiving the request message.
  12. 根据权利要求11所述的电子设备,其中,所述电子设备还包括:The electronic device according to claim 11, wherein the electronic device further comprises:
    第二控制模块,用于在接收到所述请求消息后的第一预设时间内未接收到第一输入的情况下,忽略所述请求消息。The second control module is configured to ignore the request message if the first input is not received within the first preset time after receiving the request message.
  13. 根据权利要求11所述的电子设备,其中,所述电子设备还包括:The electronic device according to claim 11, wherein the electronic device further comprises:
    显示模块,用于显示通知消息于所述电子设备的屏幕上,所述通知消息用于提示用户是否允许启动所述屏下摄像头。The display module is configured to display a notification message on the screen of the electronic device, and the notification message is used to prompt the user whether to allow the off-screen camera to be activated.
  14. 根据权利要求9所述的电子设备,其中,所述电子设备还包括:The electronic device according to claim 9, wherein the electronic device further comprises:
    第三接收模块,用于接收第二输入;The third receiving module is used to receive the second input;
    第三控制模块,用于响应于所述第二输入,关闭所述屏下摄像头,并更新所述目标组件的显示位置或透明度,使所述目标组件显示于所述第一区域。The third control module is configured to turn off the under-screen camera in response to the second input, and update the display position or transparency of the target component, so that the target component is displayed in the first area.
  15. 根据权利要求14所述的电子设备,其中,所述屏下摄像头为前置摄像头;所述电子设备还包括:The electronic device according to claim 14, wherein the under-screen camera is a front camera; the electronic device further comprises:
    第四控制模块,用于在所述电子设备包括后置摄像头的情况下,启动所述后置摄像头。The fourth control module is configured to activate the rear camera when the electronic device includes a rear camera.
  16. 根据权利要求9所述的电子设备,其中,所述电子设备还包括:The electronic device according to claim 9, wherein the electronic device further comprises:
    第五控制模块,用于在拍摄界面关闭的情况下,关闭所述屏下摄像头,并更新所述目标组件的显示位置或透明度,使所述目标组件显示于所述第一区域。The fifth control module is configured to turn off the under-screen camera when the shooting interface is closed, and update the display position or transparency of the target component, so that the target component is displayed in the first area.
  17. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述计算机程序被所述处理器执行时实现如权利要求1至8中任一项所述的摄像头控制方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, wherein the computer program is executed by the processor to implement claims 1 to 8 The steps of any one of the camera control method.
  18. 一种非瞬时计算机可读存储介质,其中,所述非瞬时计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的摄像头控制方法的步骤。A non-transitory computer-readable storage medium, wherein a computer program is stored on the non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the method described in any one of claims 1 to 8 is realized The steps of the camera control method.
  19. 一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被配置成被至少一个处理器执行以实现如权利要求1至8中任一项所述的摄像头控制方法的步骤。A computer program product, wherein the program product is stored in a non-volatile storage medium, and the program product is configured to be executed by at least one processor to implement any one of claims 1 to 8 The steps of the camera control method.
  20. 一种摄像头控制装置,其中,所述摄像头控制装置被配置成执行如权利要求1至8中任一项所述的摄像头控制方法的步骤。A camera control device, wherein the camera control device is configured to execute the steps of the camera control method according to any one of claims 1 to 8.
PCT/CN2020/131668 2019-11-27 2020-11-26 Camera control method and electronic device WO2021104347A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911181752.1A CN110995990B (en) 2019-11-27 2019-11-27 Camera control method and electronic equipment
CN201911181752.1 2019-11-27

Publications (1)

Publication Number Publication Date
WO2021104347A1 true WO2021104347A1 (en) 2021-06-03

Family

ID=70087238

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131668 WO2021104347A1 (en) 2019-11-27 2020-11-26 Camera control method and electronic device

Country Status (2)

Country Link
CN (1) CN110995990B (en)
WO (1) WO2021104347A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995990B (en) * 2019-11-27 2021-11-23 维沃移动通信有限公司 Camera control method and electronic equipment
WO2021248347A1 (en) * 2020-06-10 2021-12-16 深圳市红箭头科技有限公司 Protective film for electronic terminal
CN113965690A (en) * 2020-07-20 2022-01-21 珠海格力电器股份有限公司 Method, device and equipment for opening off-screen camera and storage medium
CN111917977A (en) * 2020-07-21 2020-11-10 珠海格力电器股份有限公司 Camera switching method and device applied to intelligent terminal, electronic equipment and storage medium
CN111953900B (en) * 2020-08-07 2022-01-28 维沃移动通信有限公司 Picture shooting method and device and electronic equipment
CN112153283B (en) * 2020-09-22 2022-08-12 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN112306822B (en) * 2020-11-30 2023-05-02 联想(北京)有限公司 Control method and device and electronic equipment
CN114257671B (en) * 2022-02-28 2022-07-19 荣耀终端有限公司 Image display method and electronic equipment
CN114793269A (en) * 2022-03-25 2022-07-26 岚图汽车科技有限公司 Control method of camera and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100172624A1 (en) * 2006-04-21 2010-07-08 ProMirror, Inc. Video capture, playback and analysis tool
CN103167179A (en) * 2013-03-12 2013-06-19 广东欧珀移动通信有限公司 Method for rapidly starting photographing function and mobile device
CN108983872A (en) * 2018-06-04 2018-12-11 Oppo广东移动通信有限公司 Electronic device and its control method
CN109683664A (en) * 2018-11-29 2019-04-26 与德科技有限公司 Electronic equipment
CN110221736A (en) * 2018-03-02 2019-09-10 广东欧珀移动通信有限公司 Icon processing method, device, mobile terminal and storage medium
CN110995990A (en) * 2019-11-27 2020-04-10 维沃移动通信有限公司 Camera control method and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991731A (en) * 2015-06-03 2015-10-21 努比亚技术有限公司 Photographic method, apparatus and mobile terminal
CN106921767A (en) * 2017-03-07 2017-07-04 捷开通讯(深圳)有限公司 A kind of mobile terminal of screen accounting high
CN109151296A (en) * 2017-06-19 2019-01-04 北京小米移动软件有限公司 Electronic equipment, switching method and device, computer readable storage medium
WO2019062236A1 (en) * 2017-09-30 2019-04-04 昆山国显光电有限公司 Display screen, display screen driving method and display device thereof
CN108520888B (en) * 2018-04-02 2022-02-22 云谷(固安)科技有限公司 Display screen and display device thereof
CN108900676A (en) * 2018-08-13 2018-11-27 华南理工大学 A kind of comprehensive screen mobile phone and the method for realizing screen display comprehensively
CN109714532A (en) * 2018-12-29 2019-05-03 联想(北京)有限公司 Image-pickup method, treating method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100172624A1 (en) * 2006-04-21 2010-07-08 ProMirror, Inc. Video capture, playback and analysis tool
CN103167179A (en) * 2013-03-12 2013-06-19 广东欧珀移动通信有限公司 Method for rapidly starting photographing function and mobile device
CN110221736A (en) * 2018-03-02 2019-09-10 广东欧珀移动通信有限公司 Icon processing method, device, mobile terminal and storage medium
CN108983872A (en) * 2018-06-04 2018-12-11 Oppo广东移动通信有限公司 Electronic device and its control method
CN109683664A (en) * 2018-11-29 2019-04-26 与德科技有限公司 Electronic equipment
CN110995990A (en) * 2019-11-27 2020-04-10 维沃移动通信有限公司 Camera control method and electronic equipment

Also Published As

Publication number Publication date
CN110995990A (en) 2020-04-10
CN110995990B (en) 2021-11-23

Similar Documents

Publication Publication Date Title
WO2021104347A1 (en) Camera control method and electronic device
WO2021098678A1 (en) Screencast control method and electronic device
WO2021109926A1 (en) Application sharing method, electronic device and computer-readable storage medium
WO2021017742A1 (en) Method for controlling application, and electronic apparatus
WO2021109907A1 (en) Application sharing method, first electronic device and computer-readable storage medium
WO2020220999A1 (en) Screenshot method and terminal device
WO2020238449A1 (en) Notification message processing method and terminal
WO2021083087A1 (en) Screen capturing method and terminal device
WO2019154182A1 (en) Method for setting volume of application program, and mobile terminal
WO2020156123A1 (en) Information processing method and terminal device
WO2020238463A1 (en) Message processing method and terminal
WO2020151513A1 (en) Information processing method and terminal device
WO2020238497A1 (en) Icon moving method and terminal device
WO2021083112A1 (en) Information sharing method and electronic device
US11930297B2 (en) Video call method and terminal device
WO2021109959A1 (en) Application sharing method and electronic device
WO2021238719A1 (en) Information display method and electronic device
WO2020211612A1 (en) Information display method and terminal device
WO2020199988A1 (en) Content copying method and terminal
WO2020199783A1 (en) Interface display method and terminal device
WO2021031717A1 (en) Screen capturing method and terminal device
WO2021104251A1 (en) Control method and first electronic device
WO2021136141A1 (en) Playback method and electronic device
WO2020238445A1 (en) Screen recording method and terminal
WO2021129835A1 (en) Volume control method and device, and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20892550

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20892550

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20892550

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20892550

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27.02.2023)