[go: up one dir, main page]

CN116110351B - Backlight control method, device, chip, electronic equipment and medium - Google Patents

Backlight control method, device, chip, electronic equipment and medium Download PDF

Info

Publication number
CN116110351B
CN116110351B CN202310390470.2A CN202310390470A CN116110351B CN 116110351 B CN116110351 B CN 116110351B CN 202310390470 A CN202310390470 A CN 202310390470A CN 116110351 B CN116110351 B CN 116110351B
Authority
CN
China
Prior art keywords
brightness
screen
image
electronic device
full
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
Application number
CN202310390470.2A
Other languages
Chinese (zh)
Other versions
CN116110351A (en
Inventor
刘曼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310390470.2A priority Critical patent/CN116110351B/en
Publication of CN116110351A publication Critical patent/CN116110351A/en
Application granted granted Critical
Publication of CN116110351B publication Critical patent/CN116110351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a backlight control method, a device, a chip, electronic equipment and a medium, wherein the method comprises the following steps: under the condition that a screen of the electronic equipment is in a full-screen display image state, acquiring first brightness issued by a first module of the electronic equipment, wherein the first module is used for issuing backlight brightness to the screen of the electronic equipment; and executing a first operation to enable the backlight brightness sent to the screen of the electronic equipment to be the threshold brightness under the condition that the first brightness is smaller than the preset threshold brightness corresponding to the screen of the electronic equipment. The embodiment of the application can improve the experience of the user when watching the video and the picture in a full screen under the dim light environment.

Description

背光控制方法、装置、芯片、电子设备及介质Backlight control method, device, chip, electronic equipment and medium

技术领域Technical field

本申请涉及电子设备技术领域,特别涉及一种背光控制方法、装置、芯片、电子设备及介质。The present application relates to the technical field of electronic equipment, and in particular to a backlight control method, device, chip, electronic equipment and medium.

背景技术Background technique

在暗光环境下,可以将电子设备的背光亮度调整至较低值。但此时用户难以看清低对比度、暗色调的图像,影响用户体验。In dark light environments, the backlight brightness of electronic devices can be adjusted to a lower value. However, at this time, it is difficult for users to see low-contrast, dark-toned images, which affects the user experience.

发明内容Contents of the invention

本申请实施例提供了一种背光控制方法、装置、芯片、电子设备及介质,能够提升用户在暗光环境下全屏观看视频、图片时的体验。Embodiments of the present application provide a backlight control method, device, chip, electronic device and medium, which can improve the user's experience when watching videos and pictures in full-screen in dark light environments.

第一方面,本申请实施例提供一种背光控制方法,包括:在电子设备的屏幕处于全屏显示图像状态的情况下,获取电子设备的第一模块下发的第一亮度,第一模块用于向电子设备的屏幕下发背光亮度;在第一亮度小于预先设定的与电子设备的屏幕相对应的门限亮度的情况下,执行第一操作使得下发至电子设备的屏幕的背光亮度为门限亮度。In a first aspect, embodiments of the present application provide a backlight control method, which includes: when the screen of the electronic device is in a full-screen image display state, obtaining the first brightness issued by the first module of the electronic device, and the first module is used to Send backlight brightness to the screen of the electronic device; when the first brightness is less than a preset threshold brightness corresponding to the screen of the electronic device, perform the first operation so that the backlight brightness sent to the screen of the electronic device is the threshold brightness.

本申请实施例在电子设备的屏幕处于全屏显示图像状态期间,获取电子设备的第一模块下发的第一亮度,第一模块用于向电子设备的屏幕下发背光亮度,若第一亮度小于预先设定的与电子设备的屏幕相对应的门限亮度,则执行第一操作使得下发至电子设备的屏幕的背光亮度为门限亮度,如此可避免用户在暗光环境下全屏观看视频、图片时,难以看清低对比度、暗色调的图像,从而能够提升用户在暗光环境下全屏观看视频、图片时的体验。In the embodiment of the present application, when the screen of the electronic device is in a full-screen image display state, the first brightness sent by the first module of the electronic device is obtained. The first module is used to send the backlight brightness to the screen of the electronic device. If the first brightness is less than The threshold brightness corresponding to the screen of the electronic device is preset, and the first operation is performed so that the backlight brightness sent to the screen of the electronic device is the threshold brightness. This can prevent the user from watching videos and pictures in full screen in a dark light environment. , it is difficult to see low-contrast, dark-toned images clearly, thus improving the user's experience when watching videos and pictures in full-screen in dark light environments.

可选地,在电子设备的屏幕处于全屏显示图像状态的情况下,方法还包括:获取电子设备的屏幕所显示的图像;获取所获得图像的灰度和明度;在所获得图像的灰度小于预设灰度阈值和所获得图像的明度小于预设明度阈值中的至少一个成立的情况下,执行获取电子设备的第一模块下发的第一亮度的步骤。Optionally, when the screen of the electronic device is in a full-screen image display state, the method further includes: obtaining an image displayed on the screen of the electronic device; obtaining the grayscale and brightness of the obtained image; when the grayscale of the obtained image is less than If at least one of the preset gray threshold and the brightness of the obtained image is less than the preset brightness threshold, the step of obtaining the first brightness issued by the first module of the electronic device is performed.

通过先进行图片检测,再根据图片检测结果按需进行背光亮度控制,可针对全屏显示低对比度或暗色图像场景进行背光亮度按需控制,而不对全屏显示高对比度或亮色图像场景进行背光亮度按需控制,以实现背光亮度按需控制的选择性执行,避免不必要的背光亮度按需控制,且还可避免若始终进行背光亮度按需控制所造成的高功耗问题。By first performing image detection and then performing on-demand backlight brightness control based on the image detection results, the backlight brightness can be controlled on-demand for full-screen low-contrast or dark image scenes, but not for full-screen high-contrast or bright image scenes. Control to achieve selective execution of on-demand backlight brightness control, avoid unnecessary on-demand backlight brightness control, and avoid high power consumption problems caused by always performing on-demand backlight brightness control.

可选地,在电子设备的屏幕处于全屏显示图像状态的情况下,方法还包括:在电子设备的屏幕开始全屏显示图像时,执行获取电子设备的屏幕所显示的图像的步骤;在电子设备的屏幕刷新时,执行获取电子设备的屏幕所显示的图像的步骤。Optionally, when the screen of the electronic device is in a full-screen image display state, the method further includes: when the screen of the electronic device begins to display the image in full screen, performing the step of acquiring the image displayed on the screen of the electronic device; When the screen is refreshed, the step of obtaining an image displayed on the screen of the electronic device is performed.

通过在开始全屏显示图像时以及在各次屏幕刷新时执行图像检测,可以实现图像检测的按需准确执行,从而有助于实现背光控制的按需准确执行。By performing image detection when full-screen image display begins and at each screen refresh, image detection can be performed accurately on demand, thereby helping to enable backlight control to be performed accurately and on demand.

可选地,预设灰度阈值根据至少一个预设图像的灰度得到,预设明度阈值根据至少一个预设图像的明度得到;其中,用于获取图像灰度的步骤包括:根据图像中各个像素点的多个通道值,获取图像中各个像素点的灰度值,并根据图像中各个像素点的灰度值,获得图像的灰度;用于获取图像明度的步骤包括:根据图像中各个像素点的多个通道值,经颜色空间转换处理,获得图像中各个像素点的明度,并根据图像中各个像素点的明度,获得图像的明度。Optionally, the preset grayscale threshold is obtained based on the grayscale of at least one preset image, and the preset brightness threshold is obtained based on the brightness of at least one preset image; wherein the step for obtaining the image grayscale includes: based on each Multiple channel values of pixels are used to obtain the grayscale value of each pixel in the image, and the grayscale of the image is obtained based on the grayscale value of each pixel in the image; the steps used to obtain the brightness of the image include: according to each pixel in the image The multiple channel values of the pixel are processed through color space conversion to obtain the brightness of each pixel in the image, and based on the brightness of each pixel in the image, the brightness of the image is obtained.

可行地,预设图像可以为预先设置定好的低对比度或暗色的图像,并据此获得明度阈值和灰度阈值。基于此进行图片检测时,可以准确区分全屏显示低对比度或暗色图像的场景和全屏显示高对比度或亮色图像的场景,从而能够实现背光控制的按需准确执行。Feasibly, the preset image can be a predetermined low contrast or dark image, and the brightness threshold and grayscale threshold are obtained accordingly. When performing picture detection based on this, it is possible to accurately distinguish between scenes where low-contrast or dark images are displayed on the full screen and scenes where high-contrast or bright images are displayed on the full screen, thereby enabling accurate execution of backlight control on demand.

可选地,背光控制方法还包括:监测电子设备是否处于全屏视频播放场景;监测电子设备是否处于全屏图片显示场景;其中,电子设备的屏幕处于全屏显示图像状态的情况包括:电子设备处于全屏视频播放场景和电子设备处于全屏图片显示场景中的任一场景的情况。Optionally, the backlight control method also includes: monitoring whether the electronic device is in a full-screen video playback scene; monitoring whether the electronic device is in a full-screen picture display scene; where the screen of the electronic device is in a full-screen image display state: the electronic device is in a full-screen video display state. The playback scene and the electronic device are in any of the full-screen picture display scenes.

通过一并监测全屏视频播放场景和全屏图片显示场景,可以实现对全屏显示图像场景的按需准确监测,从而可实现背光控制的按需准确执行。By monitoring the full-screen video playback scene and the full-screen picture display scene together, the full-screen display image scene can be accurately monitored on demand, thereby enabling accurate on-demand execution of backlight control.

可选地,监测电子设备是否处于全屏视频播放场景,包括:监测电子设备是否处于无弹幕全屏视频播放场景;其中,电子设备处于全屏视频播放场景的情况包括:电子设备处于无弹幕全屏视频播放场景的情况。Optionally, monitoring whether the electronic device is in a full-screen video playback scene includes: monitoring whether the electronic device is in a full-screen video playback scene without barrage; where the electronic device is in a full-screen video playback scene including: the electronic device is in a full-screen video playback scene without barrage The situation of playing the scene.

通过监测无弹幕全屏视频播放场景,可避免弹幕的存在对图像检测的影响,有利于保证图像明度、灰度的准确获取,从而准确识别出暗光环境下的全屏显示低对比度或暗色图像的场景,以保证基于门限亮度进行背光亮度优化的按需准确执行。By monitoring the full-screen video playback scene without barrage, the impact of the presence of barrage on image detection can be avoided, which is helpful to ensure the accurate acquisition of image brightness and grayscale, thereby accurately identifying low-contrast or dark images displayed on the full screen in dark light environments. scenarios to ensure accurate on-demand execution of backlight brightness optimization based on threshold brightness.

可选地,门限亮度为测试设备的、使得第一图像的清晰度符合预期的最小背光亮度;其中,测试设备的屏幕和电子设备的屏幕具有同种构造;第一图像为在测试设备和相机均处于同一无光环境、且测试设备的屏幕全屏显示预设图像的情况下,相机拍摄测试设备的屏幕所得图像中对应预设图像的部分。Optionally, the threshold brightness is the minimum backlight brightness of the test device that enables the clarity of the first image to meet expectations; where the screen of the test device and the screen of the electronic device have the same structure; the first image is between the test device and the camera. When both are in the same no-light environment and the screen of the test device displays the preset image in full screen, the camera captures the portion of the image obtained from the screen of the test device that corresponds to the preset image.

如此,可使得不同类型设备的门限亮度可相应不同,门限亮度对于电子设备具有针对性和适用性,如此进行背光控制时可实现适宜背光亮度的下发,以避免暗光环境下全屏观看暗色视频/图片时难以看清,从而可提升用户暗光环境下全屏观看视频/图片时的体验。In this way, the threshold brightness of different types of devices can be different accordingly. The threshold brightness is targeted and applicable to electronic devices. In this way, when performing backlight control, appropriate backlight brightness can be issued to avoid full-screen viewing of dark videos in dark light environments. /pictures are difficult to see clearly, which can improve the user’s experience when watching videos/pictures in full-screen in dark light environments.

可选地,第一亮度基于电子设备中的三方应用所得背光亮度、电子设备接收到的背光亮度调节指令、与电子设备所处环境的环境光照度相对应的背光亮度中的至少一个得到。Optionally, the first brightness is obtained based on at least one of the backlight brightness obtained by three-party applications in the electronic device, the backlight brightness adjustment instruction received by the electronic device, and the backlight brightness corresponding to the ambient illumination of the environment in which the electronic device is located.

通过首先基于至少一种调光方法得到适宜的背光亮度,再基于所得背光亮度和门限亮度的对比,对下发至设备屏幕的背光亮度进行按需优化,如此可下发更为适宜的背光亮度。By first obtaining an appropriate backlight brightness based on at least one dimming method, and then optimizing the backlight brightness delivered to the device screen based on the comparison between the obtained backlight brightness and the threshold brightness, as needed, a more appropriate backlight brightness can be delivered. .

第二方面,本申请实施例提供一种背光控制装置,包括:获取模块,用于在电子设备的屏幕处于全屏显示图像状态的情况下,获取电子设备的第一模块下发的第一亮度,第一模块用于向电子设备的屏幕下发背光亮度;控制模块,用于在第一亮度小于预先设定的与电子设备的屏幕相对应的门限亮度的情况下,执行第一操作使得下发至电子设备的屏幕的背光亮度为门限亮度。In a second aspect, embodiments of the present application provide a backlight control device, including: an acquisition module configured to acquire the first brightness issued by the first module of the electronic device when the screen of the electronic device is in a full-screen image display state, The first module is used to send backlight brightness to the screen of the electronic device; the control module is used to perform a first operation to send backlight brightness to the screen of the electronic device when the first brightness is less than a preset threshold brightness corresponding to the screen of the electronic device. The backlight brightness of the screen of the electronic device is the threshold brightness.

第三方面,本申请实施例提供一种电子芯片,包括:处理器,其用于执行存储在存储器上的计算机程序指令,其中,当计算机程序指令被处理器执行时,触发电子芯片执行如第一方面中任一项的方法。In a third aspect, embodiments of the present application provide an electronic chip, including: a processor configured to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute the following steps: method of any one of the aspects.

第四方面,本申请实施例提供一种电子设备,电子设备包括用于存储计算机程序指令的存储器、用于执行计算机程序指令的处理器和通信装置,其中,当计算机程序指令被该处理器执行时,触发电子设备执行如第一方面中任一项的方法。In a fourth aspect, embodiments of the present application provide an electronic device. The electronic device includes a memory for storing computer program instructions, a processor for executing computer program instructions, and a communication device. When the computer program instructions are executed by the processor, When, the electronic device is triggered to perform any of the methods in the first aspect.

第五方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面中任一项的方法。In a fifth aspect, embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to execute the method in any one of the first aspects.

第六方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序在计算机上运行时,使得计算机执行如第一方面中任一项的方法。In a sixth aspect, embodiments of the present application provide a computer program product. The computer program product includes a computer program. When the computer program is run on a computer, it causes the computer to execute the method of any one of the first aspects.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without exerting creative efforts.

图1为本申请一个实施例提供的一种电子设备的结构示意图;Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图2为本申请一个实施例提供的一种背光控制流程的示意图;Figure 2 is a schematic diagram of a backlight control process provided by an embodiment of the present application;

图3为本申请一个实施例提供的另一种背光控制流程的示意图;Figure 3 is a schematic diagram of another backlight control process provided by an embodiment of the present application;

图4为本申请一个实施例提供的一种背光控制方法的流程示意图;Figure 4 is a schematic flow chart of a backlight control method provided by an embodiment of the present application;

图5为本申请一个实施例提供的又一种背光控制流程的示意图;Figure 5 is a schematic diagram of another backlight control process provided by an embodiment of the present application;

图6本申请一个实施例提供的另一种背光控制方法的流程示意图;Figure 6 is a schematic flowchart of another backlight control method provided by an embodiment of the present application;

图7为本申请一个实施例提供的一种场景识别的时序图;Figure 7 is a sequence diagram of scene recognition provided by an embodiment of the present application;

图8为本申请一个实施例提供的一种唤醒、结束图像检测模块的时序图;Figure 8 is a timing diagram of waking up and ending the image detection module provided by an embodiment of the present application;

图9为本申请一个实施例提供的一种测试门限亮度实现方式的示意图;Figure 9 is a schematic diagram of a test threshold brightness implementation method provided by an embodiment of the present application;

图10为本申请一个实施例提供的又一种背光控制方法的流程示意图。FIG. 10 is a schematic flowchart of yet another backlight control method provided by an embodiment of the present application.

具体实施方式Detailed ways

为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solution of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of this application.

在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terminology used in the embodiments of the present application is only for the purpose of describing specific embodiments and is not intended to limit the present application. As used in the embodiments and the appended claims, the singular forms "a," "the" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.

应当理解,本文中使用的术语“至少一个”是指一个或者多个,“多个”是指两个或两个以上。本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。其中A,B可以是单数或者复数。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。It should be understood that the term "at least one" used herein refers to one or more, and "plurality" refers to two or more. The term "and/or" used in this article is just an association relationship describing related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist simultaneously, alone There are three situations B. Where A and B can be singular or plural. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship. "At least one of the following" and similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.

应当理解,尽管在本申请实施例中可能采用术语第一、第二等来描述设定阈值,但这些设定阈值不应限于这些术语。这些术语仅用来将设定阈值彼此区分开。例如,在不脱离本申请实施例范围的情况下,第一设定阈值也可以被称为第二设定阈值,类似地,第二设定阈值也可以被称为第一设定阈值。It should be understood that although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present application, these set thresholds should not be limited to these terms. These terms are only used to distinguish set thresholds from each other. For example, without departing from the scope of the embodiments of the present application, the first set threshold may also be called a second set threshold, and similarly, the second set threshold may also be called a first set threshold.

本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the embodiments of the present application are only used to explain specific embodiments of the present application and are not intended to limit the present application.

本申请任一实施例提供的背光控制方法可以应用于图1所示的电子设备100中。图1示出了电子设备100的结构示意图。The backlight control method provided by any embodiment of the present application can be applied to the electronic device 100 shown in FIG. 1 . FIG. 1 shows a schematic structural diagram of an electronic device 100 .

电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.

控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (USB) interface, etc.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellite system. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellitesystem,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (codedivision multiple access, CDMA), broadband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou satellite navigation system (beidounavigation satellite system, BDS), quasi-zenith satellite system (quasi-zenith) satellitesystem (QZSS) and/or satellite based augmentation systems (SBAS).

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flexlight-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.

ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。The ISP is used to process the data fed back by the camera 193. Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.

陀螺仪传感器180B可以用于确定电子设备100的运动姿态。气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。磁传感器180D包括霍尔传感器。加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。温度传感器180J用于检测温度。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 . Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation. Magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing. Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense ambient light brightness. Fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc. Temperature sensor 180J is used to detect temperature.

触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 . The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.

为避免暗光环境(比如较黑暗、或完全黑暗的环境)下屏幕过亮而导致用户眼部的不适及损伤,可以在暗光环境下,将电子设备的背光亮度调整至较低值。可行地,当电子设备在暗光环境下时,可以通过自动或者手动的方式将电子设备的背光亮度调整至较低值。In order to avoid discomfort and damage to the user's eyes caused by over-brightness of the screen in low-light environments (such as relatively dark or completely dark environments), the backlight brightness of electronic devices can be adjusted to a lower value in low-light environments. Feasibly, when the electronic device is in a dark light environment, the backlight brightness of the electronic device can be adjusted to a lower value automatically or manually.

一种可行实现方式中,可以在电子设备中安装三方应用,比如可以安装视频软件、相机补光应用等,并通过安装的三方应用来自动调节电子设备屏幕的背光亮度。In a feasible implementation method, third-party applications can be installed in the electronic device, such as video software, camera fill-light applications, etc., and the backlight brightness of the electronic device screen can be automatically adjusted through the installed third-party applications.

另一可行实现方式中,当电子设备在暗光环境下时,电子设备可以响应于用户通过执行背光亮度调节操作而下发的背光亮度调节指令,来调节电子设备屏幕的背光亮度。In another possible implementation, when the electronic device is in a dark light environment, the electronic device can adjust the backlight brightness of the screen of the electronic device in response to a backlight brightness adjustment instruction issued by the user by performing a backlight brightness adjustment operation.

又一可行实现方式中,电子设备中的环境光传感器可以实时采集环境光照度,电子设备的显示管理服务模块可根据环境光照度映射出相应的背光亮度,并据此自动调节电子设备屏幕的背光亮度。In another possible implementation, the ambient light sensor in the electronic device can collect the ambient illumination in real time, and the display management service module of the electronic device can map the corresponding backlight brightness according to the ambient illumination, and automatically adjust the backlight brightness of the electronic device screen accordingly.

再一可行实现方式中,可以结合三方应用调节、用户手动调节、基于环境光调节(即环境光调光)中的任意两种或全部,来自动调节电子设备屏幕的背光亮度。一个实施例中,存在不止一种调节方式时,可以预先设置调节优先级,并根据调节优先级和各种调节方式生成的背光亮度,来确定向电子设备屏幕下发的背光亮度。In another feasible implementation method, any two or all of three-party application adjustment, user manual adjustment, and ambient light adjustment (i.e., ambient light dimming) can be combined to automatically adjust the backlight brightness of the electronic device screen. In one embodiment, when there is more than one adjustment method, the adjustment priority can be set in advance, and the backlight brightness sent to the electronic device screen is determined based on the adjustment priority and the backlight brightness generated by various adjustment methods.

一种可行实现方式中,可以采用如图2所示的背光控制流程进行背光控制。请参考图2,电子设备可以包括应用(APP,Application)层21、应用框架(FWK,Framework)层22、本地服务(Native)层23、硬件抽象(Hal,Hardware abstraction layer)层24、内核(kernel)层25、硬件(hardware)层26。In a feasible implementation method, the backlight control process shown in Figure 2 can be used for backlight control. Please refer to Figure 2. The electronic device may include an application (APP, Application) layer 21, an application framework (FWK, Framework) layer 22, a local service (Native) layer 23, a hardware abstraction (Hal, Hardware abstraction layer) layer 24, and a kernel ( Kernel layer 25, hardware layer 26.

应用层21中的三方应用211可以依次通过应用框架层22中的电源管理服务(PMS,Power Manager Service)模块221和窗口管理服务(WMS,Window Manager Service)模块222,将生成的背光亮度发送给应用框架层22中的显示管理服务(DMS,Display ManagerService)模块223。The third-party application 211 in the application layer 21 can send the generated backlight brightness to Display management service (DMS, Display ManagerService) module 223 in the application framework layer 22.

一个实施例中,应用框架层22中的SettingsProvider(设置存储)可以分别连接三方应用211和显示管理服务模块223。可行地,SettingsProvider为安卓系统中一个提供数据存储的进程,可存放安卓的默认初始值,可用于获取指定设置的值。In one embodiment, the SettingsProvider (settings storage) in the application framework layer 22 can connect to the third-party application 211 and the display management service module 223 respectively. Feasibly, SettingsProvider is a process in the Android system that provides data storage. It can store Android's default initial values and can be used to obtain the value of specified settings.

应用层21中的背光亮度设置模块212可用于设置手动调节亮度,并将设置的亮度发送给显示管理服务模块223。The backlight brightness setting module 212 in the application layer 21 can be used to set manual brightness adjustment, and send the set brightness to the display management service module 223 .

应用框架层22中的传感器服务(Sensor service)模块224可以感知电子设备所在环境的环境光的强弱,并将据此映射出的相应背光强度发送给显示管理服务模块223。The sensor service module 224 in the application framework layer 22 can sense the intensity of ambient light in the environment where the electronic device is located, and send the corresponding backlight intensity mapped accordingly to the display management service module 223 .

显示管理服务模块223可根据三方应用211、背光亮度设置模块212和传感器服务模块224发来的背光亮度,结合预先设置调节优先级,确定向电子设备屏幕下发的背光亮度,并将确定出的背光亮度发送给本地服务层23中的背光控制模块231。The display management service module 223 can determine the backlight brightness to be sent to the electronic device screen based on the backlight brightness sent by the third-party application 211, the backlight brightness setting module 212 and the sensor service module 224, combined with the preset adjustment priority, and will determine the backlight brightness. The backlight brightness is sent to the backlight control module 231 in the local service layer 23 .

比如可以发送给本地服务层23的Surface Flinger(图层投递者)服务模块中的背光控制模块231。可行地,三种调光方式得到的亮度数值下发至显示管理服务模块223后,经显示管理服务模块223统一下发至Surface Flinger服务模块。其中,Surface Flinger服务可用于负责绘制安卓应用程序的UI(User Interface,用户界面)。For example, it can be sent to the backlight control module 231 in the Surface Flinger (layer deliverer) service module of the local service layer 23 . Feasibly, the brightness values obtained by the three dimming methods are sent to the display management service module 223, and then uniformly sent to the Surface Flinger service module through the display management service module 223. Among them, the Surface Flinger service can be used to draw the UI (User Interface) of Android applications.

背光控制模块231可以将接收到的背光亮度发送给硬件抽象层24的硬件组合抽象层(HWC,hwcomposer)模块240中的亮度下发模块241。The backlight control module 231 may send the received backlight brightness to the brightness delivery module 241 in the hardware combination abstraction layer (HWC, hwcomposer) module 240 of the hardware abstraction layer 24 .

亮度下发模块241可以将接收到的背光亮度发送给内核层25中的显示引擎驱动程序251。The brightness sending module 241 may send the received backlight brightness to the display engine driver 251 in the kernel layer 25 .

一个实施例中,显示引擎驱动程序251可以为SDE driver(高通显示引擎驱动程序)。其中,SDE的全拼为Snapdragon display engine。In one embodiment, the display engine driver 251 may be an SDE driver (Qualcomm Display Engine Driver). Among them, the full spelling of SDE is Snapdragon display engine.

一种可行地实现方式中,可以将背光亮度下发至SDE driver中的背光驱动(BLdriver)。其中,BL的全拼可以为backlight。In a feasible implementation, the backlight brightness can be sent to the backlight driver (BLdriver) in the SDE driver. Among them, the full spelling of BL can be backlight.

显示引擎驱动程序251可以将接收到的背光亮度经硬件层26中的显示处理单元(DPU, Display Processing Unit)261,发送给硬件层26中的液晶显示器(LCD,LiquidCrystal Display)262,从而实现向电子设备屏幕下发背光亮度的目的。The display engine driver 251 can send the received backlight brightness to the liquid crystal display (LCD, LiquidCrystal Display) 262 in the hardware layer 26 via the display processing unit (DPU, Display Processing Unit) 261 in the hardware layer 26, thereby realizing the The purpose of emitting backlight brightness under the screen of electronic devices.

请参考图2,硬件层26中的环境光传感器263可以实时采集环境光的信息。Please refer to Figure 2. The ambient light sensor 263 in the hardware layer 26 can collect ambient light information in real time.

一个实施例中,当环境光传感器中断产生(即感受到环境光变化)后,可以使用抠除噪声后的RGBC通道值计算出环境光照度(单位为lux)。其中,R(red)可表示红色通道,G(green)可表示绿色通道,B(blue)可表示蓝色通道,C(clear)可表示透明光。In one embodiment, when the ambient light sensor is interrupted (that is, a change in ambient light is sensed), the ambient light intensity (in lux) can be calculated using the noise-censored RGBC channel value. Among them, R (red) can represent the red channel, G (green) can represent the green channel, B (blue) can represent the blue channel, and C (clear) can represent transparent light.

内核层25中的环境光驱动程序252可以将环境光照度上报给硬件抽象层24中AP(application process,应用处理器)侧的传感器硬件抽象层服务(比如sensor hidl服务)模块248,传感器硬件抽象层服务模块248将环境光照度上报给传感器服务模块224,再由传感器服务模块224将环境光照度的值派发给显示管理服务模块223。显示管理服务模块223可以根据环境光照度的变化情况得出是否要调光。其中,显示管理服务可为监听线程。hidl的全拼为HAL Interface Definition Language(HAL接口定义语言)。The ambient light driver 252 in the kernel layer 25 can report the ambient illumination to the sensor hardware abstraction layer service (such as sensor hidl service) module 248 on the AP (application process, application processor) side in the hardware abstraction layer 24, sensor hardware abstraction layer The service module 248 reports the ambient illumination to the sensor service module 224, and then the sensor service module 224 dispatches the value of the ambient illumination to the display management service module 223. The display management service module 223 can determine whether to adjust the light according to changes in ambient illumination. Among them, the display management service can be a listening thread. The full spelling of hidl is HAL Interface Definition Language (HAL interface definition language).

在暗光环境下,可以将电子设备的背光亮度调整至较低值,但此时用户难以看清低对比度、暗色调的图像,影响用户体验。该图像可以为图片、照片,也可以为视频中的任一帧画面。In a dark light environment, the backlight brightness of an electronic device can be adjusted to a lower value, but at this time it is difficult for users to see low-contrast, dark-tone images clearly, which affects the user experience. The image can be a picture, a photo, or any frame in a video.

比如,在主流调光方式为环境光调光、用户在暗光环境下使用手机观看视频/图片的使用场景中,手机的环境光调光模块在暗光环境下可跟随环境,将手机屏幕的背光亮度调至较低档位,如此会使得用户全屏观看对比度较低或主色调较暗的视频/图片时难以看清手机画面,从而造成观看体验不佳。For example, in a usage scenario where the mainstream dimming method is ambient light dimming and the user uses the mobile phone to watch videos/pictures in a dark light environment, the ambient light dimming module of the mobile phone can follow the environment in a dark light environment and change the brightness of the mobile phone screen. Adjusting the backlight brightness to a lower level will make it difficult for users to see the mobile phone screen clearly when watching videos/pictures with low contrast or dark main colors in full screen, resulting in a poor viewing experience.

在本申请一个实施例中,可以采用如图3所示的背光控制流程进行背光控制。请参考图3,电子设备除了包括图2中示出了各个模块,电子设备的硬件抽象层24的硬件组合抽象层模块240中还可包括视频场景监测模块245和亮度检测模块247,电子设备的内核层25中还可包括门限亮度存储模块253。In one embodiment of the present application, the backlight control process shown in Figure 3 can be used for backlight control. Please refer to Figure 3. In addition to the various modules shown in Figure 2, the electronic device can also include a video scene monitoring module 245 and a brightness detection module 247 in the hardware combination abstraction layer module 240 of the hardware abstraction layer 24 of the electronic device. The kernel layer 25 may also include a threshold brightness storage module 253.

一个实施例中,视频场景监测模块245可以监测电子设备是否处于全屏视频播放场景(比如具体可以为无弹幕全屏视频播放场景),若是即可唤醒亮度检测模块247。若电子设备处于非全屏播放视频的视频播放场景,则不唤醒亮度检测模块247。In one embodiment, the video scene monitoring module 245 can monitor whether the electronic device is in a full-screen video playback scene (for example, it can be a full-screen video playback scene without barrage), and if so, the brightness detection module 247 can be awakened. If the electronic device is in a video playback scene that does not play videos in full screen, the brightness detection module 247 will not be awakened.

另一实施例中,视频场景监测模块245还可以监测电子设备是否处于全屏(或大屏)图片显示场景,若是即可唤醒亮度检测模块247。若电子设备处于非全屏显示图片的图片显示场景,则不唤醒亮度检测模块247。In another embodiment, the video scene monitoring module 245 can also monitor whether the electronic device is in a full-screen (or large-screen) picture display scene, and if so, the brightness detection module 247 can be awakened. If the electronic device is in a picture display scene that does not display pictures in full screen, the brightness detection module 247 will not be awakened.

亮度检测模块247在被唤醒后,可以获取显示管理服务模块223下发的背光亮度,并获取门限亮度存储模块253中存储的门限亮度。一个实施例中,门限亮度存储模块253可以为电子设备中的dtbo(Device Tree Blob Overlay,设备树块覆盖)分区。After being awakened, the brightness detection module 247 can obtain the backlight brightness issued by the display management service module 223 and obtain the threshold brightness stored in the threshold brightness storage module 253 . In one embodiment, the threshold brightness storage module 253 can be a dtbo (Device Tree Blob Overlay, device tree block overlay) partition in the electronic device.

其中,门限亮度存储模块253中存储的门限亮度可与电子设备的液晶显示器262相对应,可使得液晶显示器262在门限亮度下显示对比度较低或主色调较暗的视频/图片时,用户能够看清设备显示的画面。Among them, the threshold brightness stored in the threshold brightness storage module 253 can correspond to the liquid crystal display 262 of the electronic device, so that when the liquid crystal display 262 displays videos/pictures with lower contrast or darker main colors under the threshold brightness, the user can see Clear the screen displayed on the device.

若下发的背光亮度低于门限亮度,则亮度检测模块247可以将下发的背光亮度更改为门限亮度,即下发门限亮度至液晶显示器262。若下发的背光亮度不低于门限亮度,则亮度检测模块247可以不做处理,以不对下发的背光亮度进行更改。If the delivered backlight brightness is lower than the threshold brightness, the brightness detection module 247 can change the delivered backlight brightness to the threshold brightness, that is, deliver the threshold brightness to the liquid crystal display 262 . If the delivered backlight brightness is not lower than the threshold brightness, the brightness detection module 247 may not perform processing so as not to change the delivered backlight brightness.

当电子设备处于全屏视频播放/图片显示场景中时,存在用户在暗光环境下全屏观看对比度较低或主色调较暗的视频/图片的可能,通过在电子设备处于全屏视频播放/图片显示场景中时,根据门限亮度对下发的背光亮度进行按需更改,以避免下发至液晶显示器262的背光亮度低于门限亮度。如此操作,可避免存在暗光环境下用户全屏观看对比度较低或主色调较暗的视频/图片时难以看清显示画面的情况,则用户观看体验好。When the electronic device is in the full-screen video playback/picture display scene, there is a possibility that the user can watch videos/pictures with low contrast or dark main colors in full screen in a dark light environment. By using the electronic device in the full-screen video playback/picture display scene, During this time, the backlight brightness delivered is changed as needed according to the threshold brightness to prevent the backlight brightness delivered to the liquid crystal display 262 from being lower than the threshold brightness. This operation can avoid the situation where it is difficult for users to see the display screen clearly when watching videos/pictures with low contrast or dark main colors in full screen in dark light environments, and the user viewing experience will be good.

请参考图4,以优化用户在暗光环境下全屏观看视频时的观看体验为例,本申请一个实施例提供了一种背光控制方法,该方法可以包括以下步骤401~步骤408:Please refer to Figure 4. Taking optimizing the user's viewing experience when watching a video in full screen in a dark light environment as an example, one embodiment of the present application provides a backlight control method. The method may include the following steps 401 to 408:

步骤401,场景识别引擎在监测到电子设备进入观看视频场景时,开启全屏视频事件监听。Step 401: When the scene recognition engine detects that the electronic device enters the video viewing scene, it starts full-screen video event monitoring.

一种可行实现方式中,可由电子设备的应用框架层中的场景识别引擎(APS)来实时监测电子设备所处场景的变化。In a feasible implementation, the scene recognition engine (APS) in the application framework layer of the electronic device can monitor changes in the scene in which the electronic device is located in real time.

一个实施例中,场景识别引擎可以为APS(Adaptive Power Saving,自适应省功耗模块,或称自适应节能模块)。In one embodiment, the scene recognition engine may be APS (Adaptive Power Saving, adaptive power saving module, or adaptive energy saving module).

一个实施例中,APS可用于控制应用帧率和分辨率,还可用于识别特殊场景,以支持相应省功耗处理的执行。In one embodiment, APS can be used to control application frame rate and resolution, and can also be used to identify special scenes to support the execution of corresponding power-saving processing.

一种可行地实现方式中,电子设备上可以安装有视频应用,用户针对视频应用中的任一视频下发播放指令时,电子设备可以开始播放相应视频,场景识别引擎此时可以监测到电子设备进入观看视频场景,从而可以开启全屏视频事件监听。通过开启全屏视频事件监听,可以实时监听电子设备是否全屏播放视频(即监听电子设备是否处于全屏播放视频场景),得到监听结果。In a feasible implementation, a video application can be installed on the electronic device. When the user issues a playback instruction for any video in the video application, the electronic device can start playing the corresponding video, and the scene recognition engine can detect the electronic device at this time. Enter the video viewing scene to enable full-screen video event monitoring. By turning on full-screen video event monitoring, you can monitor in real time whether the electronic device plays video in full screen (that is, monitor whether the electronic device is in a full-screen video playing scene) and obtain the monitoring results.

对应地,在监测到电子设备退出观看视频场景时,可以关闭全屏视频事件监听。如此,可仅在电子设备处于观看视频场景期间进行全屏视频事件监听,以实现对全屏视频事件的有效监听。Correspondingly, when it is detected that the electronic device exits the video viewing scene, full-screen video event monitoring can be turned off. In this way, full-screen video event monitoring can be performed only when the electronic device is in a video viewing scene, so as to achieve effective monitoring of full-screen video events.

一个实施例中,在监听到电子设备全屏播放视频时,得到的监听结果可以为id=1,在监听到电子设备没有全屏播放视频时,得到的监听结果可以为id=0,如此可以根据id(Identity document,标识)的变化,得到电子设备开始/结束全屏播放视频的时刻。In one embodiment, when it is monitored that the electronic device plays a video in full screen, the obtained monitoring result may be id=1. When it is monitored that the electronic device does not play the video in full screen, the obtained monitoring result may be id=0. In this way, according to the id (Identity document, logo) changes to get the moment when the electronic device starts/ends full-screen video playback.

一个实施例中,所监听的全屏视频事件具体可以为无弹幕全屏视频事件。比如,若用户执行全屏观看视频并关闭弹幕的操作,则可以监听到无弹幕全屏视频事件,电子设备当前处于无弹幕全屏视频播放场景;若在视频软件默认关闭弹幕的情况下用户执行全屏观看视频的操作,则可以监听到无弹幕全屏视频事件,电子设备当前处于无弹幕全屏视频播放场景。In one embodiment, the monitored full-screen video event may specifically be a full-screen video event without barrage. For example, if the user performs the operation of watching a video in full screen and turning off the barrage, a full-screen video event without barrage can be monitored, and the electronic device is currently in a full-screen video playback scene without barrage; if the user turns off barrage by default in the video software If you perform the operation of watching a video in full screen, you can monitor the full-screen video event without barrage, and the electronic device is currently in a full-screen video playback scenario without barrage.

步骤402,视频场景监测模块根据监听结果,确定电子设备是否开始全屏播放视频,若是执行步骤403,否则执行步骤402(即不执行步骤403)。Step 402: The video scene monitoring module determines whether the electronic device starts playing the video in full screen according to the monitoring results. If so, step 403 is executed; otherwise, step 402 is executed (that is, step 403 is not executed).

一个实施例中,基于实时生成的监听结果,场景识别引擎可以主动发送通知(即发送监听结果)给视频场景监测模块。视频场景监测模块根据监听结果,可以确定出电子设备开始/结束全屏播放视频的时刻。In one embodiment, based on the monitoring results generated in real time, the scene recognition engine can actively send notifications (ie, send monitoring results) to the video scene monitoring module. The video scene monitoring module can determine the moment when the electronic device starts/ends full-screen video playback based on the monitoring results.

在本申请其他实施例中,视频场景监测模块可以周期性(比如以5s间隔)轮询视频解码进程是否启动,并在确定出视频解码进程启动后,进一步判断电子设备的当前场景是否为全屏视频播放场景,以确定出电子设备开始全屏播放视频的时刻。In other embodiments of the present application, the video scene monitoring module can periodically (for example, at 5s intervals) poll whether the video decoding process is started, and after determining that the video decoding process is started, further determine whether the current scene of the electronic device is a full-screen video. Play the scene to determine when the electronic device starts playing the video full screen.

步骤403,亮度检测模块获取电子设备的显示管理服务模块下发的第一亮度(即显示管理服务模块当前下发的背光亮度,但第一亮度当前尚未被下发至电子设备的屏幕)。Step 403: The brightness detection module obtains the first brightness issued by the display management service module of the electronic device (that is, the backlight brightness currently issued by the display management service module, but the first brightness has not yet been issued to the screen of the electronic device).

一个实施例中,视频场景监测模块可以在确定出电子设备开始全屏播放视频时,唤醒亮度检测模块以拉起亮度监听。In one embodiment, the video scene monitoring module may wake up the brightness detection module to initiate brightness monitoring when it is determined that the electronic device starts to play the video in full screen.

一个实施例中,亮度检测模块在被唤醒后可以周期性执行步骤403。In one embodiment, the brightness detection module may periodically perform step 403 after being awakened.

一个实施例中,视频场景监测模块可以在确定出电子设备结束全屏播放视频时,关闭亮度检测模块以关闭亮度监听。In one embodiment, the video scene monitoring module may turn off the brightness detection module to turn off brightness monitoring when it is determined that the electronic device has finished playing the video in full screen.

步骤404,亮度检测模块确定下发的第一亮度是否小于预先获取的与电子设备的屏幕相对应的门限亮度,若是执行步骤405,否则执行步骤407,以向电子设备的屏幕下发第一亮度。Step 404: The brightness detection module determines whether the delivered first brightness is less than the pre-obtained threshold brightness corresponding to the screen of the electronic device. If so, execute step 405; otherwise, execute step 407 to deliver the first brightness to the screen of the electronic device. .

一个实施例中,亮度检测模块可以在首次被唤醒后,获取与电子设备的屏幕相对应的门限亮度,后续再被唤醒时直接使用获取到的门限亮度。In one embodiment, the brightness detection module can obtain the threshold brightness corresponding to the screen of the electronic device after being awakened for the first time, and directly use the obtained threshold brightness when it is awakened subsequently.

若下发的背光亮度不小于门限亮度,则可以无操作,以不对下发的背光亮度进行更改,使得下发的背光亮度被下发至电子设备的屏幕。If the delivered backlight brightness is not less than the threshold brightness, no operation is required so that the delivered backlight brightness is not changed, so that the delivered backlight brightness is delivered to the screen of the electronic device.

步骤405,亮度检测模块将显示管理服务模块下发的背光亮度从第一亮度更改为门限亮度并执行步骤406,以向电子设备的屏幕下发门限亮度。Step 405: The brightness detection module changes the backlight brightness issued by the display management service module from the first brightness to the threshold brightness and executes step 406 to issue the threshold brightness to the screen of the electronic device.

若下发的背光亮度小于门限亮度,则可以将下发的背光亮度更改为门限亮度,使得门限亮度被下发至电子设备的屏幕。If the delivered backlight brightness is less than the threshold brightness, the delivered backlight brightness can be changed to the threshold brightness, so that the threshold brightness is delivered to the screen of the electronic device.

步骤406,亮度下发模块将门限亮度下发至电子设备的屏幕,并执行步骤408。Step 406: The brightness delivery module delivers the threshold brightness to the screen of the electronic device, and executes step 408.

在亮度检测模块对显示管理服务模块下发的背光亮度进行更改的情况下,亮度下发模块将更改后的背光亮度下发至电子设备的屏幕。When the brightness detection module changes the backlight brightness delivered by the display management service module, the brightness delivery module delivers the changed backlight brightness to the screen of the electronic device.

步骤407,亮度下发模块将显示管理服务模块下发的第一亮度下发至电子设备的屏幕,并执行步骤408。Step 407: The brightness delivery module delivers the first brightness delivered by the display management service module to the screen of the electronic device, and executes step 408.

在亮度检测模块不对显示管理服务模块下发的背光亮度进行更改的情况下,亮度下发模块将显示管理服务模块下发的背光亮度(即原始背光亮度)下发至电子设备的屏幕。When the brightness detection module does not change the backlight brightness issued by the display management service module, the brightness delivery module delivers the backlight brightness (i.e., the original backlight brightness) issued by the display management service module to the screen of the electronic device.

步骤408,场景识别引擎在监测电子设备退出观看视频场景时,关闭全屏视频事件监听。Step 408: The scene recognition engine turns off full-screen video event monitoring when the monitoring electronic device exits the video viewing scene.

一个实施例中,可由电子设备中的场景识别引擎实时监测电子设备所处场景的变化。一种可行实现方式中,电子设备上可以安装有视频应用,用户针对视频应用中所播放视频下发关闭指令时,电子设备可以结束播放相应视频,场景识别引擎此时可以监测到电子设备退出观看视频场景,从而可以关闭全屏视频事件监听。In one embodiment, changes in the scene in which the electronic device is located can be monitored in real time by a scene recognition engine in the electronic device. In one possible implementation, a video application can be installed on the electronic device. When the user issues a close command for the video played in the video application, the electronic device can end playing the corresponding video. At this time, the scene recognition engine can detect that the electronic device has exited viewing. Video scene, so that full-screen video event listening can be turned off.

一个实施例中,在关闭全屏视频事件监听之后,视频场景监测模块可以关闭亮度检测模块以关闭亮度监听。In one embodiment, after turning off full-screen video event monitoring, the video scene monitoring module may turn off the brightness detection module to turn off brightness monitoring.

图4所示实施例通过在电子设备处于全屏视频播放场景中时,根据门限亮度对下发的背光亮度进行按需更改,以避免下发至电子设备屏幕的背光亮度低于电子设备屏幕所对应的门限亮度,如此可避免存在暗光环境下用户全屏观看对比度较低或主色调较暗的视频时难以看清显示画面的情况,则用户观看体验好。The embodiment shown in Figure 4 changes the backlight brightness delivered on demand according to the threshold brightness when the electronic device is in a full-screen video playback scene to prevent the backlight brightness delivered to the electronic device screen from being lower than that corresponding to the screen of the electronic device. The threshold brightness can avoid the situation where it is difficult for users to see the display clearly when watching videos with low contrast or dark main colors in full-screen in dark light environments, and the user viewing experience will be good.

在本申请另一实施例中,还可采用如图5所示的背光控制流程进行背光控制。请参考图5,电子设备除了包括图2中示出了各个模块,电子设备的应用框架层22中还可包括场景识别引擎225,电子设备的硬件抽象层24的硬件组合抽象层模块240中还可包括视频场景监测模块245、图像检测模块246和亮度检测模块247,电子设备的内核层25中还可包括门限亮度存储模块253。In another embodiment of the present application, the backlight control process shown in Figure 5 can also be used for backlight control. Please refer to Figure 5. In addition to the modules shown in Figure 2, the electronic device can also include a scene recognition engine 225 in the application framework layer 22 of the electronic device, and the hardware combination abstraction layer module 240 of the hardware abstraction layer 24 of the electronic device. It may include a video scene monitoring module 245, an image detection module 246 and a brightness detection module 247. The core layer 25 of the electronic device may also include a threshold brightness storage module 253.

一个实施例中,场景识别引擎225可将场景识别结果发送给视频场景监测模块245,视频场景监测模块245可根据接收到的场景识别结果,监测电子设备是否处于全屏视频播放场景(比如具体可以为无弹幕全屏视频播放场景),若是即可唤醒图像检测模块246。其中,图像中的弹幕通常为亮色(比如白色),通过限定在无弹幕全屏视频播放场景下唤醒图像检测模块,可去除图像中的弹幕对图像检测的影响,从而实现对图像灰度和明度的准确检测。In one embodiment, the scene recognition engine 225 can send the scene recognition result to the video scene monitoring module 245. The video scene monitoring module 245 can monitor whether the electronic device is in a full-screen video playback scene (for example, specifically, based on the received scene recognition result). Full-screen video playback scene without barrage), if so, the image detection module 246 can be awakened. Among them, the barrage in the image is usually a bright color (such as white). By limiting the awakening of the image detection module to a full-screen video playback scenario without barrage, the impact of the barrage in the image on image detection can be removed, thereby achieving grayscale control of the image. and accurate detection of brightness.

另一实施例中,视频场景监测模块245还可根据接收到的场景识别结果,监测电子设备是否处于全屏图片显示场景,若是即可唤醒图像检测模块246。In another embodiment, the video scene monitoring module 245 can also monitor whether the electronic device is in a full-screen picture display scene according to the received scene recognition result, and if so, the image detection module 246 can be awakened.

一个实施例中,若电子设备没有处于全屏视频播放场景,也没有处于全屏图片显示场景,则不唤醒图像检测模块246。In one embodiment, if the electronic device is not in a full-screen video playback scene or a full-screen picture display scene, the image detection module 246 is not awakened.

可见,通过视频场景监测模块245可以实现对基于门限亮度进行背光控制的适用场景的限定,比如可限定为能够适用于无弹幕全屏视频播放场景、全屏图片显示场景。It can be seen that the video scene monitoring module 245 can be used to limit the applicable scenes for backlight control based on threshold brightness. For example, it can be limited to be applicable to full-screen video playback scenes without bullet screens and full-screen picture display scenes.

图像检测模块246在被唤醒后,可以计算电子设备的屏幕所显示的图像的灰度和明度,进而将计算得到的灰度和明度分别与相应阈值进行大小对比。只要计算得到的灰度和明度中的至少一个小于相应阈值,图像检测模块246即可唤醒亮度检测模块247。若计算得到的灰度和明度均不小于相应阈值,图像检测模块246可不唤醒亮度检测模块247。基于图像检测模块246对亮度检测模块247的按需唤醒,可以避免亮度检测模块247始终工作使得功耗高。After being awakened, the image detection module 246 can calculate the grayscale and brightness of the image displayed on the screen of the electronic device, and then compare the calculated grayscale and brightness with corresponding thresholds respectively. As long as at least one of the calculated grayscale and brightness is less than the corresponding threshold, the image detection module 246 can wake up the brightness detection module 247 . If neither the calculated grayscale nor the brightness is less than the corresponding threshold, the image detection module 246 may not wake up the brightness detection module 247 . Based on the on-demand wake-up of the brightness detection module 247 by the image detection module 246, it can be avoided that the brightness detection module 247 always works and causes high power consumption.

其中,明度可以表示图片的明暗分布,明度越高,画面越亮。Among them, brightness can represent the light and dark distribution of the picture. The higher the brightness, the brighter the picture.

其中,灰度可使用黑色调表示物体,即用黑色为基准色,不同的饱和度的黑色来显示图像。灰度值可以表示单个像素点的亮度,灰度值越大表示画面越亮。若灰度平均值越大,可表示图片色彩越亮。Among them, grayscale can use black tones to represent objects, that is, using black as the base color and different saturations of black to display images. The gray value can represent the brightness of a single pixel. The larger the gray value, the brighter the picture. The larger the grayscale average value, the brighter the image color.

亮度检测模块247在被唤醒后,可以获取显示管理服务模块223下发的背光亮度。亮度检测模块247可以在首次被唤醒后,获取门限亮度存储模块253中存储的门限亮度。其中,门限亮度存储模块253中存储的门限亮度可与电子设备的液晶显示器262相对应,可使得液晶显示器262在门限亮度下显示对比度较低或主色调较暗的视频/图片时,用户能够看清显示的画面。After being awakened, the brightness detection module 247 can obtain the backlight brightness issued by the display management service module 223. The brightness detection module 247 can obtain the threshold brightness stored in the threshold brightness storage module 253 after being woken up for the first time. Among them, the threshold brightness stored in the threshold brightness storage module 253 can correspond to the liquid crystal display 262 of the electronic device, so that when the liquid crystal display 262 displays videos/pictures with lower contrast or darker main colors under the threshold brightness, the user can see Clear the displayed screen.

若下发的背光亮度低于门限亮度,则亮度检测模块247可以对下发的背光亮度更改为门限亮度,即下发门限亮度至液晶显示器262。若下发的背光亮度不低于门限亮度,则亮度检测模块247可以不做处理,以不对下发的背光亮度进行更改。If the delivered backlight brightness is lower than the threshold brightness, the brightness detection module 247 can change the delivered backlight brightness to the threshold brightness, that is, deliver the threshold brightness to the liquid crystal display 262 . If the delivered backlight brightness is not lower than the threshold brightness, the brightness detection module 247 may not perform processing so as not to change the delivered backlight brightness.

请参考图2,显示管理服务模块223可以根据三方应用调节、用户手动调节、环境光调光中的至少一种调光方式的调光结果,得到向电子设备屏幕下发的背光亮度。Referring to Figure 2, the display management service module 223 can obtain the backlight brightness sent to the electronic device screen based on the dimming results of at least one of three-party application adjustment, user manual adjustment, and ambient light dimming.

一个实施例中,以根据三方应用调节得到下发的背光亮度为例,若三方应用在暗光环境中生成的背光亮度较高,即下发的背光亮度较高。电子设备在暗光环境下无弹幕全屏播放视频期间,当电子设备播放对比度较低或主色调较暗的视频画面时,图像检测模块246可检测到当前视频画面的灰度和明度中的至少一个小于相应阈值,从而可唤醒亮度检测模块247。亮度检测模块247被唤醒后可以检测到下发的背光亮度不小于门限亮度,则可以无操作以不对下发的背光亮度进行更改,三方应用生成的较高背光亮度进而被下发至电子设备的液晶显示器262。由于液晶显示器262在下发的较高背光亮度下显示对比度较低或主色调较暗的视频画面,则用户能够看得清视频画面。In one embodiment, taking the brightness of the delivered backlight adjusted according to the third-party application as an example, if the backlight brightness generated by the third-party application in a dark light environment is higher, that is, the brightness of the delivered backlight is higher. During the full-screen video playback of the electronic device without barrage in a dark light environment, when the electronic device plays a video picture with a low contrast or a dark main color, the image detection module 246 can detect at least one of the grayscale and brightness of the current video picture. One is less than the corresponding threshold, so that the brightness detection module 247 can be awakened. After the brightness detection module 247 is awakened, it can detect that the delivered backlight brightness is not less than the threshold brightness, and no operation is required to change the delivered backlight brightness. The higher backlight brightness generated by the third-party application is then delivered to the electronic device. LCD 262. Since the liquid crystal display 262 displays a video image with a lower contrast or a darker main tone under the higher backlight brightness, the user can see the video image clearly.

一个实施例中,请参考图5,硬件组合抽象层模块240中还可包括原子提交接口(atomic_commit)242、抠图模块243和噪声处理模块244,以进行已有抠图流程。其中,原子提交接口242可以通知(notify)抠图模块243,以使抠图模块243实时获取电子设备的屏幕所显示的图像以实现实时抠图目的。可行地,抠图模块243还可将获得的图像发送给噪声处理模块244,噪声处理模块244可对接收到的图像进行噪声处理以得到去除噪声后的图像。去除噪声后的图像可被用于与抠图流程相关联的已有后续处理流程中。In one embodiment, please refer to Figure 5. The hardware combination abstraction layer module 240 may also include an atomic commit interface (atomic_commit) 242, a cutout module 243 and a noise processing module 244 to perform the existing cutout process. Among them, the atomic submission interface 242 can notify the cutout module 243, so that the cutout module 243 obtains the image displayed on the screen of the electronic device in real time to achieve the purpose of real-time cutout. Feasibly, the cutout module 243 can also send the obtained image to the noise processing module 244, and the noise processing module 244 can perform noise processing on the received image to obtain a noise-removed image. The noise-removed image can be used in existing subsequent processing processes associated with the matting process.

一种可行实现方式中,图像检测模块246在被唤醒后,可以通过获取抠图模块243最新的抠图结果(即抠图模块243在当前时间之前最后一次抠图的结果),以得到电子设备的屏幕当前所显示的图像,进而计算所得图像的灰度和明度。In a feasible implementation, after being awakened, the image detection module 246 can obtain the latest image-cutting result of the image-cutting module 243 (that is, the last image-cutting result of the image-cutting module 243 before the current time) to obtain the information of the electronic device. The image currently displayed on the screen is used to calculate the grayscale and brightness of the resulting image.

另一种可行实现方式中,图像检测模块246在被唤醒后,可以获取抠图模块243提供的最新抠图结果中各个像素点的通道值,进而根据获取的通道值计算最新抠图结果的灰度和明度。In another possible implementation, after being awakened, the image detection module 246 can obtain the channel values of each pixel in the latest matting result provided by the matting module 243, and then calculate the grayscale of the latest matting result based on the obtained channel values. Degree and lightness.

当电子设备处于全屏视频播放/图片显示场景中时,存在用户在暗光环境下全屏观看对比度较低或主色调较暗的视频/图片的可能,一方面通过所显示图像的灰度和明度与相应阈值的大小对比,来判断电子设备是否处于全屏观看对比度较低或主色调较暗的视频/图片的场景中,如此可仅在用户全屏观看对比度较低或主色调较暗的视频/图片时基于门限亮度进行背光控制,另一方面通过在电子设备处于全屏观看对比度较低或主色调较暗的视频/图片的场景中时,根据门限亮度对下发的背光亮度进行按需更改,以避免下发至液晶显示器262的背光亮度低于门限亮度。如此操作,不仅可以实现基于门限亮度进行背光控制的按需执行(即在设备全屏播放对比度较低或主色调较暗的视频/图片时执行,在设备全屏播放对比度较高或主色调较亮的视频/图片时不执行),还可避免存在暗光环境下用户全屏观看对比度较低或主色调较暗的视频/图片时难以看清显示画面的情况,则用户观看体验好。When the electronic device is in a full-screen video playback/picture display scenario, there is a possibility that the user can watch videos/pictures with low contrast or dark main colors in full screen in a dark light environment. On the one hand, the grayscale and brightness of the displayed image are compared with Compare the size of the corresponding threshold to determine whether the electronic device is in a scene where the user is watching a video/picture with a low contrast or a dark main color in full screen, so that it can only be used when the user is watching a video/picture with a low contrast or a dark main color in the full screen. Backlight control is based on the threshold brightness. On the other hand, when the electronic device is in a scene where the electronic device is in a scene where videos/pictures with low contrast or dark main colors are viewed in full screen, the issued backlight brightness is changed on demand according to the threshold brightness to avoid The backlight brightness sent to the liquid crystal display 262 is lower than the threshold brightness. This operation not only enables on-demand execution of backlight control based on threshold brightness (that is, when the device plays a video/picture with a low contrast or a dark main color in full screen, it will be executed when the device plays a video/picture with a high contrast or a bright main color in the full screen). (not executed for videos/pictures), it can also avoid the situation where it is difficult for users to see the display screen clearly when watching videos/pictures with low contrast or dark main colors in full screen under dark light environments, so the user viewing experience is good.

请参考图6,以优化用户在暗光环境下全屏观看视频时的观看体验为例,本申请一个实施例提供了另一种背光控制方法,该方法还可以包括以下步骤601~步骤611:Please refer to Figure 6. Taking optimizing the user's viewing experience when watching videos in full screen in a dark light environment as an example, one embodiment of the present application provides another backlight control method. The method may also include the following steps 601 to 611:

步骤601,场景识别引擎在监测到电子设备进入观看视频场景时,开启全屏视频事件监听。Step 601: When the scene recognition engine detects that the electronic device enters the video viewing scene, it starts full-screen video event monitoring.

步骤601同上述步骤401,本实施例在此不做赘述。Step 601 is the same as step 401 mentioned above, and will not be described again in this embodiment.

步骤602,视频场景监测模块根据监听结果,确定电子设备是否开始全屏播放视频,若是执行步骤603,否则执行步骤602(即不执行步骤603)。Step 602: The video scene monitoring module determines whether the electronic device starts playing the video in full screen according to the monitoring results. If so, step 603 is executed; otherwise, step 602 is executed (that is, step 603 is not executed).

步骤602同上述步骤402,本实施例在此不做赘述。Step 602 is the same as step 402 mentioned above, and will not be described again in this embodiment.

步骤603,图片检测模块在电子设备的屏幕开始全屏显示图像时,以及在电子设备的屏幕刷新时,获取电子设备的屏幕所显示的图像。Step 603: The image detection module acquires the image displayed on the screen of the electronic device when the screen of the electronic device begins to display the image in full screen and when the screen of the electronic device refreshes.

一个实施例中,电子设备显示的图像可以为图片,比如可以为电子设备拍摄并存储的照片。另一实施例中,电子设备显示的图像可以为视频中的任一帧画面。In one embodiment, the image displayed by the electronic device may be a picture, such as a photo taken and stored by the electronic device. In another embodiment, the image displayed by the electronic device may be any frame in the video.

一个实施例中,可以注册hwc callback(硬件组合抽象层回调函数),在电子设备的屏幕开始全屏显示图像之后每当检测到屏幕刷新,即可重新获取屏幕显示图像进行检测。可行地,屏幕刷新前后所显示的图像可以不同。In one embodiment, an hwc callback (hardware combination abstraction layer callback function) can be registered, and every time a screen refresh is detected after the screen of the electronic device starts to display the image in full screen, the screen display image can be reacquired for detection. Feasibly, the image displayed before and after the screen is refreshed can be different.

一个实施例中,视频场景监测模块可以在确定出电子设备开始全屏播放视频时,唤醒图片检测模块以拉起画面校验。图片检测模块在被唤醒时、以及在被唤醒后的每次屏幕刷新时,均可进行画面校验。为进行画面校验,可获取屏幕当前所显示的图像作为被校验的画面。In one embodiment, the video scene monitoring module may wake up the picture detection module to start picture verification when it is determined that the electronic device starts to play the video in full screen. The picture detection module can perform picture verification when it is awakened and every time the screen is refreshed after being awakened. In order to perform picture verification, the image currently displayed on the screen can be obtained as the picture to be verified.

在电子设备开始全屏播放视频时,不直接唤醒亮度检测模块,而是先唤醒图片检测模块,通过图片检测模块实现对全屏播放暗光画面场景的识别。其中,由图片检测模块检测当前播放画面是否为对比度较低或主色调较暗的画面,若是再唤醒亮度检测模块,而当前播放画面为对比度较高或主色调较亮的画面时则不唤醒亮度检测模块,如此可实现对亮度检测模块的按需有效唤醒。When the electronic device starts to play the video in full screen, it does not directly wake up the brightness detection module, but first wakes up the picture detection module, and uses the picture detection module to realize the recognition of the full screen playback of dark light picture scenes. Among them, the picture detection module detects whether the current playback picture is a picture with a low contrast or a dark main color. If the brightness detection module is awakened, the brightness detection module is not awakened when the current playback picture is a picture with a high contrast or a bright main color. detection module, which can effectively wake up the brightness detection module on demand.

一个实施例中,视频场景监测模块可以在确定出电子设备结束全屏播放视频时,关闭图片检测模块以结束画面校验。In one embodiment, the video scene monitoring module may close the picture detection module to end the picture verification when it is determined that the electronic device has finished playing the video in full screen.

步骤604,图片检测模块获取所获得图像的灰度和明度。Step 604: The image detection module obtains the grayscale and brightness of the obtained image.

一个实施例中,所监听的全屏视频事件具体可以为无弹幕全屏视频事件,如此可以避免弹幕对图像灰度及明度计算的影响。In one embodiment, the monitored full-screen video event may specifically be a full-screen video event without barrage, so as to avoid the impact of barrage on the calculation of image grayscale and brightness.

另一实施例中,所监听的全屏视频事件可以不区分是否有弹幕,且在获取图片的灰度和明度时,无论是否有弹幕,直接获取图像中非弹幕显示区域的灰度和明度。其中,图像的弹幕显示区域和非弹幕显示区域可以预先设定好。In another embodiment, the monitored full-screen video event may not distinguish whether there is a barrage, and when obtaining the grayscale and brightness of the image, regardless of whether there is a barrage or not, the grayscale and brightness of the non-barrage display area in the image are directly obtained. lightness. Among them, the barrage display area and non-barrage display area of the image can be set in advance.

再一实施例中,所监听的全屏视频事件可以不区分是否有弹幕,且在获取图片的灰度和明度时,检测是否有弹幕,若无弹幕可获取图像的灰度和明度,若有弹幕则获取图像中非弹幕显示区域的灰度和明度。In another embodiment, the monitored full-screen video event may not distinguish whether there is a barrage, and when obtaining the grayscale and brightness of the image, it is detected whether there is a barrage. If there is no barrage, the grayscale and brightness of the image can be obtained. If there is barrage, obtain the grayscale and brightness of the non-barrage display area in the image.

步骤605,图片检测模块判断所获得图像的灰度小于预设灰度阈值和所获得图像的明度小于预设明度阈值中的至少一个是否成立,若是执行步骤606,否则执行步骤610(即不执行步骤606)。Step 605: The picture detection module determines whether at least one of the following: the grayscale of the obtained image is less than the preset grayscale threshold and the brightness of the obtained image is less than the preset brightness threshold. If yes, step 606 is executed; otherwise, step 610 is executed (i.e., no execution is performed). Step 606).

若计算出的灰度小于相应阈值和/或明度小于相应阈值,可以认为所获得的图像为对比度较低或主色调较暗画面的图像,该情况下可唤醒亮度检测模块以进行背光亮度的按需控制。If the calculated grayscale is less than the corresponding threshold and/or the brightness is less than the corresponding threshold, the obtained image can be considered to be an image with low contrast or a darker main tone. In this case, the brightness detection module can be awakened to adjust the backlight brightness. Need to control.

若计算出的灰度和明度均不小于相应阈值,可以认为所获得的图像为对比度较高或主色调较亮画面的图像,该情况下可不唤醒亮度检测模块,即不进行背光亮度的按需控制。If the calculated grayscale and brightness are not less than the corresponding threshold, the obtained image can be considered to be an image with a higher contrast or a brighter main tone. In this case, the brightness detection module does not need to be awakened, that is, the backlight brightness will not be adjusted on demand. control.

一种实现方式中,可以通过计算图像的明度实现对图像饱和度的检测,图像的明度可与图像的饱和度成反比。一种实现方式中,可以通过计算图像的灰度实现对图像对比度的检测,图像的灰度可与图像的对比度成反比。In one implementation, the image saturation can be detected by calculating the brightness of the image, and the brightness of the image can be inversely proportional to the saturation of the image. In one implementation, the image contrast can be detected by calculating the grayscale of the image, and the grayscale of the image can be inversely proportional to the contrast of the image.

步骤606,亮度检测模块获取电子设备的显示管理服务模块下发的第一亮度(即显示管理服务模块当前下发的背光亮度,但第一亮度当前尚未被下发至电子设备的屏幕)。Step 606: The brightness detection module obtains the first brightness issued by the display management service module of the electronic device (that is, the backlight brightness currently issued by the display management service module, but the first brightness has not yet been issued to the screen of the electronic device).

一个实施例中,获取到的门限亮度比如可以为20。In one embodiment, the obtained threshold brightness may be 20, for example.

一个实施例中,若计算出的灰度和明度中的至少一个小于相应阈值,则图片检测模块可以唤醒亮度检测模块,亮度检测模块被唤醒后可以执行一次步骤606。In one embodiment, if at least one of the calculated grayscale and brightness is less than the corresponding threshold, the picture detection module can wake up the brightness detection module, and the brightness detection module can perform step 606 once after being awakened.

步骤607,亮度检测模块确定下发的第一亮度是否小于预先获取的与电子设备的屏幕相对应的门限亮度,若是执行步骤608,否则执行步骤610,以向电子设备的屏幕下发第一亮度。Step 607: The brightness detection module determines whether the delivered first brightness is less than the pre-obtained threshold brightness corresponding to the screen of the electronic device. If so, execute step 608; otherwise, execute step 610 to deliver the first brightness to the screen of the electronic device. .

一个实施例中,亮度检测模块可以在首次被唤醒后,获取与电子设备的屏幕相对应的门限亮度,后续再被唤醒时直接使用获取到的门限亮度。In one embodiment, the brightness detection module can obtain the threshold brightness corresponding to the screen of the electronic device after being awakened for the first time, and directly use the obtained threshold brightness when it is awakened subsequently.

步骤608,亮度检测模块将显示管理服务模块下发的背光亮度从第一亮度更改为门限亮度并执行步骤609,以向电子设备的屏幕下发门限亮度。Step 608: The brightness detection module changes the backlight brightness issued by the display management service module from the first brightness to the threshold brightness and executes step 609 to issue the threshold brightness to the screen of the electronic device.

步骤609,亮度下发模块将门限亮度下发至电子设备的屏幕,并执行步骤611。Step 609: The brightness delivery module delivers the threshold brightness to the screen of the electronic device, and executes step 611.

步骤610,亮度下发模块将显示管理服务模块下发的第一亮度下发至电子设备的屏幕,并执行步骤611。Step 610: The brightness delivery module delivers the first brightness delivered by the display management service module to the screen of the electronic device, and executes step 611.

步骤607~步骤610同上述步骤404~步骤407,本实施例在此不做赘述。Steps 607 to 610 are the same as the above-mentioned steps 404 to 407, and will not be described again in this embodiment.

步骤611,场景识别引擎在监测电子设备退出观看视频场景时,关闭全屏视频事件监听。Step 611: The scene recognition engine turns off full-screen video event monitoring when the monitoring electronic device exits the video viewing scene.

一个实施例中,可由电子设备中的场景识别引擎实时监测电子设备所处场景的变化。一种可行实现方式中,电子设备上可以安装有视频应用,用户针对视频应用中所播放视频下发关闭指令时,电子设备可以结束播放相应视频,场景识别引擎此时可以监测到电子设备退出观看视频场景,从而可以关闭全屏视频事件监听。In one embodiment, changes in the scene in which the electronic device is located can be monitored in real time by a scene recognition engine in the electronic device. In one possible implementation, a video application can be installed on the electronic device. When the user issues a close command for the video played in the video application, the electronic device can end playing the corresponding video. At this time, the scene recognition engine can detect that the electronic device has exited viewing. Video scene, so that full-screen video event listening can be turned off.

一个实施例中,在关闭全屏视频事件监听之后,视频场景监测模块可以关闭图片检测模块以结束图片检测。In one embodiment, after turning off full-screen video event monitoring, the video scene monitoring module can turn off the picture detection module to end picture detection.

图6所示实施例在电子设备全屏播放视频期间,通过所显示图像的灰度和明度与相应阈值的大小对比,来判断电子设备是否处于全屏观看对比度较低或主色调较暗的视频的场景中,如此可仅在用户全屏观看对比度较低或主色调较暗的视频时基于门限亮度进行背光控制,以实现基于门限亮度进行背光控制的按需执行。In the embodiment shown in FIG. 6 , when the electronic device plays a video in full screen, the grayscale and brightness of the displayed image are compared with the corresponding threshold to determine whether the electronic device is in a scene of watching a video with low contrast or a dark main color in full screen. In this way, backlight control can only be performed based on the threshold brightness when the user is watching a video with low contrast or dark main colors in full screen, thereby enabling on-demand execution of backlight control based on the threshold brightness.

图6所示实施例在电子设备全屏播放视频期间,通过在电子设备处于全屏观看对比度较低或主色调较暗的视频的场景中时,根据门限亮度对下发的背光亮度进行按需更改,以避免下发至电子设备屏幕的背光亮度低于门限亮度,如此可避免存在暗光环境下用户全屏观看对比度较低或主色调较暗的视频时难以看清显示画面的情况,则用户观看体验好。The embodiment shown in Figure 6 changes the backlight brightness on demand according to the threshold brightness when the electronic device is in a scene where the electronic device is watching a video with a low contrast or a dark main color in full screen during full-screen video playback. This prevents the backlight brightness sent to the screen of the electronic device from being lower than the threshold brightness. This avoids the situation where it is difficult for users to see the display clearly when watching videos with low contrast or dark main colors in full-screen under dark light environments, which will degrade the user viewing experience. good.

请参考图7,本申请一个实施例提供了一种场景识别的时序图,场景识别的实现过程可以包括以下步骤701~步骤708:Please refer to Figure 7. An embodiment of the present application provides a sequence diagram of scene recognition. The implementation process of scene recognition may include the following steps 701 to 708:

步骤701,场景识别引擎225识别电子设备是否进入无弹幕全屏视频播放场景。Step 701: The scene recognition engine 225 identifies whether the electronic device enters a full-screen video playback scene without barrage.

步骤702,场景识别引擎225根据全屏播放视频并关闭弹幕的操作,识别到电子设备进入无弹幕全屏视频播放场景时,向视频场景监测模块245下发通知:id=1。Step 702: Based on the operation of playing the video in full screen and closing the barrage, the scene recognition engine 225 recognizes that when the electronic device enters the full-screen video playback scene without barrage, it sends a notification: id=1 to the video scene monitoring module 245.

一种可行实现方式中,用户可以通过操作电子设备的触摸屏,以执行全屏播放视频并关闭弹幕的操作。In one possible implementation, the user can operate the touch screen of the electronic device to perform the operation of playing the video in full screen and closing the barrage.

步骤703,视频场景监测模块245判断场景识别引擎225下发的id是否为1。Step 703: The video scene monitoring module 245 determines whether the id issued by the scene recognition engine 225 is 1.

步骤704,视频场景监测模块245在判断出场景识别引擎225下发的id为1时,唤醒图像检测模块246。Step 704: When the video scene monitoring module 245 determines that the id issued by the scene recognition engine 225 is 1, it wakes up the image detection module 246.

视频场景监测模块245在判断出下发的id为1时,可以确定电子设备进入无弹幕全屏视频播放场景,从而可以唤醒图像检测模块246以拉起画面校验。When the video scene monitoring module 245 determines that the issued id is 1, it can determine that the electronic device has entered a full-screen video playback scene without barrage, and thus can wake up the image detection module 246 to initiate screen verification.

步骤705,场景识别引擎225识别电子设备是否退出无弹幕全屏视频播放场景。Step 705: The scene recognition engine 225 identifies whether the electronic device exits the full-screen video playback scene without barrage.

步骤706,场景识别引擎225根据退出全屏播放视频或打开弹幕的操作,识别到电子设备退出无弹幕全屏视频播放场景时,向视频场景监测模块245下发通知:id=0。Step 706: The scene recognition engine 225 recognizes that the electronic device exits the full-screen video playback scene without barrage based on the operation of exiting the full-screen video playback or opening the barrage, and sends a notification: id=0 to the video scene monitoring module 245.

一种可行实现方式中,用户可以通过操作电子设备的触摸屏,以执行退出全屏播放视频、打开弹幕的操作。In one possible implementation, the user can operate the touch screen of the electronic device to exit the full-screen video playback and open the barrage.

步骤707,视频场景监测模块245判断场景识别引擎225下发的id是否为0。Step 707: The video scene monitoring module 245 determines whether the id issued by the scene recognition engine 225 is 0.

步骤708,视频场景监测模块245在判断出场景识别引擎225下发的id为0时,关闭图像检测模块246。Step 708: When the video scene monitoring module 245 determines that the id issued by the scene recognition engine 225 is 0, it closes the image detection module 246.

视频场景监测模块245在判断出下发的id为0时,可以确定电子设备退出无弹幕全屏视频播放场景,从而可以关闭图像检测模块246以结束画面校验。When the video scene monitoring module 245 determines that the issued id is 0, it can determine that the electronic device exits the full-screen video playback scene without barrage, so that the image detection module 246 can be closed to end the picture verification.

一种可行实现方式中,用于实现场景识别的代码程序可以包括以下内容:In a feasible implementation, the code program used to implement scene recognition may include the following:

enum class VIDEO_MODE :int32_t{enum class VIDEO_MODE :int32_t{

ENTER_VIDEO = 1, ENTER_VIDEO = 1,

EXIT_VIDEO = 0 EXIT_VIDEO = 0

};};

static int videoholding_prepare(VIDEO_MODE cur_mode) { static int videoholding_prepare(VIDEO_MODE cur_mode) {

int res; int res;

switch (cur_mode) { switch (cur_mode) {

case VIDEO_MODE:: ENTER_VIDEO: case VIDEO_MODE:: ENTER_VIDEO:

res = 1; res = 1;

break; break;

case VIDEO_MODE:: EXIT_VIDEO: case VIDEO_MODE:: EXIT_VIDEO:

res = 0; res = 0;

break; break;

default: default:

/* -1: invalid*/ /* -1: invalid*/

res = -1; res = -1;

break; break;

} }

return res; return res;

} }

请参考图8,本申请一个实施例提供了一种唤醒、结束图像检测模块的时序图,唤醒、结束图像检测模块的实现过程可以包括以下步骤801~步骤804:Please refer to Figure 8. One embodiment of the present application provides a sequence diagram for waking up and ending the image detection module. The implementation process of waking up and ending the image detection module may include the following steps 801 to 804:

步骤801,视频保持准备线程(videoholding_prepare)2451在视频场景监测模块245接收到场景识别引擎225发来的表示电子设备进入无弹幕全屏视频播放场景的信号时,向视频保持检查线程(videoholding_check)2452发送第一标识。Step 801, when the video holding preparation thread (videoholding_prepare) 2451 receives a signal from the scene recognition engine 225 indicating that the electronic device enters a full-screen video playback scene without barrage, the video scene monitoring module 245 sends a signal to the video holding checking thread (videoholding_check) 2452. Send the first identification.

视频场景监测模块245可以包括视频保持准备线程2451和视频保持检查线程2452。The video scene monitoring module 245 may include a video hold preparation thread 2451 and a video hold check thread 2452.

一个实施例中,第一标识比如可以为res=1。res可以表示事件。In one embodiment, the first identifier may be res=1, for example. res can represent events.

步骤802,视频保持检查线程2452在接收到第一标识时,拉起视频图像检查线程(videoimage_check)2461。Step 802: When receiving the first identification, the video retention check thread 2452 starts the video image check thread (videoimage_check) 2461.

图像检测模块246可以包括视频图像检查线程2461,可通过视频保持检查线程2452拉起视频图像检查线程2461,以唤醒图像检测模块246。The image detection module 246 may include a video image check thread 2461, which may be pulled up through the video hold check thread 2452 to wake up the image detection module 246.

步骤803,视频保持准备线程2451在视频场景监测模块245接收到场景识别引擎225发来的表示电子设备进入无弹幕全屏视频播放场景的信号时,向视频保持检查线程2452发送第二标识。Step 803: When the video scene monitoring module 245 receives a signal from the scene recognition engine 225 indicating that the electronic device enters a full-screen video playback scene without barrage, the video retention preparation thread 2451 sends a second identification to the video retention check thread 2452.

一个实施例中,第二标识比如可以为res=0。In one embodiment, the second identifier may be res=0, for example.

步骤804,视频保持检查线程2452在接收到第二标识时,结束视频图像检查线程2461。Step 804: When the video retention check thread 2452 receives the second identification, it ends the video image check thread 2461.

图8所示实施例中,视频场景监测模块245在收到场景识别引擎225下发的表示电子设备进入无弹幕全屏视频播放场景的信号时,启动线程videoimage_check,如此可实现唤醒图像检测模块246的目的,以及在收到场景识别引擎225下发的表示电子设备退出无弹幕全屏视频播放场景的信号时,结束线程videoimage_check,如此可实现结束图像检测模块246的目的。In the embodiment shown in FIG. 8 , the video scene monitoring module 245 starts the thread videoimage_check when receiving a signal from the scene recognition engine 225 indicating that the electronic device enters a full-screen video playback scene without barrage, so that the image detection module 246 can be woken up. purpose, and when receiving a signal from the scene recognition engine 225 indicating that the electronic device exits the full-screen video playback scene without barrage, the thread videoimage_check is terminated, so that the purpose of ending the image detection module 246 can be achieved.

一种可行实现方式中,用于实现唤醒、结束图像检测模块的代码程序可以包括以下内容:In a feasible implementation, the code program used to wake up and end the image detection module may include the following:

static int videoholding_thread(int cur_res) {static int videoholding_thread(int cur_res) {

if(cur_res == 1){ if(cur_res == 1){

int ret = pthread_create(&mThread, nullptr, videoimage_check, static_cast<void*>(this)); int ret = pthread_create(&mThread, nullptr, videoimage_check, static_cast<void*>(this));

if (ret) { if (ret) {

is_thread_running_ = false; is_thread_running_ = false;

LOGE("pthread_create failed, return %d", ret); LOGE("pthread_create failed, return %d", ret);

} }

else { else {

LOGI("Create thread success."); LOGI("Create thread success.");

} }

} }

else if (cur_res == 0){ else if (cur_res == 0){

int ret = pthread_cancel(mThread); int ret = pthread_cancel(mThread);

if (ret) { if (ret) {

LOGE("pthread_cancel failed, return %d", ret); LOGE("pthread_cancel failed, return %d", ret);

} }

else { else {

LOGI("cancel thread success."); LOGI("cancel thread success.");

} }

} }

else{ else{

LOGI("Error status %d.",cur_res) LOGI("Error status %d.",cur_res)

} }

return ret; return ret;

}}

在本申请一个实施例中,请参考图5及图8,图像检测模块246进行图像检测的实现过程可以包括:In one embodiment of the present application, please refer to Figures 5 and 8. The implementation process of image detection by the image detection module 246 may include:

当图像检测模块246中的视频图像检查线程2461启动后,可以获取抠图模块243最新的抠图结果(比如可以为电子设备当前显示的图像),并计算最新抠图结果的明度和灰度。计算得到的明度和灰度可记录为res数组:res[0]、res[1]。其中,res[0]可对应于明度,可用于记录计算得到的明度,res[1]可对应于灰度,可用于记录计算得到的灰度。When the video image inspection thread 2461 in the image detection module 246 is started, the latest matting result of the matting module 243 can be obtained (for example, it can be the image currently displayed by the electronic device), and the brightness and grayscale of the latest matting result can be calculated. The calculated brightness and grayscale can be recorded as res array: res[0], res[1]. Among them, res[0] can correspond to the brightness and can be used to record the calculated brightness, and res[1] can correspond to the grayscale and can be used to record the calculated grayscale.

在得到res数组后,可以将res数组与预设的明度阈值(比如记作standard_brightness,即明度标准值)、灰度阈值(比如记作standard_gray,即灰度标准值)进行比较。After obtaining the res array, the res array can be compared with the preset brightness threshold (for example, recorded as standard_brightness, that is, the brightness standard value) and the grayscale threshold (for example, recorded as standard_gray, that is, the grayscale standard value).

一个实施例中,可将明度和灰度的标准值(即明度阈值和灰度阈值)以数组形式保存在standard(标准值)数组中,其中standard[0]表示明度的标准值、 standard[1]表示灰度的标准值。In one embodiment, the standard values of brightness and grayscale (i.e., brightness threshold and grayscale threshold) can be stored in the standard (standard value) array in the form of an array, where standard[0] represents the standard value of brightness, standard[1 ] represents the standard value of grayscale.

若res数组中的任一值小于相应阈值,即可表示电子设备当前显示的图像为对比度较低或主色调较暗的图像,如此可拉起亮度检测模块247。若res数组中的每一值均不小于相应阈值,即可表示电子设备当前显示的图像不为对比度较低或主色调较暗的图像,如此可无操作,不拉起亮度检测模块247。If any value in the res array is less than the corresponding threshold, it means that the image currently displayed by the electronic device is an image with a low contrast or a dark main color, so the brightness detection module 247 can be started. If each value in the res array is not less than the corresponding threshold, it means that the image currently displayed by the electronic device is not an image with low contrast or a dark main color, so no operation is required and the brightness detection module 247 is not activated.

一种可行实现方式中,用于实现图像检测的代码程序可以包括以下内容:In a feasible implementation, the code program used to implement image detection may include the following:

//获取抠图结果//Get the cutout results

const float Standard_brightness ;const float Standard_brightness;

const float Standard_gray;const float Standard_gray;

static int videoimage_check ( ) {static int videoimage_check ( ) {

uint8_t *cur_cwb_buffer=(uint8_t*)builtin_display.output_buffer_bases[index]; uint8_t *cur_cwb_buffer=(uint8_t*)builtin_display.output_buffer_bases[index];

auto data = GenerateUint32PixelData(cur_cwb_buffer); auto data = GenerateUint32PixelData(cur_cwb_buffer);

}}

在本申请一个实施例中,用于计算图像明度的实现方式可以为:分别获取图像中各个像素点的多个通道值(比如RGB三通道值),根据图像中各个像素点的多个通道值计算图像中各个像素点的明度,之后根据图像中各个像素点的明度计算明度均值,以得到的明度均值作为图像的明度。或者还可先对图像中各个像素点的明度进行处理以排除空白数据,再计算明度均值,以得到的明度均值作为图像的明度。In one embodiment of the present application, the implementation method for calculating the brightness of an image can be: obtaining multiple channel values (such as RGB three-channel values) of each pixel in the image, and based on the multiple channel values of each pixel in the image Calculate the brightness of each pixel in the image, and then calculate the average brightness based on the brightness of each pixel in the image, and use the obtained average brightness as the brightness of the image. Alternatively, the brightness of each pixel in the image can be processed first to exclude blank data, and then the average brightness can be calculated, and the obtained average brightness can be used as the brightness of the image.

在图像处理中,所使用的HSV颜色空间可以比RGB颜色空间更接近人们对彩色的感知经验,HSV颜色空间可以非常直观地表达颜色的色调、鲜艳程度和明暗程度。其中,H(Hue)可表示色调,S(Saturation)可表示饱和度,V(Value)可表示亮度(或称明度)。In image processing, the HSV color space used can be closer to people's perception of color than the RGB color space. The HSV color space can express the hue, vividness and lightness of the color very intuitively. Among them, H (Hue) can represent hue, S (Saturation) can represent saturation, and V (Value) can represent brightness (or brightness).

在一个实施例中,根据像素点的RGB三通道值获取像素点明度的实现方式可以为:根据像素点的RGB三通道值,并结合预设的颜色空间转换规则或颜色空间转换工具,转换得到像素点的V值,并以转换得到的像素点的V值作为获取到的像素点的明度。其中,根据像素点的RGB三通道值并结合预设的转换规则或转换工具,可以转换得到像素点的HSV值(H值、S值和V值)。In one embodiment, the implementation method of obtaining the brightness of a pixel according to the RGB three-channel value of the pixel can be: according to the RGB three-channel value of the pixel, combined with the preset color space conversion rules or color space conversion tools, the conversion is The V value of the pixel, and the converted V value of the pixel is used as the obtained brightness of the pixel. Among them, according to the RGB three-channel value of the pixel and combined with the preset conversion rules or conversion tools, the HSV value (H value, S value and V value) of the pixel can be converted.

在本申请一个实施例中,用于计算图像灰度的实现方式可以为:分别获取图像中各个像素点的多个通道值(比如RGB三通道值),根据图像中各个像素点的多个通道值,计算图像中各个像素点的灰度,之后根据图像中各个像素点的灰度计算灰度均值,以得到的灰度均值作为图像的灰度。In an embodiment of the present application, the implementation method for calculating the grayscale of an image can be: obtaining multiple channel values (such as RGB three-channel values) of each pixel in the image, and based on the multiple channels of each pixel in the image. value, calculate the grayscale of each pixel in the image, and then calculate the grayscale mean based on the grayscale of each pixel in the image, and use the obtained grayscale mean as the grayscale of the image.

一个实施例中,根据像素点的RGB三通道值计算像素点灰度的计算公式可以为:Gray scale =0.2126 * r + 0.7152 * g + 0.0722 * b。其中,Gray scale可表示灰度,r可表示R通道的值,g可表示G通道的值,b可表示B通道的值。In one embodiment, the calculation formula for calculating the grayscale of a pixel based on the RGB three-channel value of the pixel can be: Gray scale =0.2126 * r + 0.7152 * g + 0.0722 * b. Among them, Gray scale can represent grayscale, r can represent the value of R channel, g can represent the value of G channel, and b can represent the value of B channel.

在本申请一个实施例中,请参考图5及图8,图像检测模块唤醒、关闭亮度检测模块的实现过程可以包括:In one embodiment of the present application, please refer to Figures 5 and 8. The implementation process of the image detection module waking up and turning off the brightness detection module may include:

图像检测模块246可以在视频图像检查线程2461被拉起时,将电子设备屏幕当前所显示图像的明度和灰度与相应阈值进行对比,若电子设备屏幕当前所显示图像的明度和灰度中的至少一个小于相应阈值时,则拉起亮度检测模块247中的亮度检测线程,以唤醒亮度检测模块247。The image detection module 246 can compare the brightness and grayscale of the image currently displayed on the electronic device screen with the corresponding threshold when the video image check thread 2461 is pulled up. If the brightness and grayscale of the image currently displayed on the electronic device screen are When at least one is less than the corresponding threshold, the brightness detection thread in the brightness detection module 247 is pulled up to wake up the brightness detection module 247 .

亮度检测模块247在亮度检测线程被拉起后可以基于门限亮度进行亮度检测,且每次完成亮度检测后可阻塞亮度检测线程,并等待下次拉起后再次进行亮度检测。The brightness detection module 247 can perform brightness detection based on the threshold brightness after the brightness detection thread is pulled up, and can block the brightness detection thread after completing the brightness detection each time, and wait for the next time it is pulled up to perform brightness detection again.

图像检测模块246可以在视频图像检查线程2461结束时,检测亮度检测线程是否存在,若存在则结束亮度检测线程,以关闭亮度检测模块247。The image detection module 246 may detect whether the brightness detection thread exists when the video image checking thread 2461 ends, and if it exists, end the brightness detection thread to close the brightness detection module 247.

一种可行实现方式中,用于实现图像检测模块唤醒、关闭亮度检测模块的代码程序可以包括以下内容:In a feasible implementation, the code program used to wake up the image detection module and turn off the brightness detection module may include the following:

static int lightcheck_thread(int cur_res) {static int lightcheck_thread(int cur_res) {

if(cur_res == 1){ if(cur_res == 1){

int ret = pthread_create(&mThread, nullptr, lightcheck ,static_cast<void*>(this)); int ret = pthread_create(&mThread, nullptr, lightcheck ,static_cast<void*>(this));

if (ret) { if (ret) {

is_thread_running_ = false; is_thread_running_ = false;

LOGE("pthread_create failed, return %d", ret); LOGE("pthread_create failed, return %d", ret);

} }

else { else {

LOGI("Createthread success."); LOGI("Createthread success.");

} }

} }

else if (cur_res == 0){ else if (cur_res == 0){

int ret = pthread_cancel(mThread); int ret = pthread_cancel(mThread);

if (ret) { if (ret) {

LOGE("pthread_cancel failed, return %d", ret); LOGE("pthread_cancel failed, return %d", ret);

} }

else { else {

LOGI("cancel thread success."); LOGI("cancel thread success.");

} }

} }

else{ else{

LOGI("Error status %d.",cur_res) LOGI("Error status %d.",cur_res)

} }

return ret; return ret;

}}

在本申请一个实施例中,请参考图5,亮度检测模块进行亮度检测的实现过程可以包括:In one embodiment of the present application, please refer to Figure 5. The implementation process of brightness detection by the brightness detection module may include:

亮度检测模块247在被唤醒后,可以获取存储在门限亮度存储模块253中的门限亮度。比如一个实施例中,可以存储qcom,mdss-dsi-bl-video-min-level =<20>(表示门限亮度为20),“qcom,mdss-dsi-bl-video-min-level”可表示门限亮度的自定义标识。After being awakened, the brightness detection module 247 can obtain the threshold brightness stored in the threshold brightness storage module 253 . For example, in one embodiment, qcom,mdss-dsi-bl-video-min-level =<20> (indicating that the threshold brightness is 20) can be stored, and "qcom,mdss-dsi-bl-video-min-level" can mean Custom flag for threshold brightness.

一个实施例中,可以通过lcd驱动读取门限亮度存储模块253中存储的门限亮度数据。In one embodiment, the threshold brightness data stored in the threshold brightness storage module 253 can be read through an LCD driver.

若显示管理服务模块223下发的背光亮度低于门限亮度,则亮度检测模块247可以将下发的背光亮度更改为门限亮度,即下发门限亮度至液晶显示器262。若显示管理服务模块223下发的背光亮度不低于门限亮度,则亮度检测模块247可以不做处理,以不对下发的背光亮度进行更改。If the backlight brightness delivered by the display management service module 223 is lower than the threshold brightness, the brightness detection module 247 can change the delivered backlight brightness to the threshold brightness, that is, deliver the threshold brightness to the liquid crystal display 262 . If the backlight brightness issued by the display management service module 223 is not lower than the threshold brightness, the brightness detection module 247 may not perform processing so as not to change the backlight brightness issued.

一个实施例中,可以注册监听器,以对setDisplayBrightness(设置显示亮度)函数进行监听,通过监听setDisplayBrightness函数获取显示管理服务模块223下发的背光亮度。一个实施例中,请参考图5,可以通过注册监听器,获取进入亮度下发模块241中的背光亮度。In one embodiment, a listener can be registered to monitor the setDisplayBrightness (set display brightness) function, and obtain the backlight brightness issued by the display management service module 223 by monitoring the setDisplayBrightness function. In one embodiment, please refer to Figure 5. The backlight brightness entering the brightness delivery module 241 can be obtained by registering a listener.

当下发的背光亮度小于门限亮度时,则将下发的背光亮度更改为门限亮度以实现重新下发背光亮度的目的;当下发的背光亮度大于门限亮度时,则不做任何操作,无需重新下发背光亮度。When the issued backlight brightness is less than the threshold brightness, the issued backlight brightness is changed to the threshold brightness to achieve the purpose of re-delivering the backlight brightness; when the issued backlight brightness is greater than the threshold brightness, no operation is performed and there is no need to download again. Send backlight brightness.

一种可行实现方式中,用于实现图像检测模块唤醒、关闭亮度检测模块的代码程序可以包括以下内容:In a feasible implementation, the code program used to wake up the image detection module and turn off the brightness detection module may include the following:

static int dsi_panel_parse_bl_config(struct dsi_panel *panel)static int dsi_panel_parse_bl_config(struct dsi_panel *panel)

{ {

int rc = 0; int rc = 0;

struct dsi_parser_utils *utils =&panel->utils; struct dsi_parser_utils *utils =&panel->utils;

rc = utils->read_u32(utils->data, "qcom,mdss-dsi-bl-video-min-level",&val); rc = utils->read_u32(utils->data, "qcom,mdss-dsi-bl-video-min-level",&val);

if (rc) { if (rc) {

DSI_DEBUG("[%s]video-bl-min-level unspecified, defaulting tozero\n", DSI_DEBUG("[%s]video-bl-min-level unspecified, defaulting tozero\n",

panel->name); panel->name);

panel->video_bl_config.bl_min_level = 0; panel->video_bl_config.bl_min_level = 0;

} else { } else {

panel->video_config.bl_min_level = val; panel->video_config.bl_min_level = val;

} }} }

请参考图9,本申请一个实施例提供了一种测试门限亮度的实现方式,可以包括以下步骤901~步骤906:Please refer to Figure 9. One embodiment of the present application provides an implementation method for testing threshold brightness, which may include the following steps 901 to 906:

步骤901,将测试设备和相机置于实验室无光环境中。Step 901: Place the test equipment and camera in a lightless environment of the laboratory.

一个实施例中,可以通过自动化放置装置将测试设备和相机分别自动放置值预设指定位置。另一实施例中,还可人为放置测试设备和相机。In one embodiment, the test equipment and the camera can be automatically placed at preset designated positions through an automated placement device. In another embodiment, the test equipment and camera can also be placed manually.

一个实施例中,测试设备的设备类型可以为手机。In one embodiment, the device type of the test device may be a mobile phone.

一个实施例中,测试用的相机可以为高速相机。In one embodiment, the camera used for testing may be a high-speed camera.

步骤902,将测试设备的背光亮度调整为最低背光亮度,其中,测试设备处于全屏显示预设图像的状态。Step 902: Adjust the backlight brightness of the test device to the lowest backlight brightness, where the test device is in a state of displaying a preset image in full screen.

该预设图像可以为对比度较低或主色调较暗的图像。在测试设备的背光亮度为最低背光亮度并全屏显示预设图像时,用户通常无法看清测试设备所显示的预设图像。The preset image can be an image with lower contrast or a darker main color. When the backlight brightness of the test device is the minimum backlight brightness and the preset image is displayed in full screen, the user usually cannot clearly see the preset image displayed by the test device.

一个实施例中,测试设备的背光亮度的初始设置值可以为最低背光亮度。In one embodiment, the initial setting value of the backlight brightness of the test device may be the lowest backlight brightness.

步骤903,获取相机通过拍摄测试设备的屏幕所得照片。Step 903: Obtain photos taken by the camera by shooting the screen of the test device.

在每次调整测试设备的背光亮度后,可以通过相机拍摄测试设备的屏幕。After each adjustment of the backlight brightness of the test device, the screen of the test device can be photographed through the camera.

步骤904,确认拍摄所得照片的清晰度是否符合预期,若是执行步骤905,否则执行步骤906。Step 904: Confirm whether the clarity of the photograph is as expected. If yes, execute step 905; otherwise, execute step 906.

一个实施例中,可通过自动化识别装置,自动确认照片中关于测试设备屏幕显示内容的部分是否清晰可见,若清晰可见则符合预期,否则不符合预期。比如可以计算照片的清晰度,并与预设的清晰度阈值进行对比,以判定照片清晰度是否符合预期。In one embodiment, an automated recognition device can be used to automatically confirm whether the part of the photo that is related to the display content on the screen of the test device is clearly visible. If it is clearly visible, it is in line with expectations; otherwise, it is not in line with expectations. For example, you can calculate the sharpness of a photo and compare it with a preset sharpness threshold to determine whether the photo's sharpness meets expectations.

另一实施例中,还可人为确认照片内容是否清晰可见。In another embodiment, you can also manually confirm whether the photo content is clearly visible.

步骤905,记录测试设备当前的背光亮度为测试设备对应的门限亮度。Step 905: Record the current backlight brightness of the test device as the threshold brightness corresponding to the test device.

对于与测试设备具有相同屏幕构造(比如相同LCD模组)的其他电子设备,该其他电子设备对应的门限亮度可以为测试设备对应的门限亮度。For other electronic devices with the same screen structure (such as the same LCD module) as the test device, the threshold brightness corresponding to the other electronic devices can be the threshold brightness corresponding to the test device.

一个实施例中,可以将具有不同LCD模组的设备分别作为测试设备来测试门限亮度,如此可得到各种LCD模组的设备所对应的门限亮度。一种可行实现方式中,可将获得的门限亮度保存于对应LCD模组的dtsi文件(device tree source include文件,或称设备树头文件)中。In one embodiment, devices with different LCD modules can be used as test devices to test threshold brightness, so that threshold brightness corresponding to devices with various LCD modules can be obtained. In a feasible implementation method, the obtained threshold brightness can be saved in the dtsi file (device tree source include file, or device tree header file) of the corresponding LCD module.

步骤906,根据设定步长增加测试设备的背光亮度,并执行步骤903。Step 906: Increase the backlight brightness of the test device according to the set step size, and execute step 903.

一个实施例中,设定步长可以为10,以使增加后的背光亮度大于增加前的背光亮度,且两者间差值为10。In one embodiment, the step size may be set to 10, so that the backlight brightness after the increase is greater than the backlight brightness before the increase, and the difference between the two is 10.

请参考图10,本申请一个实施例提供了又一种背光控制方法,该方法还可以包括以下步骤1001~步骤1002:Please refer to Figure 10. An embodiment of the present application provides yet another backlight control method. The method may also include the following steps 1001 to 1002:

步骤1001,在电子设备的屏幕处于全屏显示图像状态的情况下,获取电子设备的第一模块下发的第一亮度(第一亮度当前尚未被下发至电子设备的屏幕),第一模块用于向电子设备的屏幕下发背光亮度。Step 1001: When the screen of the electronic device is in a full-screen image display state, obtain the first brightness issued by the first module of the electronic device (the first brightness has not yet been issued to the screen of the electronic device), and the first module uses Used to emit backlight brightness to the screen of electronic devices.

一个实施例中,第一模块可以为图5所示的显示管理服务模块223。In one embodiment, the first module may be the display management service module 223 shown in FIG. 5 .

在本申请一个实施例中,第一亮度基于电子设备中的三方应用所得背光亮度、电子设备接收到的背光亮度调节指令、与电子设备所处环境的环境光照度相对应的背光亮度中的至少一个得到。In one embodiment of the present application, the first brightness is based on at least one of the backlight brightness obtained by three-party applications in the electronic device, the backlight brightness adjustment instruction received by the electronic device, and the backlight brightness corresponding to the ambient illumination of the environment in which the electronic device is located. get.

通过首先基于至少一种调光方法得到适宜的背光亮度,再基于所得背光亮度和门限亮度的对比,对下发至设备屏幕的背光亮度进行按需优化,如此可下发更为适宜的背光亮度。By first obtaining an appropriate backlight brightness based on at least one dimming method, and then optimizing the backlight brightness delivered to the device screen based on the comparison between the obtained backlight brightness and the threshold brightness, as needed, a more appropriate backlight brightness can be delivered. .

比如,电子设备全屏显示图像时,即使环境光调光或手动调节背光亮度至最低背光亮度,而实际下发至屏幕的背光亮度可为高于最低背光亮度的门限亮度,如此可避免出现设备在最低背光亮度下全屏显示低对比度或暗光图像时,用户难以看清图像内容的情况。电子设备退出全屏显示图像时,则恢复下发最低背光亮度。For example, when an electronic device displays an image in full screen, even if the ambient light is dimmed or the backlight brightness is manually adjusted to the minimum backlight brightness, the backlight brightness actually sent to the screen can be a threshold brightness higher than the minimum backlight brightness. This can avoid the occurrence of the device being in the dark. When a low-contrast or dark-light image is displayed in full screen at the lowest backlight brightness, it is difficult for users to see the image content clearly. When the electronic device exits full-screen image display, it resumes issuing the lowest backlight brightness.

在本申请一个实施例中,背光控制方法还可以包括:监测电子设备是否处于全屏视频播放场景;监测电子设备是否处于全屏图片显示场景;其中,电子设备的屏幕处于全屏显示图像状态的情况包括:电子设备处于全屏视频播放场景和电子设备处于全屏图片显示场景中的任一场景的情况。In one embodiment of the present application, the backlight control method may further include: monitoring whether the electronic device is in a full-screen video playback scene; monitoring whether the electronic device is in a full-screen picture display scene; wherein the situation where the screen of the electronic device is in a full-screen image display state includes: The electronic device is in either a full-screen video playback scene or a full-screen picture display scene.

若电子设备处于非全屏播放视频的视频播放场景,则电子设备的屏幕没有处于全屏显示图像状态。若电子设备处于非全屏显示图片的图片显示场景(比如电子设备打开图库应用后显示图片缩略图的场景),则电子设备的屏幕没有处于全屏显示图像状态。If the electronic device is in a video playback scene other than full-screen video playback, the screen of the electronic device is not in a full-screen image display state. If the electronic device is in a picture display scene that does not display pictures in full screen (such as a scene in which the electronic device displays picture thumbnails after opening a gallery application), the screen of the electronic device is not in a state of displaying images in full screen.

通过一并监测全屏视频播放场景和全屏图片显示场景,可以实现对全屏显示图像场景的按需准确监测,从而可实现背光控制的按需准确执行。By monitoring the full-screen video playback scene and the full-screen picture display scene together, the full-screen display image scene can be accurately monitored on demand, thereby enabling accurate on-demand execution of backlight control.

一个实施例中,可以在确定出电子设备进入视频播放场景(比如打开视频应用)后,监测电子设备是否处于全屏视频播放场景。如此,可实现全屏视频播放场景的按需准确监测。In one embodiment, after it is determined that the electronic device enters the video playback scene (such as opening a video application), it can be monitored whether the electronic device is in the full-screen video playback scene. In this way, on-demand and accurate monitoring of full-screen video playback scenarios can be achieved.

一个实施例中,可以在确定出电子设备进入图片显示场景(比如打开图库应用)后,监测电子设备是否处于全屏图片显示场景。如此,可实现全屏图片显示场景的按需准确监测。In one embodiment, after determining that the electronic device enters a picture display scene (such as opening a gallery application), it may be monitored whether the electronic device is in a full-screen picture display scene. In this way, on-demand accurate monitoring of full-screen picture display scenes can be achieved.

步骤1002,在第一亮度小于预先设定的与电子设备的屏幕相对应的门限亮度的情况下,执行第一操作使得下发至电子设备的屏幕的背光亮度为门限亮度。Step 1002: When the first brightness is less than a preset threshold brightness corresponding to the screen of the electronic device, perform a first operation so that the backlight brightness sent to the screen of the electronic device reaches the threshold brightness.

可行地,第一操作可以为将第一亮度更改为门限亮度的操作,以对向电子设备屏幕下发的背光亮度进行控制。一个实施例中,第一操作可以为将显示管理服务模块下发至亮度下发模块中的第一亮度更改为门限亮度的背光亮度更改操作,以使亮度下发模块将更改后的背光亮度即门限亮度下发至电子设备的屏幕。Feasibly, the first operation may be an operation of changing the first brightness to a threshold brightness to control the backlight brightness delivered to the screen of the electronic device. In one embodiment, the first operation may be a backlight brightness changing operation of changing the first brightness in the brightness delivery module sent by the display management service module to the threshold brightness, so that the brightness delivery module will change the changed backlight brightness. The threshold brightness is sent to the screen of the electronic device.

一个实施例中,在第一亮度不小于门限亮度的情况下,可以结束当前流程以不对第一模块向电子设备屏幕下发的背光亮度进行控制,使得第一模块向电子设备的屏幕下发的背光亮度为第一亮度。即在对第一模块下发的背光亮度进行更改的情况下,更改后的背光亮度被下发至电子设备的屏幕,在不对第一模块下发的背光亮度进行更改的情况下,第一模块下发的背光亮度被下发至电子设备的屏幕。In one embodiment, when the first brightness is not less than the threshold brightness, the current process can be ended without controlling the backlight brightness sent by the first module to the screen of the electronic device, so that the backlight brightness sent by the first module to the screen of the electronic device is The backlight brightness is the first brightness. That is, when the backlight brightness sent by the first module is changed, the changed backlight brightness is sent to the screen of the electronic device. When the backlight brightness sent by the first module is not changed, the first module The delivered backlight brightness is delivered to the screen of the electronic device.

在本申请一个实施例中,门限亮度为测试设备的、使得第一图像的清晰度符合预期的最小背光亮度;其中,测试设备的屏幕和电子设备的屏幕具有同种构造(比如具有同种LCD模组);第一图像为在测试设备和相机均处于同一无光环境、且测试设备的屏幕全屏显示预设图像的情况下,相机拍摄测试设备的屏幕所得图像中对应预设图像的部分。In one embodiment of the present application, the threshold brightness is the minimum backlight brightness of the test device that enables the clarity of the first image to meet expectations; where the screen of the test device and the screen of the electronic device have the same structure (such as the same type of LCD module); the first image is the part of the image obtained by the camera that captures the screen of the test device that corresponds to the preset image when both the test device and the camera are in the same lightless environment and the screen of the test device displays the preset image in full screen.

如此,可使得不同类型设备的门限亮度可相应不同,门限亮度对于电子设备具有针对性和适用性,如此进行背光控制时可实现适宜背光亮度的下发,以避免暗光环境下全屏观看暗色视频/图片时难以看清,从而可提升用户暗光环境下全屏观看视频/图片时的体验。In this way, the threshold brightness of different types of devices can be different accordingly. The threshold brightness is targeted and applicable to electronic devices. In this way, when performing backlight control, appropriate backlight brightness can be issued to avoid full-screen viewing of dark videos in dark light environments. /pictures are difficult to see clearly, which can improve the user’s experience when watching videos/pictures in full-screen in dark light environments.

基于图10所示实施例的实现,电子设备可以在暗光环境下全屏显示低对比度或主色调为暗色的视频/图片时,智能提升背光亮度,以实现对电子设备暗光环境下全屏显示视频/图片时背光亮度的下发进行优化,可保证在暗光场景下全屏观看视频时背光亮度保持最优,如此可提升用户暗光场景全屏观看视频/图片的体验。Based on the implementation of the embodiment shown in Figure 10, the electronic device can intelligently increase the backlight brightness when displaying videos/pictures with low contrast or with dark main colors on the full screen in a dark light environment, so as to achieve full-screen display of videos on the electronic device in a dark light environment. The backlight brightness is optimized when viewing videos/pictures to ensure that the backlight brightness remains optimal when watching videos in full screen in dark light scenes. This can improve the user experience of watching videos/pictures in full screen in dark light scenes.

在本申请一个实施例中,在电子设备的屏幕处于全屏显示图像状态的情况下,背光控制方法还可包括:获取电子设备的屏幕所显示的图像;获取所获得图像的灰度和明度;在所获得图像的灰度小于预设灰度阈值和所获得图像的明度小于预设明度阈值中的至少一个成立的情况下,执行获取电子设备的第一模块下发的第一亮度的步骤。In one embodiment of the present application, when the screen of the electronic device is in a full-screen image display state, the backlight control method may further include: obtaining an image displayed on the screen of the electronic device; obtaining the grayscale and brightness of the obtained image; If at least one of the grayscale of the obtained image is less than the preset grayscale threshold and the brightness of the obtained image is less than the preset brightness threshold is established, the step of obtaining the first brightness issued by the first module of the electronic device is performed.

通过先进行图片检测,再根据图片检测结果按需进行背光亮度控制,可针对全屏显示低对比度或暗色图像场景进行背光亮度按需控制,而不对全屏显示高对比度或亮色图像场景进行背光亮度按需控制,以实现背光亮度按需控制的选择性执行,避免不必要的背光亮度按需控制,且还可避免若始终进行背光亮度按需控制所造成的高功耗问题。By first performing image detection and then performing on-demand backlight brightness control based on the image detection results, the backlight brightness can be controlled on-demand for full-screen low-contrast or dark image scenes, but not for full-screen high-contrast or bright image scenes. Control to achieve selective execution of on-demand backlight brightness control, avoid unnecessary on-demand backlight brightness control, and avoid high power consumption problems caused by always performing on-demand backlight brightness control.

一个实施例中,可以在暗光视频场景进行图片检测,以对背光亮度进行优化,在用户使用感受上可大大提升用户体验,还可降低图片检测模块的功耗。In one embodiment, image detection can be performed in a dark video scene to optimize the backlight brightness, which can greatly improve the user experience and reduce the power consumption of the image detection module.

一个实施例中,可以获取图像的灰度,若图像的灰度小于预设灰度阈值,则执行获取第一亮度的步骤,否则不执行获取第一亮度的步骤。In one embodiment, the grayscale of the image can be obtained. If the grayscale of the image is less than a preset grayscale threshold, the step of obtaining the first brightness is performed. Otherwise, the step of obtaining the first brightness is not performed.

另一实施例中,可以获取图像的明度,若图像的明度小于预设明度阈值,则执行获取第一亮度的步骤,否则不执行获取第一亮度的步骤。In another embodiment, the brightness of the image can be obtained. If the brightness of the image is less than the preset brightness threshold, the step of obtaining the first brightness is performed. Otherwise, the step of obtaining the first brightness is not performed.

又一实施例中,可以获取图像的灰度和明度,若图像的灰度小于预设灰度阈值和图像的明度小于预设明度阈值中任意一个成立或两个均成立,则执行获取第一亮度的步骤,若图像的灰度小于预设灰度阈值和图像的明度小于预设明度阈值均不成立,则不执行获取第一亮度的步骤。In another embodiment, the grayscale and brightness of the image can be obtained. If either or both of the grayscale of the image is less than the preset grayscale threshold and the brightness of the image is less than the preset brightness threshold is true, then the first acquisition is performed. In the step of brightness, if neither the grayscale of the image is less than the preset grayscale threshold nor the brightness of the image is less than the preset brightness threshold, the step of obtaining the first brightness is not performed.

在本申请一个实施例中,在电子设备的屏幕处于全屏显示图像状态的情况下,方法还包括:在电子设备的屏幕开始全屏显示图像时,执行获取电子设备的屏幕所显示的图像的步骤;在电子设备的屏幕刷新时,执行获取电子设备的屏幕所显示的图像的步骤。In one embodiment of the present application, when the screen of the electronic device is in a full-screen image display state, the method further includes: when the screen of the electronic device begins to display the image in full screen, performing the step of acquiring the image displayed on the screen of the electronic device; When the screen of the electronic device is refreshed, the step of obtaining an image displayed on the screen of the electronic device is performed.

通过在开始全屏显示图像时以及在各次屏幕刷新时执行图像检测,可以实现图像检测的按需准确执行,从而有助于实现背光控制的按需准确执行。By performing image detection when full-screen image display begins and at each screen refresh, image detection can be performed accurately on demand, thereby helping to enable backlight control to be performed accurately and on demand.

在本申请一个实施例中,预设灰度阈值根据至少一个预设图像的灰度得到,预设明度阈值根据至少一个预设图像的明度得到;其中,用于获取图像灰度的步骤包括:根据图像中各个像素点的多个通道值,获取图像中各个像素点的灰度值,并根据图像中各个像素点的灰度值,获得图像的灰度;用于获取图像明度的步骤包括:根据图像中各个像素点的多个通道值,经颜色空间转换处理,获得图像中各个像素点的明度,并根据图像中各个像素点的明度,获得图像的明度。In one embodiment of the present application, the preset grayscale threshold is obtained based on the grayscale of at least one preset image, and the preset brightness threshold is obtained based on the brightness of at least one preset image; wherein, the steps for obtaining the image grayscale include: According to the multiple channel values of each pixel in the image, the grayscale value of each pixel in the image is obtained, and based on the grayscale value of each pixel in the image, the grayscale of the image is obtained; the steps for obtaining the brightness of the image include: According to the multiple channel values of each pixel in the image, through color space conversion processing, the brightness of each pixel in the image is obtained, and based on the brightness of each pixel in the image, the brightness of the image is obtained.

可行地,预设图像可以为预先设置定好的低对比度或暗色的图像,并据此获得明度阈值和灰度阈值。基于此进行图片检测时,可以准确区分全屏显示低对比度或暗色图像的场景和全屏显示高对比度或亮色图像的场景,从而能够实现背光控制的按需准确执行。Feasibly, the preset image can be a predetermined low contrast or dark image, and the brightness threshold and grayscale threshold are obtained accordingly. When performing picture detection based on this, it is possible to accurately distinguish between scenes where low-contrast or dark images are displayed on the full screen and scenes where high-contrast or bright images are displayed on the full screen, thereby enabling accurate execution of backlight control on demand.

一个实施例中,预设图像的明度可以低于要求的明度(比如<35、<40等)、预设图像的灰度可以低于要求的灰度(比如<25、<30等),以使预设图像为低对比度或暗色的图像。In one embodiment, the brightness of the preset image may be lower than the required brightness (such as <35, <40, etc.), and the grayscale of the preset image may be lower than the required grayscale (such as <25, <30, etc.), so as to Make the preset image a low-contrast or dark image.

一个实施例中,预设图像可以为低对比度、低饱和度的图片。In one embodiment, the preset image may be a low-contrast, low-saturation picture.

在先进行图片检测,再根据图片检测结果按需进行背光亮度控制的情况下,在本申请一个实施例中,监测电子设备是否处于全屏视频播放场景,包括:监测电子设备是否处于无弹幕全屏视频播放场景;其中,电子设备处于全屏视频播放场景的情况包括:电子设备处于无弹幕全屏视频播放场景的情况。In the case where the picture is detected first and then the backlight brightness is controlled as needed according to the picture detection result, in one embodiment of the present application, monitoring whether the electronic device is in a full-screen video playback scene includes: monitoring whether the electronic device is in a full-screen mode without barrage. Video playback scenarios; where the electronic device is in a full-screen video playback scenario includes: the electronic device is in a full-screen video playback scenario without barrage.

一个实施例中,若电子设备处于有弹幕全屏视频播放场景,则电子设备的屏幕没有处于全屏显示图像状态;若电子设备处于无弹幕非全屏播放视频的视频播放场景,则电子设备的屏幕没有处于全屏显示图像状态。In one embodiment, if the electronic device is in a full-screen video playback scene with barrage, the screen of the electronic device is not in a full-screen image display state; if the electronic device is in a video playback scene without barrage and non-full-screen video playback, the screen of the electronic device The image is not displayed in full screen mode.

一个实施例中,若电子设备处于有弹幕全屏视频播放场景,则不执行获取电子设备的屏幕所显示的图像的步骤。另一个实施例中,若电子设备处于有弹幕全屏视频播放场景,则不执行获取电子设备的第一模块下发的第一亮度的步骤。In one embodiment, if the electronic device is in a full-screen video playback scene with barrage, the step of obtaining the image displayed on the screen of the electronic device is not performed. In another embodiment, if the electronic device is in a full-screen video playback scene with barrage, the step of obtaining the first brightness issued by the first module of the electronic device is not performed.

通过监测无弹幕全屏视频播放场景,可避免弹幕的存在对图像检测的影响,有利于保证图像明度、灰度的准确获取,从而准确识别出暗光环境下的全屏显示低对比度或暗色图像的场景,以保证基于门限亮度进行背光亮度优化的按需准确执行。By monitoring the full-screen video playback scene without barrage, the impact of the presence of barrage on image detection can be avoided, which is helpful to ensure the accurate acquisition of image brightness and grayscale, thereby accurately identifying low-contrast or dark images displayed on the full screen in dark light environments. scenarios to ensure accurate on-demand execution of backlight brightness optimization based on threshold brightness.

本申请一个实施例还提供一种背光控制装置,包括:获取模块,用于在电子设备的屏幕处于全屏显示图像状态的情况下,获取电子设备的第一模块下发的第一亮度,第一模块用于向电子设备的屏幕下发背光亮度;控制模块,用于在第一亮度小于预先设定的与电子设备的屏幕相对应的门限亮度的情况下,执行第一操作使得下发至电子设备的屏幕的背光亮度为门限亮度。An embodiment of the present application also provides a backlight control device, including: an acquisition module, configured to acquire the first brightness issued by the first module of the electronic device when the screen of the electronic device is in a full-screen image display state. The module is used to send the backlight brightness to the screen of the electronic device; the control module is used to perform the first operation to send the backlight brightness to the screen of the electronic device when the first brightness is less than a preset threshold brightness corresponding to the screen of the electronic device. The backlight brightness of the device's screen is the threshold brightness.

本申请一个实施例还提供一种电子芯片,该任务处理芯片安装在电子设备(UE)中,电子芯片包括:处理器,其用于执行存储在存储器上的计算机程序指令,其中,当计算机程序指令被处理器执行时,触发电子芯片执行本申请任意方法实施例提供的方法步骤。One embodiment of the present application also provides an electronic chip. The task processing chip is installed in an electronic device (UE). The electronic chip includes: a processor for executing computer program instructions stored on the memory, wherein when the computer program When the instruction is executed by the processor, the electronic chip is triggered to execute the method steps provided by any method embodiment of this application.

本申请一实施例还提出了一种终端设备,终端设备包括通信模块、用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发终端设备执行本申请任意方法实施例提供的方法步骤。An embodiment of the present application also provides a terminal device. The terminal device includes a communication module, a memory for storing computer program instructions, and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor , triggering the terminal device to execute the method steps provided by any method embodiment of this application.

本申请一实施例还提出了一种服务器设备,服务器设备包括通信模块、用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发服务器设备执行本申请任意方法实施例提供的方法步骤。An embodiment of the present application also provides a server device. The server device includes a communication module, a memory for storing computer program instructions, and a processor for executing the program instructions. When the computer program instructions are executed by the processor , triggering the server device to execute the method steps provided by any method embodiment of this application.

本申请一个实施例还提供一种电子设备,电子设备包括多根天线、用于存储计算机程序指令的存储器、用于执行计算机程序指令的处理器和通信装置(比如可以基于NR协议实现5G通信的通信模块),其中,当计算机程序指令被该处理器执行时,触发电子设备执行本申请任意方法实施例提供的方法步骤。An embodiment of the present application also provides an electronic device. The electronic device includes multiple antennas, a memory for storing computer program instructions, a processor for executing computer program instructions, and a communication device (such as one that can implement 5G communication based on the NR protocol). Communication module), wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method steps provided by any method embodiment of the application.

具体的,在本申请一实施例中,一个或多个计算机程序被存储在上述存储器中,该一个或多个计算机程序包括指令,当该指令被上述设备执行时,使得上述设备执行本申请实施例所述的方法步骤。Specifically, in an embodiment of the present application, one or more computer programs are stored in the above-mentioned memory. The one or more computer programs include instructions. When the instructions are executed by the above-mentioned device, the above-mentioned device executes the implementation of the present application. The method steps described in the example.

具体的,在本申请一实施例中,电子设备的处理器可以是片上装置SOC(System onChip,系统级芯片),该处理器中可以包括中央处理器(Central Processing Unit,CPU),还可以进一步包括其他类型的处理器。具体的,在本申请一实施例中,电子设备的处理器可以是PWM控制芯片。Specifically, in an embodiment of the present application, the processor of the electronic device may be an on-chip device SOC (System on Chip, system-on-chip). The processor may include a central processing unit (Central Processing Unit, CPU), and may further Includes other types of processors. Specifically, in an embodiment of the present application, the processor of the electronic device may be a PWM control chip.

具体的,在本申请一实施例中,涉及的处理器可以例如包括CPU、DSP(digitalsignal processor,数字信号处理器)或微控制器,还可包括GPU(graphics processingunit,图形处理器)、嵌入式神经网络处理器(Neural-network Process Units,NPU)和图像信号处理器(Image Signal Processing,ISP),该处理器还可包括必要的硬件加速器或逻辑处理硬件电路,如ASIC,或一个或多个用于控制本申请技术方案程序执行的集成电路等。此外,处理器可以具有操作一个或多个软件程序的功能,软件程序可以存储在存储介质中。Specifically, in an embodiment of the present application, the processor involved may include, for example, a CPU, DSP (digital signal processor, digital signal processor) or microcontroller, and may also include a GPU (graphics processing unit, graphics processor), embedded Neural-network Process Units (NPU) and Image Signal Processing (ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more Integrated circuits used to control the execution of the program of the technical solution of this application, etc. Additionally, the processor may have functionality to operate one or more software programs, which may be stored in a storage medium.

具体的,在本申请一实施例中,电子设备的存储器可以是只读存储器(read-onlymemory,ROM)、可存储静态信息和指令的其它类型的静态存储设备、随机存取存储器(random access memory,RAM)或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何计算机可读介质。Specifically, in an embodiment of the present application, the memory of the electronic device may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, or a random access memory (random access memory). , RAM) or other types of dynamic storage devices that can store information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory , CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can also be used for portability or storage Any computer-readable medium that has the desired program code in the form of instructions or data structures and that can be accessed by a computer.

具体的,在本申请一实施例中,处理器可以和存储器可以合成一个处理装置,更常见的是彼此独立的部件,处理器用于执行存储器中存储的程序代码来实现本申请实施例所述方法。具体实现时,该存储器也可以集成在处理器中,或者,独立于处理器。Specifically, in an embodiment of the present application, the processor and the memory can be combined into a processing device, which is more commonly independent of each other. The processor is used to execute the program code stored in the memory to implement the method described in the embodiment of the present application. . During specific implementation, the memory can also be integrated in the processor, or independent of the processor.

进一步的,本申请实施例阐明的设备、装置、模块,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。Furthermore, the equipment, devices, and modules described in the embodiments of this application may be implemented by computer chips or entities, or by products with certain functions.

本领域内的技术人员应明白,本申请实施例可提供为方法、装置、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式。Those skilled in the art should understand that embodiments of the present application may be provided as methods, devices, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the application may take the form of a computer program product embodied on one or more computer-usable storage media embodying computer-usable program code therein.

在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.

具体的,本申请一实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请实施例提供的方法步骤。Specifically, an embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to execute the method steps provided by the embodiment of the present application. .

本申请一实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请实施例提供的方法步骤。An embodiment of the present application also provides a computer program product. The computer program product includes a computer program that, when run on a computer, causes the computer to execute the method steps provided by the embodiment of the present application.

本申请中的实施例描述是参照根据本申请实施例的方法、设备(装置)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments in the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatuses (devices), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in a process or processes in a flowchart and/or a block or blocks in a block diagram.

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

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

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,可以是电性、机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Either it can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separate. A component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(Processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) or processor (Processor) to execute the methods described in various embodiments of this application. Some steps. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.

本申请实施例中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。In the embodiments of this application, the terms "comprising", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, commodity or device that includes a series of elements not only includes those elements, but also includes Other elements are not expressly listed or are inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or device that includes the stated element.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

本申请中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this application is described in a progressive manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.

本领域普通技术人员可以意识到,本申请实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that each unit and algorithm step described in the embodiments of this application can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the present application. within the scope of protection.

Claims (11)

1. A backlight control method, comprising:
acquiring first brightness issued by a first module of electronic equipment under the condition that a screen of the electronic equipment is in a full-screen display image state, wherein the first module is used for issuing backlight brightness to the screen of the electronic equipment;
executing a first operation to enable the backlight brightness sent to the screen of the electronic equipment to be the threshold brightness under the condition that the first brightness is smaller than the preset threshold brightness corresponding to the screen of the electronic equipment;
in the case where the screen of the electronic device is in a full screen display image state, the method further includes:
acquiring an image displayed on a screen of the electronic equipment;
acquiring the gray level of the obtained image, and executing the step of acquiring the first brightness issued by the first module of the electronic equipment if the gray level of the obtained image is smaller than a preset gray level threshold; or,
Acquiring the brightness of the obtained image, and executing the step of acquiring the first brightness issued by the first module of the electronic equipment if the brightness of the obtained image is smaller than a preset brightness threshold; or,
and acquiring the gray level and the brightness of the obtained image, and executing the step of acquiring the first brightness issued by the first module of the electronic equipment under the condition that at least one of the gray level of the obtained image is smaller than a preset gray level threshold value and the brightness of the obtained image is smaller than a preset brightness threshold value.
2. The method of claim 1, wherein in the case where the screen of the electronic device is in a full screen display image state, the method further comprises:
executing the step of acquiring the image displayed on the screen of the electronic equipment when the screen of the electronic equipment starts to display the image in a full screen mode;
and executing the step of acquiring the image displayed on the screen of the electronic equipment when the screen of the electronic equipment is refreshed.
3. The method according to claim 1, wherein the preset gray threshold is derived from the gray level of at least one preset image, and the preset brightness threshold is derived from the brightness of the at least one preset image;
Wherein the step for acquiring the image gray level includes: acquiring gray values of all pixel points in the image according to the multiple channel values of all pixel points in the image, and acquiring gray of the image according to the gray values of all pixel points in the image;
the step for acquiring the brightness of the image comprises: according to the channel values of each pixel point in the image, the brightness of each pixel point in the image is obtained through color space conversion processing, and according to the brightness of each pixel point in the image, the brightness of the image is obtained.
4. A method according to any one of claims 1-3, characterized in that the method further comprises:
monitoring whether the electronic equipment is in a full-screen video playing scene;
monitoring whether the electronic equipment is in a full-screen picture display scene;
the condition that the screen of the electronic equipment is in a full-screen display image state comprises the following steps: and the electronic equipment is in a full-screen video playing scene and any scene in a full-screen picture displaying scene.
5. The method of claim 4, wherein the monitoring whether the electronic device is in a full-screen video playback scenario comprises:
Monitoring whether the electronic equipment is in a bullet screen-free full-screen video playing scene or not;
the situation that the electronic equipment is in a full-screen video playing scene comprises the following steps: the electronic equipment is in the condition of no bullet screen full screen video playing scene.
6. A method according to any of claims 1-3, wherein the threshold brightness is a minimum backlight brightness of the test device such that the sharpness of the first image corresponds to an expected;
wherein the screen of the test device and the screen of the electronic device have the same structure;
the first image is a part corresponding to a preset image in an image obtained by shooting the screen of the test equipment by the camera under the condition that the test equipment and the camera are in the same dark environment and the preset image is displayed on the screen of the test equipment in a full screen mode.
7. The method of any of claims 1-3, wherein the first brightness is derived based on at least one of a backlight brightness derived from a three-party application in the electronic device, a backlight brightness adjustment instruction received by the electronic device, and a backlight brightness corresponding to an ambient illuminance of an environment in which the electronic device is located.
8. A backlight control apparatus, comprising:
the electronic equipment comprises an acquisition module, a first display module and a second display module, wherein the acquisition module is used for acquiring first brightness issued by the first module of the electronic equipment when a screen of the electronic equipment is in a full-screen display image state, and the first module is used for issuing backlight brightness to the screen of the electronic equipment;
the control module is used for executing a first operation to enable the backlight brightness sent to the screen of the electronic equipment to be the threshold brightness under the condition that the first brightness is smaller than the preset threshold brightness corresponding to the screen of the electronic equipment;
the backlight control device obtains an image displayed on the screen of the electronic equipment under the condition that the screen of the electronic equipment is in a full-screen display image state;
acquiring the gray level of the obtained image, and executing the step of acquiring the first brightness issued by the first module of the electronic equipment if the gray level of the obtained image is smaller than a preset gray level threshold; or,
acquiring the brightness of the obtained image, and executing the step of acquiring the first brightness issued by the first module of the electronic equipment if the brightness of the obtained image is smaller than a preset brightness threshold; or,
And acquiring the gray level and the brightness of the obtained image, and executing the step of acquiring the first brightness issued by the first module of the electronic equipment under the condition that at least one of the gray level of the obtained image is smaller than a preset gray level threshold value and the brightness of the obtained image is smaller than a preset brightness threshold value.
9. An electronic chip, comprising:
a processor for executing computer program instructions stored on a memory, wherein the computer program instructions, when executed by the processor, trigger the electronic chip to perform the method of any of claims 1-7.
10. An electronic device comprising a memory for storing computer program instructions, a processor for executing the computer program instructions, and communication means, wherein the computer program instructions, when executed by the processor, trigger the electronic device to perform the method of any of claims 1-7.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method according to any of claims 1-7.
CN202310390470.2A 2023-04-13 2023-04-13 Backlight control method, device, chip, electronic equipment and medium Active CN116110351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310390470.2A CN116110351B (en) 2023-04-13 2023-04-13 Backlight control method, device, chip, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310390470.2A CN116110351B (en) 2023-04-13 2023-04-13 Backlight control method, device, chip, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN116110351A CN116110351A (en) 2023-05-12
CN116110351B true CN116110351B (en) 2023-09-19

Family

ID=86264102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310390470.2A Active CN116110351B (en) 2023-04-13 2023-04-13 Backlight control method, device, chip, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116110351B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119049422A (en) * 2023-05-29 2024-11-29 荣耀终端有限公司 Backlight brightness control method and electronic equipment
CN120108310A (en) * 2023-11-28 2025-06-06 荣耀终端股份有限公司 Display method, device and electronic device for display screen
CN118135928B (en) * 2024-05-06 2024-09-17 荣耀终端有限公司 Display brightness adjusting method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104658487A (en) * 2015-03-16 2015-05-27 广东欧珀移动通信有限公司 Method and device for adjusting image brightness and mobile terminal
WO2017113343A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Method for adjusting backlight brightness and terminal
CN107134272A (en) * 2017-06-26 2017-09-05 上海斐讯数据通信技术有限公司 A kind of control method of screen display, system and computer-processing equipment
CN107799093A (en) * 2017-12-08 2018-03-13 深圳市金立通信设备有限公司 Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN108510955A (en) * 2018-04-23 2018-09-07 Oppo广东移动通信有限公司 Method for adjusting brightness of display screen and related product
CN111210777A (en) * 2018-11-21 2020-05-29 北京小米移动软件有限公司 Backlight brightness adjusting method and device, electronic equipment and machine-readable storage medium
CN111667800A (en) * 2020-06-16 2020-09-15 广州视源电子科技股份有限公司 Image display parameter adjusting method and device, storage medium and terminal
CN113395388A (en) * 2020-02-26 2021-09-14 华为技术有限公司 Screen brightness adjusting method and electronic equipment
CN114285936A (en) * 2020-09-17 2022-04-05 南京酷派软件技术有限公司 Screen brightness adjustment method, device, storage medium and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104658487A (en) * 2015-03-16 2015-05-27 广东欧珀移动通信有限公司 Method and device for adjusting image brightness and mobile terminal
WO2017113343A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Method for adjusting backlight brightness and terminal
CN107134272A (en) * 2017-06-26 2017-09-05 上海斐讯数据通信技术有限公司 A kind of control method of screen display, system and computer-processing equipment
CN107799093A (en) * 2017-12-08 2018-03-13 深圳市金立通信设备有限公司 Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN108510955A (en) * 2018-04-23 2018-09-07 Oppo广东移动通信有限公司 Method for adjusting brightness of display screen and related product
CN111210777A (en) * 2018-11-21 2020-05-29 北京小米移动软件有限公司 Backlight brightness adjusting method and device, electronic equipment and machine-readable storage medium
CN113395388A (en) * 2020-02-26 2021-09-14 华为技术有限公司 Screen brightness adjusting method and electronic equipment
CN111667800A (en) * 2020-06-16 2020-09-15 广州视源电子科技股份有限公司 Image display parameter adjusting method and device, storage medium and terminal
CN114285936A (en) * 2020-09-17 2022-04-05 南京酷派软件技术有限公司 Screen brightness adjustment method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN116110351A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN116110351B (en) Backlight control method, device, chip, electronic equipment and medium
WO2021052232A1 (en) Time-lapse photography method and device
EP4280586B1 (en) Point light source image detection method and electronic device
WO2023015991A1 (en) Photography method, electronic device, and computer readable storage medium
CN110727380A (en) A message reminder method and electronic device
CN115597706B (en) An ambient light detection method, electronic device and chip system
CN113436576B (en) OLED display screen dimming method and device applied to two-dimensional code scanning
CN116389640B (en) Interface display method and electronic equipment
CN114089932B (en) Multi-screen display method, device, terminal equipment and storage medium
WO2023030168A1 (en) Interface display method and electronic device
CN116055712B (en) Method, device, chip, electronic device and medium for determining film formation rate
CN115357317B (en) Display control method, device, chip and equipment for terminal equipment
CN116052607B (en) Electronic equipment control methods, devices, chips, electronic equipment and media
CN113891008B (en) Exposure intensity adjusting method and related equipment
CN116996662A (en) Camera detection method and device
CN116662130A (en) Method for counting application usage time, electronic device and readable storage medium
CN115480680A (en) Multi-device cooperative control method, terminal device and computer-readable storage medium
CN116682367B (en) Screen ambient light detection method, electronic device and medium
CN116703741B (en) Image contrast generation method and device and electronic equipment
CN115734323B (en) Power consumption optimization method and device
CN115880213A (en) Display abnormity detection method, device and system
WO2025044681A1 (en) Image display method, electronic device, and computer-readable storage medium
WO2024221842A1 (en) Display method, electronic device, and storage medium
WO2024124972A1 (en) Method and apparatus for acquiring ambient light sensor data, and electronic device
HK40081243A (en) Image processing method and electronic device

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
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address