WO2022012159A1 - 传感器隐藏方法、装置、终端和存储介质 - Google Patents

传感器隐藏方法、装置、终端和存储介质 Download PDF

Info

Publication number
WO2022012159A1
WO2022012159A1 PCT/CN2021/094870 CN2021094870W WO2022012159A1 WO 2022012159 A1 WO2022012159 A1 WO 2022012159A1 CN 2021094870 W CN2021094870 W CN 2021094870W WO 2022012159 A1 WO2022012159 A1 WO 2022012159A1
Authority
WO
WIPO (PCT)
Prior art keywords
light
color
emitting
value
terminal
Prior art date
Application number
PCT/CN2021/094870
Other languages
English (en)
French (fr)
Inventor
李江
彭河德
熊建才
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022012159A1 publication Critical patent/WO2022012159A1/zh

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

Definitions

  • the present application relates to the technical field of mobile terminals, and in particular, to a sensor hiding method, device, terminal and storage medium.
  • hole-digging screen In order to reduce the impact of the area occupied by the front camera on the full screen, terminal manufacturers often use punch-hole screens to increase the screen ratio of mobile terminals.
  • the feature of the hole-digging screen is that one or more small holes are “digged” at the top of the screen, and the front camera module is embedded in it, which "liberates” the raised space above the top of the screen that originally belonged to bangs, water droplets and pearls.
  • the embodiments of the present application provide a sensor hiding method, device, terminal, and storage medium, which can improve the display integration effect of the screen.
  • a sensor concealment method is applied in a terminal, where the terminal includes a light-emitting component, a display screen, and a sensor hole disposed in the display screen, and the above method includes:
  • the light-emitting component is controlled to emit light based on the color value, and the light is emitted through the sensor hole.
  • a sensor hiding device is applied to a terminal, where the terminal includes a light-emitting component, a display screen, and a sensor hole disposed in the display screen, and the device includes:
  • an acquisition module configured to acquire the first pixel value of the pixel point in the target area in the display screen, and the target area is located within a preset range around the sensor hole;
  • a determination module configured to determine the color value of the color to be presented in the sensor hole according to the acquired first pixel value
  • the control module is used for controlling the light-emitting component to emit light based on the color value, and the light is emitted through the sensor hole.
  • a terminal in a third aspect, includes a memory and a processor, a display screen and a light-emitting component connected to the processor, the display screen includes a sensor hole; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor The steps of implementing the above-described sensor concealment method when executing a computer program.
  • a computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, implements the steps of the above-mentioned sensor hiding method.
  • the terminal includes a light-emitting component, a display screen and a sensor hole arranged in the display screen, the terminal can obtain the first pixel value of the pixel point in the target area in the display screen, and then according to the obtained Determine the color value of the color to be presented by the sensor hole; and control the light-emitting component to emit light based on the color value, and the light is emitted through the sensor hole.
  • the terminal Because the target area is located within a preset range around the sensor hole, and the terminal obtains the color value of the color to be displayed in the sensor hole according to the first pixel value of the pixel in the target area; further, the terminal controls the light-emitting component to emit light based on the color value, and controls The light is emitted through the sensor hole, so that the sensor hole can present the color value related to the surrounding target area, rather than the black of the camera itself; The sensor hole is visually hidden to improve the display integration effect of the screen and further improve the user experience.
  • 1 is an application environment diagram of a sensor hiding method in one embodiment
  • FIG. 3 is a schematic diagram of a sensor hiding method in one embodiment
  • FIG. 4 is a schematic diagram of a sensor hiding method in another embodiment
  • FIG. 5 is a schematic diagram of a sensor hiding method in another embodiment
  • FIG. 6 is a schematic diagram of a sensor hiding method in another embodiment
  • FIG. 8 is a schematic diagram of a sensor hiding method in another embodiment
  • FIG. 10 is a schematic diagram of a sensor hiding method in another embodiment
  • FIG. 11 is a structural block diagram of a sensor hiding device in one embodiment
  • FIG. 12 is a structural block diagram of a sensor hiding device in one embodiment
  • FIG. 13 is a structural block diagram of a sensor hiding device in one embodiment
  • FIG. 14 is a schematic structural diagram of a terminal in an embodiment
  • 15 is a schematic structural diagram of a terminal in an embodiment
  • 16 is a schematic structural diagram of a terminal in an embodiment
  • FIG. 17 is a schematic structural diagram of a terminal in an embodiment.
  • FIG. 1 is a schematic diagram of an application environment of a sensor hiding method in one embodiment.
  • the display screen in the terminal 100 may be a hole-digging screen, and the sensor 101 of the terminal 100 may collect images through the sensor hole 1021 in the display screen 102 .
  • the above-mentioned terminal 100 includes a processor 104 , and the processor 104 may work with The display screen 102 and the camera 101 are connected.
  • the above-mentioned sensor may be a camera, or an infrared sensor, etc., and the type of the above-mentioned sensor is not limited herein.
  • the sensor hole may be a closed hole or a semi-closed hole.
  • the above-mentioned terminal may be a wireless terminal, and the wireless terminal may be a device that provides voice and/or other service data connectivity to a user, a handheld device with a wireless connection function, or other processing device connected to a wireless modem.
  • the wireless terminal may be a mobile terminal, such as a mobile phone and a computer having a mobile terminal, for example, may be a portable, pocket-sized, hand-held, computer-built-in or vehicle-mounted mobile device, and the like.
  • FIG. 2 is a flowchart of a sensor hiding method in one embodiment.
  • the sensor hiding method in this embodiment is described by taking the terminal running in FIG. 1 as an example, where the terminal includes a light-emitting component, a display screen, and a sensor hole provided in the display screen; as shown in FIG. 2 , the above method includes: :
  • the above-mentioned display screen may be a liquid crystal display (Liquid Crystal Display, LCD for short) or an organic electric laser display (Organic Light-Emitting Diode, OLED for short), and the type of the display screen is not limited here.
  • the above-mentioned 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 phone watch, etc., which is not limited herein.
  • the above-mentioned display screen includes a sensor hole, and the above-mentioned sensor hole may be a camera hole or an infrared sensor hole or the like.
  • the above-mentioned sensor hole may be located above a type of sensor such as a terminal camera, for the sensor to collect sensor data through the sensor hole.
  • the above-mentioned sensor holes may be through holes or blind holes, which are not limited herein.
  • the camera can directly collect images through the sensor hole; when the sensor hole is a blind hole, the camera can collect images through the glass cover at the sensor hole in the display screen.
  • the above-mentioned sensor hole may be located at the middle position of the display screen, or may be located at the upper part of the display screen, and the position of the sensor hole is not limited herein.
  • the above-mentioned target area is a display area located within a preset range around the sensor hole in the display screen.
  • the above-mentioned target area may be a square or an irregular shape, and the shape of the above-mentioned target area is not limited herein.
  • the above-mentioned surrounding preset range may be a range with the above-mentioned sensor hole as the center and the preset distance as the radius; in addition, the above-mentioned surrounding preset range may also be the display screen of the entire terminal; the area of the above-mentioned surrounding preset range is not mentioned here. Do limit.
  • the above-mentioned first pixel value is used to represent the display color in the target area in the display screen.
  • the above-mentioned first pixel value can be an RGB value, and the above-mentioned RGB value can be a combination of color component values including red, yellow, and blue three color component values, or can be a hexadecimal value obtained by hexadecimal conversion; in addition; , the above-mentioned first pixel value may also be a binary value in the display data sent by the processor to the display screen, and the representation of the above-mentioned first pixel value is not limited here.
  • the terminal When the terminal acquires the first pixel values of the pixels in the target area in the display screen, it can acquire the first pixel values of all the pixels in the target area, or it can acquire the first pixel values of some pixels in the target area. This is not limited. Specifically, the terminal can obtain the position identifiers of the pixels in the target area on the display screen, and then extract the display data corresponding to the position identifiers in the display data sent by the processor to the display screen, and determine each pixel according to the display data. The first pixel value of the point.
  • the terminal may acquire the first pixel value of the pixel point in the target area in real time, and may also acquire the update frequency of the first pixel value according to the refresh rate of the display screen, which is not limited herein.
  • the terminal may determine whether to acquire the above-mentioned first pixel value according to the 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. If the camera of the terminal is in the idle mode, the terminal can real-time The first pixel value of the pixel point in the target area is acquired, so that the color presented by the sensor hole on the display screen can change with the change of the display color of the display screen, so as to achieve the effect of better hiding the sensor hole.
  • the terminal can assume that the sensor hole is an extension of the display screen, the terminal can determine the color to be displayed in the sensor hole according to the color of the target area in the display screen, and further make the sensor hole display the corresponding color through corresponding technical means .
  • the color displayed 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, which achieves the goal of hiding the sensor hole.
  • the terminal may set the color to be presented by the sensor hole as the color near the sensor hole in the target area;
  • the first pixel value in the sensor hole is extended, so that the color to be presented in the sensor hole and the color of the target area present a natural transition effect; the manner of determining the above-mentioned color value is not limited here.
  • the area of the sensor hole is small.
  • the terminal determines the color to be displayed in the sensor hole, the terminal can determine the sensor hole area as a color value, so that the sensor hole can display the same color; the terminal can also set the camera area to Different color values cause the sensor hole to present a changing color, which is not limited here.
  • the light emitting component can be controlled to emit light by the color value, so that the light emitted by the light emitting component can be emitted through the sensor hole.
  • the terminal may control some light-emitting units in the light-emitting assembly to emit light based on the color value, and may also control all light-emitting units in the light-emitting assembly to emit light, which is not limited herein.
  • the light emitted by the light-emitting component can be emitted through the sensor hole, for example, the light-emitting component and the sensor hole form a certain angle, so that the light emitted by the light-emitting component can directly pass through the sensor hole, as shown in FIG. 3; in addition, the light emitted by the light-emitting component It can be refracted by other units and then emitted through the sensor hole.
  • a prism can be included in the terminal, and the light emitted by the light-emitting component can be refracted to the sensor hole through the prism, as shown in Figure 4; Do limit.
  • the display screen in the above-mentioned terminal may be a bidirectional display screen, and the above-mentioned light-emitting component may be a back display part of the bidirectional display screen, that is, the side of the bidirectional display screen close to the sensor corresponding to the sensor hole.
  • the above-mentioned two-way display screen refers to a display screen that can emit light through both the front and back sides.
  • the display screen of the above-mentioned terminal is a two-way display screen, light can be emitted directly through the display part on the back of the display screen, without the need for additional light-emitting components.
  • the structure layout in the terminal device is facilitated, so that the structure of the terminal device is more compact.
  • the shape of the above-mentioned light-emitting component may be a square or other shapes, which are not limited herein.
  • the terminal includes a light-emitting component, a display screen, and a sensor hole arranged in the display screen.
  • the terminal can obtain the first pixel value of the pixel point in the target area in the display screen, and then determine the first pixel value according to the obtained first pixel value.
  • the terminal Because the target area is located within a preset range around the sensor hole, and the terminal obtains the color value of the color to be displayed in the sensor hole according to the first pixel value of the pixel in the target area; further, the terminal controls the light-emitting component to emit light based on the color value, and controls The light is emitted through the sensor hole, so that the sensor hole can present the color value related to the surrounding target area, rather than the black color of the sensor itself; The sensor hole is visually hidden to improve the display integration effect of the screen and further improve the user experience.
  • the terminal may determine the color value of the color to be presented at each target position point of the sensor hole according to the acquired first pixel value.
  • the above-mentioned target position point may be a preset position of the terminal, or may be a position point determined according to the light-emitting component, and the manner of determining the above-mentioned target position is not limited herein.
  • the above target position points may all be distributed in the area where the sensor hole is located, or may be points in a partial area of the sensor hole area, and the distribution of the target position points is not limited herein.
  • the terminal When the terminal obtains the color value corresponding to each target position point, it can be determined according to the first pixel value of all the pixel points in the target area. The position of the first pixel value of the pixel point is extended to obtain the color value of the target position point.
  • different target position points in the sensor hole may correspond to some pixel points in the target area, and the terminal may 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.
  • the sensor hole includes four target position points A1-A4, and each target position point corresponds to 3 pixel points B1-B3 in the target area.
  • the terminal can 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 point; then Based on the light-emitting pixel value of each light-emitting unit, the light-emitting component is controlled to emit light.
  • the terminal can determine the light emitting unit corresponding to each target position point in the light emitting assembly according to the deployment position of the light emitting assembly and the propagation direction of the light emitted by the light emitting assembly. Further, the terminal can set the light-emitting pixel value of the corresponding light-emitting unit according to the obtained color value of the color to be presented at each target position, and then control the light-emitting component to emit light, so that the light emitted by each light-emitting unit can pass through the corresponding target position. shoot.
  • the terminal determines the color value of the color to be presented at each target position point of the sensor hole according to the obtained first pixel value, and then controls each light-emitting component in the light-emitting component according to the color value corresponding to each target position point.
  • the unit emits light; therefore, the color presented by the sensor hole is not a single color, but a color corresponding to the target area at each target location point, so that the color presented by the sensor hole can be better blended with the color presented by the display. Integrated to further enhance the display integration effect of the screen.
  • the sensor hole may be a circular hole, and the target area in the display screen may be an annular area.
  • the target position point of the sensor hole may include the target position point A; in the above-mentioned 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.
  • the target position points in the sensor hole may include multiple points, and the above-mentioned multiple target position points may be located on the same radial line or may be located on different radial lines.
  • the target pixel point corresponding to each target position point may be one or multiple, and the multiple target pixel points corresponding to each target position point may 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 perform gradient processing on the first pixel value of the target pixel point in the target area according to the color gradient rule to obtain the color value of the color to be displayed at the target position point.
  • the above-mentioned color gradient rule may include the gradient value of each color component value, may also include the shrinkage ratio of each color component value, or may be the gradient equation of the color component value; the form of the above-mentioned color gradient rule is not limited here.
  • the terminal may perform corresponding gradient processing on the first pixel value according to the gradient rule.
  • the above gradient processing may be to increase or decrease the value of each color component in the first pixel value, or it may be to scale the value of each color component in the first pixel value, and the method of the above gradient processing is not limited here. .
  • 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) respectively
  • R1 ⁇ R2, G1 ⁇ G2, B1 ⁇ B2 the terminal can consider that from the target pixel point C to the target pixel point B, the value of each color component becomes smaller.
  • the above-mentioned color gradient rule includes the 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 (R1-N*M, G1-N*M, B1-N*M).
  • the above-mentioned color gradient rule may be to determine the scaling ratio of each color component value according to the amount of color change between the target pixel point B and the target pixel point C, and then determine the color value of the target position point A according to the aforementioned scaling ratio.
  • the terminal may also combine the pixel value of the target pixel point and the color value of the target position point whose color value has been confirmed to jointly determine the color value of the currently processed target position point.
  • the terminal can perform gradient processing on the first pixel value of the target pixel point in the target area according to the color gradient rule, and obtain the color value of the color to be displayed at the target position point, which can make the color value displayed by the sensor hole.
  • a more natural transition to the color value of the target area improves the concealment of the sensor hole.
  • FIG. 7 is a schematic flowchart of a sensor hiding method in an embodiment. This embodiment relates to a manner in which the terminal performs gradient processing on the first pixel value.
  • the foregoing S102 includes:
  • the terminal when the terminal obtains the color value to be presented at the target position point according to a plurality of first pixel values on the same radial line, it can perform curve fitting processing on each color component value in each first pixel value, and obtain The fitting curve of the value of each color component changing with the position of the target pixel point.
  • Figure 8 shows the fitting curve of one of the color components changing with the position of the target pixel.
  • the above fitting curve may be a linear curve or a non-linear curve, which is not limited herein.
  • the terminal can obtain the distance between the target position point and the target pixel point, and then search for the corresponding color component value in the fitting curve according to the above distance. Specifically, the terminal can obtain the 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 according to the distance between the target position point and any target pixel point The distance between them is used to determine the color component values in the fitted curve.
  • the three color component values may form the color value of the color to be presented at the target position point.
  • the terminal performs 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 , which further improves the hiding effect of the sensor hole.
  • FIG. 9 is a schematic flowchart of a sensor hiding method in one embodiment. This embodiment relates to a way for the terminal to determine the light-emitting pixel value of each light-emitting unit in the light-emitting component.
  • the above-mentioned S103 includes:
  • the light-emitting component may include a first light-emitting unit that has a corresponding relationship with the target position point, and a second light-emitting unit that does not have a corresponding relationship with the target position point.
  • the area where the sensor hole is located may include 8 target position points evenly distributed
  • the light-emitting component may be annularly arranged around the sensor hole, and each target position point corresponds to a first light-emitting unit.
  • the point A corresponds to the first light-emitting unit A1
  • the target position point B corresponds to the first light-emitting unit B1.
  • each target position 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.
  • the annular radius of the light-emitting component and the radius of the sensor hole may be the same, and each target position point may be in one-to-one correspondence with the first light-emitting unit.
  • the terminal may respectively determine 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.
  • the terminal may further determine the color value of the light emitted by each second light-emitting unit according to the light-emitting pixel value of each first light-emitting unit, so as to obtain The light-emitting pixel value of all light-emitting units in the light-emitting component.
  • the terminal may determine the light-emitting pixel value of the first light-emitting unit that is closest to the second light-emitting unit as the light-emitting pixel value of the second light-emitting unit; or, The terminal may acquire the light-emitting pixel values of at least two first light-emitting units around the second light-emitting unit, then average the above 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 manner of determining the light-emitting pixel value of the second light-emitting unit is not limited herein.
  • interpolation processing is performed on the light-emitting pixel values of each of the first light-emitting units to obtain the color value of the light emitted by each of the second light-emitting units.
  • the terminal may determine the second light-emitting unit in the middle of two adjacent first light-emitting units, and then obtain the difference between the light-emitting pixel values of the two adjacent first light-emitting units, and calculate the difference between the second light-emitting unit and the second light-emitting unit according to the difference The distance between the first light-emitting unit and the first light-emitting unit is interpolated to obtain the light-emitting pixel value of the second light-emitting unit. As shown in FIG.
  • the second light-emitting unit C1 and C2 are included between the first light-emitting unit A1 and the first light-emitting unit B1, and the terminal
  • the light-emitting pixel values of the second light-emitting units C1 and C2 may be obtained by interpolation according to the light-emitting pixel values of the first light-emitting unit A1 and the first light-emitting unit B1.
  • the terminal can make the light emitted by the light-emitting component present a more natural effect, thereby making the color of the light emitted by the sensor hole and the color of the display screen present a more natural transition effect, enhancing the hidden effect of the sensor hole.
  • 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, and can quickly determine the light-emitting pixel value of the first light-emitting unit in the light-emitting assembly , the determination efficiency of the light-emitting pixel value is improved; further, 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 of the second light-emitting unit through interpolation processing.
  • the value can make the color of the light emitted by the sensor hole and the color of the display screen show a more natural transition effect, and enhance the hidden effect of the sensor hole.
  • steps in the flowcharts in FIGS. 2-10 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, there is no strict order in the execution of these steps, and these steps may be performed in other orders. Moreover, at least a part of the steps in Figs. 2-10 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages may be executed at different times. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.
  • FIG. 11 is a structural block diagram of a sensor hiding device according to an embodiment.
  • the terminal includes a light-emitting component, a display screen, and a sensor hole arranged in the display screen.
  • the above device includes:
  • the acquisition module 10 is used for acquiring the first pixel value of the pixel point in the target area in the display screen, and the target area is located within a preset range around the sensor hole;
  • a determination module 20 configured to determine the color value of the color to be presented in the sensor hole according to the acquired first pixel value
  • the control module 30 is configured to control the light-emitting component to emit light based on the color value, and the light is emitted through the sensor hole.
  • the above determination module 20 is specifically configured to: determine the color value of the color to be presented at each target position point of the sensor hole according to the acquired first pixel value.
  • the target area is a ring-shaped area
  • the above determination module 20 is specifically configured to: according to the color gradient rule, respectively perform gradient on the first pixel value of the target pixel point in the target area processing, to obtain the color value of the color to be presented at the target position point; the target pixel point is located on the extension line of the radial line where the target position point is located.
  • the first pixel value includes three color component values; as shown in FIG. 12 , the above determination module 20 includes:
  • the fitting unit 201 is configured to perform curve fitting processing on each color component value respectively, and obtain a fitting curve of each color component value changing with the position of the target pixel point;
  • the calculation unit 202 is configured to calculate the color value of the color to be presented at the target position point according to the fitting curve and the distance between the target position point and the target pixel point.
  • the foregoing control module 30 includes:
  • a determination unit 301 configured to determine the light-emitting pixel value of each light-emitting unit in the light-emitting component based on the color value of the color to be presented at each target position point;
  • the control unit 302 is configured to control the light-emitting component to emit light based on the light-emitting pixel value of each light-emitting unit.
  • the light-emitting component includes a first light-emitting unit that has a corresponding relationship with the target position point, and a second light-emitting unit that does not have a corresponding relationship with the target position point;
  • the above-mentioned determining unit 301 specifically It is used to: respectively determine 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; according to the light-emitting pixel value of each first light-emitting unit, determine the emission of each second light-emitting unit the luminous pixel value.
  • the above-mentioned determining unit 301 is specifically configured to: perform interpolation processing on the light-emitting pixel values of each first light-emitting unit to obtain light-emitting pixel values emitted by each second light-emitting unit.
  • each module in the above sensor concealment device is only for illustration. In other embodiments, the sensor concealment device may be divided into different modules as required to complete all or part of the functions of the above sensor concealment device.
  • Each module in the above-mentioned sensor concealment device can be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • FIG. 14 is a schematic diagram of an internal structure of a terminal in an embodiment.
  • the terminal includes a processor and a memory connected through a system bus, and also includes a display screen and a light-emitting component connected with the processor, wherein the display screen includes a sensor hole.
  • the processor is used to provide computing and control capabilities to support the operation of the entire terminal.
  • the memory may include non-volatile storage media and internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the computer program can be executed by the processor to implement a sensor hiding method provided by the following embodiments.
  • Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media.
  • 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 sales terminal), a vehicle-mounted computer, a wearable device, and the like.
  • FIG. 14 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied. More or fewer components are shown in the figures, either in combination or with different arrangements of components.
  • a terminal including a memory 105, a processor 104, a display screen 102 and a light-emitting component 103 connected to the processor 104, and the display screen 102 includes a sensor hole 1021, as shown in FIG. 15; the memory
  • a computer program is stored in 105, and when the processor 104 executes the computer program, the steps of the above-mentioned sensor concealment method are realized, including:
  • the light-emitting component is controlled to emit light based on the color value, and the light is emitted through the sensor hole.
  • the display screen 102 is a bidirectional display screen 1022
  • the light emitting component 103 is the side of the bidirectional display screen 1022 close to the sensor 101 corresponding to the sensor hole 103 .
  • the above-mentioned light-emitting component 103 is arranged around the sensor hole in a ring shape.
  • the terminal further includes a prism 106 , and the foregoing prism 106 is arranged around the camera in a ring shape.
  • each module in the sensor hiding device may be in the form of a computer program.
  • the computer program can be run on a terminal or server.
  • the program modules constituted by the computer program can be stored in the memory of the terminal.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to implement the aforementioned sensor concealment when executing the computer program
  • the steps of the method include:
  • the light-emitting component is controlled to emit light based on the color value, and the light is emitted through the sensor hole.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM is available in various 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), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

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

Abstract

本申请提供一种传感器隐藏方法、装置、终端和存储介质,终端包括发光组件、显示屏以及设置于显示屏中的传感器孔,终端可以获取显示屏中目标区域内像素点的第一像素值,然后根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值;并基于颜色值控制发光组件发射光线,光线经由传感器孔射出。采用上述方法可以使终端通过传感器孔射出的光线与目标区域的显示屏呈现的颜色融为一体,可以在视觉上隐藏传感器孔,提升屏幕的显示一体化效果,进一步提升用户体验。

Description

传感器隐藏方法、装置、终端和存储介质 技术领域
本申请涉及移动终端技术领域,特别是涉及一种传感器隐藏方法、装置、终端和存储介质。
背景技术
随着移动终端的发展,人们对终端的屏幕显示要求越来越高,高屏占比的屏幕设计成为了众多终端厂商的设计趋势。为了实现更高的屏占比,目前市面上的移动终端一般通过优化前置摄像头的布局,释放上边框的空间,让视界变得更加震撼。
为了减少前置摄像头占据面积对全面屏的影响,终端厂商多采用挖孔屏提升移动终端的屏占比。挖孔屏的特色是在屏幕的上方“挖”出了一个或多个小孔,里面镶嵌着前置摄像头模块,从而“解放”了原本属于刘海、水滴和珍珠屏幕上方顶部的凸起空间。
但是,用户在使用挖孔屏终端时,仍然会感知小孔的存在,体验效果差。
发明内容
本申请实施例提供了一种传感器隐藏方法、装置、终端和存储介质,可以提升屏幕的显示一体化效果。
第一方面,一种传感器隐藏方法,应用于终端中,终端包括发光组件、显示屏以及设置于显示屏中的传感器孔,上述方法包括:
获取显示屏中目标区域内像素点的第一像素值,目标区域位于传感器孔周围预设范围内;
根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值;
基于颜色值控制发光组件发射光线,光线经由传感器孔射出。
第二方面,一种传感器隐藏装置,应用于终端中,终端包括发光组件、显示屏以及设置于显示屏中的传感器孔,装置包括:
获取模块,用于获取显示屏中目标区域内像素点的第一像素值,目标区域位于传感器孔周围预设范围内;
确定模块,用于根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值;
控制模块,用于基于颜色值控制发光组件发射光线,光线经由传感器孔射出。
第三方面,一种终端,包括存储器和处理器,以及与处理器连接的显示屏、发光组件,显示屏包括传感器孔;存储器中储存有计算机程序,计算机程序被处理器执行时,使得处理器执行计算机程序时实现上述传感器隐藏方法的步骤。
第四方面,一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器 执行时实现上述传感器隐藏方法的步骤。
上述传感器隐藏方法、装置、终端和存储介质,终端包括发光组件、显示屏以及设置于显示屏中的传感器孔,终端可以获取显示屏中目标区域内像素点的第一像素值,然后根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值;并基于颜色值控制发光组件发射光线,光线经由传感器孔射出。由于目标区域位于传感器孔周围预设范围内,且终端根据目标区域内像素点的第一像素值得到传感器孔待呈现颜色的颜色值;进一步地,终端基于颜色值控制发光组件发射光线,并控制光线经由传感器孔射出,使得传感器孔可以呈现与周围的目标区域相关的颜色值,而不是呈现摄像头本身的黑色;终端通过传感器孔射出的光线与目标区域的显示屏呈现的颜色进行融合,可以在视觉上隐藏传感器孔,提升屏幕的显示一体化效果,进一步提升用户体验。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中传感器隐藏方法的应用环境图;
图2为一个实施例中传感器隐藏方法的流程图;
图3为一个实施例中传感器隐藏方法的示意图;
图4为另一个实施例中传感器隐藏方法的示意图;
图5为另一个实施例中传感器隐藏方法的示意图;
图6为另一个实施例中传感器隐藏方法的示意图;
图7为另一个实施例中传感器隐藏方法的流程图;
图8为另一个实施例中传感器隐藏方法的示意图;
图9为另一个实施例中传感器隐藏方法的流程图;
图10为另一个实施例中传感器隐藏方法的示意图;
图11为一个实施例中传感器隐藏装置的结构框图;
图12为一个实施例中传感器隐藏装置的结构框图;
图13为一个实施例中传感器隐藏装置的结构框图;
图14为一个实施例中终端的结构示意图;
图15为一个实施例中终端的结构示意图;
图16为一个实施例中终端的结构示意图;
图17为一个实施例中终端的结构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
图1为一个实施例中传感器隐藏方法的应用环境示意图。如图1所示,终端100中的显示屏可以是挖孔屏,终端100的传感器101可以通过显示屏102中的传感器孔1021采集图像,上述终端100中包括处理器104,处理器104可以与显示屏102以及摄像头101连接。上述传感器可以是摄像头,还可以是红外传感器等,对于上述传感器的类型在此不做限定。上述传感器孔可以是封闭孔,也可以是半封闭孔。上述终端可以是无线终端,无线终端可以是指向用户提供语音和/或其他业务数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以是移动终端,如手机和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置等。
图2为一个实施例中传感器隐藏方法的流程图。本实施例中的传感器隐藏方法,以运行于图1中的终端为例进行描述,其中,终端包括发光组件、显示屏以及设置于显示屏中的传感器孔;如图2所示,上述方法包括:
S101、获取显示屏中目标区域内像素点的第一像素值,目标区域位于传感器孔周围预设范围内。
其中,上述显示屏可以是液晶显示器(Liquid Crystal Display,简称LCD),也可以是有机电激光显示屏(OrganicLight-Emitting Diode,简称OLED),对于显示屏的类型在此不做限定。上述显示屏可以是手机显示屏,也可以是平板电脑显示屏,还可以是电话手表等便携终端的显示屏,在此不做限定。
上述显示屏中包含传感器孔,上述传感器孔可以是摄像头孔,也可以是红外传感器孔等。上述传感器孔可以位于终端摄像头等类型的传感器的上方,用于传感器通过传感器孔采集传感器数据。上述传感器孔可以是通孔,也可以是盲孔,在此不做限定。例如,上述传感器孔为通孔时,摄像头可以通过传感器孔直接采集图像;上述传感器孔为盲孔时,上述摄像头可以通过显示屏中的传感器孔处的玻璃盖板采集图像。上述传感器孔可以位于显示屏的中间位置,也可以位于显示屏的上部,对于传感器孔的位置在此不做限定。
上述目标区域为显示屏中,位于传感器孔周围预设范围内的显示区域。上述目标区域可以是正方形,也可以是不规则形状,对于上述目标区域的形状在此不做限定。上述周围预设范围可以是以上述传感器孔为圆心,以预设距离为半径的范围;另外,上述周围预设范围还可以是整个终端的显示屏;对于上述周围预设范围的区域在此不做限定。
上述第一像素值用于表征显示屏中目标区域内的显示颜色。上述第一像素值可以是RGB值,上述RGB值可以是包含红、黄、蓝三种颜色成分值的颜色成分值组合,也可以是通过十六进制转换得到的十六进制值;另外,上述第一像素值还可以是处理器发送至显示屏的显示数据中的二进制值,对于上述第一像素值的表示方式在此不做限定。
终端获取显示屏中目标区域内像素点的第一像素值时,可以获取目标区域内所有像素点的第一像素值,也可以获取目标区域内部分像素点的第一像素值,对于上述获取方式在此不做限定。具体地,终端可以获取目标区域内的像素点在显示屏中的位置标识,然后在处理器发送给显示屏的显示数据中,提取上述位置标识对应的显示数据,并根据上述显示数据确定各像素点的第一像素值。
具体地,终端可以实时获取目标区域内像素点的第一像素值,也可以根据显示屏的刷新频率来获取第一像素值的更新频率,在此不做限定。可选地,终端可以根据工作模式来确定是否获取上述第一像素值,例如,如果终端的摄像头处于工作模式,则不需要获取第一像素值,如果终端的摄像头为空闲模式,则终端可以实时获取目标区域内像素点的第一像素值,使得显示屏上的传感器孔呈现的颜色可以随显示屏的显示颜色变化而变化,达到更好地隐藏传感器孔的效果。
S102、根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值。
为了隐藏传感器孔,终端可以假设传感器孔为显示屏的延伸部分,终端可以根据显示屏中的目标区域的颜色,确定传感器孔待呈现的颜色,并进一步通过相应技术手段使传感器孔呈现相应的颜色。当用户使用终端时,传感器孔呈现的颜色与显示屏均目标区域的颜色相关,在视觉上将传感器孔与显示屏视为一个整体,达到了隐藏传感器孔的目标。
终端在根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值时,可以将传感器孔待呈现的颜色设置为目标区域中靠近传感器孔处的颜色;或者,终端可以对目标区域中的第一像素值进行延伸,使得传感器孔待呈现的颜色与目标区域的颜色呈现自然过渡的效果;对于上述颜色值的确定方式在此不做限定。
一般情况下,传感器孔的面积较小,终端在确定传感器孔待呈现的颜色时,可以将传感器孔区域确定为一个颜色值,使得传感器孔可以呈现同一个颜色;终端也可以将摄像头区域设置为不同的颜色值,使得传感器孔呈现变化的颜色,在此不做限定。
S103、基于颜色值控制发光组件发射光线,光线经由传感器孔射出。
终端确定了传感器孔待呈现的颜色的颜色值之后,可以通过该颜色值控制发光组件发射光线,并使得发光组件发射的光线可以经过传感器孔射出。
具体地,终端可以基于颜色值控制发光组件中的部分发光单元发射光线,也可以控制发光组件中的所有发光单元均发射光线,在此不做限定。
上述发光组件发射的光线可以通过传感器孔射出,例如发光组件与传感器孔形成一定夹角,使得发光组件发射的光线可以直接透过传感器孔,如图3所示;另外,上述发光组件发射的光线可以通过其它单元折射后,再透过传感器孔射出,例如,终端中可以包含棱镜,上述发光组件发射的光线可以通过棱镜折射至传感器孔,如图4所示;对于上述光线射出方式在此不做限定。可选地,上述终端中的显示屏可以是双向显示屏,上述发光组件可以是双向显示屏背面显示部分,也就是双向显示屏靠近所述传感器孔对应的传感器的一侧。其中,上述双向显示屏是指通过正反两面均可以发光的显示屏,上述终端的显示屏为双向显示屏时,可以直接通过显示屏的背面显示部分发射光线,而不需要另外设置发光组件,便于终端设备中的结构布局,使得终端设备结构更紧凑。
上述发光组件的形状可以是正方形,也可以是其它形状,在此不做限定。
上述传感器隐藏方法,终端包括发光组件、显示屏以及设置于显示屏中的传感器孔,终端可以获取显示屏中目标区域内像素点的第一像素值,然后根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值;并基于颜色值控制发光组件发射光线,光线经由传感器孔射出。由于目标区域位于传感器孔周围预设范围内,且终端根据目标区域内像素点的第一像素值得到传感器孔待呈现颜色的颜色值;进一步地,终端基于颜色值控制发光组件发射光线,并控制光线经由传感器孔射出,使得传感器孔可以呈现与周围的目标区域相关的颜色值,而不是呈现传感器本身的黑色;终端通过传感器孔射出的光线与目标区域的显示屏呈现的颜色进行融合,可以在视觉上隐藏传感器孔,提升屏幕的显示一体化效果,进一步提升用户体验。
在一个实施例中,在上述实施例的基础上,终端可以根据获取到的第一像素值,确定传感器孔的各个目标位置点处待呈现的颜色的颜色值。
上述目标位置点可以是终端预设的位置,也可以是根据发光组件确定得到的位置点,对于上述目标位置的确定方式在此不做限定。上述目标位置点可以均为分布于传感器孔所在区域,也可以是传感器孔区域中部分区域内的点,对于目标位置点的分布在此不做限定。
终端在获取各个目标位置点对应的颜色值时,可以根据目标区域中所有像素点的第一像素值来确定,例如终端可以根据目标位置点与目标区域之间的位置关系,对目标区域中的像素点的第一像素值进行位置延伸,获得目标位置点的颜色值。另外,传感器孔中不同的目标位置点,可以与目标区域中的部分像素点对应,终端可以通过部分像素点的第一像素值,获得该部分像素点对应的目标位置点的颜色值。如图5所示,传感器孔中包括四个目标位置点A1-A4,每个目标位置点在目标区域中对应3个像素点B1-B3。
进一步地,终端确定传感器孔的各个目标位置点处待呈现的颜色的颜色值之后,可以基于各个目标位置点处待呈现的颜色的颜色值,确定发光组件中各发光单元的发光像素 值;然后基于各发光单元的发光像素值,控制发光组件发射光线。
终端可以根据发光组件的部署位置,以及发光组件发射光线的传播方向,确定各目标位置点在发光组件中对应的发光单元。进一步地,终端可以根据获得的各目标位置点待呈现颜色的颜色值,设置对应的发光单元的发光像素值,然后控制发光组件发射光线,使得各发光单元发射的光线可以通过对应的目标位置点射出。
上述传感器隐藏方法,终端根据获取到的第一像素值,确定传感器孔的各个目标位置点处待呈现的颜色的颜色值,然后根据各目标位置点对应的颜色值,控制发光组件中的各发光单元发射光线;因此,传感器孔呈现的颜色不是单一的颜色,而是在各目标位置点处呈现与目标区域相应的颜色,使得传感器孔呈现的颜色可以更好地与显示屏呈现的颜色融为一体,进一步提升屏幕的显示一体化效果。
在一个实施例中,上述传感器孔可以为圆孔,上述显示屏中的目标区域可以为环状区域。如图6所示,上述传感器孔的目标位置点可以包括目标位置点A;上述环状区域中,位于目标位置点所在径向线上的目标像素点可以是目标像素点B。需要说明的是,传感器孔中的目标位置点可以包括多个点,上述多个目标位置点可以位于同一径向线上,也可以位于不同的径向线上。每个目标位置点对应的目标像素点可以是一个,也可以是多个,每个目标位置点对应的多个目标像素点均可以位于目标位置点所在径向线的延长线上。
终端可以获得各目标像素点的第一像素值,然后按照颜色渐变规则,分别对目标区域中的目标像素点的第一像素值进行渐变处理,得到目标位置点待呈现的颜色的颜色值。上述颜色渐变规则可以包括各个颜色成分值的递变梯度值,也可以包括各个颜色成分值的缩变比例,还可以是颜色成分值的渐变方程;对于上述颜色渐变规则的形式在此不做限定。终端可以根据渐变规则,对第一像素值进行相应的渐变处理。上述渐变处理可以是对第一像素值中的各颜色成分值进行递增、递减,也可以是对第一像素值中的各颜色成分值进行比例缩放,对于上述渐变处理的方式在此不做限定。
继续以图6为例,目标位置点A对应目标像素点B和目标像素点C,其对应的第一像素值分别为(R1,G1,B1)和(R2,G2,B2),且R1<R2,G1<G2,B1<B2,终端可以认为从目标像素点C至目标像素点B,各颜色成分值均变小。上述颜色渐变规则中包括各个颜色成分值的递变梯度值M,且目标位置点A与目标像素点B之间的距离为N个像素。终端可以获得目标位置点A对应的颜色值为(R1-N*M,G1-N*M,B1-N*M)。或者,上述颜色渐变规则可以是根据目标像素点B和目标像素点C之间的颜色变化量,确定各个颜色成分值的缩变比例,然后根据上述缩变比例确定目标位置点A的颜色值。
另外,终端在确定目标位置点的颜色值时,还可以结合目标像素点的像素值以及已经确认了颜色值的目标位置点的颜色值,共同确定当前处理的目标位置点的颜色值。
上述传感器隐藏方法,终端可以按照颜色渐变规则,分别对目标区域中的目标像素点的第一像素值进行渐变处理,得到目标位置点待呈现的颜色的颜色值,可以使传感器孔呈现的颜色值与目标区域的颜色值呈现更自然的过渡效果,从而提升了传感器孔的隐藏效果。
图7为一个实施例中传感器隐藏方法的流程示意图,本实施例涉及终端对第一像素值进行渐变处理的一种方式,在上述实施例的基础上,如图7所示,上述S102包括:
S201、分别对各颜色成分值进行曲线拟合处理,获得各颜色成分值随目标像素点位置变化的拟合曲线。
具体地,终端根据同一径向线上的多个第一像素值,获得目标位置点待呈现的颜色值时,可以对各第一像素值中的各颜色成分值分别进行曲线拟合处理,获得各颜色成分值随目标像素点位置变化的拟合曲线。如图8所示为其中一个颜色分量随目标像素点位置变化的拟合曲线。
其中,上述拟合曲线可以是线性曲线,也可以是非线性曲线,在此不做限定。
S202、根据拟合曲线,以及目标位置点与目标像素点之间的距离,计算目标位置点待呈现的颜色的颜色值。
进一步地,终端可以获得目标位置点与目标像素点之间的距离,然后根据上述距离在拟合曲线中查找相应的颜色成分值。具体地,终端可以获得目标位置点与距离目标位置点最近的一个目标像素点的距离,然后根据该距离在拟合曲线中确定颜色成分值,也可以根据目标位置点与任意一个目标像素点之间的距离,在拟合曲线中确定颜色成分值。
终端根据三个颜色成分值对应的三个拟合曲线确定出三个颜色成分值之后,可以将三个颜色成分值组成该目标位置点待呈现颜色的颜色值。
上述传感器隐藏方法,终端通过对各颜色成分值进行曲线拟合处理,然后根据拟合曲线获得目标位置点的颜色值,使得传感器孔呈现的颜色值与目标区域的颜色值呈现更自然的过渡效果,进一步提升了传感器孔的隐藏效果。
图9为一个实施例中传感器隐藏方法的流程示意图,本实施例涉及终端确定发光组件中各发光单元的发光像素值的一种方式,在上述实施例的基础上,如图9所示,上述S103包括:
S301、分别将各个目标位置点处待呈现的颜色的颜色值确定为对应的第一发光单元发射的光线的颜色值。
其中,发光组件可以包括与目标位置点具有对应关系的第一发光单元,以及与目标位置点不具有对应关系的第二发光单元。以图10为例,上述传感器孔所在区域可以包括均匀分布的8个目标位置点,上述发光组件可以环状设置于传感器孔周围,每个目标位置点 对应一个第一发光单元,图中目标位置点A与第一发光单元A1对应,目标位置点B与第一发光单元B1对应。
其中,每个目标位置点可以对应一个第一发光单元,也可以对应多个第一发光单元,在此不做限定。可选地,上述发光组件的环状半径与传感器孔的半径可以相同,每个目标位置点可以与第一发光单元一一对应。
终端可以分别将各个目标位置点处待呈现的颜色的颜色值,确定为对应的第一发光单元发射的光线的颜色值。
S302、根据各第一发光单元的发光像素值,确定各第二发光单元的发光像素值。
终端在确定了与目标位置点具有对应关系的第一发光单元的发光像素值之后,可以进一步根据各第一发光单元的发光像素值,确定各第二发光单元发射的光线的颜色值,从而获得发光组件中所有发光单元的发光像素值。
具体地,终端在确定第二发光单元的发光像素值时,可以将与上述第二发光单元距离最近的第一发光单元的发光像素值,确定为该第二发光单元的发光像素值;或者,终端可以获取第二发光单元周围的至少两个第一发光单元的发光像素值,然后对上述至少两个发光像素值进行平均,并将平均值确定为第二发光单元的发光像素值;对于上述第二发光单元的发光像素值的确定方式在此不做限定。
可选地,对各第一发光单元的发光像素值进行插值处理,得到各第二发光单元发射的光线的颜色值。例如,终端可以确定相邻两个第一发光单元中间的第二发光单元,然后获取相邻两个第一发光单元的发光像素值之间的差值,并根据上述差值与第二发光单元与第一发光单元之间的距离,插值得到第二发光单元的发光像素值,如图10所示,第一发光单元A1与第一发光单元B1之间包含第二发光单元C1和C2,终端可以根据第一发光单元A1与第一发光单元B1的发光像素值,插值得到第二发光单元C1和C2的发光像素值。通过插值处理,终端可以使发光组件发射的光线呈现更自然的效果,进而使得传感器孔射出的光线呈现的颜色与显示屏的颜色呈现更自然的过渡效果,增强传感器孔的隐藏效果。
上述传感器隐藏方法,终端可以根据获得的各目标位置点的颜色值直接与发光组件中的第一发光单元的发光像素值直接对应,可以更快地确定发光组件中第一发光单元的发光像素值,提升了发光像素值的确定效率;进一步地,终端根据各第一发光单元的发光像素值,确定各第二发光单元的发光像素值,并可以通过插值处理方式获得第二发光单元的发光像素值,可以使传感器孔射出的光线呈现的颜色与显示屏的颜色呈现更自然的过渡效果,增强传感器孔的隐藏效果。
应该理解的是,虽然图2-10中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤 的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-10中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
图11为一个实施例的传感器隐藏装置的结构框图。如图11所示,终端包括发光组件、显示屏以及设置于显示屏中的传感器孔,上述装置包括:
获取模块10,用于获取显示屏中目标区域内像素点的第一像素值,目标区域位于传感器孔周围预设范围内;
确定模块20,用于根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值;
控制模块30,用于基于颜色值控制发光组件发射光线,光线经由传感器孔射出。
在一个实施例中,在上述实施例的基础上,上述确定模块20具体用于:根据获取到的第一像素值,确定传感器孔的各个目标位置点处待呈现的颜色的颜色值。
在一个实施例中,在上述实施例的基础上,目标区域为环状区域,上述确定模块20具体用于:按照颜色渐变规则,分别对目标区域中的目标像素点的第一像素值进行渐变处理,得到目标位置点待呈现的颜色的颜色值;目标像素点位于目标位置点所在径向线的延长线上。
在一个实施例中,在上述实施例的基础上,第一像素值包括三个颜色成分值;如图12所示,上述确定模块20包括:
拟合单元201,用于分别对各颜色成分值进行曲线拟合处理,获得各颜色成分值随目标像素点位置变化的拟合曲线;
计算单元202,用于根据拟合曲线,以及目标位置点与目标像素点之间的距离,计算目标位置点待呈现的颜色的颜色值。
在一个实施例中,在上述实施例的基础上,如图13所示,上述控制模块30包括:
确定单元301,用于基于各个目标位置点处待呈现的颜色的颜色值,确定发光组件中各发光单元的发光像素值;
控制单元302,用于基于各发光单元的发光像素值,控制发光组件发射光线。
在一个实施例中,在上述实施例的基础上,发光组件包括与目标位置点具有对应关系的第一发光单元,以及与目标位置点不具有对应关系的第二发光单元;上述确定单元301具体用于:分别将各个目标位置点处待呈现的颜色的颜色值确定为对应的第一发光单元发射的光线的颜色值;根据各第一发光单元的发光像素值,确定各第二发光单元发射的发光像素值。
在一个实施例中,在上述实施例的基础上,上述确定单元301具体用于:对各第一发光单元的发光像素值进行插值处理,得到各第二发光单元发射的发光像素值。
本实施例提供的传感器隐藏装置,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
上述传感器隐藏装置中各个模块的划分仅用于举例说明,在其他实施例中,可将传感器隐藏装置按照需要划分为不同的模块,以完成上述传感器隐藏装置的全部或部分功能。
关于传感器隐藏装置的具体限定可以参见上文中对于传感器隐藏方法的限定,在此不再赘述。上述传感器隐藏装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
图14为一个实施例中终端的内部结构示意图。如图14所示,该终端包括通过系统总线连接的处理器和存储器,还包括与处理器连接的显示屏、发光组件,其中显示屏包括传感器孔。其中,该处理器用于提供计算和控制能力,支撑整个终端的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种传感器隐藏方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该终端可以是手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备。
本领域技术人员可以理解,图14中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端的限定,具体的终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种终端,包括存储器105和处理器104,以及与处理器104连接的显示屏102、发光组件103,显示屏102包括传感器孔1021,如图15所示;存储器105中存储有计算机程序,该处理器104执行计算机程序时实现上述传感器隐藏方法的步骤,包括:
获取显示屏中目标区域内像素点的第一像素值,目标区域位于传感器孔周围预设范围内;
根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值;
基于颜色值控制发光组件发射光线,光线经由传感器孔射出。
在一个实施例中,在上述实施例的基础上,如图16所示,上述显示屏102为双向显示屏1022,发光组件103为双向显示屏1022靠近传感器孔103对应的传感器101的一侧。
在一个实施例中,在上述实施例的基础上,如图17所示,上述发光组件103呈环状 设置于传感器孔周围。
在一个实施例中,在上述实施例的基础上,如图17所示,终端还包括棱镜106,上述棱镜106呈环状设置于摄像头周围。
本实施例提供的终端,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
本申请实施例中提供的传感器隐藏装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行计算机程序时实现上述传感器隐藏方法的步骤,包括:
获取显示屏中目标区域内像素点的第一像素值,目标区域位于传感器孔周围预设范围内;
根据获取到的第一像素值,确定传感器孔待呈现的颜色的颜色值;
基于颜色值控制发光组件发射光线,光线经由传感器孔射出。
本实施例提供的计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行传感器隐藏方法。
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (13)

  1. 一种传感器隐藏方法,其特征在于,应用于终端中,所述终端包括发光组件、显示屏以及设置于所述显示屏中的传感器孔,所述方法包括:
    获取所述显示屏中目标区域内像素点的第一像素值,所述目标区域位于所述传感器孔周围预设范围内;
    根据获取到的所述第一像素值,确定所述传感器孔待呈现的颜色的颜色值;
    基于所述颜色值控制所述发光组件发射光线,所述光线经由所述传感器孔射出。
  2. 根据权利要求1所述的方法,其特征在于,所述根据获取到的所述第一像素值,确定所述传感器孔待呈现的颜色的颜色值,包括:
    根据获取到的所述第一像素值,确定所述传感器孔的各个目标位置点处待呈现的颜色的颜色值。
  3. 根据权利要求2所述的方法,其特征在于,所述目标区域为环状区域,所述根据获取到的所述第一像素值,确定所述传感器孔的各个目标位置点处待呈现的颜色的颜色值,包括:
    按照颜色渐变规则,分别对所述目标区域中的目标像素点的第一像素值进行渐变处理,得到所述目标位置点待呈现的颜色的颜色值;所述目标像素点位于所述目标位置点所在径向线的延长线上。
  4. 根据权利要求3所述的方法,其特征在于,所述第一像素值包括三个颜色成分值;所述按照颜色渐变规则,对所述目标区域中的目标像素点的第一像素值进行渐变处理,得到各所述目标位置点待呈现的颜色的颜色值,包括:
    分别对各所述颜色成分值进行曲线拟合处理,获得各所述颜色成分值随目标像素点位置变化的拟合曲线;
    根据所述拟合曲线,以及所述目标位置点与所述目标像素点之间的距离,计算所述目标位置点待呈现的颜色的颜色值。
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述基于所述颜色值控制所述发光组件发射光线,包括:
    基于各个所述目标位置点处待呈现的颜色的颜色值,确定所述发光组件中各发光单元的发光像素值;
    基于所述各发光单元的发光像素值,控制所述发光组件发射光线。
  6. 根据权利要求5所述的方法,其特征在于,所述发光组件包括与所述目标位置点具有对应关系的第一发光单元,以及与所述目标位置点不具有对应关系的第二发光单元;所述基于各个所述目标位置点处待呈现的颜色的颜色值,确定所述发光组件中各发光单元 的发光像素值,包括:
    分别将各个所述目标位置点处待呈现的颜色的颜色值确定为对应的第一发光单元发射的光线的颜色值;
    根据各所述第一发光单元的发光像素值,确定各所述第二发光单元发射的发光像素值。
  7. 根据权利要求6所述的方法,其特征在于,所述根据各所述第一发光单元发射的光线的颜色值,确定各所述第二发光单元的发光像素值,包括:
    对各所述第一发光单元的发光像素值进行插值处理,得到各所述第二发光单元发射的发光像素值。
  8. 一种传感器隐藏装置,其特征在于,应用于终端中,所述终端包括发光组件、显示屏以及设置于所述显示屏中的传感器孔,所述装置包括:
    获取模块,用于获取所述显示屏中目标区域内像素点的第一像素值,所述目标区域位于所述传感器孔周围预设范围内;
    确定模块,用于根据获取到的所述第一像素值,确定所述传感器孔待呈现的颜色的颜色值;
    控制模块,用于基于所述颜色值控制所述发光组件发射光线,所述光线经由所述传感器孔射出。
  9. 一种终端,其特征在于,所述终端包括存储器和处理器,以及与所述处理器连接的显示屏、发光组件,所述显示屏包括传感器孔;所述存储器中储存有计算机程序,计算机程序被处理器执行时,使得处理器执行计算机程序时实现上述传感器隐藏方法的步骤。
  10. 根据权利要求9所述的终端,其特征在于,所述显示屏为双向显示屏,所述发光组件为所述双向显示屏靠近所述传感器孔对应的传感器的一侧。
  11. 根据权利要求10所述的终端,其特征在于,所述发光组件呈环状设置于所述传感器孔周围。
  12. 根据权利要求11所述的终端,其特征在于,所述终端还包括棱镜,所述棱镜呈环状设置于所述传感器周围。
  13. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的传感器隐藏方法的步骤。
PCT/CN2021/094870 2020-07-17 2021-05-20 传感器隐藏方法、装置、终端和存储介质 WO2022012159A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010692951.5A CN113949756B (zh) 2020-07-17 2020-07-17 传感器隐藏方法、装置、终端和存储介质
CN202010692951.5 2020-07-17

Publications (1)

Publication Number Publication Date
WO2022012159A1 true WO2022012159A1 (zh) 2022-01-20

Family

ID=79327114

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/094870 WO2022012159A1 (zh) 2020-07-17 2021-05-20 传感器隐藏方法、装置、终端和存储介质

Country Status (2)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050238250A1 (en) * 2004-04-27 2005-10-27 Wan-Hee Jo Method for concealing dark defect in image sensor
CN108469704A (zh) * 2018-05-03 2018-08-31 东莞市美光达光学科技有限公司 一种隐藏于手机屏幕下方的发光模组
CN210327649U (zh) * 2018-11-28 2020-04-14 华为技术有限公司 用于隐藏前置摄像头的结构、摄像头模组及终端设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106094393A (zh) * 2016-08-11 2016-11-09 圣邦微电子(北京)股份有限公司 使用便携式电子设备屏幕背光进行补光的方法及设备
CN106412155A (zh) * 2016-09-05 2017-02-15 信利光电股份有限公司 一种虹膜识别手机的玻璃盖板及手机
CN108037796B (zh) * 2017-12-21 2019-10-01 Oppo广东移动通信有限公司 电子装置、显示控制方法及相关产品

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050238250A1 (en) * 2004-04-27 2005-10-27 Wan-Hee Jo Method for concealing dark defect in image sensor
CN108469704A (zh) * 2018-05-03 2018-08-31 东莞市美光达光学科技有限公司 一种隐藏于手机屏幕下方的发光模组
CN210327649U (zh) * 2018-11-28 2020-04-14 华为技术有限公司 用于隐藏前置摄像头的结构、摄像头模组及终端设备

Also Published As

Publication number Publication date
CN113949756B (zh) 2022-11-15
CN113949756A (zh) 2022-01-18

Similar Documents

Publication Publication Date Title
US20210343235A1 (en) Devices and methods for providing access to internal component
US10957239B2 (en) Gray tracking across dynamically changing display characteristics
US10796662B2 (en) User interface display composition with device sensor/state based graphical effects
KR102587865B1 (ko) 표시장치 및 그의 영상 처리방법
US10366673B2 (en) Display device and image processing method thereof
WO2018072270A1 (zh) 一种图像显示增强方法及装置
US11222564B2 (en) Display panel, control method and control device thereof
US20230079582A1 (en) Image processing method and apparatus, terminal, and storage medium
US20220417591A1 (en) Video rendering method and apparatus, electronic device, and storage medium
US10665141B2 (en) Super-resolution, extended-range rendering for enhanced subpixel geometry
WO2020034077A1 (en) Display device and display data generating method
US20210097921A1 (en) Pixel Leakage and Internal Resistance Compensation Systems and Methods
WO2022012159A1 (zh) 传感器隐藏方法、装置、终端和存储介质
WO2020215212A1 (zh) 处理图层的方法和装置
EP3211634B1 (en) Hybrid liquid crystal display
US20190311464A1 (en) Tuning for deep-learning-based color enhancement systems
KR20150142562A (ko) 디스플레이의 불량 픽셀을 보상하기 위한 방법, 전자 장치 및 저장 매체
US20180102087A1 (en) Graphene display, a driving method for a graphene display and a driving apparatus
US11425366B2 (en) Test image measuring device, display device and luminance correcting method
US11328690B2 (en) Display screen brightness adjustment method and apparatus
US11929021B1 (en) Optical crosstalk compensation for foveated display
EP3069335A1 (en) Mitigating backlight deficiencies by using pixel processing
CN116612225B (zh) 光照渲染方法、装置、设备和介质
CN116594582B (zh) 图像显示方法、装置、计算机设备和存储介质
US20230206592A1 (en) Method and electronic device for digital image enhancement on display

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21842845

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21842845

Country of ref document: EP

Kind code of ref document: A1