Image processing method, device, electronic apparatus, and readable storage medium
The image processing method for underscreen cameras enhances image quality by detecting and mitigating diffraction effects through multiple-angle image capture and complementary processing, addressing the challenges of reduced transmittance and contrast in electronic devices.
Patent Information
- Application Number
- JP2023034523
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-03-07
AI Technical Summary
Existing image capture technologies with underscreen cameras suffer from image quality deterioration due to diffraction effects, reduced display transmittance, and decreased display contrast, making it difficult to achieve a full-screen design in electronic devices.
An image processing method that acquires initial images at multiple angles of view, detects diffraction phenomena, and performs complementary processing to enhance image quality by combining images taken at different angles, thereby reducing the influence of diffraction and improving transmittance.
The method improves image quality by minimizing diffraction effects and maintaining display transmittance, ensuring high-quality images while maintaining display effectiveness.
Smart Images

Figure 2024126253000001
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of image processing, and in particular to an image processing method and device, an electronic device, and a readable storage medium. [Background technology]
[0002] Cameras in electronic devices such as smartphones include a rear camera that is installed behind the display for taking pictures mainly, and a front camera that is installed on the same side as the display for taking selfies mainly. Since the front camera is installed on the same side as the display, the location of the front camera needs to avoid the display, which makes it difficult to realize a full-screen design in which the entire surface of the electronic device is a display. In order to realize a full-screen design of an electronic device, a bezel-type design in which the front camera is installed on the outer bezel part of the display can be adopted, but the position of the camera makes it difficult to operate. There are also notch-type, dot-drop-type, and punch-hole-type designs in which a hole is made in a part of the display to install the front camera, but a good full-screen design cannot be guaranteed. In addition, a pop-up-type design in which the front camera is stored in the side wall of the electronic device and pops out when taking a picture also has a problem of poor reliability.
[0003] In order to realize the full-screen design of electronic devices, the design of placing the front camera under the display is increasingly applied. The transmittance of the display directly above the front camera is increased to ensure the amount of light required for shooting, but increasing the transmittance of the display reduces the display contrast, which leads to a decrease in display quality. In addition, the under-screen camera has problems such as low image quality due to the diffraction effect when shooting images. Summary of the Invention [Problem to be solved by the invention]
[0004] At least one embodiment of the present invention provides an image processing method and apparatus, an electronic device, and a readable storage medium that can improve the quality of images captured by an under-screen camera. [Means for solving the problem]
[0005] In order to solve the above-mentioned technical problems, the present invention is realized as follows.
[0006] In a first aspect, an embodiment of the present invention provides an image processing method applicable to an electronic device having an under-screen camera installed under a display, the method including: acquiring initial images captured by the under-screen camera at a plurality of different angles of view; determining first image information in which the initial images are affected by a diffraction phenomenon based on difference information between the initial images; and performing an interpolation process on the first image information based on second image information in which the initial images are not affected by a diffraction phenomenon to obtain a target image.
[0007] In a second aspect, an embodiment of the present invention provides an image processing device applicable to an electronic device having an under-screen camera installed under a display, the device including: an acquisition module for acquiring initial images captured by the under-screen camera at multiple different angles of view, a first processing module for determining first image information in which the multiple initial images are affected by a diffraction phenomenon based on difference information between the multiple initial images, and a second processing module for performing complementation processing on the first image information based on second image information in which the multiple initial images are not affected by the diffraction phenomenon to obtain a target image.
[0008] In a third aspect, an embodiment of the present invention provides an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable by the processor, the program or instructions, when executed by the processor, realizing the steps of the image processing method described in the first aspect above.
[0009] In a fourth aspect, an embodiment of the present invention provides a readable storage medium having stored thereon a program or instructions which, when executed by a processor, cause the steps of the image processing method described in the first aspect above to be implemented. Effect of the Invention
[0010] Compared with the prior art, the image processing method and apparatus, electronic device, and readable storage medium according to the embodiments of the present invention, in the case of an electronic device having an under-screen camera installed under a display, acquire initial images captured by the under-screen camera at multiple different angles of view, determine first image information in which the multiple initial images are affected by the diffraction phenomenon based on difference information between the multiple initial images, and perform complementary processing on the first image information based on second image information in which the multiple initial images are not affected by the diffraction phenomenon to obtain a target image, thereby ensuring the quality of the image captured by the under-screen camera and reducing the impact of the diffraction phenomenon on the image quality, and avoiding the problem of a reduction in the display effect of the display by increasing the transmittance of the display and improving the quality of the image captured by the under-screen camera. [Brief description of the drawings]
[0011] [Figure 1] 1 is a first flowchart of an image processing method according to an embodiment of the present invention. [Diagram 2] 1 is a schematic diagram showing an under-screen camera installed under a display according to an embodiment of the present invention; [Diagram 3] FIG. 1 is a schematic diagram of a device for changing the angle of view of an underscreen camera according to an embodiment of the present invention. [Figure 4] 1 is a schematic diagram of a driving device for an ultrasonic motor according to an embodiment of the present invention. [Diagram 5] 4 is a flowchart of the movement driving of the under-screen camera by the ultrasonic motor according to the embodiment of the present invention. [Figure 6]1 is a schematic diagram of a stepping motor driving device according to an embodiment of the present invention. [Figure 7] 4 is a flowchart of the movement driving of the under-screen camera by the stepping motor according to the embodiment of the present invention. [Figure 8] 2 is a second flowchart of the image processing method according to the embodiment of the present invention. [Figure 9] 3 is a third flowchart of the image processing method according to the embodiment of the present invention. [Figure 10] 4A and 4B are schematic diagrams of different measurement frames within an imaging region according to an embodiment of the present invention; [Figure 11] FIG. 2 is a schematic diagram of a contrast measurement according to an embodiment of the present invention. [Figure 12] FIG. 2 is a schematic diagram of a device for changing the angle of view of an underscreen camera according to an embodiment of the present invention. [Figure 13] 4 is a fourth flowchart of the image processing method according to the embodiment of the present invention. [Figure 14] 5 is a fifth flowchart of the image processing method according to the embodiment of the present invention. [Figure 15] 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention; [Figure 16] FIG. 2 is a hardware configuration diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of them. Based on the embodiments of the present application, all other embodiments that can be made by those skilled in the art without any creative work are all within the scope of protection of the present application.
[0013] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish between similar goals, and are not necessarily intended to describe a particular order or priority. It should be understood that the data used in this manner may be appropriately interchanged so that the embodiments of this application can be performed in an order other than that shown or described herein, and the goals distinguished by the terms "first", "second", etc. are generally of the same kind, and the number of goals is not limited. For example, the first goal may be one or more. Note that "and / or" in the specification and claims represents at least one of the connected goals. The character " / " generally indicates that the related goals before and after are in an "or" relationship.
[0014] To further realize the full-screen design of electronic devices, under-screen cameras have been proposed, which install a front camera under the display and take selfies through the display. Regarding research into under-screen cameras, if it is possible to increase the transmittance of the display directly above the front camera to ensure the amount of light required for shooting, while at the same time ensuring sufficient display contrast when the display is in use, electronic devices with a full-screen design can be realized without problems such as cost, thickness, and reliability.
[0015] Since the camera takes pictures through a display, it is necessary to increase the transmittance of the display where the camera is installed, but increasing the transmittance of the display reduces the contrast of the display and the display quality. There is a limit to how much the transmittance of the display can be increased, as this can cause the display to lose uniformity with other parts. Therefore, the disadvantages of under-screen cameras include the following issues of degradation in image quality: (1) Decreased sensitivity due to a decrease in the amount of light transmitted through the display. (2) Degraded resolution due to the diffraction effect of the display pixels. (3) Occurrence of flare and ghosting due to light scattering in the display component layers. (4) Occurrence of color shifts, artifacts, false colors, etc. due to the wavelength dependency of the display transmittance and phase changes in the component layers. (5) Image distortion due to non-uniformity of the display component layers.
[0016] To address these issues, embodiments of the present application provide an image processing method and apparatus, an electronic device, and a readable storage medium to avoid transmittance loss of a display and improve the quality of images captured by an under-screen camera.
[0017] As shown in Figure 1, an embodiment of the present invention provides an image processing method applied to an electronic device with an under-screen camera installed under a display. The method specifically includes the following steps:
[0018] In step 11, an under-screen camera acquires initial images taken at multiple different angles of view.
[0019] The under-screen camera can be selectively moved under the display of the electronic device. For example, the movement direction of the under-screen camera under the display includes one dimension (X or Y direction) or two dimensions (X and Y directions). Here, when the under-screen camera moves to a different position under the display, the angle of view of the captured image is different. Therefore, the under-screen camera can obtain initial images captured at a plurality of different angles of view.
[0020] In step 12, first image information in which the influence of the diffraction phenomenon occurs in the initial images is determined based on difference information between the initial images.
[0021] Optionally, the difference information indicates a difference between the multiple initial images, such as difference information between the multiple initial images obtained by a registration process. Specifically, before step 12, the method includes performing registration processing on the multiple initial images based on feature point information for each initial image and movement amount information between different initial images, and determining difference information between the multiple initial images based on the multiple initial images after the registration processing. Here, the movement amount information is movement amount information of the underscreen camera when capturing different initial images.
[0022] Optionally, after obtaining difference information between the plurality of initial images, the difference in the occurrence state of the diffraction phenomenon can be detected by the extracted filter coefficient, and only image information affected by the diffraction phenomenon can be extracted. Specifically, the step 12 includes determining first image information in which the influence of the diffraction phenomenon occurs in the plurality of initial images based on the difference information between the plurality of initial images and the filter coefficient. Here, the filter coefficient is determined based on a difference level associated with the exposure information of the underscreen camera. For example, a corresponding filter coefficient is extracted based on a difference level linked to the exposure information of the underscreen camera.
[0023] In step 13, a target image is obtained by performing an interpolation process on the first image information based on second image information in which the influence of the diffraction phenomenon does not occur in the plurality of initial images.
[0024] Optionally, step 13 includes determining, based on a target image area corresponding to the first image information, second image information in which the influence of the diffraction phenomenon does not occur in the multiple initial images corresponding to the target image area, and performing an interpolation process on the first image information based on the second image information to obtain the target image.
[0025] In the above aspect, in the case of an electronic device having an underscreen camera installed under a display, the underscreen camera acquires initial images captured at multiple different angles of view, and based on difference information between the multiple initial images, first image information in which the multiple initial images are affected by the diffraction phenomenon is determined, and based on second image information in which the multiple initial images are not affected by the diffraction phenomenon, complementary processing is performed on the first image information to obtain a target image, thereby ensuring the quality of the image captured by the underscreen camera and reducing the impact of the diffraction phenomenon on the image quality, and avoiding the problem of a decrease in the display effect of the display by increasing the transmittance of the display and improving the quality of the image captured by the underscreen camera.
[0026] Optionally, acquiring initial images taken by the underscreen camera at multiple different angles of view includes acquiring initial images each taken when the underscreen camera moves to multiple different positions along a first direction, or acquiring initial images each taken at maximum contrast when the underscreen camera moves to multiple different positions along the first direction, or acquiring initial images each taken when the underscreen camera moves to multiple different positions along the first direction and a second direction, or acquiring initial images each taken at maximum contrast when the underscreen camera moves to multiple different positions along the first direction and a second direction.
[0027] Here, the first direction and the second direction are different directions parallel to the display, for example, the first direction and the second direction are perpendicular to each other, such that the first direction is one of the X and Y directions and the second direction is the other of the X and Y directions.
[0028] Optionally, the underscreen camera moving to a plurality of different positions includes the underscreen camera moving to a plurality of different positions by a fixed amount of movement, or the underscreen camera moving to a plurality of different positions by an amount of movement determined by contrast. For example, the underscreen camera moves by a fixed amount of movement in a direction parallel to the display to obtain images with different angles of view. Here, the fixed amount of movement is set by the system or is defined by the user, and is not limited thereto in the embodiment of the present application. Also, for example, the contrast component is measured to obtain the difference in the diffraction effect depending on the position of the underscreen camera, and the amount of movement of the underscreen camera can be set based on the contrast component to obtain images with different angles of view. Example 1
[0029] In the embodiment of the present application, the electronic device is a smartphone, and a front under-screen camera is installed under the display, and multiple cameras with different light receiving wavelengths are used. As shown in Fig. 2, a high-transmittance area 210 with increased light transmittance is provided above the under-screen camera 22 in the display 21. In this way, the camera is placed under the high-transmittance area of the display, and captures an image by receiving light that has passed through the high-transmittance area of the display.
[0030] The underscreen camera can be selectively moved within a highly transparent area below the display. Figure 3 shows a device for changing the angle of view of the underscreen camera. The underscreen camera 22 moves (e.g., in a horizontal direction X) relative to the planar space in which the display exists, and images with different camera angles of view can be acquired. For example, the arrow X0 indicates the horizontal change direction of the angle of view.
[0031] Specifically, one realization method is as follows. Fig. 4 shows a drive device for an ultrasonic motor. An ultrasonic motor 41 for driving the movement of the under-screen camera 22 is arranged on one side horizontal to the movement direction of the under-screen camera 22, and a guide 42 for supporting the under-screen camera 22 and a position detection magnet 43 for detecting the position (amount of movement) are arranged on the opposite side. A magnetic sensor 44 is arranged on the same horizontal plane as the position detection magnet 43 of the under-screen camera 22. Fig. 5 shows a flowchart of the movement driving of the under-screen camera by the ultrasonic motor. Specifically, the magnetic field of the position detection magnet 43 is detected by the magnetic sensor 44 to calculate the position (amount of movement) by feedback control, and the under-screen camera 22 is driven to move by the ultrasonic motor 41.
[0032] Another implementation method is as follows. Fig. 6 shows a stepping motor drive device. A stepping motor 61 for driving is arranged on one side horizontal to the movement direction of the under-screen camera 22, and a guide 42 for supporting the under-screen camera 22 is arranged on the opposite side. Fig. 7 shows a flowchart of the movement drive of the under-screen camera by the stepping motor. Specifically, the position (movement amount) is calculated by feedforward control by monitoring the pulses generated by the stepping motor 61 for driving, and the under-screen camera 22 is driven to move by the stepping motor 61.
[0033] FIG. 8 shows a flow of image processing for removing the effects of diffraction and image fusion using output images with different angles of view in order to solve the problem of resolution degradation caused by diffraction.
[0034] Specifically, the method includes obtaining initial images captured when the underscreen camera moves to multiple different positions along a first direction, determining first image information in which the initial images are affected by the diffraction phenomenon based on difference information between the initial images, and performing complementation processing on the first image information based on second image information in which the initial images are not affected by the diffraction phenomenon to obtain a target image.
[0035] For example, the underscreen camera is moved a certain amount, image data with different angles of view is captured, and alignment processing is performed based on the movement amount information for capturing the different image data and the feature point information of each image data. The aligned image data are compared to generate difference information. Next, by setting a difference level extraction filter coefficient linked to the exposure information of the underscreen camera, it is possible to accurately detect the difference in the occurrence state of the diffraction phenomenon and extract only the image information affected by diffraction. Next, the image information affected by diffraction obtained here is complemented and output from image data that does not have the diffraction effect, thereby obtaining an image from which the effect of diffraction has been removed, thereby improving the quality of the image output by the underscreen camera.
[0036] In this embodiment, the influence of the diffraction effect according to the magnitude of the diffraction effect due to the exposure amount is appropriately extracted by taking into account the exposure information of the underscreen camera. An image in which the influence of diffraction is removed can be obtained by complementing the part where the diffraction effect occurs from image data where the diffraction effect does not occur. The sensitivity can be improved by superimposing multiple images. Example 2
[0037] In the embodiment of the present application, the electronic device is a smartphone, and a front under-screen camera is installed under the display, and multiple cameras with different light receiving wavelengths are used. Still referring to FIG. 2, a high-transmittance area 210 with increased light transmittance is provided at a position above the under-screen camera 22 in the display 21. In this way, the camera is disposed under the high-transmittance area of the display, and captures an image by receiving light transmitted through the high-transmittance area of the display.
[0038] The underscreen camera can be selectively moved within the highly transparent area below the display. Figure 3 shows a device for changing the angle of view of the underscreen camera. The underscreen camera 22 can move (for example, in the horizontal direction X) relative to the planar space in which the display exists, and can capture images with different camera angles of view. For example, the arrow X0 indicates the direction in which the angle of view changes.
[0039] Specifically, one realization method is as follows. Fig. 4 shows a drive device for an ultrasonic motor. An ultrasonic motor 41 for driving the movement of the under-screen camera 22 is arranged on one side horizontal to the movement direction of the under-screen camera 22, and a guide 42 for supporting the under-screen camera 22 and a position detection magnet 43 for detecting the position (amount of movement) are arranged on the opposite side. A magnetic sensor 44 is arranged on the same horizontal plane as the position detection magnet 43 of the under-screen camera 22. Fig. 5 shows a flowchart of the movement driving of the under-screen camera by the ultrasonic motor. Specifically, the magnetic field of the position detection magnet 43 is detected by the magnetic sensor 44 to calculate the position (amount of movement) by feedback control, and the under-screen camera 22 is driven to move by the ultrasonic motor 41.
[0040] Another implementation method is as follows. Fig. 6 shows a stepping motor drive device. A stepping motor 61 for driving is arranged on one side horizontal to the movement direction of the under-screen camera 22, and a guide 42 for supporting the under-screen camera 22 is arranged on the opposite side. Fig. 7 shows a flowchart of the movement drive of the under-screen camera by the stepping motor. Specifically, the position (movement amount) is calculated by feedforward control by monitoring the pulses generated by the stepping motor 61 for driving, and the under-screen camera 22 is driven to move by the stepping motor 61.
[0041] FIG. 9 shows a flow of image processing for removing the effects of diffraction and image fusion using output images with different angles of view, in order to solve the problem of resolution degradation caused by diffraction.
[0042] Specifically, the method includes obtaining initial images captured at the highest contrast when the underscreen camera moves to multiple different positions along the first direction, determining first image information in which the multiple initial images are affected by the diffraction phenomenon based on difference information between the multiple initial images, and performing complementation processing on the first image information based on second image information in which the multiple initial images are not affected by the diffraction phenomenon to obtain a target image.
[0043] For example, when the underscreen camera moves to a plurality of different positions along the first direction, obtaining initial images each captured with the highest contrast specifically includes obtaining an optimal image for synthesis processing based on measuring the difference between the camera position and the diffraction effect by different arbitrary measurement frames in the imaging area. With reference to FIG. 9, the difference in the diffraction effect due to the underscreen camera position can be obtained by measuring the contrast component. With reference to FIG. 10, the underscreen camera is moved to the position with the highest contrast in each of different arbitrary measurement frames A, B, and C in the imaging area 101, and an image is obtained by photographing. The positions and number of measurement frames for measuring the contrast components at this time can be set arbitrarily. For example, as shown in FIG. 11, the underscreen camera is moved to the corresponding positions according to the positions of the set plurality of measurement frames, and then the peak value of the contrast is measured according to the contrast of the corresponding measurement frame and photographed.
[0044] Then, after capturing an optimal image for image processing from the contrast components, the image data with a plurality of different angles of view are aligned based on the movement amount information and the feature point information of each image data. The aligned image data are compared to generate difference information. Next, by setting a difference level extraction filter coefficient linked to the exposure information of the underscreen camera, it is possible to accurately detect the difference in the occurrence state of the diffraction phenomenon and extract only the information affected by diffraction. Furthermore, by complementing the part where the diffraction effect occurs from the image data where the diffraction effect does not occur and outputting it for the image information affected by the diffraction obtained here, an image from which the effect of diffraction is removed is obtained, thereby improving the quality of the image output by the underscreen camera.
[0045] In this embodiment, by taking into account the exposure information of the underscreen camera, the influence of the diffraction effect according to the magnitude of the diffraction effect due to the exposure amount is appropriately extracted. By complementing the part where the diffraction effect occurs with image data where it does not occur, it is possible to obtain an image where the influence of diffraction is removed. By superimposing multiple images, it is possible to improve sensitivity. By controlling the contrast, it is possible to obtain an image with the diffraction effect that is optimal for image processing, and high-performance correction of resolution degradation and removal of flare and ghosting can be realized. Example 3
[0046] In the embodiment of the present application, the electronic device is a smartphone, and a front under-screen camera is installed under the display, and multiple cameras with different light receiving wavelengths are used. Still referring to FIG. 2, a high-transmittance area 210 with increased light transmittance is provided at a position above the under-screen camera 22 in the display 21. In this way, the camera is disposed under the high-transmittance area of the display, and captures an image by receiving light transmitted through the high-transmittance area of the display.
[0047] The under-screen camera can be selectively moved within a highly transparent area below the display. Figure 12 shows a device for changing the angle of view of the under-screen camera. The under-screen camera moves (e.g., in a horizontal direction X and a vertical direction Y) relative to the planar space in which the display exists, and images with different angles of view of the under-screen camera can be acquired. For example, the arrow X0 indicates the horizontal change direction of the angle of view, and the arrow Y0 indicates the vertical change direction of the angle of view.
[0048] FIG. 13 shows a flow of image processing for removing the effects of diffraction and image fusion using output images with different angles of view, in order to solve the problem of resolution degradation caused by diffraction.
[0049] Specifically, the method includes obtaining initial images captured when the underscreen camera moves to multiple different positions along a first direction and a second direction, determining first image information in which the multiple initial images are affected by the diffraction phenomenon based on difference information between the multiple initial images, and performing complementation processing on the first image information based on second image information in which the multiple initial images are not affected by the diffraction phenomenon to obtain a target image.
[0050] For example, the underscreen camera is moved a certain amount on each of the X-axis and Y-axis to capture multiple image data with different angles of view, and the multiple image data with different angles of view are aligned based on the movement amount information and feature point information of each image. The aligned image data are compared to generate difference information. Next, by setting a difference level extraction filter coefficient linked to the exposure information of the underscreen camera, it is possible to accurately detect the difference in the occurrence state of the diffraction phenomenon and extract only the image information affected by diffraction. Next, the image information affected by diffraction obtained here is complemented and output from image data that is not affected by diffraction to obtain an image from which the effects of diffraction have been removed, thereby improving the quality of the image output by the underscreen camera.
[0051] In this embodiment, the influence of the diffraction effect according to the magnitude of the diffraction effect due to the exposure amount is appropriately extracted by taking into account the exposure information of the underscreen camera. An image in which the influence of diffraction is removed can be obtained by complementing the part where the diffraction effect occurs from image data where the diffraction effect does not occur. Sensitivity can be improved by superimposing multiple images. By acquiring an image with changes in the angle of view in two directions of the X axis and the Y axis, it is possible to extract and synthesize the analysis phenomenon with high accuracy. Example 4
[0052] In the embodiment of the present application, the electronic device is a smartphone, and a front under-screen camera is installed under the display, and multiple cameras with different light receiving wavelengths are used. Still referring to FIG. 2, a high-transmittance area 210 with increased light transmittance is provided at a position above the under-screen camera 22 in the display 21. In this way, the camera is disposed under the high-transmittance area of the display, and captures an image by receiving light transmitted through the high-transmittance area of the display.
[0053] Optionally, the under-screen camera can be moved within the highly transparent area below the display. Figure 12 shows an apparatus for changing the angle of view of the under-screen camera. The camera can be moved (e.g., horizontally and vertically) relative to the planar space in which the display exists, allowing images to be captured with different camera angles of view.
[0054] FIG. 14 shows a flow of image processing for removing the effects of diffraction and image fusion using output images with different angles of view, in order to solve the problem of resolution degradation caused by diffraction.
[0055] Specifically, the method includes obtaining initial images captured at the highest contrast when the underscreen camera moves to multiple different positions along a first direction and a second direction, determining first image information in which the multiple initial images are affected by the diffraction phenomenon based on difference information between the multiple initial images, and performing complementation processing on the first image information based on second image information in which the multiple initial images are not affected by the diffraction phenomenon to obtain a target image.
[0056] For example, when the underscreen camera moves to a plurality of different positions along the first direction and the second direction, obtaining initial images each captured with the highest contrast specifically includes obtaining an optimal image for synthesis processing based on measuring the difference between the camera position and the diffraction effect by different arbitrary measurement frames in the imaging area. Still referring to FIG. 9, the difference in the diffraction effect due to the underscreen camera position can be obtained by measuring the contrast component. Still referring to FIG. 10, the underscreen camera is moved to the position with the highest contrast in each of different arbitrary measurement frames A, B, and C in the imaging area 101, and an image is obtained by photographing. The positions (for example, different positions moved along the first direction and the second direction) and the number of measurement frames for measuring the contrast component at this time can be set arbitrarily. For example, as shown in FIG. 11, after the underscreen camera is moved to the corresponding positions according to the positions of the set plurality of measurement frames, the peak value of the contrast is measured according to the contrast of the corresponding measurement frame and photographed.
[0057] Then, the underscreen camera is moved along the X-axis and Y-axis, respectively, and an image for image processing optimal from the contrast component is captured. The captured image data with different angles of view are then aligned based on the movement amount information and the feature point information of each image data. The aligned image data are compared to generate difference information. Next, by setting a difference level extraction filter coefficient linked to the exposure information of the underscreen camera, it is possible to accurately detect the difference in the occurrence state of the diffraction phenomenon and extract only the information affected by diffraction. Furthermore, the image information affected by diffraction obtained here is complemented and output from image data that does not have the diffraction effect, thereby obtaining an image from which the effect of diffraction has been removed, thereby improving the quality of the image output by the underscreen camera.
[0058] In this embodiment, the influence of the diffraction effect according to the magnitude of the diffraction effect due to the exposure amount is appropriately extracted by taking into account the exposure information of the camera. An image in which the influence of diffraction is removed can be obtained by complementing the part where the diffraction effect occurs from image data where the diffraction effect does not occur. Sensitivity can be improved by superimposing multiple images. By acquiring an image with a change in the angle of view in two directions of the X axis and the Y axis, it is possible to extract and synthesize the analysis phenomenon with high accuracy. It is possible to acquire an image with the diffraction effect that is optimal for image processing by controlling the contrast, and it is possible to realize high-performance correction of resolution degradation and removal of flare and ghost.
[0059] As shown in Fig. 15, an embodiment of the present invention provides an image processing device 1500. The electronic device has an under-screen camera installed under a display. The device 1500 includes an acquisition module 1510 for acquiring initial images captured by the under-screen camera at different angles of view, a first processing module 1520 for determining first image information in which the initial images are affected by a diffraction phenomenon based on difference information between the initial images, and a second processing module 1530 for performing a complementation process on the first image information based on second image information in which the initial images are not affected by a diffraction phenomenon to obtain a target image.
[0060] Optionally, the acquisition module 1510 includes a first acquisition unit for acquiring initial images each taken when the underscreen camera moves to a plurality of different positions along a first direction, or includes a second acquisition unit for acquiring initial images each taken at the highest contrast when the underscreen camera moves to a plurality of different positions along the first direction, or includes a third acquisition unit for acquiring initial images each taken when the underscreen camera moves to a plurality of different positions along the first direction and the second direction, or includes a fourth acquisition unit for acquiring initial images each taken at the highest contrast when the underscreen camera moves to a plurality of different positions along the first direction and the second direction.
[0061] Optionally, the first direction and the second direction are different directions parallel to the display.
[0062] Optionally, the underscreen camera moving to a plurality of different positions includes the underscreen camera moving to a plurality of different positions each by a fixed amount of movement, or the underscreen camera moving to a plurality of different positions each by an amount of movement determined by contrast.
[0063] Optionally, the image processing device 1500 further includes a third processing module for aligning the multiple initial images based on feature point information for each initial image and movement amount information between different initial images, and a fourth processing module for determining difference information between the multiple initial images based on the multiple initial images after the alignment processing, where the movement amount information is movement amount information of the underscreen camera when capturing different initial images.
[0064] Optionally, the first processing module 1520 includes a first processing unit for determining first image information in which the influence of a diffraction phenomenon occurs in the plurality of initial images based on difference information between the plurality of initial images and a filter coefficient, where the filter coefficient is determined based on a difference level associated with exposure information of the underscreen camera.
[0065] Optionally, the second processing module 1530 includes a second processing unit for determining, based on a target image area corresponding to the first image information, second image information in which the influence of the diffraction phenomenon does not occur in the multiple initial images corresponding to the target image area, and a third processing unit for performing complementation processing on the first image information based on the second image information to obtain the target image.
[0066] The above-mentioned device according to an embodiment of the present invention, in the case of an electronic device having an under-screen camera installed under a display, acquires initial images captured by the under-screen camera at multiple different angles of view, determines first image information in which the initial images are affected by the diffraction phenomenon based on difference information between the initial images, and performs complementary processing on the first image information based on second image information in which the initial images are not affected by the diffraction phenomenon to obtain a target image, thereby ensuring the quality of the images captured by the under-screen camera and reducing the impact of the diffraction phenomenon on the image quality, and avoiding the problem of a decrease in the display effect of the display by increasing the transmittance of the display and improving the quality of the images captured by the under-screen camera.
[0067] As shown in FIG. 16, an embodiment of the present invention further provides an electronic device 1600 including a processor 1601, a memory 1602, and a program or instruction stored in the memory 1602 and executable by the processor 1601, which, when executed by the processor 1601, can realize each process of the embodiment of the image processing method described above and achieve the same technical effect, so that they will not be described repeatedly here to avoid duplication.
[0068] It should be noted that electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
[0069] Furthermore, an embodiment of the present invention provides a readable storage medium having stored thereon a program or instruction, which, when executed by a processor, can realize each process of the embodiment of the image processing method described above and achieve the same technical effect, and therefore will not be described here repeatedly to avoid redundancy.
[0070] Although the embodiment of the present invention has been described above based on the drawings, the present invention is not limited to the above specific embodiment. The above specific embodiment is illustrative and not limiting. Many forms that a person skilled in the art can make without departing from the spirit of the present invention and the scope of the claims are all included in the protection scope of the present invention.
Claims
1. An image processing method applied to an electronic device having an under-screen camera installed under a display, comprising: Obtaining initial images taken by an underscreen camera at a plurality of different angles of view; determining first image information in which the influence of a diffraction phenomenon occurs in the initial images based on difference information between the initial images; The method further comprises performing an interpolation process on the first image information based on second image information in which the plurality of initial images are not affected by the diffraction phenomenon, thereby obtaining a target image.
2. 2. The image processing method according to claim 1, The underscreen camera acquires initial images captured at a plurality of different angles of view, obtaining initial images taken when the underscreen camera moves to a plurality of different positions along a first direction; Or, acquiring initial images at a maximum contrast as the underscreen camera moves to a plurality of different positions along the first direction; Or, obtaining initial images taken when the underscreen camera moves to a plurality of different positions along a first direction and a second direction; Or, The method includes obtaining initial images captured at maximum contrast as the underscreen camera moves to a plurality of different positions along a first direction and a second direction.
3. 3. The image processing method according to claim 2, The first direction and the second direction are different directions parallel to the display.
4. 3. The image processing method according to claim 2, The underscreen camera is moved to a plurality of different positions. The under-screen camera is moved to a plurality of different positions by a fixed amount of movement, Or, The underscreen camera may be moved to a plurality of different positions with a movement amount determined by contrast.
5. 2. The image processing method according to claim 1, before determining first image information in which the influence of a diffraction phenomenon occurs in the plurality of initial images based on difference information between the plurality of initial images, performing a registration process on the initial images based on feature point information for each initial image and movement amount information between different initial images; determining difference information between the plurality of initial images based on the plurality of initial images after the registration process; Here, the movement amount information is information about the movement amount of the underscreen camera when capturing different initial images.
6. 2. The image processing method according to claim 1, Determining first image information in which the influence of a diffraction phenomenon occurs in the plurality of initial images based on difference information between the plurality of initial images includes: determining first image information in which an effect of a diffraction phenomenon occurs in the initial images based on difference information between the initial images and a filter coefficient; Here, the filter coefficients are determined based on a difference level associated with exposure information of the underscreen camera.
7. 2. The image processing method according to claim 1, performing an interpolation process on the first image information based on second image information in which the influence of the diffraction phenomenon does not occur in the plurality of initial images, to obtain a target image; determining second image information, which is not affected by the diffraction phenomenon in the plurality of initial images, based on a target image area corresponding to the first image information; The method further comprises performing a complementation process on the first image information based on the second image information to obtain the target image.
8. An image processing device applied to an electronic device having an under-screen camera installed under a display, an acquisition module for acquiring initial images taken by the underscreen camera at a plurality of different angles of view; a first processing module for determining first image information in which the influence of a diffraction phenomenon occurs in the plurality of initial images based on difference information between the plurality of initial images; and a second processing module for performing complementation processing on the first image information based on second image information in which the multiple initial images are not affected by the diffraction phenomenon, to obtain a target image.
9. An electronic device, A processor, a memory, and a program or instructions stored in the memory and executable by the processor; The program or instructions, when executed by the processor, cause the steps of the image processing method according to any one of claims 1 to 7 to be realized.
10. 1. A readable storage medium, comprising: The readable storage medium stores a program or instruction, The program or instructions, when executed by a processor, cause the program or instructions to implement the steps of the image processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Electronic apparatus and imaging device
WO2021225030A1
