Depth confidence map processing method and device, storage medium and electronic equipment
By determining the target area on the depth map, calculating the average and generating a confidence weight map, the depth confidence map is optimized, which solves the problem of inaccurate depth confidence maps and improves the quality and subsequent processing effects of the depth map.
Patent Information
- Application Number
- CN202310213161.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-03-07
AI Technical Summary
Inaccurate depth confidence maps affect the quality of depth images, resulting in poor processing results in scenes such as three-dimensional reconstruction and portrait blur.
By determining the target area on the depth map, calculating the average of the pixel depth values, generating a confidence weight map, and using the weight map to optimize the initial depth confidence map, focusing on the area of interest to the user, and improving the depth confidence map Accuracy.
The accuracy of the depth confidence map and the quality of the depth map are improved, and the algorithm processing effect of subsequent processing scenes is improved, such as the accuracy of portrait blur and image enhancement.
Smart Images

Figure CN118628548A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a depth confidence map processing method, a depth confidence map processing device, a computer-readable storage medium, and an electronic device. Background Art
[0002] The depth map can reflect the distance from each point in the shooting scene to the shooting device, and plays an important role in 3D reconstruction and image processing scenarios such as portrait blur and image enhancement. As an indispensable part of the depth image acquisition process, the depth confidence map has an important impact on the quality of the depth image.
[0003] At present, there is a problem of inaccurate depth confidence map to a certain extent, which in turn affects the quality of the depth image. Summary of the invention
[0004] The present disclosure provides a depth confidence map processing method, a depth confidence map processing device, a computer-readable storage medium and an electronic device, thereby overcoming the problem of inaccurate depth confidence maps at least to a certain extent.
[0005] According to a first aspect of the present disclosure, a depth confidence map processing method is provided, including: determining a target area on a depth map, the target area being an area of interest to a user; determining an average value of pixel depth values in the target area; adjusting the pixel depth value of each pixel point in the depth map based on the average value to obtain a confidence weight map; and optimizing the initial depth confidence map using the confidence weight map.
[0006] According to a second aspect of the present disclosure, a depth confidence map processing device is provided, including: an area determination module, used to determine a target area on a depth map, the target area being an area of interest to a user; an average value determination module, used to determine an average value of pixel depth values in the target area; a weight map generation module, used to adjust the pixel depth value of each pixel point in the depth map based on the average value to obtain a confidence weight map; and a confidence map optimization module, used to optimize the initial depth confidence map using the confidence weight map.
[0007] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned depth confidence map processing method is implemented.
[0008] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising a processor; and a memory for storing one or more programs, wherein when the one or more programs are executed by the processor, the processor implements the above-mentioned depth confidence map processing method.
[0009] In the technical solutions provided by some embodiments of the present disclosure, the average value of the pixel depth values in the target area on the depth map is determined, and the pixel depth values of each pixel in the depth map are adjusted based on the average value to obtain a confidence weight map, and the initial depth confidence map is optimized using the confidence weight map. The disclosed solution configures weights for the depth confidence map, which can accurately focus on the target area of interest to the user, and to a certain extent helps to improve the accuracy of the depth confidence map. In addition, in the scenario where the optimized depth confidence map is combined with the depth map for subsequent processing, the optimized depth confidence map can specifically improve the quality of the depth map, thereby improving the algorithm processing effect of these subsequent scenarios.
[0010] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0012] Figure 1 A schematic diagram showing the application stage of the depth confidence map processing solution of an embodiment of the present disclosure;
[0013] Figure 2 A schematic diagram showing the input and output of a depth confidence map processing process according to an embodiment of the present disclosure is shown;
[0014] Figure 3 A flowchart of a depth confidence map processing method according to an exemplary embodiment of the present disclosure is schematically shown;
[0015] Figure 4 A flowchart schematically shows the entire processing process of the depth confidence map processing solution of an embodiment of the present disclosure;
[0016] Figure 5 A block diagram of a depth confidence map processing device according to an exemplary embodiment of the present disclosure is schematically shown;
[0017] Figure 6 A block diagram of an electronic device according to an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0018] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0019] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0020] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined, so the actual execution order may change according to the actual situation. In addition, all the terms "first" and "second" below are only for the purpose of distinction and should not be used as limitations of the present disclosure.
[0021] Figure 1 FIG. 1 is a schematic diagram showing the application stage of the depth confidence map processing solution of an embodiment of the present disclosure. Figure 1 In a scenario where depth data is required to perform corresponding algorithm tasks, first, the terminal device can execute a depth estimation algorithm to obtain a depth map and an initial depth confidence map; next, the terminal device can execute the depth confidence map processing process of the embodiment of the present disclosure to obtain an optimized depth confidence map; subsequently, the terminal device can use the depth map and the optimized depth confidence map to perform subsequent processing processes, wherein the subsequent processing processes include but are not limited to portrait blurring, image enhancement, three-dimensional reconstruction, and virtual object positioning in AR (Augmented Reality) scenes. The present disclosure does not limit the process of executing subsequent algorithms using the optimized depth confidence map.
[0022] The depth confidence map processing scheme of the embodiment of the present disclosure can be implemented by a terminal device. That is to say, each step of the depth confidence map processing method of the embodiment of the present disclosure can be executed by a terminal device, and the depth confidence map processing device mentioned below can be configured in the terminal device. The present disclosure does not limit the type of terminal device, which may include but is not limited to smartphones, tablet computers, smart wearable devices, desktop computers, servers, etc.
[0023] Figure 2 FIG. 1 is a schematic diagram showing the input and output of the depth confidence map processing process according to an embodiment of the present disclosure. Figure 2 The input of the depth confidence map processing process of the embodiment of the present disclosure may include a depth map, an initial depth confidence map, and information about the area of interest to the user. The depth map and the initial depth confidence map may be obtained by a depth estimation algorithm, and the information about the area of interest to the user may refer to the position information of the area of interest to the user on the depth map, for example, including but not limited to the area of the focus frame, the portrait area, the area manually selected by the user, etc.
[0024] The output of the depth confidence map processing process of the embodiment of the present disclosure can be an optimized depth confidence map, which can focus on the area of interest to the user in the image, help improve the quality of the depth map, and thereby improve the processing accuracy of subsequent tasks such as portrait blur, image enhancement, and three-dimensional reconstruction.
[0025] Figure 3 The flowchart of the depth confidence map processing method according to an exemplary embodiment of the present disclosure is schematically shown. Figure 3 , the depth confidence map processing method may include the following steps:
[0026] S32. Determine a target area on the depth map, where the target area is an area of interest to the user.
[0027] In some embodiments of the present disclosure, the depth map can be determined based on a depth estimation algorithm. For example, the depth map can be determined based on a monocular, multi-eye, or other depth estimation algorithm. In other embodiments of the present disclosure, the terminal device can obtain a depth map corresponding to the scene through devices such as TOF (Time Of Flight) and structured light. The present disclosure does not limit the manner in which the terminal device obtains the depth map.
[0028] The target area of the embodiment of the present disclosure may be an area of interest to the user. In one embodiment, the target area may be the area corresponding to the focus frame during shooting. After starting the camera program of the terminal device, the camera program will automatically output the focus frame information of the captured image. In another embodiment, the target area may be a portrait (or any pre-specified object) area in the captured image. In addition, the target area may also be an area determined based on the user's selection operation, such as an area selected by the user in the captured image by clicking, sliding, etc. The present disclosure does not limit the specific location of the target area.
[0029] That is, in some embodiments, the target area can be determined by the terminal device itself without user participation. In other embodiments, the target area can be manually selected by the user according to his / her will.
[0030] In addition, the present disclosure does not limit the shape of the target area. For example, in an example where the target area is a focus frame, the shape of the target area may be a rectangle. For another example, when the target area is selected by a user, the shape of the target area may be a shape determined based on the user's selection operation, and the shape may be a regular shape or an irregular shape.
[0031] When multiple areas are determined based on any of the above methods, these areas can be used as candidate areas, and the user selects one from these candidate areas as the target area, or the terminal device selects one from these candidate areas as the target area.
[0032] In an embodiment in which the terminal device selects one of the candidate areas as the target area, the terminal device may use one or more of the included object type, area definition, and area size as selection conditions.
[0033] For example, a candidate region containing an object type that the user is interested in is selected compared to an object type that the user is not interested in. For another example, a candidate region with a high region definition is selected compared to a candidate region with a low region definition. For another example, a candidate region with a large region size is selected compared to a candidate region with a small region size.
[0034] In the embodiment where the terminal device selects two or more of the following conditions based on object type, region definition, and region size, different weights may be configured for them, for example, object type is configured as 0.5, region definition is configured as 0.2, and region size is configured as 0.3. Subsequently, the terminal device may select the region with the highest score from multiple candidate regions as the target region by weighting them, and the present disclosure does not limit this process.
[0035] S34. Determine the average value of the pixel depth values in the target area.
[0036] After determining the target area on the depth map, the terminal device may add the depth values of all pixels in the target area and then divide the sum by the total number of pixels in the target area to determine an average value of the pixel depth values in the target area.
[0037] Taking the target area as a focus frame as an example, the focus frame information may include the coordinate information of the upper left corner and the size information of the focus frame. The pixels to be calculated can be defined according to the coordinate information of the upper left corner of the focus frame and the size information of the focus frame, and the pixel depth values of these pixels are accumulated and divided by the number of these pixels to obtain the average value of the pixel depth values in the target area.
[0038] S36. Adjust the pixel depth value of each pixel in the depth map based on the average value to obtain a confidence weight map.
[0039] First, the terminal device may determine the distance between the pixel depth value of each pixel point in the depth map and the average value determined in step S34, and generate a depth distance image DImage according to the calculated distance.
[0040] Specifically, each pixel point of the depth map is traversed, and the difference between each pixel point and the average value is calculated and the absolute value is taken to obtain the distance between the pixel depth value of each pixel point and the average value of the pixel depth values in the target area.
[0041] Next, the terminal device may generate a confidence weight map using the depth distance image Dimage. Specifically, the depth distance image Dimage may be linearly normalized to obtain the confidence weight map.
[0042] The first distance threshold and the second distance threshold can be used to adjust the distance of each pixel in the depth distance image Dimage to generate a confidence weight map, wherein the first distance threshold is recorded as T1, the second distance threshold is recorded as T2, and T1 is greater than T2.
[0043] If the distance between pixels in the depth distance image Dimage is greater than the first distance threshold T1, the terminal device can adjust the distance between the pixels to 0; if the distance between pixels in the depth distance image Dimage is less than the second distance threshold, the terminal device can adjust the distance between the pixels to 1.
[0044] If the distance between the pixels in the depth distance image Dimage is less than or equal to the first distance threshold and greater than or equal to the second distance threshold, the terminal device can adjust the distance of the pixel based on the distance of the pixel, the first distance threshold and the second distance threshold. Specifically, on the one hand, the terminal device can obtain a first difference, which is the difference between the distance of the pixel and the second distance threshold; on the other hand, the terminal device can obtain a second difference, which is the difference between the first distance threshold and the second distance threshold. Subsequently, the terminal device can determine the quotient of the first difference and the second difference, and determine the result of subtracting 1 from the quotient of the first difference and the second difference as the adjusted distance of the pixel.
[0045] It should be noted that, for each pixel on the depth distance image Dimage, the terminal device can perform the above operation to obtain the confidence weight map Wimage.
[0046] Specifically, the confidence weight map Wimage can be determined by the following formula:
[0047]
[0048] Where i represents the index of each pixel in the depth distance image Dimage.
[0049] It should be noted that the above-mentioned scheme of determining the confidence weight map based on the distance of pixel depth is only an exemplary description, and the confidence weight map can also be determined in other different ways, such as Gaussian weights, etc., and the present disclosure does not limit this.
[0050] S38. Optimize the initial depth confidence map using the confidence weight map.
[0051] In an exemplary embodiment of the present disclosure, the depth estimation algorithm may output an initial depth confidence map. In an example where a device is used to directly obtain a depth map, the device may also output a depth confidence map, which is recorded as an initial depth confidence map.
[0052] After determining the confidence weight map in step S38, the terminal device may optimize the initial depth confidence map using the confidence weight map to generate an optimized depth confidence map.
[0053] Specifically, the terminal device may multiply the confidence weight map by the initial depth confidence map pixel by pixel to generate an optimized depth confidence map.
[0054] The following takes the focus frame as the target area as an example. Figure 4 The depth confidence map processing method of the embodiment of the present disclosure is described.
[0055] In step S402, the terminal device may determine a focus frame in the depth map, and calculate an average value of pixel depth values in the focus frame.
[0056] In step S404, the terminal device may determine the distance between the depth value of each pixel in the depth map and the average value to generate a depth distance image.
[0057] In step S406, the terminal device may perform linear normalization processing on the depth range image to generate a confidence weight map.
[0058] In step S408, the terminal device may multiply the confidence weight map with the initial depth confidence map to generate an optimized depth confidence map.
[0059] In the process of applying depth data to portrait blur processing, the quality of the depth image has an important impact on the final blur result, and the depth confidence map plays a vital role in improving the quality of the depth image. The depth confidence map processing solution of the disclosed embodiment assigns weights to each pixel on the depth confidence map, so that the algorithm can focus on the area of interest to the user, thereby helping to improve the quality of the depth image and optimize the portrait blur result.
[0060] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0061] Furthermore, this example implementation also provides a depth confidence map processing device.
[0062] Figure 5 FIG. 5 schematically shows a block diagram of a depth confidence map processing device 5 according to an exemplary embodiment of the present disclosure. Figure 5 According to an exemplary embodiment of the present disclosure, the depth confidence map processing device 5 may include a region determination module 51, an average value determination module 53, a weight map generation module 55 and a confidence map optimization module 57.
[0063] Specifically, the area determination module 51 can be used to determine the target area on the depth map, where the target area is the area of interest to the user; the average value determination module 53 can be used to determine the average value of the pixel depth values in the target area; the weight map generation module 55 can be used to adjust the pixel depth value of each pixel point in the depth map based on the average value to obtain a confidence weight map; the confidence map optimization module 57 is used to optimize the initial depth confidence map using the confidence weight map.
[0064] According to an exemplary embodiment of the present disclosure, the weight map generation module 55 can be configured to perform: determining the distance between the pixel depth value of each pixel point in the depth map and the average value, and generating a depth distance image based on the calculated distance; and generating a confidence weight map using the depth distance image.
[0065] According to an exemplary embodiment of the present disclosure, the weight map generation module 55 may be configured to perform: adjusting the distance of each pixel in the depth distance image by using the first distance threshold and the second distance threshold to generate a confidence weight map.
[0066] According to an exemplary embodiment of the present disclosure, the weight map generation module 55 can be configured to perform: if the distance between pixel points in the depth distance image is greater than a first distance threshold, the distance between the pixel points is adjusted to 0; if the distance between pixel points in the depth distance image is less than a second distance threshold, the distance between the pixel points is adjusted to 1; if the distance between pixel points in the depth distance image is less than or equal to the first distance threshold and greater than or equal to the second distance threshold, the distance between the pixel points is adjusted based on the distance between the pixel points, the first distance threshold and the second distance threshold.
[0067] According to an exemplary embodiment of the present disclosure, the weight map generation module 55 can be configured to perform: obtaining a first difference, the first difference being the difference between the distance of the pixel point and the second distance threshold; obtaining a second difference, the second difference being the difference between the first distance threshold and the second distance threshold; determining the quotient of the first difference and the second difference, and determining the result of subtracting 1 from the quotient of the first difference and the second difference as the adjusted distance of the pixel point.
[0068] According to an exemplary embodiment of the present disclosure, the confidence map optimization module 57 may be configured to perform: multiplying the confidence weight map by the initial depth confidence map pixel by pixel to generate an optimized depth confidence map.
[0069] According to an exemplary embodiment of the present disclosure, the region determination module 51 may be configured to perform: determining a focus frame, and determining a region corresponding to the focus frame as a target region on the depth map.
[0070] Since the functional modules of the depth confidence map processing device of the embodiment of the present disclosure are the same as those in the above method implementation, they will not be described again here.
[0071] Figure 6 Schematic diagram of an electronic device suitable for implementing the exemplary embodiment of the present disclosure is shown. The terminal device of the exemplary embodiment of the present disclosure may be configured as follows Figure 6 It should be noted that Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0072] The electronic device of the present disclosure includes at least a processor and a memory, and the memory is used to store one or more programs. When the one or more programs are executed by the processor, the processor can implement the depth confidence map processing method of the exemplary embodiment of the present disclosure.
[0073] Specifically, Figure 6 As shown, the electronic device 60 may include: a processor 610, an internal memory 621, an external memory interface 622, a Universal Serial Bus (USB) interface 630, a charging management module 640, a power management module 641, a battery 642, an antenna 1, an antenna 2, a mobile communication module 650, a wireless communication module 660, an audio module 670, a sensor module 680, a display screen 690, a camera module 691, an indicator 692, a motor 693, a button 694, and a Subscriber Identification Module (SIM) card interface 695, etc. The sensor module 680 may include a depth sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor, etc.
[0074] It is to be understood that the structure illustrated in the embodiment of the present disclosure does not constitute a specific limitation on the electronic device 60. In other embodiments of the present disclosure, the electronic device 60 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0075] The processor 610 may include one or more processing units, for example, the processor 610 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor and / or a neural network processor (NPU). Different processing units may be independent devices or integrated into one or more processors. In addition, a memory may be provided in the processor 610 for storing instructions and data.
[0076] The electronic device 60 can realize the shooting function through the ISP, the camera module 691, the video codec, the GPU, the display screen 690 and the application processor, etc. In some embodiments, the electronic device 60 may include 1 or N camera modules 691, where N is a positive integer greater than 1. If the electronic device 60 includes N cameras, one of the N cameras is a main camera.
[0077] The internal memory 621 can be used to store computer executable program codes, which include instructions. The internal memory 621 can include a program storage area and a data storage area. The external memory interface 622 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 60.
[0078] The present disclosure also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist independently without being assembled into the electronic device.
[0079] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0080] Computer-readable storage media can send, propagate or transmit programs for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0081] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device implements the method described in the embodiments of the present disclosure.
[0082] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0083] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0084] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0085] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0086] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0087] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing what is disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be considered merely as exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.
[0088] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A depth confidence map processing method, characterized in that: include: Determine a target area on the depth map, where the target area is an area of interest to the user; Determine an average value of pixel depth values within the target area; Adjusting the pixel depth value of each pixel in the depth map based on the average value to obtain a confidence weight map; The initial depth confidence map is optimized using the confidence weight map.
2. The depth confidence map processing method according to claim 1, characterized in that: Adjusting the pixel depth value of each pixel in the depth map based on the average value to obtain a confidence weight map includes: Determine the distance between the pixel depth value of each pixel in the depth map and the average value, and generate a depth distance image according to the calculated distance; The confidence weight map is generated using the depth range image.
3. The depth confidence map processing method according to claim 2, characterized in that: Generating the confidence weight map using the depth range image includes: The distance of each pixel in the depth distance image is adjusted using the first distance threshold and the second distance threshold to generate the confidence weight map.
4. The depth confidence map processing method according to claim 3, characterized in that: Using the first distance threshold and the second distance threshold to adjust the distance of each pixel in the depth distance image includes: If the distance between the pixels in the depth distance image is greater than the first distance threshold, adjusting the distance between the pixels to 0; If the distance between the pixels in the depth distance image is less than the second distance threshold, adjusting the distance between the pixels to 1; If the distance between pixels in the depth distance image is less than or equal to the first distance threshold and greater than or equal to the second distance threshold, the distance between pixels is adjusted based on the distance between pixels, the first distance threshold, and the second distance threshold.
5. The depth confidence map processing method according to claim 4, characterized in that: Adjusting the distance of the pixel points based on the distance of the pixel points, the first distance threshold, and the second distance threshold includes: Obtaining a first difference value, where the first difference value is a difference between the distance of the pixel point and the second distance threshold; Obtaining a second difference value, where the second difference value is a difference between the first distance threshold and the second distance threshold; The quotient of the first difference and the second difference is determined, and a result of subtracting the quotient of the first difference and the second difference from 1 is determined as the adjusted distance of the pixel point.
6. The depth confidence map processing method according to claim 1, characterized in that: Optimizing the initial depth confidence map using the confidence weight map includes: The confidence weight map is multiplied pixel by pixel with the initial depth confidence map to generate an optimized depth confidence map.
7. The depth confidence map processing method according to claim 1, characterized in that: Determining the target area on the depth map includes: A focus frame is determined, and an area corresponding to the focus frame is determined as a target area on the depth map.
8. A depth confidence map processing device, characterized in that: include: A region determination module, used to determine a target region on the depth map, where the target region is a region of interest to the user; An average value determination module, used to determine the average value of pixel depth values in the target area; A weight map generation module, configured to adjust the pixel depth value of each pixel in the depth map based on the average value to obtain a confidence weight map; A confidence map optimization module is used to optimize the initial depth confidence map using the confidence weight map.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the depth confidence map processing method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: processor; A memory for storing one or more programs, which, when executed by the processor, enables the processor to implement the depth confidence map processing method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Depth estimation method and system based on light field image angle domain pixels
CN107038719A
Depth map processing method, depth map processing device and electronic equipment
CN110400338A
Depth map processing method and device
CN110400343A
Depth and confidence estimation system
CN112488104A
Image processing method and device
CN114119701A
