CN109101833B - Content display method, content display device, storage medium and electronic equipment - Google Patents

Content display method, content display device, storage medium and electronic equipment Download PDF

Info

Publication number
CN109101833B
CN109101833B CN201810873380.8A CN201810873380A CN109101833B CN 109101833 B CN109101833 B CN 109101833B CN 201810873380 A CN201810873380 A CN 201810873380A CN 109101833 B CN109101833 B CN 109101833B
Authority
CN
China
Prior art keywords
content
electrochromic
screen
distance value
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810873380.8A
Other languages
Chinese (zh)
Other versions
CN109101833A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810873380.8A priority Critical patent/CN109101833B/en
Publication of CN109101833A publication Critical patent/CN109101833A/en
Application granted granted Critical
Publication of CN109101833B publication Critical patent/CN109101833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application discloses a content display method, a content display device, a storage medium and electronic equipment, wherein an electrochromic component covers the surface of a screen of the electronic equipment, the electronic equipment can firstly detect content to be shielded from the display content of the screen, then a target area covering the content to be shielded in the electrochromic component is determined, and finally the target area in the electrochromic component is switched from a transparent state to a coloring state to shield the content to be shielded and prevent other people from viewing the content. Therefore, the technical scheme provided by the application can improve the safety of the display content of the electronic equipment.

Description

Content display method, content display device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a content display method and apparatus, a storage medium, and an electronic device.
Background
When a user uses an electronic device such as a mobile phone and a tablet personal computer in a public place, the content displayed on the electronic device can be easily seen by other surrounding users, so that the safety is not high. For example, when a user operates an electronic device on a subway to view an instant messaging message of an instant messaging application, the electronic device may display a dialog box interface of the instant messaging application in a full screen mode, where the dialog box interface includes a plurality of pieces of instant messaging information, but the user may not want surrounding people to see part or all of the content.
Disclosure of Invention
The embodiment of the application provides a content display method, a content display device, a storage medium and electronic equipment, which can improve the safety of the content displayed by the electronic equipment.
In a first aspect, an embodiment of the present application provides a content display method, which is applied to an electronic device, a screen surface of which is covered with an electrochromic component, and the content display method includes:
detecting content to be shielded in the current content displayed on the screen;
determining a target area covering the content to be occluded in the electrochromic component;
and switching the target area in the electrochromic assembly from a transparent state to a coloring state to shield the content to be shielded.
In a second aspect, an embodiment of the present application provides a content display apparatus applied to an electronic device, a screen surface of the electronic device being covered with an electrochromic component, the content display apparatus including:
the detection module is used for detecting the content to be shielded in the current content displayed on the screen;
the determining module is used for determining a target area covering the content to be blocked in the electrochromic component;
and the control module is used for switching the target area in the electrochromic assembly from a transparent state to a coloring state and shielding the content to be shielded.
In a third aspect, the present application provides a storage medium, on which a computer program is stored, which, when running on a computer, causes the computer to perform the steps in the content display method as provided in the embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the steps in the content display method provided in the embodiment of the present application by calling the computer program.
In the technical scheme provided by the application, the surface of the screen of the electronic equipment is covered with the electrochromic assembly, the electronic equipment can firstly detect the content to be shielded from the display content of the screen, then determines the target area covered with the content to be shielded in the electrochromic assembly, and finally switches the target area in the electrochromic assembly from a transparent state to a coloring state to shield the content to be shielded, so that other people are prevented from looking over the content. Therefore, the technical scheme provided by the application can improve the safety of the display content of the electronic equipment.
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 flowchart of a content display method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an electrochromic device in an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electrochromic cell in an embodiment of the present application.
Fig. 4 is a schematic diagram of applying voltage to an electrochromic cell in an embodiment of the present application.
Fig. 5 is a schematic diagram of the target area determined in the embodiment of the present application.
Fig. 6 is another schematic diagram of the target area determined in the embodiment of the present application.
Fig. 7 is another schematic flow chart diagram of a content display method according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a content display device according to 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 content display method may be the content display apparatus provided in the embodiment of the present application, or an electronic device integrated with the content display apparatus, where the content display 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. 1, fig. 1 is a schematic flow chart of a content display method according to an embodiment of the present disclosure. The flow of the content display method provided by the embodiment of the application can be as follows:
101. detecting the content to be occluded in the current content displayed on the screen.
In the embodiment of the application, the screen surface of the electronic device is covered with an electrochromic assembly, and the electrochromic assembly comprises a plurality of electrochromic units, or the electrochromic assembly consists of a plurality of electrochromic units. It should be noted that, for the number of electrochromic elements included in the electrochromic device, the number is not specifically limited in the embodiments of the present application, and can be set by a person skilled in the art according to actual needs.
For example, referring to fig. 2, in the embodiment of the present application, the electrochromic device covered on the screen surface of the electronic device includes 66 electrochromic cells in total 6 × 11.
The electrochromic is a phenomenon that the optical properties (such as reflectivity, light transmittance and absorption rate) of the 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 unit in the embodiment of the present application is made of electrochromic materials.
Referring to fig. 3, the electrochromic cell may include two conductive layers stacked on each other, 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 transparent conductive layer may be made of Indium Tin Oxide (ITO), tin oxide (SnO2), Antimony Tin Oxide (ATO), and the like.
The color-changing layer is a core layer of the electrochromic unit and is also a generation layer of color-changing reaction. The material of the color-changing layer may be classified into an inorganic electrochromic material and an organic electrochromic material according to types. The inorganic electrochromic material may be tungsten trioxide (WO3), nickel oxide (NiO), or the like. The organic electrochromic material mainly comprises polythiophene and derivatives thereof, viologen, tetrathiafulvalene, metal phthalocyanine compounds and the like.
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 unit, 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 unit is ensured.
Referring to fig. 4, when a certain voltage is applied to the two transparent conductive layers of the electrochromic cell, the material of the color-changing layer of the electrochromic cell 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 cell, the electrochromic cell will be in a transparent state, when the voltage applied between the two transparent conductive layers is changed from 0V to 1.2V, the electrochromic cell will be in a black color, when the voltage applied between the two transparent conductive layers is changed from 1.2V to-1.2V, the electrochromic cell will be changed from black color to transparent, and so on.
It should be noted that the current content displayed on the screen does not refer to a certain content, and may be any content in the electronic device, such as picture content and text content stored in the electronic device, as well as short message content and instant messaging information content received in real time, and the like.
In the embodiment of the application, the electronic equipment detects the current content displayed on the screen of the electronic equipment in real time according to a preset detection rule so as to detect whether the current content contains the content to be shielded. For example, the electronic device may detect sensitive content including password information, identity information of a user, and the like as content to be blocked; for another example, the electronic device may detect, as the content to be occluded, the content selected by the selection operation according to the selection operation input by the owner, and the like.
102. And determining a target area covering the content to be blocked in the electrochromic component.
In the embodiment of the application, when the electronic device detects that the current content displayed on the screen has the content to be blocked, a target area covering the content to be blocked in the electrochromic assembly is further determined according to a screen area corresponding to each electrochromic unit in the electrochromic assembly, and the target area may be formed by one electrochromic unit or by a combination of a plurality of electrochromic units.
For example, referring to fig. 5, a target area covering a content to be blocked in an electrochromic component determined by an electronic device is formed by an electrochromic unit filled with black in a diagram; for another example, referring to fig. 6, a target area covering a content to be blocked in an electrochromic component determined by an electronic device is formed by four electrochromic cells filled with black in a diagram.
103. And switching the target area in the electrochromic assembly from a transparent state to a coloring state to shield the content to be shielded.
In the embodiment of the present application, each electrochromic unit in the electrochromic device is initially in a transparent state. After the electronic equipment determines a target area covering the content to be shielded from the electrochromic assembly, one or more electrochromic units forming the target area are switched from a transparent state to a coloring state.
The color of the electrochromic unit forming the target area after being colored is not particularly limited in the embodiment of the present application, and may be preset by a person skilled in the art according to actual needs, for example, the color may be set to black, so that after the electrochromic unit forming the target area is switched to a colored state by the electronic device, the electrochromic unit forming the target area will be black, and thus, the to-be-shielded content displayed on the screen will be shielded by these black electrochromic units.
As can be seen from the above, in the electronic device in the embodiment of the present application, the surface of the screen is covered with the electrochromic component, and the electronic device may first detect the content to be blocked from the current content displayed on the screen, then determine the target area in the electrochromic component, which covers the content to be blocked, and finally switch the target area in the electrochromic component from the transparent state to the colored state, so as to block the content to be blocked, and prevent others from viewing the content. Therefore, the technical scheme provided by the application can improve the safety of the display content of the electronic equipment.
In one embodiment, the "detecting content to be occluded in the current content of the screen display" includes:
(1) detecting a first pressing operation on a screen;
(2) and determining a first pressing position of the first pressing operation, and determining the content which is positioned in a preset range of the first pressing position in the current content displayed on the screen as the content to be shielded.
As an optional implementation manner, in the embodiment of the present application, content to be occluded in current content displayed on a screen is detected according to a user operation.
In the embodiment of the application, the electronic equipment is provided with the pressure sensor for detecting the pressing operation, and the pressure sensor can be arranged below the screen, so that when the screen displays, the electronic equipment can detect the pressing operation on any position of the screen through the arranged pressure sensor.
When the electronic equipment detects the content to be shielded in the current content displayed on the screen, the electronic equipment receives the pressing operation on the screen through the set pressure sensor in real time, and the detected pressing operation is recorded as a first pressing operation.
For example, when the user finds that there is a sensitive content that is not wanted to be viewed by others and other people can see the screen of the electronic device in the current content displayed on the screen of the electronic device, the user can press the sensitive content displayed on the screen with a finger, and accordingly, the electronic device receives a first pressing operation input by pressing the screen with the finger of the user.
After receiving the first pressing operation on the screen, the electronic equipment further determines a pressing position of the first pressing operation, and records the pressing position as the first pressing position. After the first pressing position of the first pressing operation is determined, the electronic equipment determines the content in the preset range of the first pressing position in the current content displayed on the screen as the content to be shielded.
It should be noted that, as to the size and the shape of the preset range, a person skilled in the art can set the preset range according to actual needs, which is not specifically limited in the embodiment of the present application, for example, the preset range may be set to be a circular area range with a first pressing position as a center of a circle and a radius of 64 pixels; for another example, the preset range may be a square area range having a diagonal length of 64 pixels and the first pressing position as a center, and the like.
In one embodiment, "switching a target area in an electrochromic assembly from a transparent state to a colored state" includes:
(1) determining a pressure value of the first pressing operation;
(2) determining a first target color corresponding to the pressure value according to the pressure value and a preset corresponding relation between the pressure value and the color;
(3) the target area in the electrochromic assembly is controlled to display a first target color.
It should be noted that, in the embodiment of the present application, the electronic device is preset with the corresponding relationship between the pressure value and the color, and the electronic device can be set by a person skilled in the art according to actual needs, which is not specifically limited by the embodiment of the present application, for example, the color corresponding to the pressure value interval (0N, 5N) can be set to be red, and the color corresponding to the pressure value interval (5N, + ∞) can be set to be black.
When the electronic equipment switches a target area in the electrochromic assembly from a transparent state to a coloring state, a pressure value of a first pressing operation is determined firstly, then a first target color corresponding to the pressure value is determined according to the pressure value and a corresponding relation between a preset pressure value and a color, and finally an electrochromic unit forming the target area is controlled to be in the first target color.
For example, assuming that the determined pressure value of the first pressing operation is 8N, the electronic device further determines that the first target color corresponding to the pressure value "8N" is black, and supplies a voltage of 1.2V to the electrochromic cell forming the target area, so that the electrochromic cell forming the target area is colored and appears black.
In one embodiment, after "switching the target area in the electrochromic device from the transparent state to the colored state", the method further includes:
(1) detecting a second pressing operation on the screen;
(2) determining a second pressing position of the second pressing operation, and judging whether the second pressing position is located within the preset range;
(3) if so, switching the target area in the electrochromic component from the colored state to the transparent state.
In the embodiment of the application, a scheme for canceling the occlusion display is continuously provided. After the target area in the electrochromic assembly is switched from the transparent state to the colored state, namely after the displayed content to be shielded is shielded, the electronic device receives the pressing operation on the screen through the arranged pressure sensor in real time, and the detected pressing operation is recorded as a second pressing operation.
For example, when a user finds that there is sensitive content that is not wanted to be viewed by others and that others can see the screen of the electronic device in the current content displayed on the screen of the electronic device, the user can press the sensitive content displayed on the screen with a finger to control the electronic device to shield the sensitive content through the electrochromic component. Then, when the other person leaves, the user can press the shielded and displayed sensitive content through the finger, and accordingly, the electronic device receives a second pressing operation input by pressing the screen through the finger of the user.
After receiving the second pressing operation on the screen, the electronic equipment further determines the pressing position of the second pressing operation, and records the pressing position as the second pressing position. After the second pressing position of the second pressing operation is determined, the electronic equipment judges whether the second pressing position is located within the preset range, if yes, the second pressing position is determined as the triggering operation for triggering the cancellation of the shielding display, and at the moment, the electrochromic unit forming the target area is switched from the coloring state to the transparent state.
For example, the electrochromic cell forming the target area is black after being switched from the transparent state to the colored state, and when the second operation is a trigger operation for triggering the undone of the shielding display, the electronic device supplies a voltage of-1.2V to the electrochromic cell forming the target area, so that the electrochromic cell forming the target area is switched from the colored state to the transparent state, that is, from black to transparent.
In one embodiment, the step of detecting the content to be occluded in the current content displayed on the screen includes:
(1) identifying whether a preset user and other users except the preset user exist in a visual range of a screen;
(2) and if so, determining the privacy content of the associated preset user in the current content displayed on the screen as the content to be blocked.
As an optional implementation manner, in the embodiment of the present application, the electronic device automatically identifies content to be occluded in the current content displayed on the screen.
In the embodiment of the application, when the electronic device displays the screen, whether a preset user (which may be a user owner or an authorized user authorized by the user owner) or other users except the preset user exists in a visual range of the screen is identified in real time. The electronic equipment can identify whether the preset user and other users exist in the visual range of the screen through the front camera, and can also identify whether the preset user and other users exist in the visual range of the screen through the microphone.
When the preset user and other users are identified to be in the visual range of the screen, the electronic equipment determines the privacy content of the preset user in the current content displayed by the screen, and determines the privacy content as the content to be shielded. For example, when the preset user is the owner, the electronic device determines the current content displayed on the screen and the privacy content associated with the owner as the content to be blocked, and when the preset user is the authorized user, the electronic device determines the current content displayed on the screen and the privacy content associated with the authorized user as the content to be blocked.
The privacy content may be preset by a preset user according to actual needs, which is not specifically limited in the embodiment of the present application, for example, an owner may set an image including the owner as the privacy content.
In the embodiment of the application, the electronic device is further provided with a privacy content setting interface, which is used for receiving privacy content setting information input by a preset user and configuring detection conditions associated with the preset user according to the received privacy content setting information, so that after the preset user and other users in a screen visual range are identified, the privacy content associated with the preset user is detected in current content displayed on a screen by using the detection conditions associated with the detected preset user and serves as the content to be shielded.
In one embodiment, "identifying whether a preset user, a user other than the preset user, exists within the visual range of the screen" includes:
(1) acquiring a real-time image through a front camera;
(2) acquiring a face image in a real-time image, and judging whether the acquired face image contains a face image of a preset user and other face images;
(3) if yes, determining that the preset user and other users corresponding to other face images exist in the visual range.
As an optional implementation manner, the electronic device may recognize whether a preset user and a related user of the preset user exist in a visual range of the current application through the front-facing camera.
In the embodiment of the application, the electronic equipment performs shooting operation through the front camera in real time so as to shoot a real-time image corresponding to the visual range of the screen. After the real-time image is obtained by shooting, the electronic device performs face detection on the real-time image by using a face detection algorithm (such as an AdaBoost method, a classification regression tree method, a neural network method, and the like), so as to obtain a face image in the real-time image. It should be noted that, as to what face detection algorithm is used, the embodiment of the present application does not specifically limit this, and a person skilled in the art can select this according to actual needs.
After the face image in the real-time image is acquired, the acquired face image is compared with a preset face image associated with the preset user. The preset face image is a face image of a preset user acquired in advance, and if the similarity between the acquired face image and the preset face image reaches a preset similarity (the value of the preset similarity can be set by a person skilled in the art according to actual needs, which is not specifically limited in the embodiment of the present application, for example, the preset similarity can be set to 90%), the face image is determined to be the face image corresponding to the preset user, it is determined that the preset user exists in the visual range of the screen at this time, and if other face images are acquired from the real-time image, it is determined that other users corresponding to the other face images also exist in the visual range of the screen at this time.
In one embodiment, "switching a target area in an electrochromic assembly from a transparent state to a colored state" includes:
(1) acquiring the area percentage of the other face images in the real-time image;
(2) determining a distance value corresponding to the area percentage according to the acquired area percentage and a preset corresponding relation between the area percentage and the distance value;
(3) determining a second target color corresponding to the distance value according to the determined distance value and a preset corresponding relation between the distance value and the color;
(4) and controlling the target area in the electrochromic assembly to display a second target color.
It should be noted that, in the embodiment of the present application, the electronic device is preset with the corresponding relationship between the distance value and the color, and the corresponding relationship can be set by a person skilled in the art according to actual needs, and the embodiment of the present application does not specifically limit this, for example, the color corresponding to the distance value interval (0,1 m) may be set to be black, and the color corresponding to the distance value interval (1m, infinity) may be set to be red.
In addition, the corresponding relation between the area percentage and the distance value is preset in the electronic equipment. It is easy to understand that, for the same object, the distance values of the object from the front-facing camera of the electronic device are different, and the area percentages of the image areas of the object in the images at different distances, which are obtained by shooting by the electronic device, in the whole image will also be different. Therefore, in the embodiment of the application, the electronic device may shoot the same object placed at different known distance values through the front camera, and calculate the area percentage corresponding to the object corresponding to each known distance value, so as to obtain the corresponding relationship between the area percentage and the distance value.
When the electronic equipment switches the target area in the electrochromic component from a transparent state to a coloring state, firstly, the area percentage of the other face images in the real-time image is acquired; then, according to the obtained area percentage and the corresponding relation between the preset area percentage and the distance value, determining the distance value corresponding to the area percentage, namely the distance value from the current user to the other users; and determining a second target color corresponding to the distance value according to the determined distance value and the preset corresponding relation between the distance value and the color. For example, assuming that the determined current distance value from the other users is 80cm, the electronic device further determines that the second target color corresponding to the distance value of "80 cm" is black, and supplies a voltage of 1.2V to the electrochromic cells forming the target area, so that the electrochromic cells forming the target area are colored and appear black.
It should be noted that, when there are a plurality of other users, the electronic device may determine a distance value with a minimum value from among distance values from the plurality of other users, determine a corresponding second target color according to the distance value with the minimum value and a preset correspondence between the distance value and the color, and control a target area in the electrochromic assembly to display the second target color.
In addition, after the electronic equipment controls a target area in the electrochromic assembly to display a second target color, a real-time image is acquired in real time through the front camera, the acquired real-time image is recorded as a second real-time image, face recognition is carried out on the second real-time image, and if the fact that the second real-time image only comprises the face image of the preset user is recognized, the electrochromic unit forming the target area is controlled to be switched from a coloring state to a transparent state.
For example, after the electrochromic cell forming the target area is black (i.e. the second target color is black) after being switched from the transparent state to the colored state, if it is recognized that the second real-time image only includes the facial image of the preset user, the electronic device provides a voltage of-1.2V to the electrochromic cell forming the target area, so that the electrochromic cell forming the target area is switched from the colored state to the transparent state, i.e. from black to transparent.
Referring to fig. 7, fig. 7 is another schematic flow chart of a content display method according to an embodiment of the present disclosure, and as shown in fig. 7, the content display method may include:
201. a first pressing operation to a screen is detected.
In the embodiment of the application, the electronic equipment is provided with the pressure sensor for detecting the pressing operation, and the pressure sensor can be arranged below the screen, so that when the screen displays, the electronic equipment can detect the pressing operation on any position of the screen through the arranged pressure sensor.
When the electronic equipment displays a screen, the pressing operation of the screen is received by the arranged pressure sensor in real time, and the detected pressing operation is recorded as a first pressing operation.
For example, when the user finds that there is a sensitive content that is not wanted to be viewed by others and other people can see the screen of the electronic device in the current content displayed on the screen of the electronic device, the user can press the sensitive content displayed on the screen with a finger, and accordingly, the electronic device receives a first pressing operation input by pressing the screen with the finger of the user.
202. And determining a first pressing position of the first pressing operation, and determining the content which is positioned in a preset range of the first pressing position in the current content displayed on the screen as the content to be shielded.
After receiving the first pressing operation on the screen, the electronic equipment further determines a pressing position of the first pressing operation, and records the pressing position as the first pressing position. After the first pressing position of the first pressing operation is determined, the electronic equipment determines the content in the preset range of the first pressing position in the current content displayed on the screen as the content to be shielded.
It should be noted that, as to the size and the shape of the preset range, a person skilled in the art can set the preset range according to actual needs, which is not specifically limited in the embodiment of the present application, for example, the preset range may be set to be a circular area range with a first pressing position as a center of a circle and a radius of 64 pixels; for another example, the preset range may be a square area range having a diagonal length of 64 pixels and the first pressing position as a center, and the like.
203. And determining a target area covering the content to be blocked in the electrochromic component.
In the embodiment of the application, the screen surface of the electronic device is covered with an electrochromic assembly, and the electrochromic assembly comprises a plurality of electrochromic units, or the electrochromic assembly consists of a plurality of electrochromic units. It should be noted that, for the number of electrochromic elements included in the electrochromic device, the number is not specifically limited in the embodiments of the present application, and can be set by a person skilled in the art according to actual needs.
For example, referring to fig. 2, in the embodiment of the present application, the electrochromic device covered on the screen surface of the electronic device includes 66 electrochromic cells in total 6 × 11.
204. A pressure value of the first pressing operation is determined.
205. And determining a first target color corresponding to the pressure value according to the pressure value and the corresponding relation between the preset pressure value and the color.
206. The target area in the electrochromic assembly is controlled to display a first target color.
It should be noted that, in the embodiment of the present application, the electronic device is preset with the corresponding relationship between the pressure value and the color, and the electronic device can be set by a person skilled in the art according to actual needs, which is not specifically limited by the embodiment of the present application, for example, the color corresponding to the pressure value interval (0N, 5N) can be set to be red, and the color corresponding to the pressure value interval (5N, + ∞) can be set to be black.
When the electronic equipment switches a target area in the electrochromic assembly from a transparent state to a coloring state, a pressure value of a first pressing operation is determined firstly, then a first target color corresponding to the pressure value is determined according to the pressure value and a corresponding relation between a preset pressure value and a color, and finally an electrochromic unit forming the target area is controlled to be in the first target color.
For example, assuming that the determined pressure value of the first pressing operation is 8N, the electronic device further determines that the first target color corresponding to the pressure value "8N" is black, and supplies a voltage of 1.2V to the electrochromic cell forming the target area, so that the electrochromic cell forming the target area is colored and appears black.
In one embodiment, a content display apparatus is also provided. Referring to fig. 8, fig. 8 is a schematic structural diagram of a content display device 400 according to an embodiment of the present disclosure. The content display apparatus 400 is applied to an electronic device, and the content display apparatus 400 includes a detection module 401, a determination module 402, and a control module 403, as follows:
the detecting module 401 is configured to detect content to be occluded in current content displayed on a screen;
a determining module 402, configured to determine a target area covering content to be occluded in an electrochromic component;
and the control module 403 is configured to switch the target area in the electrochromic component from a transparent state to a colored state, and block the content to be blocked.
In an embodiment, the detection module 401 may be configured to:
detecting a first pressing operation on a screen;
and determining a first pressing position of the first pressing operation, and determining the content which is positioned in a preset range of the first pressing position in the current content displayed on the screen as the content to be shielded.
In one embodiment, the control module 403 may be configured to:
determining a pressure value of the first pressing operation;
determining a first target color corresponding to the pressure value according to the pressure value and a preset corresponding relation between the pressure value and the color;
the target area in the electrochromic assembly is controlled to display a first target color.
In an embodiment, the detection module 401 may be configured to:
detecting a second pressing operation on the screen;
determining a second pressing position of the second pressing operation, and judging whether the second pressing position is located within the preset range;
and the control module 403 further switches the target area in the electrochromic device from the colored state to the transparent state when the second pressing position is within the preset range.
In an embodiment, the detection module 401 may be configured to:
identifying whether a preset user and other users except the preset user exist in a visual range of a screen;
and if so, determining the privacy content of the associated preset user in the current content displayed on the screen as the content to be blocked.
In an embodiment, the detection module 401 may be configured to:
acquiring a real-time image through a front camera;
acquiring a face image in a real-time image, and judging whether the acquired face image contains a face image of a preset user and other face images;
if yes, determining that the preset user and other users corresponding to other face images exist in the visual range.
In an embodiment, the control module 403 may be configured to:
acquiring the area percentage of the other face images in the real-time image;
determining a distance value corresponding to the area percentage according to the acquired area percentage and a preset corresponding relation between the area percentage and the distance value;
determining a second target color corresponding to the distance value according to the determined distance value and a preset corresponding relation between the distance value and the color;
and controlling the target area in the electrochromic assembly to display a second target color.
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 content display apparatus 400 of the present embodiment is applied to an electronic device, a screen surface of the electronic device is covered with an electrochromic element, and when the content display apparatus is executed, the detection module 401 first detects content to be blocked from current content displayed on the screen. The determination module 402 determines a target area of the electrochromic component covering the content to be occluded. Finally, the control module 403 switches the target area in the electrochromic component from the transparent state to the colored state, so as to shield the content to be shielded and prevent others from viewing the content. Therefore, the technical scheme provided by the application can improve the safety of the display content of the electronic equipment.
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, and an electrochromic element 504. The memory 502, the screen 503 and the electrochromic device 504 are electrically connected to the processor 501.
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 electrochromic assembly 504 is covered on the surface of the screen 503 and is composed of a plurality of electrochromic units.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
detecting content to be shielded in current content displayed on a screen;
determining a target area covering the content to be shielded in the electrochromic component;
and switching the target area in the electrochromic assembly from a transparent state to a coloring state to shield the content to be shielded.
Referring to fig. 10, in some embodiments, the electronic device 500 may further include: radio frequency circuitry 505, audio circuitry 506, and a power supply 507. The radio frequency circuit 505, the audio circuit 506, and the power supply 507 are electrically connected to the processor 501.
The radio frequency circuit 505 may be configured to transceive radio frequency signals to establish wireless communication with a network device or other electronic devices via wireless communication, and to transceive signals with the network device or other electronic devices.
The audio circuit 506 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The power supply 507 may be used to power various components of the electronic device 500. In some embodiments, power supply 507 may be logically coupled to processor 501 through a power management system, such that functions to manage charging, discharging, and power consumption management 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 detecting the content to be occluded in the current content displayed on the screen, the processor 501 may perform the following steps:
detecting a first pressing operation on a screen;
and determining a first pressing position of the first pressing operation, and determining the content which is positioned in a preset range of the first pressing position in the current content displayed on the screen as the content to be shielded.
In some embodiments, when switching the target area in the electrochromic component from the transparent state to the colored state, the processor 501 may further perform the following steps:
determining a pressure value of the first pressing operation;
determining a first target color corresponding to the pressure value according to the pressure value and a preset corresponding relation between the pressure value and the color;
the target area in the electrochromic assembly is controlled to display a first target color.
In some embodiments, after switching the target area in the electrochromic component from the transparent state to the colored state, processor 501 may further perform the following steps:
detecting a second pressing operation on the screen;
determining a second pressing position of the second pressing operation, and judging whether the second pressing position is located within the preset range;
when the second pressing position is within the preset range, the target area in the electrochromic component is switched from the coloring state to the transparent state.
In some embodiments, when detecting the content to be occluded in the current content displayed on the screen, the processor 501 may further perform the following steps:
identifying whether a preset user and other users except the preset user exist in a visual range of a screen;
and if so, determining the privacy content of the associated preset user in the current content displayed on the screen as the content to be blocked.
In some embodiments, in identifying whether there is a preset user or other users than the preset user in the visual range of the screen, the processor 501 may further perform the following steps:
acquiring a real-time image through a front camera;
acquiring a face image in a real-time image, and judging whether the acquired face image contains a face image of a preset user and other face images;
if yes, determining that the preset user and other users corresponding to other face images exist in the visual range.
In some embodiments, in switching the target area in the electrochromic component from the transparent state to the colored state, processor 501 may perform the following steps:
acquiring the area percentage of the other face images in the real-time image;
determining a distance value corresponding to the area percentage according to the acquired area percentage and a preset corresponding relation between the area percentage and the distance value;
determining a second target color corresponding to the distance value according to the determined distance value and a preset corresponding relation between the distance value and the color;
and controlling the target area in the electrochromic assembly to display a second target color.
An embodiment of the present application further provides a 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 content display method in any one of the above embodiments, such as: identifying whether a preset user and a related user of the preset user exist in a visual range of the current application; when a preset user and a related user of the preset user exist in the visual range, dividing a screen display area into two split screen display areas; displaying the current application in one split screen display area of the two split screen display areas, and displaying a preset video application in the other split screen display area; and playing the preset video corresponding to the associated user through the preset video application.
In the embodiment of the present application, the 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 content display 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 content display method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the content display method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the content display device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are 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 content display method, the content display apparatus, the storage medium, and the electronic device provided in the embodiments of the present application are described in detail above, 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 concept 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 (4)

1. A content display method is applied to an electronic device, and is characterized in that the surface of a screen of the electronic device is covered with an electrochromic component, the electrochromic component comprises a plurality of electrochromic units, and the content display method comprises the following steps:
acquiring a real-time image through a front camera;
acquiring a face image in the real-time image;
when the face image of a preset user and other face images exist in the acquired face image, determining the privacy content related to the preset user in the current content displayed on the screen as content to be shielded;
determining a target area covering the content to be occluded in the electrochromic component;
acquiring the area percentage of the other face images in the real-time image;
setting the distance value corresponding to the area percentage as the distance value between the other users corresponding to the other face images and the screen according to the area percentage and the corresponding relation between the preset area percentage and the distance value;
determining a second target color corresponding to the distance value according to the distance value and a preset corresponding relation between the distance value and the color;
and controlling the electrochromic units forming the target area to display the second target color so as to shield the content to be shielded aiming at other users corresponding to the other face images.
2. A content display device is applied to electronic equipment, and is characterized in that the surface of a screen of the electronic equipment is covered with an electrochromic component, the electrochromic component comprises a plurality of electrochromic units, and the content display device comprises;
the detection module is used for acquiring a real-time image through the front camera; acquiring a face image in the real-time image; when the face image of a preset user and other face images exist in the obtained face image, determining the privacy content related to the preset user in the current content displayed on the screen as content to be shielded;
the determining module is used for determining a target area covering the content to be blocked in the electrochromic component;
the control module is used for acquiring the area percentage of the other face images in the real-time image;
setting the distance value corresponding to the area percentage as the distance value between the other users corresponding to the other face images and the screen according to the area percentage and the corresponding relation between the preset area percentage and the distance value;
determining a second target color corresponding to the distance value according to the distance value and a preset corresponding relation between the distance value and the color;
and controlling the electrochromic units forming the target area to display the second target color so as to shield the content to be shielded aiming at the other users.
3. A storage medium having stored thereon a computer program, characterized in that, when the computer program runs on a computer, it causes the computer to execute a content display method according to claim 1.
4. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to execute the content display method of claim 1 by calling the computer program.
CN201810873380.8A 2018-08-02 2018-08-02 Content display method, content display device, storage medium and electronic equipment Active CN109101833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810873380.8A CN109101833B (en) 2018-08-02 2018-08-02 Content display method, content display device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810873380.8A CN109101833B (en) 2018-08-02 2018-08-02 Content display method, content display device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109101833A CN109101833A (en) 2018-12-28
CN109101833B true CN109101833B (en) 2021-03-23

Family

ID=64848589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810873380.8A Active CN109101833B (en) 2018-08-02 2018-08-02 Content display method, content display device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109101833B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111445785B (en) * 2019-01-16 2022-06-10 北京小米移动软件有限公司 Electronic equipment and screen module
CN109634023B (en) * 2019-01-28 2022-08-12 Oppo广东移动通信有限公司 Electrochromic assembly processing method and device, electronic equipment and readable storage medium
CN109996109B (en) * 2019-03-19 2021-12-17 北京奇艺世纪科技有限公司 Image processing method and device
CN110536011B (en) * 2019-08-26 2021-11-16 努比亚技术有限公司 Content display method, terminal and computer readable storage medium
CN111274618B (en) * 2020-01-13 2022-10-21 Oppo广东移动通信有限公司 Display control method and related product
TWI746017B (en) 2020-06-18 2021-11-11 宏碁股份有限公司 Pixel structure and display device using the same
CN114187846B (en) * 2020-08-28 2024-01-09 宏碁股份有限公司 Pixel structure and display device using same
CN115148168B (en) * 2021-03-30 2023-10-10 Oppo广东移动通信有限公司 Control method, electronic device, and computer-readable storage medium
CN113630305B (en) * 2021-07-16 2023-06-23 北京达佳互联信息技术有限公司 Information display method, apparatus, device, storage medium, and program product

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI461808B (en) * 2012-05-31 2014-11-21 Wistron Corp Color-changeable protection device and portable device
CN103809809B (en) * 2014-01-28 2017-03-29 北京京东方光电科技有限公司 Touching device and its manufacture method
CN104951682A (en) * 2015-06-05 2015-09-30 小米科技有限责任公司 Privacy protection method and device
CN106724436A (en) * 2016-12-29 2017-05-31 佛山市幻云科技有限公司 A kind of intelligent bookshelf and intelligent book display systems
TW201826119A (en) * 2017-01-06 2018-07-16 周宏建 Data output method and system capable of fast outputting data while keeping the security of the data
CN107679426A (en) * 2017-09-08 2018-02-09 维沃移动通信有限公司 A kind of screen content display method thereof and mobile terminal

Also Published As

Publication number Publication date
CN109101833A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN109101833B (en) Content display method, content display device, storage medium and electronic equipment
CN109034103B (en) Electronic device, electrochromic portion control method, and storage medium
CN109064996B (en) Display adjustment method and device, storage medium and electronic equipment
CN109116656A (en) Electronic equipment, electrochromism portion control method and storage medium
US20170237842A1 (en) Color-Variable Terminal
CN109029768B (en) Temperature reminding method and device of electronic equipment, storage medium and electronic equipment
CN109240415B (en) Electronic device control method, electronic device control device, storage medium and electronic device
CN109246288B (en) Control method and device of electronic equipment, storage medium and electronic equipment
CN107783887B (en) Control method of mobile terminal and mobile terminal
US9746937B2 (en) Method and apparatus for movable assembly position sensing and virtual keyboard display
CN108984083A (en) Processing method, device, storage medium and the electronic equipment of split screen display available
CN109116655A (en) Apparatus control method, device, storage medium and electronic equipment
CN108718367A (en) Control method of electronic device, device, storage medium and electronic equipment
EP4184303A1 (en) Wallpaper display control method and apparatus, and electronic device
CN110007540A (en) Display screen component, the control method of visible angle, device and electronic equipment
CN108989567A (en) Information prompting method, storage medium and electronic equipment
CN109188820B (en) Device control method, device, storage medium and electronic device
CN113163050A (en) Session interface display method and device
CN109117792A (en) Electronic equipment
CN109086103B (en) Application display method and device, storage medium and electronic equipment
CN110764851A (en) Application update reminding method and device, storage medium and electronic equipment
CN109165492B (en) Device control method, device, storage medium and electronic device
CN109144814B (en) Information reminding method and device, storage medium and electronic equipment
CN108616697B (en) Shooting state reminding method and device, storage medium and electronic equipment
CN112965628B (en) Electronic equipment, cover plate thereof, control method and control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant