CN113949756A - Sensor hiding method, device, terminal and storage medium - Google Patents

Sensor hiding method, device, terminal and storage medium Download PDF

Info

Publication number
CN113949756A
CN113949756A CN202010692951.5A CN202010692951A CN113949756A CN 113949756 A CN113949756 A CN 113949756A CN 202010692951 A CN202010692951 A CN 202010692951A CN 113949756 A CN113949756 A CN 113949756A
Authority
CN
China
Prior art keywords
light
color
emitting
sensor
terminal
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.)
Granted
Application number
CN202010692951.5A
Other languages
Chinese (zh)
Other versions
CN113949756B (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 CN202010692951.5A priority Critical patent/CN113949756B/en
Priority to PCT/CN2021/094870 priority patent/WO2022012159A1/en
Publication of CN113949756A publication Critical patent/CN113949756A/en
Application granted granted Critical
Publication of CN113949756B publication Critical patent/CN113949756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09FDISPLAYING; ADVERTISING; SIGNS; LABELS OR NAME-PLATES; SEALS
    • G09F9/00Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements
    • G09F9/30Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements in which the desired character or characters are formed by combining individual elements
    • G09F9/35Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements in which the desired character or characters are formed by combining individual elements being liquid crystals
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides a sensor hiding method, a sensor hiding device, a terminal and a storage medium, wherein the terminal comprises a light-emitting component, a display screen and a sensor hole arranged in the display screen, the terminal can acquire a first pixel value of a pixel point in a target area in the display screen, and then the color value of a color to be presented in the sensor hole is determined according to the acquired first pixel value; and controlling the light-emitting component to emit light based on the color value, wherein the light is emitted through the sensor hole. By adopting the method, the light emitted by the terminal through the sensor hole and the color displayed by the display screen of the target area can be integrated, the sensor hole can be hidden visually, the display integration effect of the screen is improved, and the user experience is further improved.

Description

Sensor hiding method, device, terminal and storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a sensor hiding method and apparatus, a terminal, and a storage medium.
Background
With the development of mobile terminals, people have higher and higher requirements on the screen display of the terminals, and the screen with a high screen occupation ratio is designed to be the design trend of a plurality of terminal manufacturers. In order to achieve a higher screen occupation ratio, the mobile terminals on the market generally release the space of the upper frame by optimizing the layout of the front camera, so that the field of view becomes more shocking.
In order to reduce the influence of the occupied area of the front camera on the whole screen, terminal manufacturers mostly adopt a hole digging screen to improve the screen occupation ratio of the mobile terminal. Digging the characteristic of hole screen has been "dug" out one or more apertures in the top of screen, and leading camera module is inlayed to the inside to "liberation" originally belonged to the protruding space at bang, water droplet and pearl screen top.
However, when the user uses the hole digging screen terminal, the user still can perceive the existence of the small holes, and the experience effect is poor.
Disclosure of Invention
The embodiment of the application provides a sensor hiding method, a sensor hiding device, a terminal and a storage medium, and the display integration effect of a screen can be improved.
In a first aspect, a sensor hiding method is applied to a terminal, where the terminal includes a light emitting element, a display screen, and a sensor hole disposed in the display screen, and the method includes:
acquiring a first pixel value of a pixel point in a target area in a display screen, wherein the target area is located in a preset range around a sensor hole;
determining a color value of a color to be presented in the sensor hole according to the acquired first pixel value;
and controlling the light-emitting component to emit light based on the color value, wherein the light is emitted through the sensor hole.
In a second aspect, a sensor hiding device is applied to a terminal, the terminal includes a light emitting module, a display screen and a sensor hole disposed in the display screen, the device includes:
the acquisition module is used for acquiring a first pixel value of a pixel point in a target area in the display screen, wherein the target area is located in a preset range around the sensor hole;
the determining module is used for determining the color value of the color to be presented in the sensor hole according to the acquired first pixel value;
and the control module is used for controlling the light-emitting component to emit light rays based on the color values, and the light rays are emitted out through the sensor hole.
In a third aspect, a terminal comprises a memory and a processor, and a display screen and a light-emitting component which are connected with the processor, wherein the display screen comprises a sensor hole; the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to implement the steps of the sensor hiding method when executing the computer program.
In a fourth aspect, a computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the above-described sensor concealment method.
The terminal comprises a light-emitting component, a display screen and a sensor hole arranged in the display screen, and can acquire a first pixel value of a pixel point in a target area in the display screen and then determine a color value of a color to be presented in the sensor hole according to the acquired first pixel value; and controlling the light-emitting component to emit light based on the color value, wherein the light is emitted through the sensor hole. The target area is located in a preset range around the sensor hole, and the terminal obtains a color value of a color to be presented by the sensor hole according to a first pixel value of a pixel point in the target area; furthermore, the terminal controls the light-emitting assembly to emit light based on the color values and controls the light to be emitted through the sensor hole, so that the sensor hole can present color values related to the surrounding target area instead of black of the camera; the terminal fuses through the light that the sensor hole jetted out and the colour that the display screen of target area appears, can hide the sensor hole in the vision, promotes the demonstration integration effect of screen, further promotes user experience.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary embodiment of a sensor hiding method;
FIG. 2 is a flow diagram of a sensor concealment method in one embodiment;
FIG. 3 is a schematic illustration of a sensor concealment method in one embodiment;
FIG. 4 is a schematic illustration of a sensor concealment method in another embodiment;
FIG. 5 is a schematic illustration of a sensor concealment method in another embodiment;
FIG. 6 is a schematic illustration of a sensor concealment method in another embodiment;
FIG. 7 is a flow chart of a sensor concealment method in another embodiment;
FIG. 8 is a schematic illustration of a sensor concealment method in another embodiment;
FIG. 9 is a flow chart of a sensor concealment method in another embodiment;
FIG. 10 is a schematic illustration of a sensor concealment method in another embodiment;
FIG. 11 is a block diagram showing the structure of a sensor hiding device in one embodiment;
FIG. 12 is a block diagram showing the structure of a sensor hiding device in one embodiment;
FIG. 13 is a block diagram showing the structure of a sensor hiding device in one embodiment;
fig. 14 is a schematic configuration diagram of a terminal in one embodiment;
fig. 15 is a schematic configuration diagram of a terminal in one embodiment;
fig. 16 is a schematic structural diagram of a terminal in one embodiment;
fig. 17 is a schematic structural diagram of a terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
FIG. 1 is a diagram illustrating an exemplary embodiment of a sensor hiding method. As shown in fig. 1, the display screen in the terminal 100 may be a hole-digging screen, the sensor 101 of the terminal 100 may collect images through the sensor hole 1021 in the display screen 102, and the terminal 100 includes a processor 104, and the processor 104 may be connected to the display screen 102 and the camera 101. The sensor may be a camera, an infrared sensor, or the like, and the type of the sensor is not limited herein. The sensor hole may be a closed hole or a semi-closed hole. The terminal may be a wireless terminal, which may be a device that provides voice and/or other traffic data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. The wireless terminal may be a mobile terminal such as a cellular phone and a computer having a mobile terminal, for example, a mobile device which may be portable, pocket, hand-held, computer-included or vehicle-mounted, etc.
FIG. 2 is a flow diagram of a method for sensor concealment in one embodiment. The sensor hiding method in this embodiment is described by taking a terminal operating in fig. 1 as an example, where the terminal includes a light emitting component, a display screen, and a sensor hole disposed in the display screen; as shown in fig. 2, the method includes:
s101, obtaining a first pixel value of a pixel point in a target area in a display screen, wherein the target area is located in a preset range around a sensor hole.
The Display screen may be a Liquid Crystal Display (LCD) or an organic light-Emitting Display (OLED), and the type of the Display screen is not limited herein. The display screen may be a display screen of a mobile phone, a display screen of a tablet computer, or a display screen of a portable terminal such as a telephone, a watch, or the like, which is not limited herein.
The display screen comprises a sensor hole, and the sensor hole can be a camera hole or an infrared sensor hole. The sensor hole can be positioned above a sensor of a terminal camera or the like, and is used for collecting sensor data through the sensor hole. The sensor hole may be a through hole or a blind hole, which is not limited herein. For example, when the sensor hole is a through hole, the camera can directly acquire an image through the sensor hole; when the sensor hole is a blind hole, the camera can collect images through the glass cover plate at the sensor hole in the display screen. The sensor hole may be located in the middle of the display screen or in the upper portion of the display screen, and the location of the sensor hole is not limited herein.
The target area is a display area which is located in a preset range around the sensor hole in the display screen. The target region may be a square or an irregular shape, and the shape of the target region is not limited herein. The preset surrounding range may be a range in which the sensor hole is a circle center and a preset distance is a radius; in addition, the peripheral preset range can also be a display screen of the whole terminal; the area of the above-mentioned peripheral preset range is not limited herein.
The first pixel value is used for representing the display color in the target area of the display screen. The first pixel value may be an RGB value, and the RGB value may be a color component value combination including three color component values of red, yellow, and blue, or a hexadecimal value obtained by hexadecimal conversion; in addition, the first pixel value may also be a binary value in display data sent to the display screen by the processor, and the representation manner of the first pixel value is not limited herein.
When the terminal acquires the first pixel values of the pixel points in the target area in the display screen, the first pixel values of all the pixel points in the target area can be acquired, the first pixel values of the partial pixel points in the target area can also be acquired, and the acquisition mode is not limited here. Specifically, the terminal can obtain position identifiers of pixel points in the target area in the display screen, then extract display data corresponding to the position identifiers from display data sent to the display screen by the processor, and determine first pixel values of the pixel points according to the display data.
Specifically, the terminal may obtain the first pixel value of the pixel point in the target area in real time, or obtain the update frequency of the first pixel value according to the refresh frequency of the display screen, which is not limited herein. Optionally, the terminal may determine whether to acquire the first pixel value according to a working mode, for example, if the camera of the terminal is in the working mode, the first pixel value does not need to be acquired, and if the camera of the terminal is in an idle mode, the terminal may acquire the first pixel value of the pixel point in the target area in real time, so that a color presented by the sensor hole on the display screen may change along with a change in a display color of the display screen, thereby achieving an effect of better hiding the sensor hole.
S102, determining a color value of a color to be presented in the sensor hole according to the acquired first pixel value.
In order to hide the sensor hole, the terminal may assume that the sensor hole is an extension of the display screen, and the terminal may determine a color to be presented by the sensor hole according to a color of a target area in the display screen, and further cause the sensor hole to present a corresponding color by corresponding technical means. When a user uses the terminal, the color presented by the sensor hole is related to the color of the target area of the display screen, and the sensor hole and the display screen are visually regarded as a whole, so that the aim of hiding the sensor hole is achieved.
When the terminal determines the color value of the color to be presented in the sensor hole according to the acquired first pixel value, the color to be presented in the sensor hole can be set as the color close to the sensor hole in the target area; or, the terminal may extend the first pixel value in the target region, so that the color to be presented by the sensor hole and the color of the target region present a natural transition effect; the determination method of the color values is not limited herein.
In general, the area of the sensor hole is small, and when the terminal determines the color to be presented in the sensor hole, the area of the sensor hole can be determined as a color value, so that the sensor hole can present the same color; the terminal can also set the camera area to different color values, so that the sensor hole presents a changing color, which is not limited herein.
S103, controlling the light-emitting component to emit light based on the color value, and emitting the light through the sensor hole.
After the terminal has confirmed the colour value of the colour that the sensor hole is waited to present, can control light emitting component emission light through this colour value to make the light that light emitting component emitted can pass through the sensor hole and jet out.
Specifically, the terminal may control a part of the light emitting units in the light emitting assembly to emit light based on the color value, and may also control all the light emitting units in the light emitting assembly to emit light, which is not limited herein.
The light emitted by the light emitting assembly can be emitted through the sensor hole, for example, a certain included angle is formed between the light emitting assembly and the sensor hole, so that the light emitted by the light emitting assembly can directly penetrate through the sensor hole, as shown in fig. 3; in addition, the light emitted by the light emitting component can be refracted by other units and then emitted out through the sensor hole, for example, the terminal may include a prism, and the light emitted by the light emitting component can be refracted to the sensor hole through the prism, as shown in fig. 4; the light emission method is not limited herein. Optionally, the display screen in the terminal may be a bidirectional display screen, and the light-emitting component may be a display portion on the back of the bidirectional display screen, that is, a side of the bidirectional display screen close to the sensor corresponding to the sensor hole. Wherein, above-mentioned two-way display screen indicates the display screen that all can give out light through tow sides, and when the display screen at above-mentioned terminal was two-way display screen, the back display part emission light that can directly pass through the display screen, and need not set up light-emitting component in addition, the structural layout in the terminal equipment of being convenient for terminal equipment structure is compacter.
The shape of the light emitting assembly may be a square, or may be other shapes, which is not limited herein.
According to the sensor hiding method, the terminal comprises a light-emitting component, a display screen and a sensor hole arranged in the display screen, the terminal can acquire a first pixel value of a pixel point in a target area in the display screen, and then the color value of the color to be presented of the sensor hole is determined according to the acquired first pixel value; and controlling the light-emitting component to emit light based on the color value, wherein the light is emitted through the sensor hole. The target area is located in a preset range around the sensor hole, and the terminal obtains a color value of a color to be presented by the sensor hole according to a first pixel value of a pixel point in the target area; further, the terminal controls the light-emitting assembly to emit light based on the color values and controls the light to be emitted through the sensor hole, so that the sensor hole can present color values related to a surrounding target area instead of black of the sensor itself; the terminal fuses through the light that the sensor hole jetted out and the colour that the display screen of target area appears, can hide the sensor hole in the vision, promotes the demonstration integration effect of screen, further promotes user experience.
In an embodiment, on the basis of the above embodiment, the terminal may determine, according to the acquired first pixel value, a color value of a color to be presented at each target location of the sensor hole.
The target position point may be a position preset by the terminal, or may be a position point determined according to the light emitting element, and the determination method of the target position is not limited herein. The target position points may be all points distributed in the area where the sensor hole is located, or may be points in the middle area of the sensor hole area, and the distribution of the target position points is not limited herein.
When the terminal acquires the color values corresponding to the target location points, the terminal can determine the color values according to the first pixel values of all the pixel points in the target area, for example, the terminal can perform position extension on the first pixel values of the pixel points in the target area according to the position relation between the target location points and the target area, and the color values of the target location points are acquired. In addition, different target position points in the sensor hole can correspond to partial pixel points in the target area, and the terminal can obtain the color value of the target position point corresponding to the partial pixel point through the first pixel value of the partial pixel point. As shown in FIG. 5, the sensor hole includes four target location points A1-A4, each corresponding to 3 pixels B1-B3 in the target area.
Further, after the terminal determines the color value of the color to be presented at each target position of the sensor hole, the terminal may determine the light-emitting pixel value of each light-emitting unit in the light-emitting assembly based on the color value of the color to be presented at each target position; and then controlling the light emitting assembly to emit light based on the light emitting pixel value of each light emitting unit.
The terminal can determine the corresponding light-emitting unit of each target position point in the light-emitting assembly according to the deployment position of the light-emitting assembly and the transmission direction of the light emitted by the light-emitting assembly. Further, the terminal can set the luminous pixel value of the corresponding light-emitting unit according to the color value of the color to be presented of each obtained target position point, and then the light-emitting assembly is controlled to emit light, so that the light emitted by each light-emitting unit can be emitted out through the corresponding target position point.
According to the sensor hiding method, the terminal determines color values of colors to be presented at all target position points of the sensor hole according to the acquired first pixel values, and then controls all light emitting units in the light emitting assembly to emit light according to the color values corresponding to all the target position points; therefore, the color presented by the sensor hole is not a single color, but the color corresponding to the target area is presented at each target position point, so that the color presented by the sensor hole can be better integrated with the color presented by the display screen, and the display integration effect of the screen is further improved.
In one embodiment, the sensor hole may be a circular hole, and the target area in the display screen may be an annular area. As shown in fig. 6, the target location points of the sensor holes may include a target location point a; in the annular region, the target pixel point located on the radial line where the target position point is located may be the target pixel point B. It should be noted that the target position points in the sensor hole may include a plurality of points, and the plurality of target position points may be located on the same radial line or on different radial lines. The target pixel point corresponding to each target position point can be one or multiple, and the multiple target pixel points corresponding to each target position point can be located on the extension line of the radial line where the target position point is located.
The terminal can obtain the first pixel value of each target pixel point, and then gradually change the first pixel value of the target pixel point in the target area according to the color gradually changing rule to obtain the color value of the color to be presented at the target position point. The color gradient rule may include a gradient value of each color component value, a reduction ratio of each color component value, or a gradient equation of the color component values; the form of the above color gradation rule is not limited herein. The terminal can perform corresponding gradient processing on the first pixel value according to the gradient rule. The gradation process may be performed by increasing or decreasing the color component values in the first pixel value, or by scaling the color component values in the first pixel value, and the manner of the gradation process is not limited herein.
Continuing with fig. 6 as an example, the target position point a corresponds to the target pixel point B and the target pixel point C, the corresponding first pixel values are (R1, G1, B1) and (R2, G2, B2), and R1< R2, G1< G2, and B1< B2, and the terminal can consider that the color component values from the target pixel point C to the target pixel point B are all smaller. The color gradient rule comprises a gradient value M of each color component value, and the distance between the target position point A and the target pixel point B is N pixels. The terminal can obtain the color value corresponding to the target position point A as (R1-N M, G1-N M, B1-N M). Or, the color gradient rule may determine a scaling ratio of each color component value according to a color variation between the target pixel point B and the target pixel point C, and then determine a color value of the target location point a according to the scaling ratio.
In addition, when the terminal determines the color value of the target location point, the color value of the currently processed target location point can be determined jointly by combining the pixel value of the target pixel point and the color value of the target location point of which the color value is confirmed.
According to the sensor hiding method, the terminal can respectively carry out gradual change processing on the first pixel values of the target pixel points in the target area according to the color gradual change rule, so that the color values of the colors to be presented of the target position points are obtained, the color values presented by the sensor holes and the color values of the target area can present a more natural transition effect, and therefore the hiding effect of the sensor holes is improved.
Fig. 7 is a schematic flowchart of a sensor hiding method in an embodiment, where the embodiment relates to a manner of performing a gradation process on a first pixel value by a terminal, and on the basis of the foregoing embodiment, as shown in fig. 7, the foregoing S102 includes:
s201, performing curve fitting processing on each color component value respectively to obtain a fitting curve of each color component value changing along with the position of the target pixel point.
Specifically, when the terminal obtains the color value to be presented at the target position point according to the plurality of first pixel values on the same radial line, the terminal may perform curve fitting processing on each color component value in each first pixel value, so as to obtain a fitting curve of each color component value changing with the position of the target pixel point. Fig. 8 shows a fitted curve in which one color component varies with the position of the target pixel point.
The fitting curve may be a linear curve or a nonlinear curve, and is not limited herein.
S202, according to the fitted curve and the distance between the target position point and the target pixel point, the color value of the color to be presented of the target position point is calculated.
Further, the terminal can obtain the distance between the target position point and the target pixel point, and then searches for the corresponding color component value in the fitting curve according to the distance. Specifically, the terminal may obtain a distance between the target position point and a target pixel point closest to the target position point, and then determine the color component value in the fitting curve according to the distance, or may determine the color component value in the fitting curve according to a distance between the target position point and any one of the target pixel points.
After the terminal determines the three color component values according to the three fitting curves corresponding to the three color component values, the color value of the color to be presented at the target position point can be formed by the three color component values.
According to the sensor hiding method, the terminal carries out curve fitting processing on each color component value, and then obtains the color value of the target position point according to the fitting curve, so that the color value presented by the sensor hole and the color value of the target area present a more natural transition effect, and the hiding effect of the sensor hole is further improved.
Fig. 9 is a schematic flowchart of a sensor hiding method in an embodiment, where the embodiment relates to a manner that a terminal determines light-emitting pixel values of light-emitting units in a light-emitting assembly, and on the basis of the above embodiment, as shown in fig. 9, the above S103 includes:
s301, respectively determining color values of colors to be presented at each target position point as color values of light rays emitted by the corresponding first light-emitting units.
The light emitting assembly may include a first light emitting unit having a corresponding relationship with the target position point, and a second light emitting unit having no corresponding relationship with the target position point. Taking fig. 10 as an example, the area where the sensor hole is located may include 8 target location points that are uniformly distributed, the light emitting assembly may be annularly disposed around the sensor hole, each target location point corresponds to one first light emitting unit, in the figure, the target location point a corresponds to the first light emitting unit a1, and the target location point B corresponds to the first light emitting unit B1.
Each target location point may correspond to one first light emitting unit, or may correspond to a plurality of first light emitting units, which is not limited herein. Alternatively, the annular radius of the light emitting assembly and the radius of the sensor hole may be the same, and each target position point may correspond to the first light emitting unit one to one.
The terminal can confirm the color value of the color to be presented at each target position point as the color value of the light emitted by the corresponding first light-emitting unit.
And S302, determining the light-emitting pixel value of each second light-emitting unit according to the light-emitting pixel value of each first light-emitting unit.
After the terminal determines the light-emitting pixel values of the first light-emitting units corresponding to the target position points, the color values of the light rays emitted by the second light-emitting units can be further determined according to the light-emitting pixel values of the first light-emitting units, so that the light-emitting pixel values of all the light-emitting units in the light-emitting assembly are obtained.
Specifically, when determining the light-emitting pixel value of the second light-emitting unit, the terminal may determine the light-emitting pixel value of the first light-emitting unit closest to the second light-emitting unit as the light-emitting pixel value of the second light-emitting unit; or, the terminal may obtain light-emitting pixel values of at least two first light-emitting units around the second light-emitting unit, then average the at least two light-emitting pixel values, and determine the average value as the light-emitting pixel value of the second light-emitting unit; the determination method of the light-emitting pixel value of the second light-emitting unit is not limited herein.
Optionally, interpolation processing is performed on the light-emitting pixel values of the first light-emitting units to obtain color values of the light rays emitted by the second light-emitting units. For example, the terminal may determine a second light emitting cell between two adjacent first light emitting cells, then obtain a difference between light emitting pixel values of the two adjacent first light emitting cells, and interpolate to obtain a light emitting pixel value of the second light emitting cell according to the difference and a distance between the second light emitting cell and the first light emitting cell, as shown in fig. 10, the second light emitting cells C1 and C2 are included between the first light emitting cell a1 and the first light emitting cell B1, and the terminal may interpolate to obtain light emitting pixel values of the second light emitting cells C1 and C2 according to light emitting pixel values of the first light emitting cell a1 and the first light emitting cell B1. Through interpolation processing, the terminal can make the light that light emitting component emitted present more natural effect, and then makes the colour that the light that the sensor hole jetted out presented and the colour of display screen present more natural transition effect, strengthens the hidden effect in sensor hole.
According to the sensor hiding method, the terminal can directly correspond to the light-emitting pixel value of the first light-emitting unit in the light-emitting assembly according to the obtained color value of each target position point, the light-emitting pixel value of the first light-emitting unit in the light-emitting assembly can be determined more quickly, and the determination efficiency of the light-emitting pixel value is improved; furthermore, the terminal determines the light-emitting pixel value of each second light-emitting unit according to the light-emitting pixel value of each first light-emitting unit, and can obtain the light-emitting pixel value of the second light-emitting unit in an interpolation processing mode, so that the color of light emitted by the sensor hole and the color of the display screen can present a more natural transition effect, and the hiding effect of the sensor hole is enhanced.
It should be understood that although the various steps in the flowcharts of fig. 2-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-10 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 11 is a block diagram showing a structure of a sensor hiding device according to an embodiment. As shown in fig. 11, the terminal includes a light emitting assembly, a display screen, and a sensor hole provided in the display screen, and the apparatus includes:
the acquisition module 10 is configured to acquire a first pixel value of a pixel point in a target area in a display screen, where the target area is located in a preset range around a sensor hole;
the determining module 20 is configured to determine a color value of a color to be presented in the sensor hole according to the acquired first pixel value;
and the control module 30 is used for controlling the light-emitting component to emit light rays based on the color values, and the light rays are emitted out through the sensor hole.
In an embodiment, on the basis of the above embodiment, the determining module 20 is specifically configured to: and determining the color value of the color to be presented at each target position of the sensor hole according to the acquired first pixel value.
In an embodiment, on the basis of the above embodiment, the target area is an annular area, and the determining module 20 is specifically configured to: according to a color gradual change rule, respectively performing gradual change processing on first pixel values of target pixel points in a target area to obtain color values of colors to be presented of target position points; the target pixel point is located on the extension line of the radial line where the target position point is located.
In one embodiment, on the basis of the above embodiment, the first pixel value includes three color component values; as shown in fig. 12, the determining module 20 includes:
a fitting unit 201, configured to perform curve fitting processing on each color component value, respectively, to obtain a fitting curve of each color component value changing with a position of a target pixel point;
and the calculating unit 202 is configured to calculate a color value of a color to be presented at the target position point according to the fitted curve and the distance between the target position point and the target pixel point.
In one embodiment, on the basis of the above embodiment, as shown in fig. 13, the control module 30 includes:
a determining unit 301, configured to determine, based on color values of colors to be presented at each target location point, light-emitting pixel values of each light-emitting unit in the light-emitting assembly;
a control unit 302 for controlling the light emitting components to emit light based on the light emitting pixel values of the light emitting units.
In one embodiment, on the basis of the above embodiment, the light emitting assembly includes a first light emitting unit having a corresponding relationship with the target position point, and a second light emitting unit having no corresponding relationship with the target position point; the determining unit 301 is specifically configured to: respectively determining the color value of the color to be presented at each target position point as the color value of the light ray emitted by the corresponding first light-emitting unit; and determining the luminous pixel value emitted by each second luminous unit according to the luminous pixel value of each first luminous unit.
In an embodiment, on the basis of the foregoing embodiment, the determining unit 301 is specifically configured to: and carrying out interpolation processing on the light-emitting pixel values of the first light-emitting units to obtain the light-emitting pixel values emitted by the second light-emitting units.
The sensor hiding device provided by the embodiment has the similar implementation principle and technical effect as those of the method embodiments, and is not described herein again.
The division of the modules in the sensor hiding device is only used for illustration, and in other embodiments, the sensor hiding device may be divided into different modules as needed to complete all or part of the functions of the sensor hiding device.
For specific limitations of the sensor hiding device, reference may be made to the above limitations of the sensor hiding method, which are not described herein again. The modules in the sensor hiding device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 14 is a schematic diagram of the internal structure of the terminal in one embodiment. As shown in fig. 14, the terminal includes a processor and a memory connected through a system bus, and further includes a display screen and a light emitting assembly connected to the processor, wherein the display screen includes a sensor hole. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole terminal. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor for implementing a sensor hiding method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The terminal may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and a wearable device.
Those skilled in the art will appreciate that the configuration shown in fig. 14 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a terminal is provided, comprising a memory 105 and a processor 104, and a display screen 102 and a light emitting assembly 103 connected to the processor 104, the display screen 102 comprising a sensor hole 1021, as shown in fig. 15; the memory 105 stores a computer program, and the processor 104 implements the steps of the sensor hiding method when executing the computer program, including:
acquiring a first pixel value of a pixel point in a target area in a display screen, wherein the target area is located in a preset range around a sensor hole;
determining a color value of a color to be presented in the sensor hole according to the acquired first pixel value;
and controlling the light-emitting component to emit light based on the color value, wherein the light is emitted through the sensor hole.
In one embodiment, based on the above embodiment, as shown in fig. 16, the display screen 102 is a bidirectional display screen 1022, and the light emitting assembly 103 is a side of the bidirectional display screen 1022 close to the sensor 101 corresponding to the sensor hole 103.
In one embodiment, on the basis of the above embodiment, as shown in fig. 17, the light emitting element 103 is annularly disposed around the sensor hole.
In one embodiment, on the basis of the above embodiment, as shown in fig. 17, the terminal further includes a prism 106, and the prism 106 is annularly disposed around the camera.
The implementation principle and technical effect of the terminal provided in this embodiment are similar to those of the above method embodiments, and are not described herein again.
The implementation of each module in the sensor hiding device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to execute a computer program to implement the steps of the above-described sensor concealment method, comprising:
acquiring a first pixel value of a pixel point in a target area in a display screen, wherein the target area is located in a preset range around a sensor hole;
determining a color value of a color to be presented in the sensor hole according to the acquired first pixel value;
and controlling the light-emitting component to emit light based on the color value, wherein the light is emitted through the sensor hole.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a sensor concealment method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A sensor hiding method applied to a terminal, wherein the terminal comprises a light emitting component, a display screen and a sensor hole arranged in the display screen, and the method comprises the following steps:
acquiring a first pixel value of a pixel point in a target area in the display screen, wherein the target area is located in a preset range around the sensor hole;
determining a color value of a color to be presented in the sensor hole according to the acquired first pixel value;
and controlling the light-emitting component to emit light rays based on the color value, wherein the light rays are emitted through the sensor hole.
2. The method of claim 1, wherein determining a color value of a color to be rendered by the sensor well based on the obtained first pixel value comprises:
and determining the color value of the color to be presented at each target position of the sensor hole according to the acquired first pixel value.
3. The method of claim 2, wherein the target area is an annular area, and wherein determining a color value of a color to be rendered at each target location of the sensor hole according to the obtained first pixel value comprises:
according to a color gradual change rule, respectively performing gradual change processing on first pixel values of target pixel points in the target area to obtain color values of colors to be presented of the target position points; and the target pixel point is positioned on the extension line of the radial line of the target position point.
4. The method of claim 3, wherein the first pixel value comprises three color component values; according to the color gradient rule, performing gradient processing on the first pixel value of the target pixel point in the target area to obtain the color value of the color to be presented of each target position point, including:
respectively carrying out curve fitting processing on each color component value to obtain a fitting curve of each color component value changing along with the position of a target pixel point;
and calculating the color value of the color to be presented of the target position point according to the fitting curve and the distance between the target position point and the target pixel point.
5. The method of any of claims 2-4, wherein said controlling the light emitting assembly to emit light based on the color value comprises:
determining a light-emitting pixel value of each light-emitting unit in the light-emitting assembly based on a color value of a color to be presented at each target position;
and controlling the light-emitting component to emit light based on the light-emitting pixel value of each light-emitting unit.
6. The method of claim 5, wherein the lighting assembly comprises a first lighting unit having a corresponding relationship with the target location point and a second lighting unit having no corresponding relationship with the target location point; the determining a light-emitting pixel value of each light-emitting unit in the light-emitting assembly based on the color value of the color to be presented at each target position includes:
respectively determining the color value of the color to be presented at each target position as the color value of the light emitted by the corresponding first light-emitting unit;
and determining the light-emitting pixel value emitted by each second light-emitting unit according to the light-emitting pixel value of each first light-emitting unit.
7. The method of claim 6, wherein determining the light-emitting pixel value of each of the second light-emitting units according to the color value of the light emitted by each of the first light-emitting units comprises:
and carrying out interpolation processing on the light-emitting pixel values of the first light-emitting units to obtain the light-emitting pixel values emitted by the second light-emitting units.
8. A sensor hiding device, applied to a terminal, the terminal including a light emitting module, a display screen and a sensor hole provided in the display screen, the device comprising:
the acquisition module is used for acquiring a first pixel value of a pixel point in a target area in the display screen, wherein the target area is located in a preset range around the sensor hole;
the determining module is used for determining the color value of the color to be presented in the sensor hole according to the acquired first pixel value;
and the control module is used for controlling the light-emitting component to emit light rays based on the color values, and the light rays are emitted through the sensor hole.
9. A terminal, characterized in that the terminal comprises a memory and a processor, and a display screen and a light emitting component which are connected with the processor, wherein the display screen comprises a sensor hole; the memory stores a computer program, and when the computer program is executed by the processor, the processor implements the steps of the sensor hiding method when executing the computer program.
10. The terminal of claim 9, wherein the display is a bi-directional display, and the light emitting component is a side of the bi-directional display adjacent to the sensor corresponding to the sensor hole.
11. A terminal as claimed in claim 10, wherein the light emitting element is disposed annularly about the sensor aperture.
12. A terminal as claimed in claim 11, further comprising a prism disposed annularly about the sensor.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the sensor concealment method as claimed in any one of claims 1 to 7.
CN202010692951.5A 2020-07-17 2020-07-17 Sensor hiding method, device, terminal and storage medium Active CN113949756B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010692951.5A CN113949756B (en) 2020-07-17 2020-07-17 Sensor hiding method, device, terminal and storage medium
PCT/CN2021/094870 WO2022012159A1 (en) 2020-07-17 2021-05-20 Sensor hiding method and apparatus, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010692951.5A CN113949756B (en) 2020-07-17 2020-07-17 Sensor hiding method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113949756A true CN113949756A (en) 2022-01-18
CN113949756B CN113949756B (en) 2022-11-15

Family

ID=79327114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010692951.5A Active CN113949756B (en) 2020-07-17 2020-07-17 Sensor hiding method, device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN113949756B (en)
WO (1) WO2022012159A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106094393A (en) * 2016-08-11 2016-11-09 圣邦微电子(北京)股份有限公司 Portable electric appts screen backlight is used to carry out the method and apparatus of light filling
CN106412155A (en) * 2016-09-05 2017-02-15 信利光电股份有限公司 Glass cover plate of iris recognition mobile phone, and mobile phone
CN108037796A (en) * 2017-12-21 2018-05-15 广东欧珀移动通信有限公司 Electronic device, display control method and related product
CN108469704A (en) * 2018-05-03 2018-08-31 东莞市美光达光学科技有限公司 A kind of illuminating module being hidden in below mobile phone screen
CN210327649U (en) * 2018-11-28 2020-04-14 华为技术有限公司 A structure, camera module and terminal equipment for hiding leading camera
CN112259575A (en) * 2020-09-24 2021-01-22 维信诺科技股份有限公司 Display panel and electronic terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100573487B1 (en) * 2004-04-27 2006-04-24 매그나칩 반도체 유한회사 Image sensor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106094393A (en) * 2016-08-11 2016-11-09 圣邦微电子(北京)股份有限公司 Portable electric appts screen backlight is used to carry out the method and apparatus of light filling
CN106412155A (en) * 2016-09-05 2017-02-15 信利光电股份有限公司 Glass cover plate of iris recognition mobile phone, and mobile phone
CN108037796A (en) * 2017-12-21 2018-05-15 广东欧珀移动通信有限公司 Electronic device, display control method and related product
CN108469704A (en) * 2018-05-03 2018-08-31 东莞市美光达光学科技有限公司 A kind of illuminating module being hidden in below mobile phone screen
CN210327649U (en) * 2018-11-28 2020-04-14 华为技术有限公司 A structure, camera module and terminal equipment for hiding leading camera
CN112259575A (en) * 2020-09-24 2021-01-22 维信诺科技股份有限公司 Display panel and electronic terminal

Also Published As

Publication number Publication date
WO2022012159A1 (en) 2022-01-20
CN113949756B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US11302283B2 (en) Screen color conversion method, storage medium, and electronic device
CN107992182B (en) Method and device for displaying interface image
CN108172199B (en) Display methods, display device, electronic equipment and computer readable storage medium
US10366673B2 (en) Display device and image processing method thereof
CN106339224B (en) Readability enhancing method and device
WO2016033099A1 (en) Environmentally adaptive display adjustment
CN108615496B (en) Image data processing method and device
KR20160068627A (en) Image processing device, image processing method and display device
CN113132704A (en) Image processing method, device, terminal and storage medium
CN113140197A (en) Display picture adjusting method and device, electronic equipment and readable storage medium
CN111625213A (en) Picture display method, device and storage medium
CN105979097A (en) Mobile terminal and method for adjusting backlight brightness of display screen of mobile terminal
CN110444181B (en) Display method, display device, terminal and computer-readable storage medium
US11393878B2 (en) Display panel and display device
CN113949756B (en) Sensor hiding method, device, terminal and storage medium
CN113157357A (en) Page display method, device, terminal and storage medium
CN110880164B (en) Image processing method, device, equipment and computer storage medium
US10438377B2 (en) Method and device for processing a page
CN106445501A (en) Display method of notification bar, and terminal
KR102178333B1 (en) Image processing method and transparent dsiplay apparatus
US10290269B2 (en) Hybrid liquid crystal display
CN108604367B (en) Display method and handheld electronic device
CN111383582B (en) Display control method, display control device, electronic equipment and computer-readable storage medium
JPWO2006080277A1 (en) Display device
US10068151B2 (en) Method, device and computer-readable medium for enhancing readability

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