Light-field image processing method and apparatus
Through the viewpoint fusion of light field video and pre-generated background disparity map technology, the problem of slow light field video processing speed is solved, real-time light field video presentation and efficient data processing are achieved, improving the user experience.
Patent Information
- Application Number
- PCT/CN2024/081563
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-17
- Filing Date
- 2024-03-14
- Publication Date
- 2024-10-24
AI Technical Summary
Light field video has a large amount of data and slow processing speed, making it difficult to realize real-time light field video presentation, which limits its application scenarios.
By obtaining the target viewpoint information and light field image group, the viewpoints of the foreground and background are fused, and the pre-generated background disparity map is used to reduce disparity calculation, improve image processing efficiency, and realize real-time light field video presentation.
The data processing speed and accuracy of light field video are improved, real-time light field video communication is realized, and the user experience is enhanced.
Smart Images

Figure CN2024081563_24102024_PF_FP_ABST
Abstract
Description
Light field image processing method and device Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to a light field image processing method and device. Background Art
[0002] Light field can record higher-dimensional light data, thereby obtaining three-dimensional information with higher precision than traditional two-dimensional imaging and traditional three-dimensional imaging represented by binocular stereo vision. Light field video can accurately perceive dynamic environments, giving users an immersive viewing experience.
[0003] However, light field videos have large data volumes and slow processing speeds, making it difficult to achieve real-time light field video presentation, which limits the application scenarios of light field videos.
[0004] Summary of the Invention
[0005] To improve the data processing efficiency of light field images and thereby achieve real-time light field video presentation, the present disclosure provides a light field image processing method, apparatus, electronic device, video communication system, and storage medium.
[0006] In a first aspect, embodiments of the present disclosure provide a light field image processing method, applied to a display device, the method comprising:
[0007] Acquire target viewpoint information and a light field image group sent by a capture device; the target viewpoint information represents position information of an observer's eye of the display device, and the light field image group includes a light field image captured by each target light field camera in the capture device;
[0008] Performing viewpoint fusion on the foreground images in each light field image based on the target viewpoint information to obtain a foreground viewpoint image corresponding to the target viewpoint information;
[0009] Based on the target viewpoint information and a pre-generated background disparity map for each viewpoint position, viewpoint fusion is performed on the background images in each light field image to obtain a background viewpoint image corresponding to the target viewpoint information; the viewpoint position represents the position corresponding to each target light field camera;
[0010] A target light field image is generated according to the foreground viewpoint image and the background viewpoint image.
[0011] In some embodiments, performing viewpoint fusion on the foreground images in each light field image based on the target viewpoint information to obtain the foreground viewpoint image corresponding to the target viewpoint information includes:
[0012] performing image segmentation on each light field image in the light field image group to obtain a foreground image corresponding to each light field image;
[0013] For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, performing disparity estimation on a first foreground image corresponding to the first light field image and a second foreground image corresponding to the second light field image to obtain a first foreground disparity map corresponding to the first foreground image and a second foreground disparity map corresponding to the second foreground image;
[0014] Performing disparity mapping on the first foreground image based on the first foreground disparity map to obtain a first foreground mapping map, and performing disparity mapping on the second foreground image based on the second foreground disparity map to obtain a second foreground mapping map;
[0015] An image fusion process is performed on the first foreground map and the second foreground map based on the target viewpoint information to obtain the foreground viewpoint image.
[0016] In some embodiments, performing image segmentation on each light field image in the light field image group to obtain a foreground image corresponding to each light field image includes:
[0017] For each light field image in the light field image group, image difference is performed on the light field image based on a pre-generated preset background image at the same viewpoint position as the light field image to obtain a foreground image and a background image corresponding to the light field image.
[0018] In some embodiments, performing disparity estimation on a first foreground image corresponding to the first light field image and a second foreground image corresponding to the second light field image to obtain a first foreground disparity map corresponding to the first foreground image and a second foreground disparity map corresponding to the second foreground image includes:
[0019] Downsampling the first foreground image based on a preset downsampling coefficient to obtain a first downsampling image, and downsampling the second foreground image to obtain a second downsampling image;
[0020] Matching positions of identical pixels on the first down-sampled image and the second down-sampled image to obtain a first disparity map corresponding to the first down-sampled image and a second disparity map corresponding to the second down-sampled image;
[0021] determining a first disparity search range according to the first disparity map and the preset downsampling coefficient, and determining a second disparity search range according to the second disparity map and the preset downsampling coefficient;
[0022] The first foreground disparity map is obtained by performing disparity estimation on the first foreground image based on the first disparity search range, and the second foreground disparity map is obtained by performing disparity estimation on the second foreground image based on the second disparity search range.
[0023] In some embodiments, performing disparity mapping on the first foreground image based on the first foreground disparity map to obtain a first foreground map, and performing disparity mapping on the second foreground image based on the second foreground disparity map to obtain a second foreground map includes:
[0024] Matching each pixel on the first foreground image to a corresponding pixel position on the mapping map according to the first foreground disparity map to obtain the first foreground mapping map; matching each pixel on the second foreground image to a corresponding pixel position on the mapping map according to the second foreground disparity map to obtain the second foreground mapping map;
[0025] The performing image fusion processing on the first foreground map and the second foreground map based on the target viewpoint information to obtain the foreground viewpoint image includes:
[0026] determining a first weight and a second weight according to the target viewpoint information and position information of any two adjacent target light field cameras;
[0027] Based on the first weight and the second weight, image fusion processing is performed on the first foreground map and the second foreground map to obtain the foreground viewpoint image.
[0028] In some embodiments, the background images in each light field image are viewpoint-fused based on the target viewpoint information and a pre-generated background disparity map for each viewpoint position to obtain a background viewpoint image corresponding to the target viewpoint information; the viewpoint position represents a position corresponding to each target light field camera, including:
[0029] performing image segmentation on each light field image in the light field image group to obtain a background image corresponding to each light field image;
[0030] For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, performing disparity mapping on a first background image of the first light field image based on a pre-generated first background disparity map at the same viewpoint as the first light field image to obtain a first background map; and performing disparity mapping on a second background image of the second light field image based on a pre-generated second background disparity map at the same viewpoint as the second light field image to obtain a second background map;
[0031] Image fusion processing is performed on the first background map and the second background map based on the target viewpoint information to obtain the background viewpoint image.
[0032] In some implementations, obtaining target viewpoint information includes:
[0033] Acquiring scene images by an image acquisition device provided on the display device;
[0034] Performing image detection based on the scene image to obtain position information of the observer's eyes in the scene image;
[0035] The target viewpoint information is generated based on the position information.
[0036] In some embodiments, the process of acquiring a light field image group sent by a capture device includes:
[0037] Sending the target viewpoint information to the acquisition device, so that the acquisition device determines one or more target light field cameras from a plurality of light field cameras according to the target viewpoint information;
[0038] Receive the light field image group sent by the acquisition device.
[0039] In some embodiments, the light field image processing method described in the present disclosure further includes:
[0040] The background disparity map of each viewpoint position sent by the acquisition device is received and stored.
[0041] In a second aspect, an embodiment of the present disclosure provides a light field image processing method, which is applied to an acquisition device, and the method includes:
[0042] The current scene image is captured by a plurality of light field cameras provided on the acquisition device, and a scene image at a viewpoint position corresponding to each light field camera is obtained;
[0043] For any two adjacent light field cameras, a background disparity map of the viewpoint position of each light field camera is generated based on the scene images respectively captured by the two light field cameras;
[0044] The background disparity map of each viewpoint position is sent to a display device, so that the display device stores the background disparity map of each viewpoint position.
[0045] In some embodiments, the light field image processing method described in the present disclosure further includes:
[0046] receiving target viewpoint information sent by the display device;
[0047] Determining one or more target light field cameras from a plurality of light field cameras included in the acquisition device according to the target viewpoint information;
[0048] The target light field camera collects light field images to obtain a light field image group, and sends the light field image group to the display device.
[0049] In a third aspect, embodiments of the present disclosure provide a light field image processing apparatus, applied to a display device, the apparatus comprising:
[0050] an acquisition module configured to acquire target viewpoint information and a light field image group sent by an acquisition device; the target viewpoint information represents position information of an observer's eye of the display device; and the light field image group includes a light field image acquired by each target light field camera in the acquisition device;
[0051] a foreground fusion module configured to perform viewpoint fusion on the foreground images in each light field image based on the target viewpoint information to obtain a foreground viewpoint image corresponding to the target viewpoint information;
[0052] A background fusion module is configured to perform viewpoint fusion on the background images in each light field image based on the target viewpoint information and a pre-generated background disparity map for each viewpoint position to obtain a background viewpoint image corresponding to the target viewpoint information; the viewpoint position represents a position corresponding to each target light field camera;
[0053] The image synthesis module is configured to generate a target light field image according to the foreground viewpoint image and the background viewpoint image.
[0054] In some embodiments, the foreground fusion module is configured to:
[0055] performing image segmentation on each light field image in the light field image group to obtain a foreground image corresponding to each light field image;
[0056] For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, performing disparity estimation on a first foreground image corresponding to the first light field image and a second foreground image corresponding to the second light field image to obtain a first foreground disparity map corresponding to the first foreground image and a second foreground disparity map corresponding to the second foreground image;
[0057] Performing disparity mapping on the first foreground image based on the first foreground disparity map to obtain a first foreground mapping map, and performing disparity mapping on the second foreground image based on the second foreground disparity map to obtain a second foreground mapping map;
[0058] An image fusion process is performed on the first foreground map and the second foreground map based on the target viewpoint information to obtain the foreground viewpoint image.
[0059] In some embodiments, the foreground fusion module is configured to:
[0060] For each light field image in the light field image group, image difference is performed on the light field image based on a pre-generated preset background image at the same viewpoint position as the light field image to obtain a foreground image and a background image corresponding to the light field image.
[0061] In some embodiments, the foreground fusion module is configured to:
[0062] Downsampling the first foreground image based on a preset downsampling coefficient to obtain a first downsampling image, and downsampling the second foreground image to obtain a second downsampling image;
[0063] Matching positions of identical pixels on the first down-sampled image and the second down-sampled image to obtain a first disparity map corresponding to the first down-sampled image and a second disparity map corresponding to the second down-sampled image;
[0064] determining a first disparity search range according to the first disparity map and the preset downsampling coefficient, and determining a second disparity search range according to the second disparity map and the preset downsampling coefficient;
[0065] The first foreground disparity map is obtained by performing disparity estimation on the first foreground image based on the first disparity search range, and the second foreground disparity map is obtained by performing disparity estimation on the second foreground image based on the second disparity search range.
[0066] In some embodiments, the foreground fusion module is configured to:
[0067] Matching each pixel on the first foreground image to a corresponding pixel position on the mapping map according to the first foreground disparity map to obtain the first foreground mapping map; matching each pixel on the second foreground image to a corresponding pixel position on the mapping map according to the second foreground disparity map to obtain the second foreground mapping map;
[0068] determining a first weight and a second weight according to the target viewpoint information and position information of any two adjacent target light field cameras;
[0069] Based on the first weight and the second weight, image fusion processing is performed on the first foreground map and the second foreground map to obtain the foreground viewpoint image.
[0070] In some embodiments, the background fusion module is configured to:
[0071] performing image segmentation on each light field image in the light field image group to obtain a background image corresponding to each light field image;
[0072] For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, performing disparity mapping on a first background image of the first light field image based on a pre-generated first background disparity map at the same viewpoint as the first light field image to obtain a first background map; and performing disparity mapping on a second background image of the second light field image based on a pre-generated second background disparity map at the same viewpoint as the second light field image to obtain a second background map;
[0073] Image fusion processing is performed on the first background map and the second background map based on the target viewpoint information to obtain the background viewpoint image.
[0074] In some embodiments, the acquisition module is configured to:
[0075] Acquiring scene images by an image acquisition device provided on the display device;
[0076] Performing image detection based on the scene image to obtain position information of the observer's eyes in the scene image;
[0077] The target viewpoint information is generated based on the position information.
[0078] In some embodiments, the acquisition module is configured to:
[0079] Sending the target viewpoint information to the acquisition device, so that the acquisition device determines one or more target light field cameras from a plurality of light field cameras according to the target viewpoint information;
[0080] Receive the light field image group sent by the acquisition device.
[0081] In some embodiments, the acquisition module is configured to:
[0082] The background disparity map of each viewpoint position sent by the acquisition device is received and stored.
[0083] In a fourth aspect, embodiments of the present disclosure provide a light field image processing device, which is applied to an acquisition device. The device includes:
[0084] An image acquisition module is configured to respectively acquire a current scene image through a plurality of light field cameras provided on the acquisition device, and obtain a scene image at a viewpoint position corresponding to each light field camera;
[0085] a disparity determination module configured to generate, for any two adjacent light field cameras, a background disparity map of the viewpoint position of each light field camera based on scene images respectively captured by the two light field cameras;
[0086] The sending module is configured to send the background disparity map of each viewpoint position to the display device, so that the display device stores the background disparity map of each viewpoint position.
[0087] In some embodiments, the sending module is configured to:
[0088] receiving target viewpoint information sent by the display device;
[0089] Determining one or more target light field cameras from a plurality of light field cameras included in the acquisition device according to the target viewpoint information;
[0090] The target light field camera collects light field images to obtain a light field image group, and sends the light field image group to the display device.
[0091] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including:
[0092] processor; and
[0093] A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method according to any embodiment of the first aspect, or execute the method according to any embodiment of the second aspect.
[0094] In a sixth aspect, an embodiment of the present disclosure provides a video communication system, including:
[0095] A display device, comprising an image acquisition device and a first controller, wherein the first controller is configured to execute the method according to any embodiment of the first aspect;
[0096] The acquisition device includes a light field camera array and a second controller, wherein the light field camera array includes multiple light field cameras, and the second controller is used to execute the method according to any embodiment of the second aspect.
[0097] In a seventh aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method according to any embodiment of the first aspect, or execute the method according to any embodiment of the second aspect.
[0098] The light field image processing method of the disclosed embodiment includes obtaining target pilot information and a light field image group transmitted by an acquisition device, performing viewpoint fusion on the foreground images in each light field image based on the target viewpoint information to obtain a foreground viewpoint image, performing viewpoint fusion on the background images in each light field image based on the target viewpoint information and a pre-generated background viewpoint map for each viewpoint position to obtain a background viewpoint image, and generating a target light field image based on the foreground viewpoint image and the background viewpoint image. In the disclosed embodiment, a disparity map of the background image is pre-generated through foreground-background segmentation, eliminating the need for real-time calculation of a disparity map for a complex background. This significantly reduces the amount of data for viewpoint image synthesis, improves image processing speed and accuracy, and enables real-time light field video communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0100] FIG1 is an architecture diagram of a video communication system according to some embodiments of the present disclosure.
[0101] FIG2 is a schematic structural diagram of an electronic device according to some embodiments of the present disclosure.
[0102] FIG3 is a flowchart of a light field image processing method according to some embodiments of the present disclosure.
[0103] FIG4 is a flowchart of a light field image processing method according to some embodiments of the present disclosure.
[0104] FIG5 is a flowchart of a light field image processing method according to some embodiments of the present disclosure.
[0105] FIG6 is a schematic diagram of a light field image processing method according to some embodiments of the present disclosure.
[0106] FIG. 7 is a schematic diagram of a circuit structure of a light field camera array according to some embodiments of the present disclosure.
[0107] FIG8 is a flowchart of a light field image processing method according to some embodiments of the present disclosure.
[0108] FIG9 is a flowchart of a light field image processing method according to some embodiments of the present disclosure.
[0109] FIG10 is a schematic diagram of a light field image processing method according to some embodiments of the present disclosure.
[0110] FIG11 is a flowchart of a light field image processing method according to some embodiments of the present disclosure.
[0111] FIG12 is a flowchart of a light field image processing method according to some embodiments of the present disclosure.
[0112] FIG13 is a structural block diagram of a light field image processing apparatus according to some embodiments of the present disclosure.
[0113] FIG14 is a structural block diagram of a light field image processing apparatus according to some embodiments of the present disclosure.
[0114] FIG15 is a structural block diagram of an electronic device according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0115] The technical solutions of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different embodiments of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0116] A light field is defined as the amount of light passing through each point in each direction. Light field images can record light data at higher dimensions than traditional two-dimensional images, thereby presenting three-dimensional information with higher precision than traditional two-dimensional imaging and traditional three-dimensional imaging represented by binocular stereo vision.
[0117] Light field video can accurately perceive dynamic environments. Combined with eye tracking technology, when the user's viewing point changes, the video image can follow the viewpoint changes in real time, thus presenting the user with an immersive naked-eye 3D viewing experience.
[0118] The data collection of light field videos requires the use of a light field camera array, which includes several or even dozens of light field cameras in different positions. Each light field camera is responsible for collecting images at a viewpoint position. As a result, the amount of data in light field videos is huge, resulting in a large amount of computation required to later perform viewpoint synthesis on the image data collected by different cameras, and the data processing speed is very slow.
[0119] Therefore, light field video in related technologies is primarily used in offline video scenarios and is difficult to implement for real-time video scenarios. For example, in a remote video chat scenario, user A uses a first device to watch a light field video of the scene where user B is. This requires real-time processing and transmission of the light field video data of user B's scene, while also combining the light field video image with user A's viewpoint information for rendering. This entire process requires a large amount of data computation, making real-time presentation difficult.
[0120] Based on the defects of the above-mentioned related technologies, the embodiments of the present disclosure provide a light field image processing method, device, electronic device, video communication system and storage medium, aiming to improve the light field data processing speed and realize real-time light field video presentation.
[0121] FIG1 shows an architecture diagram of a video communication system in some embodiments of the present disclosure. The application scenarios of the embodiments of the present disclosure will be described below with reference to FIG1 .
[0122] As shown in FIG1 , in some embodiments, the video communication system includes an acquisition device 100 and a display device 200 , and the acquisition device 100 and the display device 200 establish a communicative connection via a wired or wireless network.
[0123] In an exemplary one-way video communication scenario, the capture device 100 can capture light field image data of the scene where user A is located and send the light field image data to the display device 200. The display device 200 tracks the eye position of user B to obtain the viewpoint position of user B, combines the viewpoint position with the light field image data sent by the capture device 100, and renders the synthesized light field image on the display device 200.
[0124] It is understood that the above example is based on one-way video communication, but the disclosed solution is not limited to one-way video communication scenarios. For two-way video communication scenarios, the display device 200 can also collect light field image data of the scene where user B is located and send the light field image data to the acquisition device 100. The acquisition device 100 can also track the eye position of user A to obtain the viewpoint position of user A currently viewing, combine the viewpoint position with the light field image data sent by the display device 200, and perform viewpoint image synthesis, and render and display the synthesized light field image on the acquisition device 100. Those skilled in the art will understand this, and this disclosure will not elaborate on it.
[0125] Taking the two-way video communication scenario as an example, FIG2 shows a schematic structural diagram of an electronic device in some embodiments of the present disclosure. The electronic device can be either an acquisition device 100 or a display device 200, and the present disclosure does not impose any restrictions on this.
[0126] As shown in FIG. 2 , the electronic device includes a display screen 110 , a light field camera array 120 , and an image acquisition device 130 .
[0127] The display screen 110 is used to display the light field image. The display screen 110 can be any screen component suitable for implementation, such as an LCD (Liquid Crystal Display) screen, an OLED (Organic Light-Emitting Diode) screen, etc., and the present disclosure does not limit this.
[0128] The light field camera array 120 includes multiple light field cameras 121, which are deployed in an array on the electronic device. Since each light field camera 121 is deployed at a different position on the electronic device, the light field camera array 120 can capture scene images from different viewpoints.
[0129] For example, in the example of FIG2 , the light field camera array 120 includes a total of nine light field cameras 121, and the nine light field cameras 121 are evenly spaced along the upper edge of the display screen 110. Of course, those skilled in the art will appreciate that the number and deployment of the light field camera array 120 are not limited to that shown in FIG2 , and may also be any other suitable implementation form, and this disclosure is not intended to limit this.
[0130] Image acquisition device 130 is a camera used to track the user's eyes. It can be, for example, a high-precision RGB camera. Specifically, image acquisition device 130 acquires an image of the current scene and performs image detection on the scene image to determine the current user's viewpoint information, which represents the position of the user's eyes. In the example of FIG2 , image acquisition device 130 is located below the display screen 110 of the electronic device. However, it should be understood that the present disclosure does not limit the location of image acquisition device 130.
[0131] Based on the video communication system shown in FIG. 1 and FIG. 2 , the light field image processing method according to the embodiment of the present disclosure is described below.
[0132] It is worth noting that, for ease of understanding, the following embodiments of the present disclosure will be described using a one-way video communication scenario as an example, that is, the acquisition device 100 serves as the light field data acquisition end, and the display device 200 serves as the light field video display end. The principles of the two-way video communication scenario are exactly the same, and this disclosure will not elaborate on this.
[0133] In some embodiments, the present disclosure provides an example light field image processing method, which can be applied to the display device 200 and performed by a processor of the display device 200 , as described below in conjunction with FIG. 3 .
[0134] As shown in FIG3 , in some embodiments, the light field image processing method of the present disclosure includes:
[0135] S310: Acquire target viewpoint information and a light field image group sent by a capture device.
[0136] It is understood that a light field image includes viewpoint images from many viewpoint positions, but the user's eyes can only perceive a limited number of viewpoint positions. In other words, not all viewpoint images will enter the user's eyes. Therefore, the target light field image rendered and displayed on the display device 200 is a viewpoint synthesis image generated by combining the user's current viewpoint position. Therefore, in the embodiments of the present disclosure, it is necessary to combine the user's current target viewpoint information to perform viewpoint image synthesis to obtain the target light field image.
[0137] In conjunction with the scenario shown in Figure 1 , on the display device 200 side, the image acquisition device 130 on the display device 200 can be used in conjunction with an eye tracking algorithm to track the viewpoint of user B and obtain the position information of user B's eyes. This position information is the target viewpoint information described in this disclosure. The process of obtaining target viewpoint information through eye tracking is described in the following embodiments of this disclosure and is not detailed here.
[0138] At the same time, the display device 200 also needs to receive a light field image group from the acquisition device 100. The light field image group refers to a group of images captured by the light field camera array 120 on the acquisition device 100. As shown in FIG2 , in this example, the light field camera array includes a total of nine light field cameras, each of which can capture a light field image. The light field image group is a collection of these light field images.
[0139] It is worth noting that, in some embodiments, the light field image group may include the light field images captured by each light field camera. For example, in the example of FIG2 , nine light field cameras each capture a light field image, so that the light field image group includes a total of nine light field images, that is, each light field camera 121 in the light field camera array 120 is a target light field camera as described in the present disclosure.
[0140] In other embodiments, combined with the aforementioned principles, it can be seen that due to the limited number of viewpoints that can be received by the human eye, not all viewpoint images can enter the observer's eyes. That is, there are a large number of redundant images in the light field image group captured by the light field camera array 120. This redundant image data will also cause the data processing speed to slow down.
[0141] Therefore, based on the target viewpoint information, one or more target light field cameras can be selected from multiple light field cameras to capture light field images. The target light field camera is the light field camera at the location corresponding to the target viewpoint information. It will be appreciated that using only the target light field camera at the user's viewpoint to capture a light field image group can eliminate redundant image data, reduce computational complexity while ensuring image accuracy, and improve data processing efficiency. This is described in the following embodiments of the present disclosure.
[0142] S320 , performing viewpoint fusion on the foreground images in each light field image based on the target viewpoint information to obtain a foreground viewpoint image corresponding to the target viewpoint information.
[0143] S330 , based on the target viewpoint information and the pre-generated background disparity map for each viewpoint position, viewpoint fusion is performed on the background images in each light field image to obtain a background viewpoint image corresponding to the target viewpoint information.
[0144] It can be understood that the light field image displayed on the display device 200 needs to change with the user's viewpoint position. Therefore, when generating a target light field image, it is necessary to combine the user's target viewpoint information to perform viewpoint image synthesis on the light field images in the light field image group, and then obtain the target light field image under the user's new viewpoint to achieve a picture tracking effect.
[0145] In the disclosed embodiment, in order to speed up viewpoint image synthesis and meet the real-time requirements of light field video, viewpoint image synthesis is divided into foreground viewpoint image synthesis and background viewpoint image synthesis.
[0146] It is worth noting that, in combination with the video communication scenario, taking video conferencing as an example, the large-screen electronic devices used to implement video conferencing are often in a relatively fixed position. Therefore, during the video communication, the background part of the scene image captured by the acquisition device 100 will hardly change, and generally only the people or objects in the foreground will move.
[0147] Therefore, in the embodiments of the present disclosure, it is possible to consider segmenting the foreground and background in the light field image. For background images with little change, a background disparity map for each viewpoint position can be generated in advance through pre-processing.
[0148] Disparity refers to the shift in image pixels due to differences in viewpoint position. A disparity map is an image that reflects this pixel shift. A disparity map is a two-dimensional image, the same size as the original image, with each pixel representing the disparity value of the pixel at that location on the original image. For example, as shown in Figure 2, taking any two adjacent light field cameras 121 in the light field camera array 120 as an example, due to their different deployment positions, the pixels in the light field images they capture also deviate. The disparity map is used to record the pixel deviations between the two images.
[0149] For real-time light field video communication scenarios, since the light field camera array 120 includes a large number of cameras and each camera position represents a viewpoint position, it is necessary to calculate the disparity map between each light field image and the adjacent images when synthesizing the viewpoint images. The amount of calculated data is large, making it difficult to achieve real-time performance.
[0150] In the disclosed embodiments, however, considering that the background portion of the scene in which user A is located hardly changes, a disparity map can be pre-generated for the background portion of the light field image. For example, when the acquisition device 100 is powered on, the light field camera array 120 on the acquisition device 100 can capture the current scene image and pre-construct a background disparity map corresponding to each viewpoint position. Subsequently, when the acquisition device 100 and the display device 200 establish a video communication connection, this background disparity map is sent to the display device 200. The display device 200 can then directly synthesize the background viewpoint image for the background portion of the current light field image based on the pre-obtained background disparity map, without having to recalculate the disparity map for the background portion. This reduces the amount of data and speeds up the synthesis of the viewpoint images.
[0151] At the same time, for the foreground image in the light field image, combined with the video communication scenario, it can be seen that the foreground characters generally only occupy a small area of the image. After the complex background image is segmented out, the speed of viewpoint image synthesis for the foreground image will also be greatly improved, thereby meeting the real-time and low-latency requirements of video communication.
[0152] In some embodiments of the present disclosure, after receiving the light field image group sent by the acquisition device 100, the display device 200 may first perform image segmentation on each light field image in the light field image group to obtain a foreground image and a background image corresponding to each light field image.
[0153] For foreground images, since it is impossible to establish a foreground disparity map in advance, a real-time disparity map calculation can be performed to obtain a foreground disparity map for each viewpoint position. Then, based on the foreground disparity map and the target viewpoint information, each foreground image is viewpoint fused to obtain a foreground viewpoint image corresponding to the target viewpoint information.
[0154] For background images, since the background disparity map of each viewpoint position has been established in advance, there is no need to calculate the disparity map. Instead, the viewpoints of each background image can be directly fused based on the pre-established background disparity map and the target viewpoint information to obtain the background viewpoint image corresponding to the target viewpoint information.
[0155] The viewpoint fusion process of the foreground viewpoint image and the background viewpoint image is described in the following embodiments of the present disclosure and will not be described in detail here.
[0156] S340 : Generate a target light field image according to the foreground viewpoint image and the background viewpoint image.
[0157] It can be understood that the foreground viewpoint image represents the foreground image at the new viewpoint position (that is, the viewpoint position corresponding to the target viewpoint information), and the background viewpoint image represents the background image at the new viewpoint position (that is, the viewpoint position corresponding to the target viewpoint information).
[0158] Thus, after obtaining the foreground viewpoint image and the background viewpoint image, the target light field image can be obtained by fusing the two. For example, in one example, the target light field image can be obtained by attaching the foreground viewpoint image to the background viewpoint image.
[0159] After the target light field image is obtained, the target light field image can be rendered and displayed on the display screen of the display device 200, and the user B can view the target light field image through the display screen.
[0160] It can be understood that the above embodiment is described by taking the generation process of one frame of target light field image as an example. For each frame of the light field video, the above process can be repeated to realize the playback of the light field video on the display device 200 .
[0161] It can also be understood that the generation of the target light field image requires consideration of the observer's viewpoint (i.e., the viewpoint corresponding to the target viewpoint information). Therefore, as the observer's eye position moves, the target viewpoint information is also updated, and the resulting target light field image also changes to the light field image corresponding to the new viewpoint position, presenting a naked-eye 3D effect where the video image follows the observer's viewpoint. In video conferencing scenarios, for example, this creates an immersive user experience, eliminating the sense of distance associated with conventional two-dimensional video communication and improving the user's communication experience.
[0162] From the above, it can be seen that in the embodiments of the present disclosure, by segmenting the light field image into foreground and background and realizing viewpoint image synthesis based on the pre-generated background disparity map, the data volume of viewpoint image synthesis is reduced, the computing efficiency and accuracy are improved, and real-time low-latency communication of light field video is achieved, thereby improving the user's video communication experience.
[0163] As can be seen from the foregoing, in the embodiment of the present disclosure, a background disparity map for each viewpoint position needs to be pre-generated at the acquisition device 100 . The process of generating the background disparity map will be described below with reference to FIG. 4 .
[0164] As shown in FIG4 , in some embodiments, the light field image processing method of the present disclosure is applied to the acquisition device 100 . The process of generating the background disparity map by the acquisition device 100 includes:
[0165] S410 , using multiple light field cameras provided on an acquisition device to respectively acquire images of a current scene, and obtaining a scene image at a viewpoint position corresponding to each light field camera.
[0166] S420 : For any two adjacent light field cameras, generate a background disparity map of the viewpoint position of each light field camera according to scene images respectively captured by the two light field cameras.
[0167] S430: Send the background disparity map of each viewpoint position to the display device, so that the display device stores the background disparity map of each viewpoint position.
[0168] In some implementations, each time the acquisition device 100 is powered on, the processes S410 to S430 may be executed to generate a background disparity map for the current scene.
[0169] For example, in the example of Figure 1, when the acquisition device 100 is turned on, the acquisition device 100 has not established a video communication connection with the display device 200, so that there is no user A in the scene where the acquisition device 100 is located, and only the background is included. At this time, the acquisition device 100 can be used to generate a background disparity map for each viewpoint position.
[0170] As shown in FIG2 , the acquisition device 100 can respectively acquire an image of the current scene through each light field camera in the light field camera array 120 disposed above. That is, in the example of FIG2 , each of the nine light field cameras 121 in the light field camera array 120 acquires an image of the current scene.
[0171] It can be understood that because each light field camera 121 in the light field camera array 120 is deployed at a different location, the scene images captured correspond to different viewpoints. The disparity map for a particular viewpoint can be understood as the pixel deviation of the light field image at that viewpoint relative to the light field images at other viewpoints. In the disclosed embodiments, the background disparity map for each viewpoint is the disparity map between the light field image at that viewpoint and the light field images at adjacent viewpoints.
[0172] In some embodiments of the present disclosure, a background disparity map of each disparity position relative to adjacent disparity positions may be determined based on a disparity estimation algorithm. For the specific process of the disparity estimation algorithm, reference may be made to the method for calculating the foreground disparity map described below in this document, which will not be described in detail here.
[0173] In other embodiments, given that the background disparity map estimation process is pre-built, there is no requirement for computational speed, allowing for the use of a more accurate disparity estimation method. For example, in one example, a disparity estimation network based on a deep neural network (DNN) can be used. The disparity estimation network can be pre-trained through manual annotation, and then scene images of any two adjacent viewpoints are input into the disparity estimation network to obtain a background disparity map corresponding to each viewpoint.
[0174] After obtaining the background disparity map of each viewpoint position through the above process, the acquisition device 100 may store the background disparity map in a cache.
[0175] After completing the above-mentioned offline preparatory steps, when display device 200 establishes a video communication connection with capture device 100, indicating that user B of display device 200 needs to conduct video communication with user A of capture device 100, capture device 100 can send the background disparity map stored in its cache to display device 200. After receiving the background disparity map for each viewpoint, display device 200 can store the background disparity map to await subsequent viewpoint image synthesis. The following describes the interaction between capture device 100 and display device 200 during video communication.
[0176] As can be seen from the foregoing, in a video communication scenario, user B of display device 200 can observe a limited number of viewpoints. Therefore, the light field image group captured by light field camera array 120 of acquisition device 100 contains a large number of redundant images. In some embodiments of the present disclosure, a target light field camera can be determined from among the multiple light field cameras of acquisition device 100 based on user B's current eye position information. This is explained below with reference to FIG5 .
[0177] As shown in FIG5 , in some embodiments, the light field image processing method of the present disclosure includes:
[0178] S510: The display device captures a scene image through an image capture device.
[0179] 1 and 2 , the display device 200 may capture a scene image including user B through the image capture device 130 provided on the device.
[0180] S520: The display device performs image detection based on the scene image to obtain position information of the observer's eyes in the scene image.
[0181] Then, the display device 200 can perform image detection on the collected scene image based on the eye tracking algorithm, thereby determining the position information of the observer's (ie, user B) eyes, which represents the image position of the observer's eyes on the scene image.
[0182] S530: The display device generates target viewpoint information based on the position information.
[0183] Afterwards, the display device 200 can map the position information of the observer's eyes to the viewpoint position of the light field camera array 120 of the display device 200 based on the position information of the observer's eyes, and obtain target viewpoint information. That is, the target viewpoint information represents the position information of the observer's eyes in the light field camera array 120 of the display device 200.
[0184] For example, in one example, the position information of user B's eyes is mapped to the target viewpoint information in the light field camera array 120 of the display device 200 as shown in FIG6 , that is, the target viewpoint information corresponds to the viewpoint positions of the light field cameras 121 - a , 121 - b , and 121 - c .
[0185] S540: The display device sends the target viewpoint information to the acquisition device.
[0186] The display device 200 sends the target viewpoint information to the acquisition device 100 , so that the acquisition device 100 determines one or more target light field cameras from the multiple light field cameras according to the target viewpoint information.
[0187] S550: The acquisition device 100 determines one or more target light field cameras from a plurality of light field cameras according to the target viewpoint information.
[0188] In the embodiment of the present disclosure, as shown in FIG6 , the target viewpoint information represents the position information of the observer's eyes in the light field camera array 120 , so that the acquisition device 100 can determine a preset number of target light field cameras from the light field camera array 120 based on the target viewpoint information.
[0189] It is understood that a target light field camera refers to a light field camera located near the target viewpoint information. The number of target light field cameras can be selected based on the specific scenario, but the number of target light field cameras should ensure that the viewpoint positions of the target light field cameras can cover the viewpoint positions of the target viewpoint information. Thus, for example, in the example of Figure 6, the number of target light field cameras can be set to three, and three target light field cameras can cover the viewpoints of both eyes of the user. Of course, those skilled in the art will understand that the number of target light field cameras is not limited to three and can also be other numbers, and this disclosure will not elaborate on this.
[0190] S560: The acquisition device acquires light field images through the target light field camera to obtain a light field image group.
[0191] After determining the target light field camera, the acquisition device 100 can use the target light field camera to acquire the current scene image, and obtain the light field image acquired by each target light field camera. The light field image group is a collection of light field images acquired by each target light field camera.
[0192] In some embodiments, after the target light field camera acquires the light field image, each light field image may be preprocessed. The purpose of the preprocessing is to improve the accuracy of the light field image. The preprocessing may include, for example, image calibration, distortion correction, etc.
[0193] In the disclosed embodiments, to increase the speed of light field image preprocessing and further ensure feasibility, a circuit topology with multiple processing chips can be employed. For example, in the example of FIG7 , Cam0 to Cam8 are light field cameras in light field camera array 120 . In the circuit topology, three adjacent light field cameras can be grouped together, numbered Cam0 to Cam8 . The circuit includes three processing chips: the inputs of processing chip Tx_0 are connected to Cam0, Cam3, and Cam6, respectively; the inputs of processing chip Tx_1 are connected to Cam1, Cam4, and Cam7, respectively; and the inputs of processing chip Tx_2 are connected to Cam2, Cam5, and Cam8, respectively.
[0194] Therefore, through the circuit structure shown in FIG7 , for any three adjacent target light field cameras, it can be ensured that one processing chip independently processes one image processing channel, thereby realizing parallel processing of light field image data and improving the image preprocessing speed.
[0195] S570: The acquisition device sends the light field image group to the display device.
[0196] In the embodiment of the present disclosure, the acquisition device 100 obtains a light field image group after pre-processing the light field image acquired by the target light field camera, and then sends the light field image group to the display device 200 .
[0197] From the above, it can be seen that in the embodiments of the present disclosure, based on the user's current target viewpoint information, a target light field camera is determined from the light field camera array to capture light field images, thereby filtering out light field images at redundant viewpoint positions, reducing the amount of data for viewpoint image synthesis, and improving the efficiency of light field image processing.
[0198] After receiving the light field image group sent by the acquisition device 100, the display device 200 can perform viewpoint image synthesis based on the target viewpoint information and the light field image group. As can be seen from the foregoing, in the embodiments of the present disclosure, viewpoint image synthesis is divided into foreground viewpoint image synthesis and background viewpoint image synthesis. Therefore, after the display device 200 obtains the light field image group, it is necessary to first segment the light field image into foreground and background. In some embodiments, the light field image processing method of the present disclosure includes:
[0199] Perform image segmentation on each light field image in the light field image group to obtain a foreground image and a background image corresponding to each light field image.
[0200] It can be understood that the light field image group includes the light field images captured by each target light field camera. For example, in the example of FIG. 7 , the light field image group received by the display device 200 includes three light field images.
[0201] Then, the display device 200 can perform image segmentation on each light field image. The purpose of image segmentation is to separate the foreground and background from the light field image. Taking a video communication scenario as an example, the foreground is the person in the light field image, and the background is the rest of the image except the person.
[0202] In the embodiments of the present disclosure, there is no limitation on the specific image segmentation algorithm. Those skilled in the art may use any image segmentation algorithm known in the relevant art to achieve foreground and background segmentation. However, to speed up image segmentation, in some embodiments of the present disclosure, image segmentation may be performed based on a pre-obtained background image.
[0203] It can be understood, in conjunction with the embodiment shown in FIG. 4 , that during the process of pre-generating the background disparity map by the acquisition device 100, the current scene image captured by the acquisition device 100 is a background image that does not include people. In other words, in the aforementioned S410 , the acquisition device 100 has already captured a background image at each viewpoint position using each light field camera. This background image is the preset background image described in this disclosure.
[0204] Therefore, in some embodiments, in S430, when the acquisition device 100 sends the background disparity map to the display device 200, the scene images of each viewpoint position acquired by each light field camera are simultaneously sent to the display device 200. The display device 200 receives and stores these scene images, which serve as the preset background images described in the present disclosure.
[0205] Therefore, during the image segmentation process, for a light field image at a certain viewpoint position, image differentiation can be performed on the light field image based on a preset background image corresponding to the viewpoint position obtained in advance, so that the image positions that are the same between the two are the background area, and the image positions that are different between the two are the foreground area. Based on this principle, the foreground and background segmentation of each light field image can be quickly achieved, thereby improving the image segmentation speed.
[0206] After image segmentation of each light field image through the above process, the foreground image and background image corresponding to each light field image can be obtained. Then, foreground viewpoint image synthesis and background viewpoint image synthesis are realized based on the foreground image and background image, which are explained below respectively.
[0207] As shown in FIG8 , in some embodiments, the light field image processing method of the present disclosure, the process of synthesizing a foreground viewpoint image, includes:
[0208] S810: For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, perform disparity estimation on a first foreground image corresponding to the first light field image and a second foreground image corresponding to the second light field image to obtain a first foreground disparity map corresponding to the first foreground image and a second foreground disparity map corresponding to the second foreground image.
[0209] S820 . Perform disparity mapping on the first foreground image based on the first foreground disparity map to obtain a first foreground mapping map, and perform disparity mapping on the second foreground image based on the second foreground disparity map to obtain a second foreground mapping map.
[0210] S830: Perform image fusion processing on the first foreground map and the second foreground map based on the target viewpoint information to obtain a foreground viewpoint image.
[0211] It is worth noting that in order to realize the synthesis of viewpoint images, it is first necessary to calculate the disparity map of the images of two adjacent viewpoint positions. In the embodiment of the present disclosure, two light field images at any adjacent viewpoint positions will be taken as an example to illustrate the process of synthesizing the foreground viewpoint image and the background viewpoint image of the two.
[0212] For example, in FIG7 , the light field image group includes three light field images: a first light field image I1, a second light field image I2, and a third light field image I3. The first light field image I1 and the second light field image I2 are light field images at adjacent viewpoints, while the second light field image I2 and the third light field image I3 are light field images at adjacent viewpoints. The following embodiments of the present disclosure will be described using the first light field image I1 and the second light field image I2 as examples. The second light field image I2 and the third light field image I3 can refer to the same method steps and will not be further described.
[0213] Combined with the above, it can be known that by performing image segmentation on the first light field image I1, the first foreground image I corresponding to the first light field image I1 can be obtained. fore 1 and the first background image I back 1. Similarly, by performing image segmentation on the second light field image I2, a second foreground image I corresponding to the second light field image I2 can be obtained. fore 2 and the second background image I back 2.
[0214] For foreground viewpoint image synthesis, we first need to fore 1 and the second foreground image I fore 2. Determine the disparity map, which will be explained below with reference to FIG. 9.
[0215] As shown in FIG9 , in some embodiments, the light field image processing method of the present disclosure example, the process of obtaining the first foreground disparity map and the second foreground disparity map includes:
[0216] S811 . Downsample the first foreground image based on a preset downsampling coefficient to obtain a first downsampled image, and downsample the second foreground image to obtain a second downsampled image.
[0217] It is worth noting that in the embodiments of the present disclosure, considering that the original scale of the light field image is large, if the disparity map is estimated based on the original scale, the amount of data is large. Therefore, the foreground image of the original scale can be downsampled to reduce the image size, reduce the data amount, and thus improve the computing speed.
[0218] As shown in FIG10 , first, the first foreground image I of the original image scale can be fore 1 downsamples to obtain the first downsampled image I fore 1', the second foreground image I of the original image scale is also fore 2 downsamples to obtain the second downsampled image I fore 2'.
[0219] It is worth noting that the preset downsampling coefficient refers to the image reduction ratio, which can be set according to the specific scenario. The larger the image reduction ratio, the faster the calculation speed and the higher the accuracy. The smaller the image reduction ratio, the slower the calculation speed and the higher the accuracy. Based on this rule, in an example, the preset downsampling coefficient can be selected as 1 / 4, 1 / 8, 1 / 16, etc.
[0220] S812 : Match positions of identical pixels on the first down-sampled image and the second down-sampled image to obtain a first disparity map corresponding to the first down-sampled image and a second disparity map corresponding to the second down-sampled image.
[0221] In the embodiment of the present disclosure, when the first foreground image I fore1 and the second foreground image I fore 2 After downsampling, the first downsampling image I after downsampling can be used. fore 1' and the second downsampling graph I fore 2' performs disparity estimation. The basic principle of disparity estimation is to match the positions of the same pixels on the image to determine the distance of pixel offset. That is, the pixel value on the disparity map represents the pixel offset distance.
[0222] Take the first foreground image I fore 1 as an example, the first foreground image I fore 1 corresponds to the first disparity map I forepara 1' represents the first foreground image I fore A pixel on 1 relative to the second foreground image I fore 2. The offset distance of the same pixel on the left.
[0223] Thus, the disparity estimation can be achieved through the above pixel matching process to obtain the first foreground image I fore 1 corresponds to the first disparity map I forepara 1', and the second foreground image I fore 2 The corresponding second disparity map I forepara 2'. First disparity map I forepara 1' and the second disparity map I forepara 2' may be as shown in FIG10.
[0224] S813 : Determine a first disparity search range according to the first disparity map and a preset downsampling coefficient, and determine a second disparity search range according to the second disparity map and a preset downsampling coefficient.
[0225] As can be seen from FIG10 , the first disparity map I forepara 1' and the second disparity map I forepara The image scale of 2' is the same as the downsampled image scale, so it is necessary to convert the first disparity map I forepara 1' and the second disparity map I forepara 2'Restore to the original image scale.
[0226] With the first disparity map I forepara 1 'as an example, it can be understood that since the first disparity map I forepara 1' is smaller in scale, so the first disparity map I forepara 1 ', each pixel corresponds to a range of values on the original image. In the embodiment of the present disclosure, the first disparity map I forepara1' is divided into blocks, and the disparity search range (min', max') of the corresponding pixels of each image block is determined in units of image blocks. The disparity search range (min', max') represents the pixel range of the image block corresponding to the original image size. The specific value of the disparity search range can be determined in combination with the maximum and minimum values of the image block pixel values.
[0227] Then, the disparity search range (min', max') is restored to the original image scale, that is, the minimum and maximum values of the disparity search range (min', max') are multiplied by the inverse of the preset sampling coefficient to obtain the first disparity search range (min, max). The first disparity search range (min, max) represents the disparity search range at the original image scale. Similarly, according to the above process, the second disparity image I forepara 2' is processed to obtain the second disparity search range.
[0228] S814 , performing disparity estimation on the first foreground image based on the first disparity search range to obtain a first foreground disparity map, and performing disparity estimation on the second foreground image based on the second disparity search range to obtain a second foreground disparity map.
[0229] In the embodiment of the present disclosure, the first foreground image I fore 1 as an example, after obtaining the first disparity search range (min, max) as described above, the first disparity search range represents the first foreground image I fore 1 and the second foreground image I fore 2, thereby matching the first foreground image I based on the first disparity search range. fore 1 Perform disparity estimation to obtain the first foreground image I fore 1 corresponds to the first foreground disparity map I forepara 1. Similarly, based on the second disparity search range, the second foreground image I fore 2 Perform disparity estimation to obtain the second foreground image I fore 2 The corresponding second foreground disparity map I forepara 2.
[0230] From the above, it can be seen that in the embodiments of the present disclosure, by downsampling the foreground image and then performing disparity estimation, the data volume can be effectively reduced, the image processing efficiency can be improved, and the real-time requirements of the video communication scenario can be met.
[0231] In the embodiment of the present disclosure, the first foreground image I is obtained respectively. fore 1 and the second foreground image I fore 2 The first foreground disparity map I corresponding to forepara 1 and the second foreground disparity map I forepara2. After that, the foreground image can be viewpoint synthesized according to the foreground disparity map to obtain the foreground viewpoint image at the new viewpoint position, which is explained below with reference to FIG. 10.
[0232] As shown in FIG11 , in some embodiments, the light field image processing method of the present disclosure, in which a process of obtaining a foreground viewpoint image is performed, includes:
[0233] S1110. Match each pixel on the first foreground image to a corresponding pixel position on the mapping map according to the first foreground disparity map to obtain a first foreground mapping map; match each pixel on the second foreground image to a corresponding pixel position on the mapping map according to the second foreground disparity map to obtain a second foreground mapping map.
[0234] Combined with the above, it can be seen that the disparity map is an image that reflects the pixel position offset caused by the difference in viewpoint position. Each pixel on the disparity map represents the disparity value of the pixel at that position on the original image. forepara 1 and the second foreground disparity map I forepara 2 as an example, ignoring the calculation error, the first foreground image I fore 1 plus the first foreground disparity map I forepara The disparity value on 1 is the second foreground image I fore 2, similarly, the pixel coordinates of the second foreground image I fore 2 plus the second foreground disparity map I forepara The disparity value on 2 is the first foreground image I fore Pixel coordinates on 1.
[0235] Therefore, after obtaining the first foreground disparity map I forepara 1 and the second foreground disparity map I forepara 2, then the first foreground disparity map I forepara 1 and the second foreground disparity map I forepara 2 pairs of first foreground images I fore 1 and the second foreground image I fore 2 performs pixel offset processing, which is a pixel coordinate mapping process. fore 1 After the mapping process, the first foreground mapping image I can be obtained foremap 1. For the second foreground image I fore 2 After the mapping process, the first foreground mapping image I can be obtained foremap 2.
[0236] Taking the first foreground map I foremap 1 as an example, the first foreground disparity map I forepara 1, for the first foreground image I fore1 is offset to obtain the first foreground map I foremap 1 on the pixel position, complete from the first foreground image I fore 1 to the first foreground map I foremap 1 pixel offset processing to obtain the first foreground map I foremap 1. Similarly, the same process is used according to the second foreground disparity map I forepara 2 pairs of second foreground images I fore 2. Mapping processing is performed to obtain the corresponding second foreground mapping image I. foremap 2.
[0237] It is worth noting that, when the first foreground image I fore 1 and the second foreground image I fore 2 Before the mapping process is performed, the first foreground disparity map I forepara 1 and the second foreground disparity map I forepara 2. Perform consistency check. The purpose of consistency check is to check the first foreground disparity map I forepara 1 and the second foreground disparity map I forepara 2 is corrected to improve the accuracy of the disparity map. For the consistency check process, those skilled in the art can refer to the relevant technology, and this disclosure will not elaborate on it.
[0238] S1120 : Determine a first weight and a second weight according to the target viewpoint information and position information of any two adjacent target light field cameras.
[0239] S1130 : Perform image fusion processing on the first foreground map and the second foreground map based on the first weight and the second weight to obtain a foreground viewpoint image.
[0240] As can be seen from the above, the target viewpoint information refers to the current new viewpoint position of the user, and the first foreground mapping image I needs to be mapped with the target viewpoint information. foremap 1 and the second foreground map I foremap 2. Perform viewpoint image synthesis to obtain a foreground viewpoint image at the user's new viewpoint position.
[0241] In the first foreground map I foremap 1 and the second foreground map I foremap 2 When performing viewpoint image synthesis, it is first necessary to determine the first foreground map I foremap 1 and the second foreground map I foremap 2, which represents the first foreground map I foremap 1 and the second foreground map I foremap The fusion coefficient is 2.
[0242] It can be understood that the first foreground map Iforemap 1 corresponds to the viewpoint position of a target light field camera, and the second foreground map I foremap 2 corresponds to the viewpoint position of another target light field camera, and the viewpoint position corresponding to the target viewpoint information may appear at any position between the two. The new viewpoint position is different from the viewpoint position of the target light field camera, and the corresponding weight value should also be different.
[0243] Based on this principle, in the embodiment of the present disclosure, the fusion coefficients for the left and right foreground maps, i.e., the first weight and the second weight, can be determined based on the target viewpoint information and the position information of the left and right target light field cameras. foremap 1 is closer, then the first foreground map I foremap 1 corresponds to a larger first weight w1; on the contrary, if the target viewpoint information is farther from the second foreground map I foremap 2 is closer, the second foreground map I foremap 2 corresponds to a larger second weight w2. Based on this, those skilled in the art can determine the specific values of the first weight w1 and the second weight w2 in combination with the target viewpoint information, and the present disclosure does not limit this.
[0244] After the first weight w1 and the second weight w2 are determined according to the target viewpoint information, the first foreground mapping image I can be mapped according to the first weight w1 and the second weight w2. foremap 1 and the second foreground map I foremap 2. Fusion processing is performed. The fusion processing process can be expressed as: P = w1 * I foremap 1+w2*I foremap twenty one)
[0245] In formula (1), P represents the foreground viewpoint image obtained after fusion processing. Through the above process, the first foreground image I fore 1 and the second foreground image I fore 2. Combine the target viewpoint information to perform viewpoint image synthesis and obtain the foreground viewpoint image P corresponding to the new viewpoint position.
[0246] As shown in FIG12 , in some embodiments, the light field image processing method of the present disclosure, the process of synthesizing a background viewpoint image, includes:
[0247] S1210. For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, perform disparity mapping on a first background image of the first light field image based on a pre-generated first background disparity map at the same viewpoint as the first light field image to obtain a first background map; and perform disparity mapping on a second background image of the second light field image based on a pre-generated second background disparity map at the same viewpoint as the second light field image to obtain a second background map.
[0248] S1220 : Perform image fusion processing on the first background map and the second background map based on the target viewpoint information to obtain a background viewpoint image.
[0249] For the synthesis of background viewpoint images, the first light field image I1 and the second light field image I2 at adjacent viewpoint positions in the light field image group are still taken as an example. The first background image I1 of the first light field image I1 is obtained by image segmentation. back 1, and the second background image I of the second light field image I2 back 2.
[0250] In the first background image I back 1 and the second background image I back 2 When synthesizing background viewpoint images, there is no need to calculate the foreground disparity map as in the foreground viewpoint image synthesis process. This is because the background disparity map for each viewpoint position has been pre-generated in the offline stage through the aforementioned embodiment of FIG4, thus eliminating the need for online calculation.
[0251] Therefore, for background viewpoint image synthesis, firstly, the first background image I back 1, and determining the first background disparity map I with the same viewpoint position from the background disparity map backpara 1. Similarly, according to the second background image I back 2, and determining a second background disparity map I with the same viewpoint position from the background disparity map backpara 2.
[0252] After the background disparity map is determined, the first background image I can be imaged in combination with the new viewpoint position of the target viewpoint information. back 1 and the second background image I back 2. Perform background viewpoint image synthesis. The process is the same as the principle of foreground viewpoint image synthesis mentioned above, and is only briefly described below.
[0253] First, according to the first background disparity map I backpara 1, for the first background image I back 1 is subjected to an offset process, and the offset process is a mapping process for pixel coordinates, thereby obtaining the first background mapping image I. backmap1 pixel position, complete from the first background image I back 1 to the first background map I backmap 1 pixel offset processing to obtain the first background map I backmap 1. Similarly, the same process is used according to the second background disparity map I backpara 2 pairs of second background images I back 2. Mapping is performed to obtain the corresponding second background mapping image I. backmap 2.
[0254] It is worth noting that, when the first background image I back 1 and the second background image I back 2 Before the mapping process is performed, the first background disparity map I backpara 1 and the second background disparity map I backpara 2. Perform consistency check. The purpose of consistency check is to check the first background disparity map I backpara 1 and the second background disparity map I backpara 2 is corrected to improve the accuracy of the disparity map. For the consistency check process, those skilled in the art can refer to the relevant technology, and this disclosure will not elaborate on it.
[0255] Then, the fusion coefficient for the left and right background maps can be determined based on the target viewpoint information and the position information of the left and right target light field cameras. The fusion coefficient is the first weight w1 and the second weight w2 mentioned above, which will not be described in detail. backmap 1 and the second background map I backmap 2. Fusion processing is performed. The fusion processing process can be expressed as: Q = w1 * I backmap 1+w2*I backmap twenty two)
[0256] In formula (2), Q represents the background viewpoint image obtained after the fusion process. back 1 and the second background image I back 2. Combine the target viewpoint information to perform viewpoint image synthesis and obtain the background viewpoint image Q corresponding to the new viewpoint position.
[0257] Through the above process, a foreground viewpoint image P and a background viewpoint image Q are obtained. These foreground viewpoint image P and background viewpoint image Q are then fused, for example by overlaying the background viewpoint image Q onto the foreground viewpoint image P, to obtain the target light field image corresponding to the new viewpoint position. The above description only uses the viewpoint image synthesis between the first light field image I1 and the second light field image I2. The viewpoint image synthesis process between any other two adjacent light field images is similar, and the same process can be applied sequentially to obtain the target light field image for each viewpoint position included in the user's target viewpoint information. This disclosure will not further elaborate on this process.
[0258] After obtaining one or more target light field images, the target light field images can be rendered and displayed on the display screen 110 of the display device 200. The process of image rendering and display can be understood by referring to relevant technologies in this field and will not be described in detail in this disclosure.
[0259] As can be seen from the above, in the disclosed embodiments, a disparity map of the background image is pre-generated by segmenting the foreground and background, eliminating the need for real-time calculation of disparity maps for complex backgrounds. This significantly reduces the amount of data required for viewpoint image synthesis, improves image processing speed and accuracy, and enables real-time light field video communication. Furthermore, during the calculation of the foreground disparity map, disparity estimation is performed based on a downsampled small image, further reducing the amount of computation and increasing data processing speed. Furthermore, by selecting a target light field camera from the light field camera array based on target viewpoint information, a large amount of redundant data collection, transmission, and processing operations are eliminated, further improving image processing speed and enabling low-latency video communication.
[0260] In some embodiments, the present disclosure provides a light field image processing device, which can be applied to a display device 200. Referring to FIG13 , the light field image processing device of the present disclosure example includes:
[0261] An acquisition module 10 is configured to acquire target viewpoint information and a light field image group sent by an acquisition device; the target viewpoint information represents the position information of the observer's eyes of the display device, and the light field image group includes the light field image captured by each target light field camera in the acquisition device;
[0262] The foreground fusion module 20 is configured to perform viewpoint fusion on the foreground images in each light field image based on the target viewpoint information to obtain a foreground viewpoint image corresponding to the target viewpoint information;
[0263] The background fusion module 30 is configured to perform viewpoint fusion on the background images in each light field image based on the target viewpoint information and the pre-generated background disparity map for each viewpoint position to obtain a background viewpoint image corresponding to the target viewpoint information; the viewpoint position represents the position corresponding to each target light field camera;
[0264] The image synthesis module 40 is configured to generate a target light field image according to the foreground viewpoint image and the background viewpoint image.
[0265] In some embodiments, the foreground fusion module 20 is configured to:
[0266] Performing image segmentation on each light field image in the light field image group to obtain a foreground image corresponding to each light field image;
[0267] For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, performing disparity estimation on a first foreground image corresponding to the first light field image and a second foreground image corresponding to the second light field image to obtain a first foreground disparity map corresponding to the first foreground image and a second foreground disparity map corresponding to the second foreground image;
[0268] Performing disparity mapping on the first foreground image based on the first foreground disparity map to obtain a first foreground mapping map, and performing disparity mapping on the second foreground image based on the second foreground disparity map to obtain a second foreground mapping map;
[0269] An image fusion process is performed on the first foreground map and the second foreground map based on the target viewpoint information to obtain a foreground viewpoint image.
[0270] In some embodiments, the foreground fusion module 20 is configured to:
[0271] For each light field image in the light field image group, image difference is performed on the light field image based on a pre-generated preset background image at the same viewpoint position as the light field image to obtain a foreground image and a background image corresponding to the light field image.
[0272] In some embodiments, the foreground fusion module 20 is configured to:
[0273] Downsampling the first foreground image based on a preset downsampling coefficient to obtain a first downsampling image, and downsampling the second foreground image to obtain a second downsampling image;
[0274] Matching positions of identical pixels on the first down-sampled image and the second down-sampled image to obtain a first disparity map corresponding to the first down-sampled image and a second disparity map corresponding to the second down-sampled image;
[0275] Determine a first disparity search range according to the first disparity map and a preset downsampling coefficient, and determine a second disparity search range according to the second disparity map and a preset downsampling coefficient;
[0276] Disparity estimation is performed on the first foreground image based on the first disparity search range to obtain a first foreground disparity map, and disparity estimation is performed on the second foreground image based on the second disparity search range to obtain a second foreground disparity map.
[0277] In some embodiments, the foreground fusion module 20 is configured to:
[0278] Matching each pixel on the first foreground image to a corresponding pixel position on the mapping map according to the first foreground disparity map to obtain a first foreground mapping map; matching each pixel on the second foreground image to a corresponding pixel position on the mapping map according to the second foreground disparity map to obtain a second foreground mapping map;
[0279] Determining a first weight and a second weight according to target viewpoint information and position information of any two adjacent target light field cameras;
[0280] Based on the first weight and the second weight, image fusion processing is performed on the first foreground map and the second foreground map to obtain a foreground viewpoint image.
[0281] In some embodiments, the background fusion module 30 is configured to:
[0282] Performing image segmentation on each light field image in the light field image group to obtain a background image corresponding to each light field image;
[0283] For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, performing disparity mapping on a first background image of the first light field image based on a pre-generated first background disparity map at the same viewpoint as the first light field image to obtain a first background map; and performing disparity mapping on a second background image of the second light field image based on a pre-generated second background disparity map at the same viewpoint as the second light field image to obtain a second background map;
[0284] The first background map and the second background map are subjected to image fusion processing based on the target viewpoint information to obtain a background viewpoint image.
[0285] In some embodiments, the acquisition module 10 is configured to:
[0286] Capturing scene images through an image acquisition device provided on a display device;
[0287] Performing image detection based on the scene image to obtain the position information of the observer's eyes in the scene image;
[0288] Target viewpoint information is generated based on the position information.
[0289] In some embodiments, the acquisition module 10 is configured to:
[0290] Sending the target viewpoint information to an acquisition device, so that the acquisition device determines one or more target light field cameras from a plurality of light field cameras according to the target viewpoint information;
[0291] Receive the light field image group sent by the acquisition device.
[0292] In some embodiments, the acquisition module 10 is configured to:
[0293] Receive and store the background disparity map of each viewpoint position sent by the acquisition device.
[0294] As can be seen from the above, in the disclosed embodiments, a disparity map of the background image is pre-generated by segmenting the foreground and background, eliminating the need for real-time calculation of disparity maps for complex backgrounds. This significantly reduces the amount of data required for viewpoint image synthesis, improves image processing speed and accuracy, and enables real-time light field video communication. Furthermore, during the calculation of the foreground disparity map, disparity estimation is performed based on a downsampled small image, further reducing the amount of computation and increasing data processing speed. Furthermore, by selecting a target light field camera from the light field camera array based on target viewpoint information, a large amount of redundant data collection, transmission, and processing operations are eliminated, further improving image processing speed and enabling low-latency video communication.
[0295] In some embodiments, the present disclosure provides a light field image processing device, which can be applied to the acquisition device 100. Referring to FIG14 , the light field image processing device of the present disclosure example includes:
[0296] The image acquisition module 50 is configured to respectively acquire the current scene image through multiple light field cameras provided on the acquisition device, and obtain the scene image at the viewpoint position corresponding to each light field camera;
[0297] The disparity determination module 60 is configured to generate, for any two adjacent light field cameras, a background disparity map of the viewpoint position of each light field camera based on scene images respectively captured by the two light field cameras;
[0298] The sending module 70 is configured to send the background disparity map of each viewpoint position to the display device, so that the display device stores the background disparity map of each viewpoint position.
[0299] In some embodiments, the sending module 70 is configured to:
[0300] Receiving target viewpoint information sent by the display device;
[0301] Determining one or more target light field cameras from a plurality of light field cameras included in the acquisition device according to the target viewpoint information;
[0302] The target light field camera collects light field images to obtain a light field image group, and sends the light field image group to a display device.
[0303] As can be seen from the above, in the disclosed embodiments, a disparity map of the background image is pre-generated by segmenting the foreground and background, eliminating the need for real-time calculation of disparity maps for complex backgrounds. This significantly reduces the amount of data required for viewpoint image synthesis, improves image processing speed and accuracy, and enables real-time light field video communication. Furthermore, during the calculation of the foreground disparity map, disparity estimation is performed based on a downsampled small image, further reducing the amount of computation and increasing data processing speed. Furthermore, by selecting a target light field camera from the light field camera array based on target viewpoint information, a large amount of redundant data collection, transmission, and processing operations are eliminated, further improving image processing speed and enabling low-latency video communication.
[0304] In some embodiments, the present disclosure provides a video communication system, which may be as shown in FIG1 , and includes:
[0305] A display device 200 includes an image acquisition device and a first controller, wherein the first controller is configured to execute the method of any of the above embodiments;
[0306] An acquisition device 100 includes a light field camera array and a second controller, wherein the light field camera array includes a plurality of light field cameras, and the second controller is configured to execute the method of any of the above embodiments;
[0307] In some embodiments, the present disclosure provides a storage medium storing computer instructions, where the computer instructions are used to cause a computer to execute the method of any of the above embodiments.
[0308] In some embodiments, the present disclosure provides an electronic device comprising:
[0309] processor; and
[0310] The memory stores computer instructions, where the computer instructions are used to enable the processor to execute the method of any of the above embodiments.
[0311] In the embodiments of the present disclosure, the electronic device can be either the acquisition device 100 or the display device 200, and this disclosure does not limit this. Specifically, FIG15 shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the method of the present disclosure. The electronic device shown in FIG15 can implement the corresponding functions of the processor, controller, and storage medium described above.
[0312] As shown in Figure 15, electronic device 600 includes a processor 601, which can perform various appropriate actions and processes according to the program stored in memory 602 or the program loaded into memory 602 from storage portion 608. Various programs and data required for the operation of electronic device 600 are also stored in memory 602. Processor 601 and memory 602 are connected to each other via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0313] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, and the like; an output section 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN card or a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 610 as needed, so that computer programs read therefrom can be installed into the storage section 608 as needed.
[0314] In particular, according to embodiments of the present disclosure, the above method process can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for executing the above method. In such embodiments, the computer program can be downloaded and installed from a network via the communication portion 609 and / or installed from a removable medium 611.
[0315] The flowcharts 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 flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of 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 than that 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 and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0316] Obviously, the above embodiments are merely examples for clarity of explanation and are not intended to limit the embodiments. Those skilled in the art will appreciate that other variations or modifications can be made based on the above description. It is not necessary and impossible to enumerate all embodiments here. Obvious variations or modifications arising therefrom remain within the scope of protection of the present disclosure.
Claims
1. A light field image processing method, characterized in that: Applied to a display device, the method comprises: Acquire target viewpoint information and a light field image group sent by a capture device; the target viewpoint information represents position information of an observer's eye of the display device, and the light field image group includes a light field image captured by each target light field camera in the capture device; Based on the target viewpoint information, viewpoint fusion is performed on the foreground images in each light field image to obtain a foreground viewpoint image corresponding to the target viewpoint information; Based on the target viewpoint information and the pre-generated background disparity map of each viewpoint position, viewpoint fusion is performed on the background images in each light field image to obtain the background viewpoint image corresponding to the target viewpoint information; the viewpoint position represents the position corresponding to each target light field camera; A target light field image is generated according to the foreground viewpoint image and the background viewpoint image.
2. The method according to claim 1, characterized in that The step of performing viewpoint fusion on the foreground images in each light field image based on the target viewpoint information to obtain the foreground viewpoint image corresponding to the target viewpoint information includes: Performing image segmentation on each light field image in the light field image group to obtain a foreground image corresponding to each light field image; For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, performing disparity estimation on a first foreground image corresponding to the first light field image and a second foreground image corresponding to the second light field image to obtain a first foreground disparity map corresponding to the first foreground image and a second foreground disparity map corresponding to the second foreground image; Performing disparity mapping on the first foreground image based on the first foreground disparity map to obtain a first foreground mapping map, and performing disparity mapping on the second foreground image based on the second foreground disparity map to obtain a second foreground mapping map; The first foreground map and the second foreground map are subjected to image fusion processing based on the target viewpoint information to obtain the foreground viewpoint image.
3. The method according to claim 2, characterized in that The performing image segmentation on each light field image in the light field image group to obtain a foreground image corresponding to each light field image includes: For each light field image in the light field image group, image difference is performed on the light field image based on a pre-generated preset background image at the same viewpoint position as the light field image to obtain a foreground image and a background image corresponding to the light field image.
4. The method according to claim 2, characterized in that: The performing disparity estimation on a first foreground image corresponding to the first light field image and a second foreground image corresponding to the second light field image to obtain a first foreground disparity map corresponding to the first foreground image and a second foreground disparity map corresponding to the second foreground image includes: Downsampling the first foreground image based on a preset downsampling coefficient to obtain a first downsampling image, and downsampling the second foreground image to obtain a second downsampling image; Matching positions of identical pixels on the first down-sampled image and the second down-sampled image to obtain a first disparity image corresponding to the first down-sampled image and a second disparity image corresponding to the second down-sampled image; Determine a first disparity search range according to the first disparity map and the preset downsampling coefficient, and determine a second disparity search range according to the second disparity map and the preset downsampling coefficient; The first foreground disparity map is obtained by performing disparity estimation on the first foreground image based on the first disparity search range, and the second foreground disparity map is obtained by performing disparity estimation on the second foreground image based on the second disparity search range.
5. The method according to claim 2, characterized in that: The method of performing disparity mapping on the first foreground image based on the first foreground disparity map to obtain a first foreground mapping map, and performing disparity mapping on the second foreground image based on the second foreground disparity map to obtain a second foreground mapping map includes: Matching each pixel on the first foreground image to a corresponding pixel position on a mapping map according to the first foreground disparity map to obtain the first foreground mapping map; matching each pixel on the second foreground image to a corresponding pixel position on a mapping map according to the second foreground disparity map to obtain the second foreground mapping map; The performing image fusion processing on the first foreground map and the second foreground map based on the target viewpoint information to obtain the foreground viewpoint image includes: Determining a first weight and a second weight according to the target viewpoint information and position information of any two adjacent target light field cameras; Based on the first weight and the second weight, image fusion processing is performed on the first foreground map and the second foreground map to obtain the foreground viewpoint image.
6. The method according to claim 1, characterized in that The method further comprises performing viewpoint fusion on the background images in each light field image based on the target viewpoint information and the pre-generated background disparity map of each viewpoint position to obtain the background viewpoint image corresponding to the target viewpoint information; The viewpoint position represents a position corresponding to each target light field camera, including: Performing image segmentation on each light field image in the light field image group to obtain a background image corresponding to each light field image; For a first light field image and a second light field image corresponding to any two adjacent target light field cameras, based on a pre-generated first background disparity map at the same viewpoint as the first light field image, performing disparity mapping on a first background image of the first light field image to obtain a first background map, and based on a pre-generated second background disparity map at the same viewpoint as the second light field image, performing disparity mapping on a second background image of the second light field image to obtain a second background map; The first background map and the second background map are subjected to image fusion processing based on the target viewpoint information to obtain the background viewpoint image.
7. The method according to claim 1, characterized in that The obtaining of target viewpoint information includes: Capturing scene images by an image acquisition device disposed on the display device; Performing image detection according to the scene image to obtain position information of the observer's eyes in the scene image; The target viewpoint information is generated based on the position information.
8. The method according to claim 1, characterized in that The process of obtaining a light field image group sent by a collection device includes: Sending the target viewpoint information to the acquisition device, so that the acquisition device determines one or more target light field cameras from a plurality of light field cameras according to the target viewpoint information; The light field image group sent by the acquisition device is received.
9. The method according to claim 1, characterized in that: Also includes: The background disparity map of each viewpoint position sent by the acquisition device is received and stored.
10. A light field image processing method, characterized in that: Applied to a collection device, the method comprises: The current scene image is respectively acquired by using a plurality of light field cameras provided on the acquisition device to obtain a scene image at a viewpoint position corresponding to each light field camera; For any two adjacent light field cameras, a background disparity map of the viewpoint position of each light field camera is generated according to the scene images respectively captured by the two light field cameras; The background disparity map of each viewpoint position is sent to a display device, so that the display device stores the background disparity map of each viewpoint position.
11. The method according to claim 10, characterized in that Also includes: Receiving target viewpoint information sent by the display device; Determine one or more target light field cameras from a plurality of light field cameras included in the acquisition device according to the target viewpoint information; The target light field camera collects light field images to obtain a light field image group, and sends the light field image group to the display device.
12. A light field image processing device, characterized in that: Applied to a display device, the device comprises: an acquisition module, configured to acquire target viewpoint information and a light field image group sent by an acquisition device; the target viewpoint information represents position information of an observer's eye of the display device, and the light field image group includes a light field image acquired by each target light field camera in the acquisition device; a foreground fusion module configured to perform viewpoint fusion on the foreground images in each light field image based on the target viewpoint information to obtain a foreground viewpoint image corresponding to the target viewpoint information; A background fusion module is configured to perform viewpoint fusion on the background images in each light field image based on the target viewpoint information and the pre-generated background disparity map of each viewpoint position to obtain the background viewpoint image corresponding to the target viewpoint information; the viewpoint position represents the position corresponding to each target light field camera; The image synthesis module is configured to generate a target light field image according to the foreground viewpoint image and the background viewpoint image.
13. A light field image processing device, characterized in that: Applied to a collection device, the device comprises: An image acquisition module is configured to respectively acquire current scene images through a plurality of light field cameras disposed on the acquisition device to obtain a scene image at a viewpoint position corresponding to each light field camera; A disparity determination module is configured to generate, for any two adjacent light field cameras, a background disparity map of the viewpoint position of each light field camera according to scene images respectively captured by the two light field cameras; The sending module is configured to send the background disparity map of each viewpoint position to the display device, so that the display device stores the background disparity map of each viewpoint position.
14. An electronic device, characterized in that: include: processor; and A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method according to any one of claims 1 to 9, or to execute the method according to any one of claims 10 to 11.
15. A video communication system, characterized in that: include: A display device, comprising an image acquisition device and a first controller, wherein the first controller is used to execute the method according to any one of claims 1 to 9; A collection device comprises a light field camera array and a second controller, wherein the light field camera array comprises a plurality of light field cameras, and the second controller is used to execute the method according to any one of claims 10 to 11.
16. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 9, or execute the method according to any one of claims 10 to 11.
Citation Information
Patent Citations
Stereoscopic vision based acquisition method of congestion degree of bus passenger flow
CN101714293A
Fast anaglyph calculating method and device
CN104537668A
Virtual viewpoint synthesis method based on image local segmentation
CN107071383A
Naked eye 3D image acquisition and generation method
CN111064945A
Light field image processing method and device
CN116402878A
