CN109188820B - Device control method, device, storage medium and electronic device - Google Patents
Device control method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN109188820B CN109188820B CN201811021448.6A CN201811021448A CN109188820B CN 109188820 B CN109188820 B CN 109188820B CN 201811021448 A CN201811021448 A CN 201811021448A CN 109188820 B CN109188820 B CN 109188820B
- Authority
- CN
- China
- Prior art keywords
- state
- electrochromic
- laser sensor
- target
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000004040 coloring Methods 0.000 claims abstract description 75
- 239000000463 material Substances 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 22
- 239000011521 glass Substances 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 11
- ZNOKGRXACCSDPY-UHFFFAOYSA-N tungsten trioxide Chemical compound O=[W](=O)=O ZNOKGRXACCSDPY-UHFFFAOYSA-N 0.000 claims description 9
- 230000000007 visual effect Effects 0.000 claims description 6
- 229910000480 nickel oxide Inorganic materials 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 4
- 229910052751 metal Inorganic materials 0.000 claims description 4
- 239000002184 metal Substances 0.000 claims description 4
- GNRSAWUEBMWBQH-UHFFFAOYSA-N oxonickel Chemical compound [Ni]=O GNRSAWUEBMWBQH-UHFFFAOYSA-N 0.000 claims description 4
- IEQIEDJGQAUEQZ-UHFFFAOYSA-N phthalocyanine Chemical class N1C(N=C2C3=CC=CC=C3C(N=C3C4=CC=CC=C4C(=N4)N3)=N2)=C(C=CC=C2)C2=C1N=C1C2=CC=CC=C2C4=N1 IEQIEDJGQAUEQZ-UHFFFAOYSA-N 0.000 claims description 4
- 229920000123 polythiophene Polymers 0.000 claims description 4
- FHCPAXDKURNIOZ-UHFFFAOYSA-N tetrathiafulvalene Chemical compound S1C=CSC1=C1SC=CS1 FHCPAXDKURNIOZ-UHFFFAOYSA-N 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 4
- 239000010410 layer Substances 0.000 description 30
- 230000006870 function Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 11
- 230000003287 optical effect Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000002845 discoloration Methods 0.000 description 5
- 150000002500 ions Chemical class 0.000 description 4
- 239000003792 electrolyte Substances 0.000 description 3
- 238000007726 management method Methods 0.000 description 2
- 229920000620 organic polymer Polymers 0.000 description 2
- 238000006479 redox reaction Methods 0.000 description 2
- 238000002834 transmittance Methods 0.000 description 2
- 238000010521 absorption reaction Methods 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 239000004568 cement Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005684 electric field Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 150000004677 hydrates Chemical class 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000011244 liquid electrolyte Substances 0.000 description 1
- MHCFAGZWMAWTNR-UHFFFAOYSA-M lithium perchlorate Chemical compound [Li+].[O-]Cl(=O)(=O)=O MHCFAGZWMAWTNR-UHFFFAOYSA-M 0.000 description 1
- 229910001486 lithium perchlorate Inorganic materials 0.000 description 1
- 238000002310 reflectometry Methods 0.000 description 1
- 239000002356 single layer Substances 0.000 description 1
- BAZAXWOYCMUHIX-UHFFFAOYSA-M sodium perchlorate Chemical compound [Na+].[O-]Cl(=O)(=O)=O BAZAXWOYCMUHIX-UHFFFAOYSA-M 0.000 description 1
- 229910001488 sodium perchlorate Inorganic materials 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000007784 solid electrolyte Substances 0.000 description 1
- 229910052723 transition metal Inorganic materials 0.000 description 1
- 150000003624 transition metals Chemical class 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G02—OPTICS
- G02F—OPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
- G02F1/00—Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
- G02F1/01—Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour
- G02F1/15—Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour based on an electrochromic effect
- G02F1/163—Operation of electrochromic cells, e.g. electrodeposition cells; Circuit arrangements therefor
Landscapes
- Physics & Mathematics (AREA)
- Nonlinear Science (AREA)
- General Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Electrochromic Elements, Electrophoresis, Or Variable Reflection Or Absorption Elements (AREA)
Abstract
The embodiment of the application discloses a device control method, a device, a computer readable storage medium and an electronic device, wherein a target state to be presented by an electrochromic component can be determined firstly, and the target state comprises a transparent state or a coloring state. Then, a target voltage required to be supplied to the electrochromic element is further determined according to the determined target state. And finally, after determining the target voltage which needs to be provided for the electrochromic component, providing the target voltage for the electrochromic component and controlling the electrochromic component to present the target state. Wherein the electrochromic assembly renders the laser sensor in a user-invisible state when in the colored state and renders the laser sensor in a user-visible state when in the transparent state. Therefore, the electronic equipment can enable the laser sensor to be in a user invisible state through the electrochromic component, the effect of hiding the laser sensor is achieved, and the purpose of improving the integrity of the electronic equipment is achieved.
Description
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a device control method, apparatus, storage medium, and electronic device.
Background
Referring to fig. 1, a front area of the electronic device may be divided into a screen area and a non-screen area, where the screen area is used for displaying information such as images and texts, and the non-screen area is not used for displaying information and may be used for setting some functional components, such as a camera, a receiver, and a Home key. Currently, in order to authenticate the identity of a user using an electronic device, as shown in fig. 1, a laser sensor, such as a structured light sensor, an iris sensor, or the like, is further disposed in a non-screen area of the electronic device, however, the disposed laser sensor affects the integrity of the electronic device.
Disclosure of Invention
The embodiment of the application provides a device control method and device, a storage medium and an electronic device, which can improve the integrity of the electronic device.
In a first aspect, an embodiment of the present application provides an apparatus control method, which is applied to an electronic apparatus including a laser sensor and an electrochromic device, and the apparatus control method includes:
determining a target state to be presented by the electrochromic component, wherein the target state comprises a transparent state or a colored state;
determining a target voltage required to be provided for the electrochromic component according to the target state;
providing the target voltage for the electrochromic component, and controlling the electrochromic component to present the target state;
wherein the electrochromic assembly causes the laser sensor to be in a user-invisible state when in a colored state and causes the laser sensor to be in a user-visible state when in a transparent state.
In a second aspect, the present application provides a device control apparatus applied to an electronic device, the electronic device including a laser sensor and an electrochromic component, the device control apparatus including a state determination module, a voltage determination module, and a state control module, wherein,
the state determination module is used for determining a target state to be presented by the electrochromic component, wherein the target state comprises a transparent state or a coloring state;
the voltage determination module is used for determining a target voltage required to be provided for the electrochromic component according to the target state;
the state control module is used for providing the target voltage for the electrochromic component and controlling the electrochromic component to present the target state;
wherein the electrochromic assembly causes the laser sensor to be in a user-invisible state when in a colored state and causes the laser sensor to be in a user-visible state when in a transparent state.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the steps in the device control method provided in the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory has a computer program, and the processor is configured to execute the steps in the device control method according to the embodiment of the present application by calling the computer program.
In a fifth aspect, embodiments of the present application further provide an electronic device, including a processor, a memory, a laser sensor, and an electrochromic assembly, wherein,
the laser sensor emits laser energy outwards when in a working state;
the electrochromic component enables the laser sensor to be in a user visible state or a user invisible state according to the control of the processor;
the memory stores a computer program;
the processor is in communication with the memory and is configured to execute the computer program to perform the steps of:
determining a target state to be presented by the electrochromic component, wherein the target state comprises a transparent state or a colored state;
determining a target voltage required to be provided for the electrochromic component according to the target state;
providing the target voltage for the electrochromic component, and controlling the electrochromic component to present the target state;
wherein the electrochromic assembly causes the laser sensor to be in a user-invisible state when in a colored state and causes the laser sensor to be in a user-visible state when in a transparent state.
In the technical scheme provided by the application, the electronic device can determine a target state to be presented by the electrochromic component at first, wherein the target state comprises a transparent state or a coloring state. Then, a target voltage required to be supplied to the electrochromic element is further determined according to the determined target state. And finally, after determining the target voltage which needs to be provided for the electrochromic component, providing the target voltage for the electrochromic component and controlling the electrochromic component to present the target state. Wherein the electrochromic assembly renders the laser sensor in a user-invisible state when in the colored state and renders the laser sensor in a user-visible state when in the transparent state. Therefore, the electronic equipment can enable the laser sensor to be in a user invisible state through the electrochromic component, the effect of hiding the laser sensor is achieved, and the purpose of improving the integrity of the electronic equipment is achieved.
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 structural diagram of a front area of an electronic device in an embodiment of the present application.
Fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of the arrangement position of the electrochromic assembly in the embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electrochromic device in an embodiment of the present application.
Fig. 5 is a schematic diagram of applying voltage to an electrochromic device in an embodiment of the present application.
Fig. 6 is a schematic diagram of an electrochromic component coloration switch setting interface provided by an electronic device in an embodiment of the application.
Fig. 7 is a schematic diagram of switching an electrochromic element from a transparent state to a colored state in an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a device control apparatus provided in an embodiment of the present application.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 10 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the device control method may be the device control apparatus provided in the embodiment of the present application, or an electronic device integrated with the device control apparatus, where the device control apparatus may be implemented in a hardware or software manner. The electronic device may be a computer device such as a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 2, fig. 2 is a schematic flow chart of an apparatus control method according to an embodiment of the present disclosure. The flow of the device control method provided by the embodiment of the application can be as follows:
101. and determining a target state to be presented by the electrochromic component, wherein the target state comprises a transparent state or a coloring state.
In embodiments of the present application, the electronic device includes a laser sensor including, but not limited to, a structured light sensor, an iris sensor, and the like. As an alternative embodiment, as shown in fig. 1, the laser sensor may be disposed on a housing on the front side of the electronic device (i.e. the side where the screen is located), and a glass cover plate covering the front housing may be further disposed to protect the laser sensor and the screen.
In addition, the electronic device further comprises an electrochromic assembly, the electrochromic assembly can be formed by covering the area of the laser sensor on the glass cover plate through an electrochromic process after the glass cover plate is formed, or can be formed separately through the electrochromic process after the glass cover plate is formed, and the electrochromic assembly is adhered to the area of the laser sensor on the glass cover plate through optical cement, or can be used as a part of the laser sensor, and the like. For example, referring to fig. 3, the electrochromic element may be a part of a glass cover plate covering the laser sensor.
To facilitate understanding of the present disclosure, the electrochromic assembly will first be briefly described.
Electrochromism refers to a phenomenon that optical properties (such as reflectivity, light transmittance, absorption rate and the like) of a material are changed stably and reversibly in color/transparency under the action of an external electric field. Materials with electrochromic properties may be referred to as electrochromic materials. The electrochromic component in the embodiment of the present application is made of electrochromic materials.
Referring to fig. 4, a schematic diagram of a layered structure of an electrochromic device is provided, as an alternative embodiment, the electrochromic device may include two conductive layers stacked together, and a color-changing layer, an electrolyte layer, and an ion storage layer disposed between the two conductive layers.
Among them, the conductive layer may be a transparent conductive layer, which has excellent conductivity and good optical transmittance.
The color-changing layer is a core layer of the electrochromic assembly and is also a generation layer of color-changing reaction. The electrochromic materials used in the color-changing layer can be classified into inorganic electrochromic materials and organic electrochromic materials according to their types. The inorganic electrochromic material mainly refers to oxides, complexes, hydrates, heteropolyacids and the like of certain transition metals, such as tungsten trioxide (WO3), nickel oxide (NiO) and the like. The organic electrochromic materials can be further divided into organic micromolecular electrochromic materials, organic polymer electrochromic materials and the like, such as polythiophene and derivatives thereof, viologen, tetrathiafulvalene, metal phthalocyanine compounds and the like.
Wherein, according to the difference that adopts electrochromic material, the discoloration layer can further be stratified, for example, when the discoloration layer adopts organic micromolecule electrochromic material, the discoloration layer is single layer structure, and when the discoloration layer adopts organic polymer electrochromic material, the discoloration layer is then sandwich structure.
The electrolyte layer is composed of a special conductive material such as a liquid electrolyte material containing a solution of lithium perchlorate, sodium perchlorate, or the like, or may be a solid electrolyte material.
The ion storage layer plays a role in storing charges in the electrochromic component, namely corresponding counter ions are stored when the material of the electrochromic layer undergoes an oxidation-reduction reaction, so that the charge balance of the whole electrochromic component is ensured.
Referring to fig. 5, when a certain voltage is applied to the two transparent conductive layers of the electrochromic device, the electrochromic material of the color-changing layer of the electrochromic device undergoes an oxidation-reduction reaction under the voltage, so that a color/transparency change occurs.
For example, when no voltage (or 0V) is applied to the two transparent conductive layers of the electrochromic device, the electrochromic device will be in a transparent state, when the voltage applied between the two transparent conductive layers is changed from 0V to 3V, the electrochromic device will be in black, when the voltage applied between the two transparent conductive layers is changed from 3V to-3V, the electrochromic device will be changed from black to transparent, and so on.
It should be understood by those skilled in the art that the electrochromic assembly may include fewer layers as shown in fig. 4 or fig. 5, and may also include more layers, and the embodiments of the present application are not particularly limited, and may be configured by those skilled in the art according to actual needs, for example, the electrochromic assembly may include only two conductive layers, and a color changing layer and an electrolyte layer located between the two conductive layers, and does not include an ion storage layer.
Based on the above description, it should be understood by those skilled in the art that in the embodiments of the present application, the electrochromic assembly may include two different states, namely, a transparent state and a colored state.
Accordingly, in the embodiment of the application, the laser sensor is in the invisible state or the visible state by controlling the electrochromic component to be in the transparent state or the colored state.
When the electrochromic assembly is in the transparent state, the external light can penetrate through the electrochromic assembly and irradiate the laser sensor, and when the light is reflected by the laser sensor, the light penetrates through the electrochromic assembly and finally projects into eyes of a user, the user can see the laser sensor. In addition, when the electrochromic component is in a transparent state, laser energy emitted by the laser sensor can also penetrate through the electrochromic component.
When the electrochromic component is in a colored state, external light cannot penetrate through the electrochromic component and irradiate the laser sensor, so that a user cannot see the laser sensor, and accordingly, the state that the user cannot see the laser sensor is defined as a user invisible state. In addition, when the electrochromic component is in a colored state, the laser energy emitted by the laser sensor cannot penetrate through the electrochromic component.
In the embodiment of the application, the electronic device first determines a target state to be presented by the electrochromic component, where the target state includes a transparent state and a colored state.
As an alternative implementation, "determining a target state to be presented by the electrochromic component" may include:
(1) judging whether the laser sensor needs to emit laser energy or not;
(2) if the laser sensor needs to emit laser energy, determining that the target state to be presented of the electrochromic assembly is a transparent state;
(3) and if the laser sensor does not need to emit laser energy, determining that the target state to be presented by the electrochromic assembly is a coloring state.
It is easily understood that the laser sensor needs to emit laser energy outward and perform a function based on the emitted laser energy. Based on the above description, it should be understood by those skilled in the art that the laser energy emitted by the laser sensor can penetrate the electrochromic element to achieve the function when and only when the electrochromic element is in the transparent state.
Therefore, when the electronic device determines the target state to be presented by the electrochromic assembly, whether the laser sensor needs to emit laser energy or not can be judged.
If it is determined that the laser sensor needs to emit laser energy, it may be determined that the laser sensor needs to implement a function at the time, and correspondingly, in order to ensure that the laser energy emitted by the laser sensor can penetrate through the electrochromic component, it is determined that a target state to be presented by the electrochromic component is a transparent state at the time.
If it is determined that the laser sensor does not need to emit laser energy, it may be determined that the laser sensor does not need to implement a function implementation function at this time, and it is determined that the target state to be presented by the electrochromic component is a colored state at this time.
Optionally, "determining whether the laser sensor needs to emit laser energy" includes:
(1) judging whether the laser sensor is in a working state, if so, determining that the laser sensor needs to emit laser energy; or,
(2) and judging whether the laser sensor is switched to a working state, and if so, determining that the laser sensor needs to emit laser energy.
It should be noted that the states of the laser sensor may include an operating state and a standby state, where after the electronic device is turned on (or restarted), the laser sensor is initially in the standby state, and when the function of the laser sensor is implemented (for example, the iris sensor is required to perform iris recognition, or the structured light sensor is required to perform three-dimensional imaging, etc.), the laser sensor is switched from the standby state to the operating state and emits laser energy outwards, and the function is implemented by using the emitted laser energy, and after the function is implemented, the laser sensor is switched from the operating state to the standby state and does not emit laser energy outwards until the laser sensor is switched to the operating state again. So reciprocating, laser sensor will be constantly switched between operating condition and standby state.
Therefore, the electronic equipment can judge whether the laser sensor is in a working state, and if so, the laser sensor is determined to need to emit laser energy; or judging whether the laser sensor is switched to a working state, and if so, determining that the laser sensor needs to emit laser energy.
Further, if the laser sensor is in a standby state or is switching to a standby state, the electronics determine that the laser sensor does not need to emit laser energy.
Optionally, "if the laser sensor needs to emit laser energy, determining that the target state to be presented by the electrochromic component is a transparent state", including:
(1) if the laser sensor needs to emit laser energy, judging whether a user exists in the visible range of the laser sensor;
(2) and if so, determining that the target state to be presented by the electrochromic assembly is a transparent state.
It should be noted that the premise that the laser sensor realizes the function is that the laser energy emitted by the laser sensor can be projected to the user, so that the electronic device can determine that the laser sensor needs to emit the laser energy, that is, when the laser sensor needs to realize the function, judge whether the user exists in the visible range of the laser sensor, if the user exists, determine that the target state to be presented of the electrochromic component is transparent, further control the electrochromic component to present a transparent state, so that the laser energy emitted by the laser sensor can be projected to the user through the electrochromic component, and thus the function is realized.
Wherein, judging whether there is user in the visual range of the laser sensor includes:
(1) shooting through a front camera to obtain a real-time image;
(2) and carrying out face detection on the shot real-time image, and if the face image is detected from the real-time image, determining that a user exists in the visual range of the laser sensor.
It should be noted that what kind of face detection algorithm (such as AdaBoost method, classification regression tree method, neural network method, and the like) is used by the electronic device to perform face detection on the captured real-time image may be selected by a person skilled in the art according to actual needs, and this is not specifically limited by the embodiment of the present application.
As another alternative implementation, "determining a target state to be presented by the electrochromic component" may include:
(1) receiving a state switching instruction which is input by a user and used for switching the coloring switch of the electrochromic assembly;
(2) if the received state switching instruction indicates that the coloring switch of the electrochromic component is switched to the open state, determining that the target state to be presented by the electrochromic component is the coloring state;
(3) and if the received state switching instruction indicates that the coloring switch of the electrochromic component is switched to the closed state, determining that the target state to be presented by the electrochromic component is a transparent state.
In this embodiment, the electronic device is provided with an electrochromic component coloring switch, and the electrochromic component coloring switch may be a physical hardware switch or a virtual software switch, which is not specifically limited in this embodiment. The electrochromic component coloring switch can comprise two states, wherein the two states are respectively an open state and a closed state, so that a user can directly switch the state of the electrochromic component coloring switch according to the actual needs of the user to input the expected state to be presented by the electrochromic component to the electronic equipment.
The electronic device is further provided with an electrochromic component coloring switch setting interface, and a user can input a state switching instruction to the electronic device through the electrochromic component coloring switch setting interface so as to instruct the electronic device to switch the electrochromic component coloring switch from the on state to the off state or switch the electrochromic component coloring switch from the off state to the on state.
Accordingly, the electronic device may receive a display operation of the electrochromic device coloration switch setting interface input by the user (specifically, the display operation may be predefined by a person skilled in the art according to actual needs, or predefined according to the input of the user, for example, an "S" shaped sliding touch operation on the screen may be predefined as a display operation for triggering the electronic device to display the electrochromic device coloration switch setting interface, or the like), and display the electrochromic device coloration switch setting interface according to the received display operation, so as to receive the state switching instruction of the user through the coloring switch setting interface of the electrochromic assembly, thereby switching the coloring switch of the electrochromic component from an open state to a closed state according to the received state switching instruction, or, the coloring switch of the electrochromic component is switched from the closed state to the open state according to the received state switching instruction.
If the state switching instruction indicates to switch the coloring switch of the electrochromic component to the on state, it can be determined that the user desires the coloring state of the electrochromic component, and if the state switching instruction indicates to switch the coloring switch of the electrochromic component to the off state, it can be determined that the user desires the coloring switch of the electrochromic component to be in the transparent state.
For example, referring to fig. 6, in an electrochromic device coloration switch setting interface provided by the electronic device, a graphical electrochromic device coloration switch and a prompt message "hide laser sensor" are included as shown in fig. 6, and a user may input a state switching instruction to the electronic device in a manner of toggling a circular slider of the electrochromic device coloration switch with a finger. If the user toggles the circular slider of the electrochromic assembly coloring switch from the left side to the right side, the input state switching instruction is used for indicating the electronic equipment to switch the electrochromic assembly coloring switch to the on state, and if the user toggles the circular slider from the right side to the left side, the input state switching instruction is used for indicating the electronic equipment to switch the electrochromic assembly coloring switch to the off state.
As another alternative, on the basis of the on state and the off state, the electrochromic device coloring switch may further include a third state, i.e., an automatic state, and the "determining a target state to be presented by the electrochromic device" may include:
(1) receiving a state switching instruction which is input by a user and used for switching the coloring switch of the electrochromic assembly;
(2) if the received state switching instruction indicates that the coloring switch of the electrochromic component is switched to the open state, determining that the target state to be presented by the electrochromic component is the coloring state;
(3) if the received state switching instruction indicates that the coloring switch of the electrochromic assembly is switched to the closed state, determining that the target state to be presented of the electrochromic assembly is a transparent state;
(4) if the received state switching instruction indicates that the coloring switch of the electrochromic assembly is switched to an automatic state, judging whether the laser sensor needs to emit laser energy, if so, determining that the target state to be presented of the electrochromic assembly is a transparent state, otherwise, determining that the target state to be presented of the electrochromic assembly is a coloring state.
102. And determining a target voltage required to be supplied to the electrochromic component according to the determined target state.
In the embodiment of the application, the electronic device is preset with a corresponding relationship between color and voltage, and if the determined target state is a colored state and the electrochromic assembly is in a transparent state at present, the electronic device may use the color of the housing at the position where the laser sensor is disposed as the colored target color of the electrochromic assembly, and determine the voltage corresponding to the target color according to the preset corresponding relationship between color and voltage, as the target voltage to be provided to the electrochromic assembly. And if the determined target state is a transparent state and the electrochromic component is in a coloring state currently, taking the reverse phase voltage corresponding to the voltage of the target color as the target voltage required to be supplied to the electrochromic component.
For example, assuming that the color of the housing at the installation position of the laser sensor is black, if the determined target state is a colored state and the electrochromic device is in a transparent state at present, the electronic device determines that the voltage for coloring the electrochromic device from the transparent state to the black state is 3V according to the preset corresponding relationship between the color and the voltage, and then takes the voltage 3V as the target voltage for providing the electrochromic device, and if the determined target state is the transparent state and the electrochromic device is in the colored state (black) at present, then takes the anti-phase voltage-3V of the voltage 3V as the target voltage for providing the electrochromic device.
In addition, if the determined target state is a colored state and the electrochromic device is currently in a colored state, or the determined target state is a transparent state and the electrochromic device is currently in a transparent state, the electronic device determines that the target voltage required to be supplied to the electrochromic device is 0V.
103. Providing the determined target voltage for the electrochromic component, and controlling the electrochromic component to present the determined target state;
wherein the electrochromic assembly renders the laser sensor in a user-invisible state when in the colored state and renders the laser sensor in a user-visible state when in the transparent state.
In the embodiment of the application, after determining the target voltage required to be provided to the electrochromic component, the electronic device can provide the determined target voltage to the electrochromic component to control the electrochromic component to present the determined target state.
For example, referring to fig. 7, a black portion represents a housing, a dashed rectangular area represents an electrochromic device, and a circular area within the dashed rectangular area represents a laser sensor, that is, the electrochromic device is covered on the laser sensor, as shown in fig. 7, the electrochromic device is currently in a transparent state, laser energy emitted by the laser sensor can penetrate through the electrochromic device, and a user can also see the laser sensor through the electrochromic device, at this time, the laser sensor is in a user-viewable state. And when the target state to be presented of the electrochromic assembly is determined to be the coloring state and the electrochromic assembly is controlled to be the coloring state, the electrochromic assembly is black and consistent with the color of the shell at the position where the laser sensor is arranged, the laser sensor is hidden, the user cannot see the laser sensor at the moment, and the laser sensor is in a user invisible state at the moment.
Optionally, a filter material may be further added to the electrochromic device, so that when the electrochromic device is in a transparent state, only laser energy safe to human eyes among laser energy emitted by the laser sensor is transmitted, and laser energy harmful to human eyes is filtered.
As can be seen from the above, the electronic device in the embodiment of the present application may first determine a target state to be presented by the electrochromic component, where the target state includes a transparent state or a colored state. Then, a target voltage required to be supplied to the electrochromic element is further determined according to the determined target state. And finally, after determining the target voltage which needs to be provided for the electrochromic component, providing the target voltage for the electrochromic component and controlling the electrochromic component to present the target state. Wherein the electrochromic assembly renders the laser sensor in a user-invisible state when in the colored state and renders the laser sensor in a user-visible state when in the transparent state. Therefore, the electronic equipment can enable the laser sensor to be in a user invisible state through the electrochromic component, the effect of hiding the laser sensor is achieved, and the purpose of improving the integrity of the electronic equipment is achieved.
In one embodiment, an apparatus control device is also provided. Referring to fig. 8, fig. 8 is a schematic structural diagram of an apparatus control device 400 according to an embodiment of the present disclosure. The device control apparatus 400 is applied to an electronic device including a laser sensor and an electrochromic component, and the device control apparatus 400 includes a state determination module 401, a voltage determination module 403, and a state control module 403, as follows:
a state determining module 401, configured to determine a target state to be presented by the electrochromic component, where the target state includes a transparent state or a colored state;
a voltage determining module 403, configured to determine a target voltage to be provided to the electrochromic device according to the determined target state;
the state control module 403 is configured to provide the determined target voltage to the electrochromic component, and control the electrochromic component to present the determined target state;
wherein the electrochromic assembly renders the laser sensor in a user-invisible state when in the colored state and renders the laser sensor in a user-visible state when in the transparent state.
In an embodiment, in determining the target state to be presented by the electrochromic component, the state determination module 401 may be configured to:
judging whether the laser sensor needs to emit laser energy or not;
if the laser sensor needs to emit laser energy, determining that the target state to be presented by the electrochromic assembly is a transparent state;
and if the laser sensor does not need to emit laser energy, determining that the target state to be presented by the electrochromic assembly is a coloring state.
In one embodiment, in determining whether the laser sensor needs to emit laser energy, the state determination module 401 may be configured to:
judging whether the laser sensor is in a working state, if so, determining that the laser sensor needs to emit laser energy; or,
and judging whether the laser sensor is switched to a working state, and if so, determining that the laser sensor needs to emit laser energy.
In an embodiment, the state determination module 401 may be further configured to:
if the laser sensor needs to emit laser energy, judging whether a user exists in the visible range of the laser sensor;
and if so, determining that the target state to be presented by the electrochromic component is a transparent state.
In one embodiment, in determining whether a user is present within the visible range of the laser sensor, the status determination module 401 may be configured to:
shooting through a front camera to obtain a real-time image;
and carrying out face detection on the shot real-time image, and if the face image is detected from the real-time image, determining that the user exists in the visual range of the laser sensor.
In an embodiment, in determining the target state to be presented by the electrochromic component, the state determination module 401 may be configured to:
receiving a state switching instruction input by a user and used for coloring a switch of the electrochromic component;
if the received state switching instruction indicates that the coloring switch of the electrochromic component is switched to the open state, determining that the target state to be presented by the electrochromic component is the coloring state;
and if the received state switching instruction indicates that the coloring switch of the electrochromic component is switched to the closed state, determining that the target state to be presented by the electrochromic component is a transparent state.
In an embodiment, in determining the target state to be presented by the electrochromic component, the state determination module 401 may be configured to:
receiving a state switching instruction input by a user and used for coloring a switch of the electrochromic component;
if the received state switching instruction indicates that the coloring switch of the electrochromic component is switched to the open state, determining that the target state to be presented by the electrochromic component is the coloring state;
if the received state switching instruction indicates that the coloring switch of the electrochromic component is switched to the closed state, determining that the target state to be presented by the electrochromic component is a transparent state;
if the received state switching instruction indicates that the coloring switch of the electrochromic assembly is switched to an automatic state, whether the laser sensor needs to emit laser energy is judged, if so, the target state to be presented of the electrochromic assembly is determined to be a transparent state, and if not, the target state to be presented of the electrochromic assembly is determined to be a coloring state.
In one embodiment, the electrochromic element transmits only laser energy safe to the human eye from among laser energy emitted by the laser sensor when in the transparent state.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the units may refer to the foregoing embodiments, which are not described herein again.
As can be seen from the above, the device control apparatus 400 provided in the embodiment of the present application, applied to an electronic device, may first determine a target state to be presented by an electrochromic component, where the target state includes a transparent state or a colored state. Then, a target voltage required to be supplied to the electrochromic element is further determined according to the determined target state. And finally, after determining the target voltage which needs to be provided for the electrochromic component, providing the target voltage for the electrochromic component and controlling the electrochromic component to present the target state. Wherein the electrochromic assembly renders the laser sensor in a user-invisible state when in the colored state and renders the laser sensor in a user-visible state when in the transparent state. Therefore, the electronic equipment can enable the laser sensor to be in a user invisible state through the electrochromic component, the effect of hiding the laser sensor is achieved, and the purpose of improving the integrity of the electronic equipment is achieved.
The embodiment of the application also provides the electronic equipment. Referring to fig. 9, an electronic device 500 includes a processor 501, a memory 502, a screen 503, an electrochromic element 504, and a laser sensor 505. The memory 502, the screen 503, the electrochromic device 504 and the laser sensor 505 are electrically connected to the processor 501 respectively.
The processor 500 is a control center of the electronic device 500, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 500 and processes data by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 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, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
The screen 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be composed of graphics, text, icons, video, and any combination thereof. The screen 503 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The laser sensor 505 may be disposed on a housing on the front side of the electronic device (i.e., the side on which the screen is located), and the laser sensor 505 emits laser energy outwards when operating to implement the function. Laser sensors include, but are not limited to, iris sensors, structured light sensors, and the like.
The electrochromic element 504 may be disposed over the laser sensor 505 and cover the laser sensor 505 (in addition, the electrochromic element 504 may also be a part of the laser sensor 505, such as a cover plate of the laser sensor 505). The electrochromic assembly 504 may be controlled by the processor 201 such that the laser sensor 505 is in a user-viewable state or a user-non-viewable state.
In the embodiment of the present application, the processor 501 in the electronic device 500 communicates with the memory 502 to call the computer program stored in the memory 502, so as to implement the following operations:
determining a target state to be presented by the electrochromic component 504, the target state comprising a transparent state or a colored state;
determining a target voltage to be supplied to the electrochromic element 504 based on the determined target state;
providing the determined target voltage to the electrochromic component 504, and controlling the electrochromic component 504 to present the determined target state;
wherein the electrochromic element 504, in the colored state, causes the laser sensor 505 to be in a user-invisible state, and, in the transparent state, causes the laser sensor 505 to be in a user-visible state.
Referring to fig. 10, in some embodiments, the electronic device 500 may further include: radio frequency circuitry 506, audio circuitry 507, and a power supply 508. The radio frequency circuit 506, the audio circuit 507 and the power supply 508 are electrically connected to the processor 501.
The radio frequency circuit 506 may be used for transceiving radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The power supply 508 may be used to power various components of the electronic device 500. In some embodiments, power supply 508 may be logically coupled to processor 501 through a power management system, such that functions to manage charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 10, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In some embodiments, in determining the target state to be presented by electrochromic component 504, processor 501 may perform the following steps:
judging whether the laser sensor 505 needs to emit laser energy;
if the laser sensor 505 needs to emit laser energy, determining that the target state to be presented by the electrochromic component 504 is a transparent state;
if the laser sensor 505 does not need to emit laser energy, then the target state to be presented by the electrochromic element 504 is determined to be a colored state.
In some embodiments, in determining whether laser sensor 505 needs to emit laser energy, processor 501 may further perform the following steps:
judging whether the laser sensor 505 is in a working state, if so, determining that the laser sensor 505 needs to emit laser energy; or,
and judging whether the laser sensor 505 is switched to a working state, and if so, determining that the laser sensor 505 needs to emit laser energy.
In some embodiments, processor 501 may also perform the following steps:
if the laser sensor 505 needs to emit laser energy, judging whether a user exists in the visible range of the laser sensor 505;
if so, the target state to be presented by the electrochromic element 504 is determined to be a transparent state.
In some embodiments, in determining whether a user is present within the visible range of laser sensor 505, processor 501 may further perform the following steps:
shooting through a front camera to obtain a real-time image;
and performing face detection on the shot real-time image, and if the face image is detected from the real-time image, determining that the user exists in the visible range of the laser sensor 505.
In some embodiments, in determining the target state to be presented by electrochromic component 504, processor 501 may also perform the following steps:
receiving a state switching instruction input by a user for coloring a switch of the electrochromic component 504;
if the received state switching instruction indicates that the coloring switch of the electrochromic component 504 is switched to the on state, determining that the target state to be presented by the electrochromic component 504 is a coloring state;
if the received state switching instruction indicates to switch the coloring switch of the electrochromic element 504 to the off state, it is determined that the target state to be presented by the electrochromic element 504 is a transparent state.
In some embodiments, in determining the target state to be presented by electrochromic component 504, processor 501 may also perform the following steps:
receiving a state switching instruction input by a user for coloring a switch of the electrochromic component 504;
if the received state switching instruction indicates that the coloring switch of the electrochromic component 504 is switched to the on state, determining that the target state to be presented by the electrochromic component 504 is a coloring state;
if the received state switching instruction indicates that the coloring switch of the electrochromic component 504 is switched to the off state, determining that the target state to be presented by the electrochromic component 504 is a transparent state;
if the received state switching instruction indicates that the coloring switch of the electrochromic assembly 504 is switched to an automatic state, whether the laser sensor 505 needs to emit laser energy is judged, if so, the target state to be presented of the electrochromic assembly 504 is determined to be a transparent state, and otherwise, the target state to be presented of the electrochromic assembly 504 is determined to be a coloring state.
In some embodiments, electrochromic element 504 transmits only laser energy that is safe for the human eye, out of the laser energy emitted by laser sensor 505, when in the transparent state.
An embodiment of the present application further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores a computer program, and the processor executes the device control method in any of the above embodiments by calling the computer program stored in the memory, where the method includes: determining a target state to be presented by the electrochromic assembly, wherein the target state comprises a transparent state or a coloring state; determining a target voltage required to be supplied to the electrochromic component according to the determined target state; providing the determined target voltage for the electrochromic component, and controlling the electrochromic component to present the determined target state; wherein the electrochromic assembly renders the laser sensor in a user-invisible state when in the colored state and renders the laser sensor in a user-visible state when in the transparent state.
An embodiment of the present application further provides a computer-readable storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the device control method in any one of the above embodiments, such as: determining a target state to be presented by the electrochromic assembly, wherein the target state comprises a transparent state or a coloring state; determining a target voltage required to be supplied to the electrochromic component according to the determined target state; providing the determined target voltage for the electrochromic component, and controlling the electrochromic component to present the determined target state; wherein the electrochromic assembly renders the laser sensor in a user-invisible state when in the colored state and renders the laser sensor in a user-visible state when in the transparent state.
In the embodiment of the present application, the computer readable storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the apparatus control method of the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the apparatus control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, the computer program can be stored in a computer readable storage medium, such as a memory of the electronic apparatus, and executed by at least one processor in the electronic apparatus, and the process of executing the computer program can include the process of the embodiment of the apparatus control method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the device control apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is provided for a device control method, apparatus, storage medium and electronic device provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (9)
1. An apparatus control method applied to an electronic apparatus, wherein the electronic apparatus includes a laser sensor and an electrochromic device, the electrochromic device is provided with a filter material, the electrochromic device is formed by an electrochromic process in a region covering the laser sensor on a glass cover plate, and is a part of the glass cover plate, the electrochromic device includes a color-changing layer, the color-changing layer includes an inorganic electrochromic material and an organic electrochromic material, the inorganic electrochromic material includes tungsten trioxide or nickel oxide, the organic electrochromic material includes polythiophenes and derivatives thereof, viologen, tetrathiafulvalene or metal phthalocyanine compounds, and the apparatus control method includes:
acquiring the existence condition of a user in the visual range of the laser sensor;
determining a target state to be presented by the electrochromic component according to the existence condition of the user, wherein the target state comprises a transparent state or a coloring state, and the color corresponding to the coloring state is consistent with the color of the shell at the position where the laser sensor is arranged;
determining a target voltage required to be provided for the electrochromic component according to the target state;
providing the target voltage for the electrochromic component, and controlling the electrochromic component to present the target state;
the laser sensor is in a user-invisible state when the electrochromic component is in a coloring state, and is in a user-visible state when the electrochromic component is in a transparent state, and laser energy harmful to human eyes is filtered by the filter material.
2. The device control method of claim 1, wherein said determining a target state to be presented by the electrochromic component comprises:
judging whether the laser sensor needs to emit laser energy or not;
if the laser sensor needs to emit laser energy, determining that the target state to be presented by the electrochromic assembly is a transparent state;
and if the laser sensor does not need to emit laser energy, determining that the target state to be presented by the electrochromic assembly is a coloring state.
3. The apparatus control method according to claim 2, wherein said determining whether the laser sensor needs to emit laser energy comprises:
judging whether the laser sensor is in a working state, if so, determining that the laser sensor needs to emit laser energy; or,
and judging whether the laser sensor is switched to a working state, if so, determining that the laser sensor needs to emit laser energy.
4. The apparatus control method according to any one of claims 2 to 3, wherein the electrochromic element transmits only laser energy safe to the human eye among laser energy emitted from the laser sensor when in the transparent state.
5. The device control method of claim 1, wherein said determining a target state to be presented by the electrochromic component comprises:
receiving a state switching instruction input by a user and used for coloring a switch of the electrochromic component;
if the state switching instruction indicates that the coloring switch of the electrochromic component is switched to the on state, determining that the target state to be presented by the electrochromic component is a coloring state;
and if the state switching instruction indicates that the coloring switch of the electrochromic component is switched to the closed state, determining that the target state to be presented by the electrochromic component is a transparent state.
6. An equipment control device is applied to electronic equipment and is characterized in that the electronic equipment comprises a laser sensor and an electrochromic assembly, wherein a filter material is arranged in the electrochromic assembly, the electrochromic assembly is formed by covering an area of the laser sensor on a glass cover plate through an electrochromic process and is a part of the glass cover plate, the electrochromic assembly comprises a color changing layer, the color changing layer comprises an inorganic electrochromic material and an organic electrochromic material, the inorganic electrochromic material comprises tungsten trioxide or nickel oxide, the organic electrochromic material comprises polythiophene and derivatives thereof, viologen, tetrathiafulvalene or metal phthalocyanine compounds, the equipment control device comprises a user existence condition acquisition module, a state determination module, a voltage determination module and a state control module, wherein,
the user existence condition acquisition module is used for acquiring the user existence condition in the visual range of the laser sensor;
the state determination module is used for determining a target state to be presented by the electrochromic assembly according to the existence condition of the user, wherein the target state comprises a transparent state or a coloring state, and the color corresponding to the coloring state is consistent with the color of the shell at the position where the laser sensor is arranged;
the voltage determination module is used for determining a target voltage required to be provided for the electrochromic component according to the target state;
the state control module is used for providing the target voltage for the electrochromic component and controlling the electrochromic component to present the target state;
the laser sensor is in a user-invisible state when the electrochromic component is in a coloring state, and is in a user-visible state when the electrochromic component is in a transparent state, and laser energy harmful to human eyes is filtered by the filter material.
7. A computer-readable storage medium, on which a computer program is stored, which, when run on a computer, causes the computer to perform the steps in the device control method according to any one of claims 1 to 5.
8. An electronic device, comprising a processor and a memory, the memory storing a computer program, the processor being configured to execute the steps in the device control method according to any one of claims 1 to 5 by calling the computer program.
9. An electronic device, comprising a processor, a memory, a laser sensor and an electrochromic element, wherein a filter material is disposed in the electrochromic element, the electrochromic element is formed by an electrochromic process in a region covering the laser sensor on a glass cover plate, and is a part of the glass cover plate, and the electrochromic element comprises a color-changing layer, the color-changing layer comprises an inorganic electrochromic material and an organic electrochromic material, the inorganic electrochromic material comprises tungsten trioxide or nickel oxide, the organic electrochromic material comprises polythiophene and its derivatives, viologen, tetrathiafulvalene or metal phthalocyanine compounds, wherein,
the laser sensor emits laser energy outwards when in a working state;
the electrochromic component enables the laser sensor to be in a user visible state or a user invisible state according to the control of the processor;
the memory stores a computer program;
the processor is in communication with the memory and is configured to execute the computer program to perform the steps of:
acquiring the existence condition of a user in the visual range of the laser sensor;
determining a target state to be presented by the electrochromic component according to the existence condition of the user, wherein the target state comprises a transparent state or a coloring state, and the color corresponding to the coloring state is consistent with the color of the shell at the position where the laser sensor is arranged;
determining a target voltage required to be provided for the electrochromic component according to the target state;
providing the target voltage for the electrochromic component, and controlling the electrochromic component to present the target state;
the laser sensor is in a user-invisible state when the electrochromic component is in a coloring state, and is in a user-visible state when the electrochromic component is in a transparent state, and laser energy harmful to human eyes is filtered by the filter material.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811021448.6A CN109188820B (en) | 2018-09-03 | 2018-09-03 | Device control method, device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811021448.6A CN109188820B (en) | 2018-09-03 | 2018-09-03 | Device control method, device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109188820A CN109188820A (en) | 2019-01-11 |
CN109188820B true CN109188820B (en) | 2022-01-25 |
Family
ID=64912165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811021448.6A Active CN109188820B (en) | 2018-09-03 | 2018-09-03 | Device control method, device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109188820B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110702227B (en) * | 2019-09-20 | 2023-04-07 | 奥比中光科技集团股份有限公司 | Micro spectrometer and spectrum detection method |
CN111583782A (en) * | 2020-05-15 | 2020-08-25 | 武汉华星光电半导体显示技术有限公司 | Display device and electronic apparatus |
CN112882305B (en) * | 2021-02-10 | 2023-03-03 | Oppo广东移动通信有限公司 | Control method, electronic device, and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951682A (en) * | 2015-06-05 | 2015-09-30 | 小米科技有限责任公司 | Privacy protection method and device |
WO2017075459A1 (en) * | 2015-10-30 | 2017-05-04 | Essential Products, Inc. | Optical sensors disposed beneath the display of an electronic device |
CN108388063A (en) * | 2018-02-27 | 2018-08-10 | 广东欧珀移动通信有限公司 | Laser projection module, depth camera and electronic device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202838087U (en) * | 2012-04-01 | 2013-03-27 | 上海科斗电子科技有限公司 | Portable intelligent instrument for display built-in camera |
CN204795004U (en) * | 2015-07-02 | 2015-11-18 | 瑞声声学科技(深圳)有限公司 | Portable removal communications facilities |
CN108600612B (en) * | 2015-09-28 | 2021-03-09 | Oppo广东移动通信有限公司 | Photographing method and mobile terminal |
-
2018
- 2018-09-03 CN CN201811021448.6A patent/CN109188820B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951682A (en) * | 2015-06-05 | 2015-09-30 | 小米科技有限责任公司 | Privacy protection method and device |
WO2017075459A1 (en) * | 2015-10-30 | 2017-05-04 | Essential Products, Inc. | Optical sensors disposed beneath the display of an electronic device |
CN108388063A (en) * | 2018-02-27 | 2018-08-10 | 广东欧珀移动通信有限公司 | Laser projection module, depth camera and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN109188820A (en) | 2019-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109101833B (en) | Content display method, content display device, storage medium and electronic equipment | |
US11483491B2 (en) | Image acquisition method, apparatus, and storage medium that adjusts the light transmittance of an area having a under-screen camera disposed below the area | |
US10986255B2 (en) | Increasing display size by placing optical sensors beneath the display of an electronic device | |
US10545534B2 (en) | Multiple display device | |
CN109034103B (en) | Electronic device, electrochromic portion control method, and storage medium | |
CN109188820B (en) | Device control method, device, storage medium and electronic device | |
CN103827769B (en) | Disposable calculating equipment | |
CN109116656A (en) | Electronic equipment, electrochromism portion control method and storage medium | |
CN109240415B (en) | Electronic device control method, electronic device control device, storage medium and electronic device | |
US10198039B2 (en) | Multiple display device | |
CN109117792B (en) | Electronic device | |
KR20140051719A (en) | Mobile terminal and control method thereof | |
CN109143717B (en) | Control method and device of electronic equipment, storage medium and electronic equipment | |
CN109246288B (en) | Control method and device of electronic equipment, storage medium and electronic equipment | |
CN108989567B (en) | Information reminding method, storage medium and electronic equipment | |
CN109126132B (en) | Game role position prompting method and device, storage medium and electronic equipment | |
CN109116655A (en) | Apparatus control method, device, storage medium and electronic equipment | |
CN108718367A (en) | Control method of electronic device, device, storage medium and electronic equipment | |
CN106503599A (en) | Display packing and device, electronic equipment | |
KR102536148B1 (en) | Method and apparatus for operation of an electronic device | |
CN110007540A (en) | Display screen component, the control method of visible angle, device and electronic equipment | |
CN109086103B (en) | Application display method and device, storage medium and electronic equipment | |
CN109192178B (en) | Control method and device of electronic equipment, storage medium and electronic equipment | |
CN114995676A (en) | Fingerprint false touch prevention method, graphical interface and electronic equipment | |
CN107517338B (en) | Electronic equipment back shell, electronic equipment and shooting method |
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 |