A method, device and computer-readable storage medium for optimizing under-screen camera imaging
By screening the screen content when the under-screen camera service is refreshed, mapping table conversion and data flow interference cancellation, the color cast and miscellaneous points problems during under-screen camera recording are solved, improving imaging authenticity and user experience.
Patent Information
- Application Number
- CN202210325068.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-03-30
AI Technical Summary
The existing under-screen camera solution has color casting and miscellaneous problems when recording content in different colors, which affects the user experience, and when displaying black occlusion to improve the transparency, it will affect the aesthetics of the screen.
When the under-screen camera service is refreshed, the screen display content is captured, the imaging picture is generated through the preset mapping table, and the native data stream is intercepted for interference cancellation, and a new native data stream is generated to improve the authenticity of imaging.
Adaptive under-screen camera imaging optimization is realized, improving imaging authenticity and user experience, and reducing screen display interference.
Smart Images

Figure CN115334231B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communications, and in particular to an under-screen camera imaging optimization method, device, and computer-readable storage medium. Background Art
[0002] In the existing technology, with the continuous development of smart terminal devices, under-screen cameras have begun to become the development direction of full-screen devices. The under-screen camera solution is proposed as an upgraded version of the screen hole camera. At present, the under-screen camera solution adopted is to set the camera under the screen, and the screen does not need a hole, so as to enhance the user's senseless experience when using a large full-screen device.
[0003] However, a problem with the existing under-screen camera solution is that after the screen displays content normally, different content will display different colors. As a result, the color recorded by the camera on the screen will have color cast and noise, which greatly affects the normal use of users.
[0004] In order to solve the above technical problem, the existing solution is to use black to cover the camera area to make the image clearer.
[0005] However, the above solution still has certain defects, that is, the screen transparency is improved to a certain extent by displaying black occlusion, but when using the under-screen camera, the black occlusion displayed on the screen will seriously affect the aesthetics of the screen display and the user experience is poor. Summary of the invention
[0006] In order to solve the above technical defects in the prior art, the present invention proposes an under-screen camera imaging optimization method, which includes:
[0007] Every time the camera service corresponding to the under-screen camera refreshes a frame, the screen display content at the corresponding position of the under-screen camera is captured.
[0008] Each color point in the screen display content is converted through a preset mapping table to generate a first imaging picture of the under-screen camera.
[0009] Each time the camera service refreshes a frame, the native data stream of the camera service is intercepted, and a second imaging picture is generated according to the native data stream.
[0010] The first imaging picture is filtered in the second imaging picture to obtain a third imaging picture after interference elimination, and the third imaging picture is converted into a new native data stream corresponding to the camera service.
[0011] Optionally, the capturing of screen display content at a position corresponding to the under-screen camera each time a camera service corresponding to the under-screen camera refreshes a frame includes:
[0012] Obtain glass parameters of the camera convex lens of the under-screen camera, a first distance from the screen to the camera convex lens, and a second distance from the camera convex lens to the photosensitive element of the under-screen camera.
[0013] The corresponding position of the under-screen camera to the screen is determined according to the glass parameters, the first distance, and the second distance.
[0014] Optionally, the capturing of the screen display content at a position corresponding to the under-screen camera each time a camera service corresponding to the under-screen camera refreshes a frame further includes:
[0015] An initial reference picture is generated according to the captured screen display content.
[0016] Determine the pixel position and pixel color of each of the color points in the reference image.
[0017] Optionally, converting each color point in the screen display content by using a preset mapping table to generate a first imaging picture of the under-screen camera includes:
[0018] Obtain the display of RGB light of each pixel point at the corresponding position.
[0019] The mapping table is generated according to the glass parameters, the first distance, the second distance, and the display of RGB light of each pixel point at the corresponding position.
[0020] Optionally, converting each color point in the screen display content through a preset mapping table to generate a first imaging picture of the under-screen camera further includes:
[0021] Substitute the pixel position and pixel color of each color point in the reference image into the mapping table.
[0022] The first imaging picture is obtained by converting the pixel position and pixel color of each color point in the reference picture through the mapping table.
[0023] Optionally, intercepting a native data stream of the camera service each time the camera service refreshes a frame, and generating a second imaging picture according to the native data stream includes:
[0024] The native data stream of the camera service is intercepted, and the intercepted data stream at the corresponding position is extracted from the native data.
[0025] An imaging picture to be filtered is generated according to the intercepted data stream.
[0026] Optionally, filtering the first imaged picture in the second imaged picture to obtain a third imaged picture after interference elimination, and converting the third imaged picture into a new native data stream corresponding to the camera service includes:
[0027] The first imaged picture is filtered in the imaged pictures to be filtered.
[0028] After filtering is completed, a filtered imaging picture with interference eliminated is obtained.
[0029] Optionally, filtering the first imaged picture in the second imaged picture to obtain a third imaged picture after interference elimination, and converting the third imaged picture into a new native data stream corresponding to the camera service, further includes:
[0030] The filtered imaging picture is converted into a first native data stream corresponding to the camera service.
[0031] The first native data stream is merged with a second native data stream that is not extracted from the native data to obtain the new native data stream for transmitting to the camera application.
[0032] The present invention also proposes an under-screen camera imaging optimization device, which includes a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the steps of the under-screen camera imaging optimization method as described in any one of the above items are implemented.
[0033] The present invention also proposes a computer-readable storage medium, which stores an under-screen camera imaging optimization program. When the under-screen camera imaging optimization program is executed by a processor, the steps of the under-screen camera imaging optimization method as described in any one of the above items are implemented.
[0034] The under-screen camera imaging optimization method, device and computer-readable storage medium of the present invention are implemented by intercepting the screen display content of the corresponding position of the under-screen camera when the camera service corresponding to the under-screen camera refreshes a frame each time; converting each color point in the screen display content through a preset mapping table to generate a first imaging picture of the under-screen camera; intercepting the native data stream of the camera service when the camera service refreshes a frame each time, and generating a second imaging picture according to the native data stream; filtering the first imaging picture in the second imaging picture to obtain a third imaging picture with interference eliminated, and converting the third imaging picture into a new native data stream corresponding to the camera service. An adaptive under-screen camera imaging optimization scheme is implemented, which improves the imaging authenticity of the under-screen camera and enhances the user's under-screen shooting experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0036] Figure 1 It is a hardware structure diagram of a mobile terminal involved in the present invention;
[0037] Figure 2 is a communication network system architecture diagram provided by an embodiment of the present invention;
[0038] Figure 3 is a flowchart of a first embodiment of the under-screen camera imaging optimization method of the present invention;
[0039] Figure 4 is a flow chart of a second embodiment of the under-screen camera imaging optimization method of the present invention;
[0040] Figure 5 is a flow chart of a third embodiment of the under-screen camera imaging optimization method of the present invention;
[0041] Figure 6 is a flowchart of a fourth embodiment of the under-screen camera imaging optimization method of the present invention;
[0042] Figure 7 is a flowchart of a fifth embodiment of the under-screen camera imaging optimization method of the present invention;
[0043] Figure 8 is a flow chart of a sixth embodiment of the under-screen camera imaging optimization method of the present invention;
[0044] Fig. 9 is a flow chart of a seventh embodiment of the under-screen camera imaging optimization method of the present invention;
[0045] Fig.10 is a flowchart of an eighth embodiment of the under-screen camera imaging optimization method of the present invention;
[0046] Fig.11 2 is a schematic diagram of the structure of an under-screen camera according to a first embodiment of the under-screen camera imaging optimization method of the present invention;
[0047] Fig.12 2. It is a schematic diagram of the imaging relationship of the under-screen camera of the first embodiment of the under-screen camera imaging optimization method of the present invention;
[0048] Fig.13 is a query flow chart of the fifth embodiment of the under-screen camera imaging optimization method of the present invention;
[0049] Fig.14 1 is a schematic diagram flow of conversion relations of the fifth embodiment of the under-screen camera imaging optimization method of the present invention;
[0050] Fig.15 2 is a schematic diagram of image filtering according to the seventh embodiment of the under-screen camera imaging optimization method of the present invention;
[0051] Fig.16 It is an interception processing flow chart of the eighth embodiment of the under-screen camera imaging optimization method of the present invention. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0053] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0054] The terminal may be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0055] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will appreciate that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed-type terminals.
[0056] See also Figure 1, which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0057] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:
[0058] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.
[0059] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.
[0060] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0061] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.
[0062] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0063] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0064] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.
[0065] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.
[0066] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
[0067] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0068] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0069] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0070] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0071] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0072] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are sequentially connected for communication.
[0073] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.
[0074] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .
[0075] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).
[0076] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.
[0077] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new network systems, etc., which are not limited here.
[0078] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0079] Embodiment 1
[0080] Figure 3 1 is a flow chart of a first embodiment of an under-screen camera imaging optimization method of the present invention. A method for optimizing under-screen camera imaging, the method comprising:
[0081] S1. Capturing the screen display content at a position corresponding to the under-screen camera every time the camera service corresponding to the under-screen camera refreshes a frame.
[0082] S2. Convert each color point in the screen display content through a preset mapping table to generate a first imaging picture of the under-screen camera.
[0083] S3. When the camera service refreshes a frame each time, intercepting the native data stream of the camera service, and generating a second imaging picture according to the native data stream.
[0084] S4. Filter the first imaged picture in the second imaged picture to obtain a third imaged picture after interference elimination, and convert the third imaged picture into a new native data stream corresponding to the camera service.
[0085] In this embodiment, please refer to Fig.11 The structural diagram of the under-screen camera is shown in FIG. In the structural diagram, from the outside to the inside are the screen module, the liquid crystal layer displayed on the screen, and the camera module, wherein the camera module includes a camera convex lens and a camera sensor.
[0086] In this embodiment, please refer to Fig.12 The imaging relationship diagram of the under-screen camera is shown. In this relationship diagram, the pixel points displayed on the upper screen are mapped to the color of the image on the photosensitive device after light transmission, thereby determining the imaging of the RGB light tube of the pixel point in the screen in the photosensitive device (or sensor).
[0087] In this embodiment, the image of the content displayed on the camera is calculated based on the content that will be imaged in the camera, and then the imaged content on the screen is eliminated from the final imaging effect of the camera to restore the authenticity of the camera recording. Specifically, when the camera service corresponding to the under-screen camera refreshes a frame, the screen display content of the corresponding position of the under-screen camera is intercepted; each color point in the screen display content is converted through a preset mapping table to generate a first imaging picture of the under-screen camera; when the camera service refreshes a frame, the native data stream of the camera service is intercepted, and a second imaging picture is generated based on the native data stream; the first imaging picture is filtered in the second imaging picture to obtain a third imaging picture with interference eliminated, and the third imaging picture is converted into a new native data stream corresponding to the camera service.
[0088] The beneficial effect of this embodiment is that, when the camera service corresponding to the under-screen camera refreshes a frame, the screen display content of the corresponding position of the under-screen camera is intercepted; each color point in the screen display content is converted through a preset mapping table to generate the first imaging picture of the under-screen camera; when the camera service refreshes a frame, the native data stream of the camera service is intercepted, and a second imaging picture is generated according to the native data stream; the first imaging picture is filtered in the second imaging picture to obtain a third imaging picture with interference eliminated, and the third imaging picture is converted into a new native data stream corresponding to the camera service. An adaptive under-screen camera imaging optimization scheme is implemented, which improves the imaging authenticity of the under-screen camera and enhances the user's under-screen shooting experience.
[0089] Embodiment 2
[0090] Figure 4 : is a flowchart of the second embodiment of the under-screen camera imaging optimization method of the present invention. Based on the above embodiment, when the camera service corresponding to the under-screen camera refreshes a frame each time, the screen display content of the corresponding position of the under-screen camera is intercepted, including:
[0091] S11. Obtain glass parameters of the camera convex lens of the under-screen camera, a first distance from the screen to the camera convex lens, and a second distance from the camera convex lens to a photosensitive element of the under-screen camera.
[0092] S12. Determine the corresponding position of the under-screen camera to the screen according to the glass parameters, the first distance, and the second distance.
[0093] In this embodiment, please refer to Fig.11 , obtain the glass parameter C1 of the camera convex lens of the under-screen camera, the first distance L1 from the screen to the camera convex lens, and the second distance L2 from the camera convex lens to the photosensitive element of the under-screen camera.
[0094] In this embodiment, please refer to Fig.12 , determine the corresponding position of the under-screen camera to the screen according to the glass parameters, the first distance and the second distance.
[0095] The beneficial effect of this embodiment is that by obtaining the glass parameters of the camera convex lens of the under-screen camera, the first distance from the screen to the camera convex lens, and the second distance from the camera convex lens to the photosensitive element of the under-screen camera; and determining the corresponding position from the under-screen camera to the screen according to the glass parameters, the first distance, and the second distance, an adaptive under-screen camera imaging optimization solution is implemented, the imaging authenticity of the under-screen camera is improved, and the user's under-screen shooting experience is enhanced.
[0096] Embodiment 3
[0097] Figure 5 : is a flowchart of the third embodiment of the under-screen camera imaging optimization method of the present invention. Based on the above embodiment, when the camera service corresponding to the under-screen camera refreshes a frame, the screen display content at the corresponding position of the under-screen camera is intercepted, and it also includes:
[0098] S13: Generate an initial reference picture according to the captured screen display content.
[0099] S14. Determine the pixel position and pixel color of each color point in the reference image.
[0100] In this embodiment, the monitoring service is started, the monitoring camera is started, and each time a frame is refreshed in the Surfaceflinger image synthesis, the screen display content above the camera position under the screen is captured.
[0101] The beneficial effect of this embodiment is that an initial reference image is generated by intercepting the screen display content; and the pixel position and pixel color of each color point in the reference image are determined. An adaptive under-screen camera imaging optimization solution is implemented, which improves the imaging authenticity of the under-screen camera and enhances the user's under-screen shooting experience.
[0102] Embodiment 4
[0103] Figure 6 : is a flowchart of the fourth embodiment of the under-screen camera imaging optimization method of the present invention. Based on the above embodiment, each color point in the screen display content is converted through a preset mapping table to generate a first imaging picture of the under-screen camera, including:
[0104] S21, obtaining the display of RGB light of each pixel point at the corresponding position.
[0105] S22. Generate the mapping table according to the glass parameters, the first distance, the second distance, and the display of RGB light of each pixel at the corresponding position.
[0106] In this embodiment, the mapping table T1 is generated according to the glass parameter C1 of the camera convex lens of the under-screen camera, the first distance L1 from the screen to the camera convex lens, the second distance L2 from the camera convex lens to the photosensitive element of the under-screen camera, and the display of RGB light of each pixel point at the corresponding position.
[0107] The beneficial effect of this embodiment is that by acquiring the display of RGB light of each pixel point at the corresponding position, and generating the mapping table according to the glass parameters, the first distance, the second distance and the display of RGB light of each pixel point at the corresponding position, an adaptive under-screen camera imaging optimization solution is implemented, the imaging authenticity of the under-screen camera is improved, and the user's under-screen shooting experience is enhanced.
[0108] Embodiment 5
[0109] Figure 7 : is a flowchart of the fifth embodiment of the under-screen camera imaging optimization method of the present invention. Based on the above embodiment, each color point in the screen display content is converted through a preset mapping table to generate a first imaging picture of the under-screen camera, and further includes:
[0110] S23, substituting the pixel position and pixel color of each color point in the reference image into the mapping table.
[0111] S24. Convert the pixel position and pixel color of each color point in the reference image using the mapping table to obtain the first imaging image.
[0112] In this embodiment, please refer to Fig.13 The query flow chart is shown, and please refer to Fig.14 The conversion relationship diagram is shown. The pixel position and pixel color of each color point are input into the mapping table T1, and the imaging pattern is returned through the mapping table T1 to generate the converted imaging pattern as the first imaging picture G1 of this embodiment.
[0113] The beneficial effect of this embodiment is that by substituting the pixel position and pixel color of each color point in the reference image into the mapping table, the pixel position and pixel color of each color point in the reference image are converted through the mapping table to obtain the first imaged image. An adaptive under-screen camera imaging optimization solution is implemented, the imaging authenticity of the under-screen camera is improved, and the user's under-screen shooting experience is enhanced.
[0114] Embodiment 6
[0115] Figure 8: is a flowchart of a sixth embodiment of the under-screen camera imaging optimization method of the present invention. Based on the above embodiment, when the camera service refreshes a frame each time, the native data stream of the camera service is intercepted, and a second imaging picture is generated according to the native data stream, including:
[0116] S31, intercepting the native data stream of the camera service, and extracting the intercepted data stream at the corresponding position in the native data.
[0117] S32: Generate an imaging picture to be filtered according to the intercepted data stream.
[0118] In this embodiment, one solution is to extract the intercepted data streams of all positions in the native data, that is, the entire data stream, as the imaged picture G1' to be filtered. Another solution is to extract only the intercepted data streams of the corresponding positions in the native data, that is, part of the data stream, as the imaged picture G1 to be filtered.
[0119] The beneficial effect of this embodiment is that by intercepting the native data stream of the camera service, the intercepted data stream of the corresponding position is extracted from the native data; and the imaged picture to be filtered is generated according to the intercepted data stream. An adaptive under-screen camera imaging optimization solution is implemented, the imaging authenticity of the under-screen camera is improved, and the user's under-screen shooting experience is enhanced.
[0120] Embodiment 7
[0121] Fig. 9 : is a flowchart of the seventh embodiment of the under-screen camera imaging optimization method of the present invention. Based on the above embodiment, the filtering of the first imaging picture in the second imaging picture to obtain a third imaging picture after interference elimination, and converting the third imaging picture into a new native data stream corresponding to the camera service includes:
[0122] S41: Filter the first imaged picture from the imaged pictures to be filtered.
[0123] S42: After filtering is completed, a filtered imaging picture with interference eliminated is obtained.
[0124] In this embodiment, based on the first solution of the above embodiment, please refer to Fig.15 The image filtering schematic diagram is shown. The native data stream of the camera service is intercepted, and the picture G2 is generated according to the data stream, and then the picture G1 generated by filtering the screenshot image from the picture is finally generated. The picture G3 without screen display interference is generated.
[0125] Similarly, for the second solution of the above embodiment, it is only necessary to replace the imaging picture G1 ′.
[0126] The beneficial effect of this embodiment is that, by filtering the first imaging picture in the imaging picture to be filtered, after filtering, a filtered imaging picture with interference eliminated is obtained. An adaptive under-screen camera imaging optimization solution is implemented, the imaging authenticity of the under-screen camera is improved, and the user's under-screen shooting experience is enhanced.
[0127] Embodiment 8
[0128] Fig.10 is a flowchart of an eighth embodiment of the under-screen camera imaging optimization method of the present invention. Based on the above embodiment, the first imaging picture is filtered in the second imaging picture to obtain a third imaging picture after interference elimination, and the third imaging picture is converted into a new native data stream corresponding to the camera service, and further includes:
[0129] S43: Convert the filtered imaging picture into a first native data stream corresponding to the camera service.
[0130] S44: Merge the first native data stream with a second native data stream that is not extracted from the native data to obtain the new native data stream for transmitting to the camera application.
[0131] In this embodiment, please refer to Fig.16 The interception process flow chart shown in FIG. First, the camera and the application are intercepted by the preset background service; then, in the process of interception, the image is filtered and the interference is removed; finally, the generated image G3 is converted into the source data stream of the camera service again and passed to the application using the camera.
[0132] The beneficial effect of this embodiment is that by converting the filtered imaging picture into the first native data stream corresponding to the camera service and merging the first native data stream with the second native data stream that is not extracted from the native data, a new native data stream for transmission to the camera application is obtained. An adaptive under-screen camera imaging optimization solution is implemented, the imaging authenticity of the under-screen camera is improved, and the user's under-screen shooting experience is enhanced.
[0133] Embodiment 9
[0134] Based on the above embodiments, the present invention also proposes an under-screen camera imaging optimization device, which includes a memory, a processor, and a computer program stored on the memory and run on the processor. When the computer program is executed by the processor, the steps of the under-screen camera imaging optimization method as described in any one of the above items are implemented.
[0135] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the device embodiment, which will not be repeated here.
[0136] Embodiment 10
[0137] Based on the above embodiments, the present invention also proposes a computer-readable storage medium, which stores an under-screen camera imaging optimization program. When the under-screen camera imaging optimization program is executed by a processor, the steps of the under-screen camera imaging optimization method as described in any of the above items are implemented.
[0138] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the medium embodiment, which will not be repeated here.
[0139] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0140] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0142] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A method for optimizing under-screen camera imaging, characterized in that: The method comprises: When the camera service corresponding to the under-screen camera refreshes a frame, intercepting the screen display content at the position corresponding to the under-screen camera; For each color point in the screen display content, convert it through a preset mapping table to generate a first imaging picture of the under-screen camera; When the camera service refreshes a frame each time, intercepting the native data stream of the camera service, and generating a second imaging picture according to the native data stream; Filtering the first imaged picture in the second imaged picture to obtain a third imaged picture after interference elimination, and converting the third imaged picture into a new native data stream corresponding to the camera service; in, Obtain glass parameters of a camera convex lens of the under-screen camera, a first distance from a screen to the camera convex lens, and a second distance from the camera convex lens to a photosensitive element of the under-screen camera; The converting each color point in the screen display content through a preset mapping table to generate a first imaging picture of the under-screen camera includes: Obtaining the display of RGB light of a pixel point of each of the color points at the corresponding position; The mapping table is generated according to the glass parameters, the first distance, the second distance, and the display of RGB light of each pixel point at the corresponding position.
2. The under-screen camera imaging optimization method according to claim 1, characterized in that: The capturing of the screen display content at the position corresponding to the under-screen camera each time the camera service corresponding to the under-screen camera refreshes a frame includes: The corresponding position of the under-screen camera to the screen is determined according to the glass parameters, the first distance, and the second distance.
3. The under-screen camera imaging optimization method according to claim 2, characterized in that: The camera service corresponding to the under-screen camera captures the screen display content at the position corresponding to the under-screen camera every time a frame is refreshed, and further includes: Generating an initial reference picture according to the captured screen display content; Determine the pixel position and pixel color of each of the color points in the reference image.
4. The under-screen camera imaging optimization method according to claim 3, characterized in that: The step of converting each color point in the screen display content through a preset mapping table to generate a first imaging picture of the under-screen camera further includes: Substituting the pixel position and pixel color of each color point in the reference picture into the mapping table; The first imaging picture is obtained by converting the pixel position and pixel color of each color point in the reference picture through the mapping table.
5. The under-screen camera imaging optimization method according to claim 4, characterized in that: The method of intercepting the native data stream of the camera service each time the camera service refreshes a frame, and generating a second imaging picture according to the native data stream includes: intercepting a native data stream of the camera service, and extracting an intercepted data stream at a corresponding position in the native data; An imaging picture to be filtered is generated according to the intercepted data stream.
6. The under-screen camera imaging optimization method according to claim 5, characterized in that: The filtering the first imaging picture in the second imaging picture to obtain a third imaging picture after interference elimination, and converting the third imaging picture into a new native data stream corresponding to the camera service, includes: filtering the first imaged picture in the imaged pictures to be filtered; After filtering is completed, a filtered imaging picture with interference eliminated is obtained.
7. The under-screen camera imaging optimization method according to claim 6, characterized in that: The filtering of the first imaging picture in the second imaging picture to obtain a third imaging picture after interference elimination, and converting the third imaging picture into a new native data stream corresponding to the camera service, further includes: Converting the filtered imaging picture into a first native data stream corresponding to the camera service; The first native data stream is merged with a second native data stream that is not extracted from the native data to obtain the new native data stream for transmitting to the camera application.
8. An under-screen camera imaging optimization device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the under-screen camera imaging optimization method as described in any one of claims 1 to 7 are implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an under-screen camera imaging optimization program, and when the under-screen camera imaging optimization program is executed by the processor, the steps of the under-screen camera imaging optimization method as described in any one of claims 1 to 7 are implemented.
