CN110691169A - Ambient light generation method, ambient light generation device, and computer-readable storage medium - Google Patents

Ambient light generation method, ambient light generation device, and computer-readable storage medium Download PDF

Info

Publication number
CN110691169A
CN110691169A CN201910932944.5A CN201910932944A CN110691169A CN 110691169 A CN110691169 A CN 110691169A CN 201910932944 A CN201910932944 A CN 201910932944A CN 110691169 A CN110691169 A CN 110691169A
Authority
CN
China
Prior art keywords
control logic
ambient light
stored
module
screen
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.)
Pending
Application number
CN201910932944.5A
Other languages
Chinese (zh)
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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201910932944.5A priority Critical patent/CN110691169A/en
Publication of CN110691169A publication Critical patent/CN110691169A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Abstract

The invention discloses a method and a device for generating ambient light and a computer readable storage medium, wherein the method for generating the ambient light is applied to a mobile terminal, and the method for generating the ambient light comprises the following steps: acquiring first ambient light when a screen of the mobile terminal is started; determining a first target control logic according to the first ambient light; generating a second ambient light according to the first target control logic. According to the method and the device, the brightness of the ambient light is adjusted by generating the ambient light, and the harm to human eyes is reduced.

Description

Ambient light generation method, ambient light generation device, and computer-readable storage medium
Technical Field
The present invention relates to the field of mobile terminal application technologies, and in particular, to a method and an apparatus for generating ambient light, and a computer-readable storage medium.
Background
When prior art's intelligent Mobile terminal used under the dim light environment, screen brightness did not change under the general condition, perhaps adopted the mode that screen light luminance reduces in order to adapt to the dim light environment, so, it is big to cause screen light and ambient light contrast, even screen light luminance reduces, to the people's eye, screen light and ambient light contrast are still big.
That is, in the prior art, the brightness of the ambient light cannot be adjusted, and the injury to human eyes is large.
Disclosure of Invention
The invention provides a method and a device for generating ambient light and a computer readable storage medium, which can adjust the brightness of the ambient light and reduce the harm to human eyes.
In order to solve the above problem, in a first aspect, the present application provides a method for generating ambient light, where the method is applied to a mobile terminal, and the method for generating ambient light includes:
acquiring first ambient light when a screen of the mobile terminal is started;
determining a first target control logic according to the first ambient light;
generating a second ambient light according to the first target control logic.
Wherein said determining a first target control logic from said first ambient light comprises:
detecting first luminance information of the first ambient light;
judging whether a first pre-stored control logic matched with the first brightness information is stored or not, wherein different first brightness information corresponds to different first pre-stored control logic;
and if a first pre-stored control logic matched with the first brightness information is stored, determining the first pre-stored control logic matched with the first brightness information as the first target control logic.
Wherein the method for generating ambient light further comprises:
and if the first pre-stored control logic matched with the first brightness information is not stored, sending out first prompt information.
Wherein the method for generating ambient light further comprises:
when second ambient light is generated in the screen, face information is obtained;
determining a second target control logic according to the face information;
and controlling second brightness information of the second ambient light according to the second target control logic.
Wherein, the determining a second target control logic according to the face information includes:
detecting the distance between the screen and the face according to the face information;
judging whether a second pre-stored control logic matched with the distance between the screen and the face is stored, wherein different distances correspond to different second pre-stored control logics;
if a second pre-stored control logic matched with the distance between the screen and the face is stored, determining the second pre-stored control logic matched with the distance between the screen and the face as a second target control logic; and if a second pre-stored control logic matched with the distance between the screen and the face is not stored, sending out second prompt information.
In order to solve the above problem, in a second aspect, the present application provides an ambient light generating apparatus, applied to a mobile terminal, including:
the first acquisition module is used for acquiring first ambient light when a screen of the mobile terminal is started;
a first determining module, configured to determine a first target control logic according to the first ambient light;
and the generating module is used for generating second ambient light according to the first target control logic.
The generating device of the ambient light further comprises a generating module, a judging module and a control logic storing module, wherein the generating module comprises a brightness detecting module, a first judging module and a first control logic storing module;
the brightness detection module is used for detecting first brightness information of the first ambient light;
the first judging module is used for judging whether a first pre-stored control logic matched with the first brightness information is stored or not;
the first control logic storage module is used for storing different first brightness information corresponding to different first pre-stored control logics;
the first determining module is further configured to determine, when a first pre-stored control logic matched with the first luminance information is stored, the first pre-stored control logic matched with the first luminance information as the first target control logic; and sending out first prompt information when a first pre-stored control logic matched with the first brightness information is not stored.
The generating device of the ambient light further comprises a second obtaining module, a second determining module and a control module;
the second acquisition module is used for acquiring the face information when second ambient light is generated in the screen;
the second determining module is used for determining a second target control logic according to the face information;
the control module is configured to control second luminance information of the second ambient light according to the second target control logic.
The generating device of the ambient light further comprises a generating module, a first judging module and a first control logic storage module, wherein the generating module comprises a distance detecting module, a second judging module and a second control logic storage module;
the distance detection module is used for detecting the distance between the screen and the face according to the face information;
the second judging module is used for judging whether a second pre-stored control logic matched with the distance between the screen and the face is stored or not;
the second control logic storage module is used for storing the second pre-stored control logic with different distances and different correspondences;
the second determining module is further configured to determine a second pre-stored control logic matched with the distance between the screen and the face as the second target control logic when the second pre-stored control logic matched with the distance between the screen and the face is stored; and sending out second prompt information when a second prestored control logic matched with the distance between the screen and the face is not stored.
To solve the above problem, in a third aspect, a computer-readable storage medium is provided, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the above methods for generating ambient light
The beneficial effect of this application is:
the brightness of the ambient light is adjusted by generating the ambient light, so that the harm to human eyes is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an embodiment of a method for generating ambient light according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another embodiment of a method for generating ambient light according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an ambient light generating apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The application provides a generation method, a generation device and a computer readable storage medium of ambient light, wherein the generation method is applied to a mobile terminal and comprises the following steps: acquiring first ambient light when a screen of the mobile terminal is started; determining a first target control logic according to the first ambient light; generating a second ambient light according to the first target control logic. The following are detailed below.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for generating ambient light according to an embodiment of the present disclosure. The method for generating the ambient light in the embodiment may be applied to a mobile terminal, and the mobile terminal may be an intelligent device such as a smart phone, a smart watch, an ipad, a tablet computer, and the like, which is not limited in the present application. The specific flow of the ambient light generation method may be as follows:
and S11, acquiring first ambient light when the screen of the mobile terminal is opened.
In this embodiment, the mobile terminal obtains the first ambient light through the sensor, where the first ambient light is light of the surrounding environment when the screen of the mobile terminal is opened. The sensor is disposed on the mobile terminal or is independent of the mobile terminal, and the sensor can be set by a user according to specific situations, which is not limited in this application.
And S12, determining a first target control logic according to the first ambient light.
In this embodiment, the first ambient light may be a dim light environment or a bright light environment, that is, the area with better light is a bright light environment, the area with worse light is a dim light environment, a corresponding brightness threshold may be set to distinguish the types of the ambient light, and according to the determined type of the ambient light, the first target control logic may be further determined, and may include a dim light environment control policy and a bright light environment control policy.
And S13, generating second ambient light according to the first target control logic.
In this embodiment, the dim light environment control policy in the first target control logic is to generate the second ambient light in the screen. The second ambient light is independent of the light originally emitted by the screen, i.e. the light originally emitted by the screen is not affected by the second ambient light. The brightness of the second ambient light is lower than the brightness of the light originally emitted by the screen.
In this embodiment, the dim light environment control strategy in the first target control logic may also be configured to generate the second ambient light for other light emitting carriers besides the screen. The second ambient light is independent of the light originally emitted by the screen, i.e. the light originally emitted by the screen is not affected by the second ambient light. The brightness of the second ambient light is lower than the brightness of the light originally emitted by the screen.
Different from the prior art, the present application provides a method for generating ambient light, which is applied to a mobile terminal, and includes: acquiring first ambient light when a screen of the mobile terminal is started; determining a first target control logic according to the first ambient light; generating a second ambient light according to the first target control logic. According to the method and the device, the first target control logic is determined according to the first ambient light, and the second ambient light is generated according to the determined first target control logic to adjust the brightness of the ambient light, so that the harm to human eyes is reduced.
For a more clear explanation of the method for generating ambient light, please refer to fig. 2, and fig. 2 is a schematic flow chart of another embodiment of the method for generating ambient light according to the embodiment of the present application.
As shown in fig. 2, the specific flow of the ambient light generation method is as follows:
s201, acquiring first ambient light when a screen of the mobile terminal is opened.
In this embodiment, the mobile terminal obtains the first ambient light through the sensor. The sensor is disposed on the mobile terminal or is independent of the mobile terminal, and the sensor can be set by a user according to specific situations, which is not limited in this application.
S202, detecting first brightness information of the first ambient light.
In the present embodiment, the first ambient light is converted into an electric signal to be quantized into the first luminance information.
S203, judging whether a first pre-stored control logic matched with the first brightness information is stored.
In this embodiment, the mobile terminal stores different first pre-stored control logics corresponding to different first luminance information in advance.
In this embodiment, if the first pre-stored control logic matching the first luminance information is stored, S204 is executed; if the first pre-stored control logic matching the first brightness information is not stored, S205 is executed.
S204, determining the first pre-stored control logic matched with the first brightness information as the first target control logic.
In this embodiment, the first luminance information within a certain range corresponds to a dim-light environment control policy, and the second ambient light is generated according to the dim-light environment control policy.
S205, if the first pre-stored control logic matched with the first brightness information is not stored, sending out first prompt information.
In this embodiment, if the first pre-stored control logic matching with the first brightness information is not stored, it indicates that the first brightness information is not within the stored effective brightness range, and it may be considered that the current first ambient light is suitable for the user to use the mobile phone, and a prompt message is sent.
In a specific embodiment, the prompting information includes prompting the user to re-input, prompting the user to check the connection of the instrument, prompting the user to perform other operations, and the like; the manner of sending out the prompt information may be voice prompt, blinking prompt, vibration prompt, etc., which is not limited in the present application.
And S206, generating second ambient light according to the first target control logic.
In this embodiment, the dim light environment control policy in the first target control logic is to generate the second ambient light in the screen. The second ambient light is independent of the light originally emitted by the screen, i.e. the light originally emitted by the screen is not affected by the second ambient light. The brightness of the second ambient light is lower than the brightness of the light originally emitted by the screen.
In this embodiment, the dim light environment control strategy in the first target control logic may also be configured to generate the second ambient light for other light emitting carriers besides the screen. The second ambient light is independent of the light originally emitted by the screen, i.e. the light originally emitted by the screen is not affected by the second ambient light. The brightness of the second ambient light is lower than the brightness of the light originally emitted by the screen.
And S207, acquiring the face information when the second ambient light is generated in the screen.
In this embodiment, the face information is obtained by a depth camera of the mobile terminal. The face information of the user is collected by mainly capturing the feature points of the face.
And S208, detecting the distance between the screen and the face according to the face information.
In this embodiment, the distance between the screen and the face can be calculated through the face shot by the depth camera.
S209, judging whether a second pre-stored control logic matched with the distance between the screen and the face is stored.
In this embodiment, the mobile terminal stores the second pre-stored control logic with different distances and different responses in advance. When the distance is within a certain range, it indicates that the brightness of the second ambient light to be generated is different, for example: when the distance is less than 1m and greater than 0.5m, the brightness of the second ambient light needs to be enhanced, and when the distance is less than or equal to 0.5m, the brightness of the second ambient light needs to be reduced.
In this embodiment, if a second pre-stored control logic matching the distance between the screen and the face is stored, step S210 is executed; if the second pre-stored control logic matching the distance between the screen and the face is not stored, step S211 is executed.
S210, determining the second pre-stored control logic matched with the distance between the screen and the face as the second target control logic.
In this embodiment, the distance within the certain range corresponds to a strategy for increasing or decreasing the brightness of the second ambient light, and the brightness of the second ambient light is adjusted according to the strategy.
And S211, sending out second prompt information.
In this embodiment, if the second pre-stored control logic matching the distance between the screen and the face is not stored, it indicates that the distance between the screen and the face is not within the valid range of storage, and it may be considered that the current user is far away from the mobile terminal or is not using the mobile terminal, and a prompt message is sent.
In a specific embodiment, the prompting information includes prompting the user to re-input, prompting the user to check the connection of the instrument, prompting the user to perform other operations, and the like; the manner of sending out the prompt information may be voice prompt, blinking prompt, vibration prompt, etc., which is not limited in the present application.
S212, controlling second brightness information of the second ambient light according to the second target control logic.
In this embodiment, the brightness of the second ambient light is increased according to the strategy of increasing the brightness of the second ambient light, and vice versa.
Different from the prior art, the present application provides a method for generating ambient light, which is applied to a mobile terminal, and includes: acquiring first ambient light when a screen of the mobile terminal is started; determining a first target control logic according to the first ambient light; generating a second ambient light according to the first target control logic. According to the method and the device, the first target control logic is determined according to the first ambient light, and the second ambient light is generated according to the determined first target control logic to adjust the brightness of the ambient light, so that the harm to human eyes is reduced.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an ambient light generating device according to an embodiment of the present disclosure. As shown in fig. 3, the ambient light generating apparatus 600 is applied to a mobile terminal, and the generating apparatus 600 includes: a first obtaining module 601, a brightness detecting module 602, a first judging module 603, a first control logic storing module 604, a first determining module 605, a generating module 606, a second obtaining module 607, a distance detecting module 608, a second judging module 609, a second control logic storing module 610, a second determining module 611, and a control module 612, wherein:
the first obtaining module 601 is configured to obtain a first ambient light when a screen of the mobile terminal is turned on.
In this embodiment, the mobile terminal obtains the first ambient light through the sensor 613. The sensor 613 is disposed on the mobile terminal or independent of the mobile terminal, and may be set by a user according to specific situations, which is not limited in this application.
The brightness detection module 602 is configured to detect first brightness information of the first ambient light.
In this embodiment, the brightness detection module 602 converts the first ambient light into an electrical signal to be quantized into first brightness information.
The first determining module 603 is configured to determine whether a first pre-stored control logic matched with the first luminance information is stored.
In this embodiment, the first control logic storage module 604 stores the first pre-stored control logic corresponding to different first luminance information in advance.
When the first determining module 605 stores the first pre-stored control logic matched with the first brightness information, the first pre-stored control logic matched with the first brightness information is determined as the first target control logic; and sending out first prompt information when a first pre-stored control logic matched with the first brightness information is not stored.
In this embodiment, the first determining module 605 generates the second ambient light according to the dim light environment control policy corresponding to the first brightness information within a certain range. If the first pre-stored control logic matched with the first brightness information is not stored, the first brightness information is not in the stored effective brightness range, and the current first ambient light is considered to be suitable for the user to use the mobile phone and sends out prompt information.
The generating module 606 is configured to generate a second ambient light according to the first target control logic.
In this embodiment, the dim light environment control policy in the first target control logic is to generate the second ambient light in the screen. The second ambient light is independent of the light originally emitted by the screen, i.e. the light originally emitted by the screen is not affected by the second ambient light. The brightness of the second ambient light is lower than the brightness of the light originally emitted by the screen.
In this embodiment, the dim light environment control strategy in the first target control logic may also be configured to generate the second ambient light for other light emitting carriers besides the screen. The second ambient light is independent of the light originally emitted by the screen, i.e. the light originally emitted by the screen is not affected by the second ambient light. The brightness of the second ambient light is lower than the brightness of the light originally emitted by the screen.
The second obtaining module 607 is configured to obtain the face information when the second ambient light is generated in the screen.
In this embodiment, the second obtaining module 607 obtains the face information through the depth camera of the mobile terminal. The face information of the user is collected by mainly capturing the feature points of the face.
The distance detection module 608 is configured to detect a distance between the screen and a human face according to the human face information.
In this embodiment, the distance detection module 608 may calculate the distance between the screen and the face of the person through the face shot by the depth camera 614.
The second judging module 609 is configured to judge whether a second pre-stored control logic matching the distance between the screen and the face is stored.
In this embodiment, the second control logic storage module 610 stores the second pre-stored control logic with different distances corresponding to different distances in advance.
When a second pre-stored control logic matched with the distance between the screen and the face is stored, the second determining module 611 determines the second pre-stored control logic matched with the distance between the screen and the face as the second target control logic; and sending out second prompt information when a second prestored control logic matched with the distance between the screen and the face is not stored.
In this embodiment, the second control logic storage module 610 stores the second pre-stored control logic with different distances and different responses in advance. When the distance is within a certain range, it indicates that the brightness of the second ambient light to be generated is different, for example: when the distance is less than 1m and greater than 0.5m, the brightness of the second ambient light needs to be enhanced, and when the distance is less than or equal to 0.5m, the brightness of the second ambient light needs to be reduced.
In this embodiment, if the second pre-stored control logic matching the distance between the screen and the face is not stored, it indicates that the distance between the screen and the face is not within the valid range of storage, and it may be considered that the current user is far away from the mobile terminal or is not using the mobile terminal, and a prompt message is sent.
The control module 612 is configured to control second luminance information of the second ambient light according to the second target control logic.
In this embodiment, the brightness of the second ambient light is increased according to the strategy of increasing the brightness of the second ambient light, and vice versa.
Different from the prior art, the application provides a generating device of ambient light, which is applied to a mobile terminal and is used for obtaining first ambient light when a screen of the mobile terminal is opened; determining a first target control logic according to the first ambient light; generating a second ambient light according to the first target control logic. According to the method and the device, the first target control logic is determined according to the first ambient light, and the second ambient light is generated according to the determined first target control logic to adjust the brightness of the ambient light, so that the harm to human eyes is reduced.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. The mobile terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 4, the mobile terminal 400 includes a processor 401, a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the mobile terminal 400, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 401 in the mobile terminal 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
acquiring first ambient light when a screen of the mobile terminal is started;
determining a first target control logic according to the first ambient light;
generating a second ambient light according to the first target control logic.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. Fig. 5 shows a specific structure block diagram of a mobile terminal provided in an embodiment of the present application, where the mobile terminal 300 may be used to implement the ambient light generation method provided in the foregoing embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.1 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n standards), Voice over Internet Protocol (VoIP), world wide interoperability for Microwave, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the method for generating ambient light and the terminal positioning device in the foregoing embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the function of positioning the terminal. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 5, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 includes at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring first ambient light when a screen of the mobile terminal is started;
determining a first target control logic according to the first ambient light;
generating a second ambient light according to the first target control logic.
In specific implementation, the above modules and units may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities, and specific implementations of the above modules and units may refer to the foregoing method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the methods for generating ambient light provided by the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any one of the methods for generating ambient light provided in the embodiments of the present application, beneficial effects that can be achieved by any one of the methods for generating ambient light provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for generating ambient light is applied to a mobile terminal, and comprises the following steps:
acquiring first ambient light when a screen of the mobile terminal is started;
determining a first target control logic according to the first ambient light;
generating a second ambient light according to the first target control logic.
2. The method of generating ambient light according to claim 1, wherein the determining a first target control logic from the first ambient light comprises:
detecting first luminance information of the first ambient light;
judging whether a first pre-stored control logic matched with the first brightness information is stored or not, wherein different first brightness information corresponds to different first pre-stored control logic;
and if a first pre-stored control logic matched with the first brightness information is stored, determining the first pre-stored control logic matched with the first brightness information as the first target control logic.
3. The method for generating ambient light according to claim 2, further comprising:
and if the first pre-stored control logic matched with the first brightness information is not stored, sending out first prompt information.
4. A method for generating ambient light according to any one of claims 1-3, further comprising:
when second ambient light is generated in the screen, face information is obtained;
determining a second target control logic according to the face information;
and controlling second brightness information of the second ambient light according to the second target control logic.
5. The method of generating ambient light according to claim 4, wherein the determining a second target control logic according to the face information comprises:
detecting the distance between the screen and the face according to the face information;
judging whether a second pre-stored control logic matched with the distance between the screen and the face is stored, wherein different distances correspond to different second pre-stored control logics;
if a second pre-stored control logic matched with the distance between the screen and the face is stored, determining the second pre-stored control logic matched with the distance between the screen and the face as a second target control logic; and if a second pre-stored control logic matched with the distance between the screen and the face is not stored, sending out second prompt information.
6. An ambient light generating device applied to a mobile terminal, comprising:
the first acquisition module is used for acquiring first ambient light when a screen of the mobile terminal is started;
a first determining module, configured to determine a first target control logic according to the first ambient light;
and the generating module is used for generating second ambient light according to the first target control logic.
7. The apparatus of claim 6, wherein the generating module comprises a brightness detecting module, a first determining module, and a first control logic storing module;
the brightness detection module is used for detecting first brightness information of the first ambient light;
the first judging module is used for judging whether a first pre-stored control logic matched with the first brightness information is stored or not;
the first control logic storage module is used for storing different first brightness information corresponding to different first pre-stored control logics;
the first determining module is further configured to determine, when a first pre-stored control logic matched with the first luminance information is stored, the first pre-stored control logic matched with the first luminance information as the first target control logic; and sending out first prompt information when a first pre-stored control logic matched with the first brightness information is not stored.
8. The ambient light generation apparatus according to claim 6 or 7, further comprising a second obtaining module, a second determining module, and a control module;
the second acquisition module is used for acquiring the face information when second ambient light is generated in the screen;
the second determining module is used for determining a second target control logic according to the face information;
the control module is configured to control second luminance information of the second ambient light according to the second target control logic.
9. The apparatus according to claim 8, wherein the generating module further comprises a distance detecting module, a second determining module and a second control logic storing module;
the distance detection module is used for detecting the distance between the screen and the face according to the face information;
the second judging module is used for judging whether a second pre-stored control logic matched with the distance between the screen and the face is stored or not;
the second control logic storage module is used for storing the second pre-stored control logic with different distances and different correspondences;
the second determining module is further configured to determine a second pre-stored control logic matched with the distance between the screen and the face as the second target control logic when the second pre-stored control logic matched with the distance between the screen and the face is stored; and sending out second prompt information when a second prestored control logic matched with the distance between the screen and the face is not stored.
10. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the method of generating ambient light of any of claims 1 to 6.
CN201910932944.5A 2019-09-29 2019-09-29 Ambient light generation method, ambient light generation device, and computer-readable storage medium Pending CN110691169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910932944.5A CN110691169A (en) 2019-09-29 2019-09-29 Ambient light generation method, ambient light generation device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910932944.5A CN110691169A (en) 2019-09-29 2019-09-29 Ambient light generation method, ambient light generation device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN110691169A true CN110691169A (en) 2020-01-14

Family

ID=69110971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910932944.5A Pending CN110691169A (en) 2019-09-29 2019-09-29 Ambient light generation method, ambient light generation device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110691169A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140118303A1 (en) * 2012-10-30 2014-05-01 Hon Hai Precision Industry Co., Ltd. Light emitting diode blackboard
CN103856619A (en) * 2012-12-04 2014-06-11 联想(北京)有限公司 Information processing method and electronic devices
CN104468912A (en) * 2014-12-08 2015-03-25 上海斐讯数据通信技术有限公司 Method for controlling luminance of screen of mobile terminal and display terminal
CN104767888A (en) * 2015-04-16 2015-07-08 广东欧珀移动通信有限公司 Screen brightness adjusting method and device
CN106205557A (en) * 2016-09-29 2016-12-07 北京小米移动软件有限公司 Screen brightness regulation method and device
CN106681609A (en) * 2016-12-15 2017-05-17 珠海格力电器股份有限公司 Terminal device screen brightness adjustment method, terminal device screen brightness adjustment device and terminal device
CN108307073A (en) * 2018-01-31 2018-07-20 努比亚技术有限公司 Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN110113536A (en) * 2019-05-17 2019-08-09 Oppo广东移动通信有限公司 A kind of screen light compensation method, device, storage medium and intelligent terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140118303A1 (en) * 2012-10-30 2014-05-01 Hon Hai Precision Industry Co., Ltd. Light emitting diode blackboard
CN103856619A (en) * 2012-12-04 2014-06-11 联想(北京)有限公司 Information processing method and electronic devices
CN104468912A (en) * 2014-12-08 2015-03-25 上海斐讯数据通信技术有限公司 Method for controlling luminance of screen of mobile terminal and display terminal
CN104767888A (en) * 2015-04-16 2015-07-08 广东欧珀移动通信有限公司 Screen brightness adjusting method and device
CN106205557A (en) * 2016-09-29 2016-12-07 北京小米移动软件有限公司 Screen brightness regulation method and device
CN106681609A (en) * 2016-12-15 2017-05-17 珠海格力电器股份有限公司 Terminal device screen brightness adjustment method, terminal device screen brightness adjustment device and terminal device
CN108307073A (en) * 2018-01-31 2018-07-20 努比亚技术有限公司 Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN110113536A (en) * 2019-05-17 2019-08-09 Oppo广东移动通信有限公司 A kind of screen light compensation method, device, storage medium and intelligent terminal

Similar Documents

Publication Publication Date Title
CN106131345B (en) Control method and device of proximity sensor and mobile terminal
CN109583271B (en) Method, device and terminal for fitting lane line
CN106548144B (en) Iris information processing method and device and mobile terminal
WO2019047862A1 (en) Fingerprint acquisition method and terminal device and storage medium
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN110958345B (en) Method and device for detecting rear cover of mobile terminal and computer readable storage medium
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN110691169A (en) Ambient light generation method, ambient light generation device, and computer-readable storage medium
CN111048056A (en) Terminal equipment brightness adjusting method and system, storage medium and terminal equipment
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN111163223A (en) Flash lamp control method and device, storage medium and terminal equipment
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium
CN112558808B (en) Unlocking method and device for bang screen, terminal and storage medium
CN109995441B (en) Communication information processing method, device and storage medium
CN109661023B (en) Mobile terminal control method and device, mobile terminal and storage medium
CN110031688B (en) Antenna test method, antenna test device and computer readable storage medium
CN111245911B (en) Network transmission method and system, storage medium and terminal equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114