Reflection image restoration method and device
By determining the transmission pixels from historical image frames and updating the reflection pixels, the problems of high cost and low quality of reflection image repair in the existing technology are solved, and image repair effects with high accuracy and clear details are achieved.
Patent Information
- Application Number
- CN202410698192.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-30
AI Technical Summary
Existing technologies are costly and of low quality in reflection image repair, and cannot accurately restore image texture, resulting in inaccurate repair results and blurred details.
By determining the transmission pixels corresponding to the reflection pixels from historical image frames, and updating the reflection pixels based on the transmission pixels, the current image frame is repaired, avoiding large amounts of data model training, and achieving pixel-level repair.
It reduces the cost of reflection image repair, improves the quality of repair, and ensures the restoration of image texture and clarity of details.
Smart Images

Figure CN118570104A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method and device for restoring a reflection image. Background Art
[0002] When the camera shoots the scene in front of the glass from behind the glass, the scene behind the glass will be reflected on the glass, so that the scene in front of the glass is blocked by the reflected image, resulting in the camera obtaining a reflected image containing reflected content, which makes the quality of subsequent image recognition and processing low. When the prior art repairs the reflected content in the reflected image, it generally uses a segmentation algorithm to determine the edge of the reflected content in the reflected image, thereby segmenting the reflected content, and then repairing the reflected content through a repair algorithm. However, the segmentation algorithm requires a large amount of data for model training, which is costly and has low accuracy, resulting in inaccurate repair results. The repair algorithm not only fails to restore the texture of the image, but also blurs the image details, resulting in low quality of the repaired image. Therefore, how to reduce the cost of reflected image repair and improve the quality of reflected image repair has become a further problem that needs to be solved. Summary of the invention
[0003] The present application proposes a method and device for restoring a reflected image, so as to solve the problem of high cost and low quality of restoring a reflected image, reduce the cost of restoring a reflected image, and improve the quality of restoring a reflected image.
[0004] In a first aspect, an embodiment of the present application provides a reflection image restoration method, the method comprising:
[0005] Determine one or more transmission pixel points corresponding to each reflection pixel point of the current image frame according to at least one historical image frame, wherein a single reflection pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving both the reflection light and the transmission light at the same time, and a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving only the transmission light at the single image frame, wherein the reflection light refers to the light emitted from the first entity position after being acted upon by the target medium with a reflection effect, and the transmission light refers to the light emitted from the second entity position after being acted upon by the target medium with a transmission effect, and the single image frame is any one of the at least one historical image frame and the current image frame;
[0006] Each of the reflection pixel points is updated according to the one or more transmission pixel points to obtain the restored current image frame.
[0007] In a second aspect, an embodiment of the present application provides a reflection image restoration device, the device comprising:
[0008] A first processing unit is used to determine one or more transmission pixel points corresponding to each reflection pixel point of the current image frame according to at least one historical image frame, wherein a single reflection pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving both the reflection light and the transmission light at the same time, and a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving only the transmission light at the single image frame, wherein the reflection light refers to the light emitted from the first entity position after being acted upon by the target medium with a reflection effect, and the transmission light refers to the light emitted from the second entity position after being acted upon by the target medium with a transmission effect, and the single image frame is any one of the at least one historical image frame and the current image frame;
[0009] The second processing unit is used to update each of the reflection pixel points according to the one or more transmission pixel points to obtain the restored current image frame.
[0010] In a third aspect, an embodiment of the present application provides a server, comprising a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the method described in any one of the first aspects.
[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program / instruction stored thereon, wherein the computer program / instruction, when executed by a processor, implements the steps of the method described in any one of the first aspects.
[0012] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements part or all of the steps of the method described in any one of the first aspects of the embodiments of the present application.
[0013] It can be seen that in the present application, the server determines one or more transmission pixels corresponding to each reflection pixel of the current image frame according to at least one historical image frame, a single reflection pixel refers to a single pixel in a single image frame that is stimulated by the camera receiving both the reflection light and the transmission light, a single transmission pixel refers to a single pixel in a single image frame that is stimulated by the camera receiving only the transmission light, the reflection light refers to the light after the emission light at the first entity position is acted upon by the target medium with the reflection effect, the transmission light refers to the light after the emission light at the second entity position is acted upon by the target medium with the transmission effect, and the single image frame is any one of at least one historical image frame and the current image frame; each reflection pixel is updated according to one or more transmission pixels to obtain the repaired current image frame. Since the transmission pixel stimulated by the transmission light emitted from the entity position blocked by the reflection pixel in the current image frame is determined from the historical image frame, and then the corresponding reflection pixel is updated according to the transmission pixel, the entire current image frame is repaired, without the need for a large amount of data for model training, the cost is low, and the pixel-level repair is performed, which is not only highly accurate, but also capable of restoring the image texture without blurring the image details, thereby improving the quality of the reflection image repair. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0015] Figure 1 is a structural schematic diagram of a reflective image restoration system provided in an embodiment of the present application;
[0016] Figure 2 It is a structural schematic diagram of a server in a reflective image repair system provided in an embodiment of the present application;
[0017] Figure 3 is a structural schematic diagram of a server in another reflective image restoration system provided in an embodiment of the present application;
[0018] Figure 4 It is a flow chart of a reflection image repair method provided in an embodiment of the present application;
[0019] Figure 5 is a scene schematic diagram of a reflection image restoration method provided in an embodiment of the present application;
[0020] Figure 6is a scene schematic diagram of another reflection image restoration method provided in an embodiment of the present application;
[0021] Figure 7 is a scene schematic diagram of another reflection image restoration method provided in an embodiment of the present application;
[0022] Figure 8 It is a block diagram of the functional units of a reflection image restoration device provided in an embodiment of the present application;
[0023] Fig. 9 It is a block diagram of the functional units of another reflective image restoration device provided in an embodiment of the present application;
[0024] Fig.10 It is a structural block diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] In the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent the following three situations: A exists alone; A and B exist at the same time; B exists alone. Among them, A and B can be singular or plural.
[0029] In the embodiment of the present application, the symbol " / " can indicate that the objects associated with each other are in an "or" relationship. In addition, the symbol " / " can also indicate a division sign, that is, performing a division operation. For example, A / B can indicate A divided by B.
[0030] In the embodiments of the present application, "at least one item" or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more. For example, at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.
[0031] In the embodiments of the present application, "equal to" can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than. When equal to is used in conjunction with greater than, it is not used in conjunction with less than; when equal to is used in conjunction with less than, it is not used in conjunction with greater than.
[0032] In order to better understand the solutions of the embodiments of the present application, the terminal devices, related concepts and backgrounds that may be involved in the embodiments of the present application are first introduced below.
[0033] (1) Imaging: When light shines on an object, the object reflects some of the light into the camera, which then focuses it onto the photosensitive element to form an image.
[0034] (2) RGB value: The RGB value of a photo refers to the brightness of the three colors red, green, and blue. In digital images, these three color components are represented by integers between 0 and 255, where 0 represents no contribution of the color component and 255 represents full saturation of the color component.
[0035] At present, when repairing the reflected content in the reflected image, the edge of the reflected content in the reflected image is generally determined by a segmentation algorithm, so as to segment the reflected content, and then the reflected content is repaired by a repair algorithm. However, the segmentation algorithm requires a large amount of data for model training, which is costly and has low accuracy, resulting in inaccurate repair results. The repair algorithm not only fails to restore the texture of the image, but also blurs the image details, resulting in low quality of the repaired image.
[0036] To solve the above problems, an embodiment of the present application provides a method and device for repairing a reflected image. The method determines from historical image frames the transmission pixel points that are stimulated by the transmitted light emitted from the entity position blocked by the reflection pixel points in the current image frame, and then updates the corresponding reflection pixel points according to the transmission pixel points, thereby repairing the entire current image frame. This method does not require a large amount of data for model training, has low cost, and performs pixel-level repair, which is not only highly accurate, but also can restore the image texture without blurring the image details, thereby improving the quality of reflection image repair.
[0037] See also Figure 1 , Figure 1 Schematic diagram of a reflective image restoration system provided in an embodiment of the present application. Figure 1 As shown, the reflection image restoration system 100 includes a camera 110, a server 120 and a terminal device 130. The camera 110 is connected to the server 120 for communication, and the terminal device 130 is connected to the server 120 for communication. The camera 110 may be one or more cameras, the terminal device 130 may be a mobile phone terminal, a tablet computer or a laptop computer, etc., and the server 120 may be a server, or a server cluster composed of several servers, or a cloud computing service center, etc.
[0038] In daily use of the reflection image restoration system 100, the server 120 determines one or more transmission pixel points corresponding to each reflection pixel point of the current image frame based on at least one historical image frame. A single reflection pixel point refers to a single pixel point in a single image frame that is stimulated by the camera receiving both the reflected light and the transmitted light, and a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated by the camera receiving only the transmitted light. The reflection light refers to the light emitted from the first entity position after being acted upon by the target medium with a reflection effect, and the transmission light refers to the light emitted from the second entity position after being acted upon by the target medium with a transmission effect. A single image frame is any one of the at least one historical image frame and the current image frame; each reflection pixel point is updated according to one or more transmission pixel points to obtain the restored current image frame.
[0039] See also Figure 2 , Figure 2 Schematic diagram of the structure of a server in a reflection image repair system provided by an embodiment of the present application. Figure 2 As shown, the server 120 includes an image frame acquisition module 210 and a reflection image repair module 220. The image frame acquisition module 210 is communicatively connected to the reflection image repair module 220. The server 120 is communicatively connected to the camera through the image frame acquisition module 210. The server 120 is communicatively connected to the terminal device through the reflection image repair module 220.
[0040] The image frame acquisition module 210 is used to acquire and store image frames taken by a camera and provide at least one historical image frame and a current image frame to the reflection image restoration module 220 .
[0041] The reflection image repair module 220 is used to determine one or more transmission pixel points corresponding to each reflection pixel point of the current image frame based on at least one historical image frame. A single reflection pixel point refers to a single pixel point in a single image frame that is stimulated by the camera receiving both the reflected light and the transmitted light, and a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated by the camera receiving only the transmitted light. The reflection light refers to the light emitted from the first entity position after being acted upon by the target medium with a reflection effect, and the transmitted light refers to the light emitted from the second entity position after being acted upon by the target medium with a transmission effect. The single image frame is any one of the at least one historical image frame and the current image frame; each reflection pixel point is updated according to the one or more transmission pixel points to obtain the repaired current image frame.
[0042] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram of the structure of another server in a reflection image restoration system provided in an embodiment of the present application. Figure 3 As shown, the server 120 includes a processor 310 and a memory 320, and the processor 310 is in communication with the memory 320. One or more programs are stored in the memory 320, and the one or more programs are configured to be executed by the processor 310. The function of the one or more programs is to determine one or more transmission pixel points corresponding to each reflection pixel point of the current image frame according to at least one historical image frame, a single reflection pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving both the reflection light and the transmission light at the same time, a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving only the transmission light, the reflection light refers to the light after the emission light at the first entity position is acted on by the target medium with a reflection effect, the transmission light refers to the light after the emission light at the second entity position is acted on by the target medium with a transmission effect, the single image frame is any one of the at least one historical image frame and the current image frame; each reflection pixel point is updated according to the one or more transmission pixel points to obtain the repaired current image frame.
[0043] A reflection image repair method provided by an embodiment of the present application is introduced below.
[0044] See also Figure 4 , Figure 4is a flow chart of a reflection image repair method provided by an embodiment of the present application, which is applied to Figure 1 The server 120 in the reflection image restoration system 100 shown in the figure comprises a camera 110, a server 120 and a terminal device 130. The camera 110 is connected to the server 120 for communication, and the terminal device 130 is connected to the server 120 for communication; as shown in the figure, the method comprises the following steps:
[0045] Step S401: determining one or more transmission pixel points corresponding to each reflection pixel point of a current image frame according to at least one historical image frame.
[0046] Among them, a single reflection pixel point refers to a single pixel point in a single image frame that is stimulated by the camera receiving both reflected light and transmitted light, and a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated by the camera receiving only the transmitted light. The reflected light refers to the light emitted from the first entity position after being acted upon by the target medium with a reflection effect, and the transmitted light refers to the light emitted from the second entity position after being acted upon by the target medium with a transmission effect. The single image frame is any one of the at least one historical image frame and the current image frame.
[0047] The first physical position refers to a position on a physical object behind a target medium, and the second physical position refers to a position on a physical object in front of a target medium.
[0048] The target medium may be transparent glass, transparent acrylic plate, transparent wafer, etc.
[0049] The positional relationship among the target medium, the first physical position, the second physical position and the camera is as follows: the second physical position is in front of the target medium, and the first physical position and the camera are behind the target medium.
[0050] In a possible embodiment, the method for acquiring the at least one historical image frame and the current image frame includes the following steps: acquiring multiple image groups, each of the multiple image groups including at least one view; determining at least one optical model of each image group based on the at least one view of each image group; determining the image frame corresponding to each image group based on the at least one optical model of each image group to obtain multiple image frames; determining the image frame with the latest shooting time of the corresponding image group among the multiple image frames as the current image frame; and determining the image frames other than the current image frame among the multiple image frames as the at least one historical image frame.
[0051] The camera may be a binocular or multi-eye camera, which can acquire multiple image groups by continuously shooting with the camera, or can record a video with the camera and determine multiple video frames in the video as multiple image groups.
[0052] Among them, see Figure 5 , Figure 5 Schematic diagram of a scene of a reflection image restoration method provided by an embodiment of the present application. Figure 5 As shown, when the camera 110 includes a left-eye camera 51 and a right-eye camera 52, the left-eye camera captures the left-eye perspective to obtain a left-eye view, and the right-eye camera captures the right-eye perspective to obtain a right-eye view. The shooting range of the left-eye camera and the shooting range of the right-eye camera may be different, such as Figure 5 As shown, the shooting range of the left camera is 120 degrees for the left eye, and the shooting range of the right camera is 90 degrees for the right eye. Each of the multiple image groups acquired by the camera includes a left eye view and a right eye view.
[0053] Wherein, determining at least one optical model of each image group according to at least one view of each image group includes: determining the brightness vector of each pixel point in each view of the at least one view; determining the at least one optical model according to the brightness vector of each pixel point in each view of the at least one view.
[0054] The brightness vector of each pixel point of each view in the at least one view may be determined according to the following formula:
[0055] I ij =J ij ×C ij +R ij ×(1-C ij )
[0056] Among them, I ij is the RGB value of the pixel (i, j) in each view, that is, the brightness vector (r, g, b) of the pixel (i, j), r is used to reflect the gray value of the R channel of the RGB image, G is used to reflect the gray value of the G channel of the RGB image, and B is used to reflect the gray value of the B channel of the RGB image, where the gray value is an integer value between 0 and 255; J ij is the brightness vector of the transmitted content blocked by the reflected content at the pixel point (i, j); R ij is the brightness vector of the reflected content at pixel point (i, j); C ij is the transmission confidence at the pixel point (i, j). This formula assumes a priori condition that the target medium does not absorb light and each view only contains transmission content and reflection content.
[0057] The transmission content refers to the image information representing the second entity position; the reflection content refers to the image information representing the first entity position.
[0058] Wherein, determining the image frame corresponding to each image group according to at least one optical model of each image group to obtain multiple image frames includes: aligning the feature points of at least one optical model of each image group to obtain multiple image frames. For example, when the camera includes a left-eye camera and a right-eye camera, each image group includes a left-eye view and a right-eye view, then at least one optical model of each image group includes a left-eye view optical model and a right-eye view optical model, aligning the feature points of the left-eye view optical model and the right-eye view optical model of each image group to obtain multiple binocular image frames, and the multiple binocular image frames are the multiple image frames; when the camera is a monocular camera, each image group only includes a monocular view, then each image group only includes a monocular optical model, and the monocular optical model of each image group is determined as a monocular image frame to obtain multiple monocular image frames, and the multiple monocular image frames are the multiple image frames.
[0059] It can be seen that in this example, multiple image frames are obtained by optically modeling the multiple image groups acquired, and the image frame with the latest shooting time in the corresponding image group among the multiple image frames is determined as the current image frame, and the image frames other than the current image frame among the multiple image frames are determined as at least one historical image frame, so that the pixels in the current image frame are repaired by using the pixels in the at least one historical image frame. There is no need for a large amount of data for model training, the cost is low, and the pixel-level repair is performed, which is not only highly accurate, but also can restore the image texture without blurring the image details, thereby improving the quality of reflection image repair.
[0060] In a possible embodiment, determining one or more transmission pixel points corresponding to each reflection pixel point of the current image frame based on at least one historical image frame includes: determining a target point cloud map based on the at least one historical image frame and the current image frame, the target point cloud map being used to indicate the correspondence between each reflection pixel point and the historical image pixel points in the at least one historical image frame; and determining the one or more transmission pixel points corresponding to each reflection pixel point based on the target point cloud map.
[0061] Among them, see Figure 6 , Figure 6 FIG. 1 is a schematic diagram of another scene of a reflection image restoration method provided by an embodiment of the present application. Figure 6 As shown, the target point cloud Figure 6It includes multiple reflection pixel points 1 in the current image frame, first multiple historical image pixel points 3 corresponding to the multiple reflection pixel points 1 in the first historical image frame, and second multiple historical image pixel points 2 corresponding to the multiple reflection pixel points 1 in the second historical image frame, the first historical image pixel point A' in the first multiple historical image pixel points 3 and the second historical image pixel point A" in the second multiple historical image pixel points 2 correspond to the reflection pixel point A in the multiple reflection pixel points 1; the one or more transmission pixel points corresponding to each reflection pixel point determined according to the target point cloud map can be determined the type of the first historical image pixel point A' and the second historical image pixel point A". When the first historical image pixel point A' is a transmission pixel point and the second historical image pixel point A" is a reflection pixel point, the one or more transmission pixel points corresponding to the reflection pixel point A include the first historical image pixel point A'.
[0062] Wherein, the step of determining the one or more transmission pixel points corresponding to each reflection pixel point according to the target point cloud map includes: determining the neighboring area of each reflection pixel point according to the position of each reflection pixel point in the target point cloud map; and determining the historical image pixel points that are transmission pixel points in the neighboring area as the one or more transmission pixel points. The neighboring area can be, for example, a spatial pixel block of a size of 5*5*depth (depth is the depth of pixel point (i, j)) with the reflection pixel point (i, i) as the center pixel point. Where n is the number of historical image frames.
[0063] The step of determining the historical image pixel points that are transmission pixel points in the adjacent area as the one or more transmission pixel points may be, for example, as follows: when the number of historical image frames is 3, determining the set All transmission pixel points in are one or more transmission pixel points.
[0064] It can be seen that in this example, one or more transmission pixels corresponding to each reflection pixel are determined through the target point cloud map, and then each reflection pixel is updated according to the one or more pixels. There is no need for a large amount of data for model training, and the cost is low. In addition, pixel-level repair is performed, which is not only highly accurate, but also able to restore the image texture without blurring the image details, thereby improving the quality of reflection image repair.
[0065] In a possible embodiment, determining the target point cloud map based on the at least one historical image frame and the current image frame includes: determining at least one historical depth data group of the at least one historical image frame, the at least one historical depth data group being used to indicate the depth value of each historical image pixel in the at least one historical image frame; determining a current depth data group of the current image frame, the current depth data group being used to indicate the depth value of each current image pixel in the current image frame; determining an optical flow motion vector of the current image frame, the optical flow motion vector being used to characterize the movement of each current image pixel in the current image frame relative to each historical image frame in the at least one historical image frame; determining the target point cloud map based on the at least one historical image frame, the current image frame, the at least one historical depth data group, the current depth data group and the optical flow motion vector.
[0066] Among them, each historical depth array is a set of depth values of each historical image pixel in the corresponding historical image frame; and the current depth data group is a set of depth values of each current image pixel in the current image frame.
[0067] The optical flow motion vector is used to reflect the relative motion between the second entity position in front of the target medium and the camera.
[0068] It can be seen that in this example, the target point cloud map is determined based on at least one historical image frame, the current image frame, at least one historical depth data group, the current depth data group and the optical flow motion vector to support pixel-level restoration. This not only does not require a large amount of data for model training, but also has high accuracy. It can restore the texture of the image without blurring the image details, thereby improving the quality of reflection image restoration.
[0069] In a possible embodiment, the at least one historical depth data group is determined based on the first transmission confidence, the first transmission depth value and the first reflection depth value of each historical image pixel in the at least one historical image frame; the current depth data group is determined based on the second transmission confidence, the second transmission depth value and the second reflection depth value of each current image pixel in the current image frame.
[0070] Among them, the first transmission depth value is the depth value of the transmission content blocked by the reflection content at the pixel point of the historical image; the first reflection depth value is the depth value of the reflection content at the pixel point of the historical image.
[0071] The second transmission depth value is the depth value of the transmission content blocked by the reflection content at the pixel point of the current image; and the second reflection depth value is the depth value of the reflection content at the pixel point of the current image.
[0072] The first transmission confidence is the transmission confidence at the pixel point of the historical image; the second transmission confidence is the transmission confidence at the pixel point of the current image.
[0073] The depth value of each historical image pixel in the historical image frame and the depth value of each current image pixel in the current image frame may be determined according to the following formula:
[0074] I dij =J dij ×C ij +R dij ×(1-C ij )
[0075] Among them, I dij is the depth value of the pixel point (i, j) in each image frame, in mm, and the pixel point (i, j) corresponds to the pixel point (i, j) in the corresponding view in the corresponding image group; J dij is the first transmission depth value or the second transmission depth value at the pixel point (i, j); R dij is the first reflection depth value or the second reflection depth value at the pixel point (i, j); C ij is the first transmission confidence or the second transmission confidence at the pixel point (i, j).
[0076] It can be seen that in this example, at least one historical depth data group is determined according to the first transmission confidence, the first transmission depth value and the first reflection depth value of each historical image pixel in at least one historical image frame, and the current depth data group is determined according to the second transmission confidence, the second transmission depth value and the second reflection depth value of each current image pixel in the current image frame, so as to determine the target point cloud map. Not only does it not require a large amount of data for model training, but it also has high accuracy and can restore the texture of the image without blurring the image details, thereby improving the quality of reflection image restoration.
[0077] In a possible embodiment, determining the optical flow motion vector of the current image frame includes: determining the brightness change of the target feature points of the current image frame and the reference image frame, the reference image frame being the historical image frame with the highest resolution index among the at least one historical image frame; determining the estimated displacement of the current image frame relative to the reference image frame according to the brightness change of the target feature points; iteratively solving the minimum optical flow error of the estimated displacement until the minimum optical flow error converges to a minimum value; determining the estimated displacement corresponding to the minimum optical flow error of the minimum value as the target displacement, the target displacement being used to characterize the displacement of the current image frame relative to the reference image frame, the target displacement including a target horizontal displacement component and a target vertical displacement component; determining the displacement vector of each current image pixel in the current image frame according to the target displacement; and determining the optical flow motion vector according to the displacement vector of each current image pixel in the current image frame.
[0078] According to the constant brightness assumption, at the feature point, the brightness change between the current image frame and the reference image frame is very small. Therefore, the brightness change is expanded by Taylor series to obtain the following formula for determining the brightness change of the target feature point between the current image frame and the reference image frame:
[0079]
[0080] Among them, (i, j) is the coordinate of the feature point, I (i+Δi,j+Δj) is the brightness vector of the feature point (i, j) in the current image frame, I (i,j) is the brightness vector of the feature point (i, j) in the reference image frame, (Δi, Δj) is the displacement of the feature point (i, j) in the current image frame relative to the reference image frame, I_i and I_j are the horizontal gradient and vertical gradient of the current image frame at (i, j), respectively.
[0081] The step of determining the estimated displacement of the current image frame relative to the reference image frame according to the brightness change of the target feature point may be determined according to the following formula:
[0082]
[0083] The minimum optical flow error of the estimated displacement can be determined according to the following formula:
[0084]
[0085] The iterative solution of the minimum optical flow error of the estimated displacement until the minimum optical flow error converges to a minimum value may be performed by iteratively solving the minimum optical flow error through least squares optimization until the minimum optical flow error converges to a minimum value.
[0086] Wherein, determining the optical flow motion vector according to the displacement vector of each current image pixel in the current image frame includes: forming a displacement field F by combining the displacement vectors of the current image pixel points ij , the displacement field F ij That is the optical flow motion vector F ij .
[0087] It can be seen that in this example, the target displacement of the current image frame is determined according to the brightness changes of the feature points in the reference image frame and the current image frame, thereby determining the displacement vector of each current image pixel point, obtaining the optical flow motion vector, and thus determining the target point cloud map. This not only does not require a large amount of data for model training, but also has high accuracy and can restore the image texture without blurring the image details, thereby improving the quality of reflection image restoration.
[0088] In a possible embodiment, determining the target point cloud map based on the at least one historical image frame, the current image frame, the at least one historical depth data group, the current depth data group and the optical flow motion vector includes: determining a reflection pixel confidence matrix based on the current depth data group and the optical flow motion vector, the reflection pixel confidence matrix being used to indicate the position of each reflection pixel in the current image frame; aligning the at least one historical image frame with the current image frame based on the optical flow motion vector to obtain a target image frame; generating the target point cloud map based on the target image frame, the at least one historical depth data group, the current depth data group and the reflection pixel confidence matrix.
[0089] Wherein, the determination of the reflection pixel confidence matrix according to the current depth data group and the optical flow motion vector may be determined according to the following formula:
[0090]
[0091] Wherein, Dw is the depth data threshold for dividing the transmission content and the reflection content, and Mw is the optical flow motion threshold. Dw and Mw can be obtained by the bimodal threshold method.
[0092] It can be seen that in this example, the reflected pixel points in the current image frame are determined by determining the reflected pixel confidence matrix, thereby determining the target point cloud map. This not only does not require a large amount of data for model training, but also has high accuracy. It can restore the image texture without blurring the image details, thereby improving the quality of reflected image restoration.
[0093] Step S402: Update each of the reflection pixels according to the one or more transmission pixels to obtain the restored current image frame.
[0094] Among them, see Figure 7 , Figure 7 FIG. 1 is a schematic diagram of another scene of a reflection image restoration method provided by an embodiment of the present application. Figure 7 As shown, in the real dimension, the camera 110 shoots with a shooting range 7, so as to obtain image frames shot in time sequence, which can be specifically: in the historical time node, the emission light emitted by the second entity position b is acted upon by the target medium 702 with a transmission effect to form a transmission light 704, which reaches the camera 110, thereby successively stimulating imaging in the imaging dimension to obtain the historical image pixel point B' and the historical image pixel point B"; in the current time node, the emission light of the second entity position b is acted upon by the target medium 702 with a transmission effect to form a transmission light 704, which reaches the camera 110, and the emission light of the first entity position C is acted upon by the target medium 702 with a reflection effect to form a reflection light 703, which reaches the camera 110, thereby stimulating imaging in the imaging dimension to obtain the reflection pixel point B. If any one of the historical image pixel point B' and / or the historical image pixel point B" is a transmission pixel point, which is the transmission pixel point corresponding to the reflection pixel point B, the reflection pixel point B is updated according to the transmission pixel point.
[0095] In a possible embodiment, updating each reflection pixel point according to the one or more transmission pixel points to obtain the repaired current image frame includes: determining a target pixel point among the one or more transmission pixel points; and updating each reflection pixel point according to the target pixel point to obtain the repaired current image frame.
[0096] Wherein, determining the target pixel point among the one or more transmission pixel points comprises: establishing a distance matrix according to the distance between the one or more transmission pixel points and the corresponding reflection pixel points For the distance matrix The elements in are sorted in order of size, and the distance matrix The smallest element in The corresponding transmission pixel point is determined as the target pixel point.
[0097] Wherein, updating each reflection pixel point according to the target pixel point to obtain the repaired current image frame includes: establishing a transmission point matrix C_Map with the highest confidence according to the target pixel point corresponding to each reflection pixel point ijk For example, when the number of historical image frames is 3, the highest confidence transmission point matrix C_Map ijk It is established according to the following formula:
[0098]
[0099] Find the transmission point matrix C_Map with the highest confidence in the at least one image frame ijk The historical image pixel points are used to replace the corresponding reflection pixel points in the current image frame.
[0100] It can be seen that in the example, the corresponding reflection pixel points are updated according to the transmission pixel points, so as to repair the entire current image frame. There is no need for a large amount of data for model training, the cost is low, and the pixel-level repair is not only highly accurate, but also able to restore the image texture without blurring the image details, thereby improving the quality of reflection image repair.
[0101] It can be seen that in the present application, the server determines one or more transmission pixels corresponding to each reflection pixel of the current image frame according to at least one historical image frame, a single reflection pixel refers to a single pixel in a single image frame that is stimulated by the camera receiving both the reflection light and the transmission light, a single transmission pixel refers to a single pixel in a single image frame that is stimulated by the camera receiving only the transmission light, the reflection light refers to the light after the emission light at the first entity position is acted upon by the target medium with the reflection effect, the transmission light refers to the light after the emission light at the second entity position is acted upon by the target medium with the transmission effect, and the single image frame is any one of at least one historical image frame and the current image frame; each reflection pixel is updated according to one or more transmission pixels to obtain the repaired current image frame. Since the transmission pixel stimulated by the transmission light emitted from the entity position blocked by the reflection pixel in the current image frame is determined from the historical image frame, and then the corresponding reflection pixel is updated according to the transmission pixel, the entire current image frame is repaired, without the need for a large amount of data for model training, the cost is low, and the pixel-level repair is performed, which is not only highly accurate, but also capable of restoring the image texture without blurring the image details, thereby improving the quality of the reflection image repair.
[0102] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the controller includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0103] In accordance with the above-mentioned embodiments, please refer to Figure 8, Figure 8 is a functional unit block diagram of a reflection image restoration device provided by an embodiment of the present application, such as Figure 8 As shown, the reflection image restoration device 800 includes: a first processing unit 801, which is used to determine one or more transmission pixel points corresponding to each reflection pixel point of the current image frame according to at least one historical image frame, wherein a single reflection pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving both the reflection light and the transmission light at the same time, and a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving only the transmission light. The reflection light refers to the light emitted from the first entity position after being acted upon by the target medium with a reflection effect, and the transmission light refers to the light emitted from the second entity position after being acted upon by the target medium with a transmission effect. The single image frame is any one of the at least one historical image frame and the current image frame; and a second processing unit 802, which is used to update each reflection pixel point according to the one or more transmission pixel points to obtain the restored current image frame.
[0104] In a possible embodiment, the reflection image restoration device 800 is also used to: acquire multiple image groups, each of the multiple image groups includes at least one view; determine at least one optical model of each image group based on the at least one view of each image group; determine the image frame corresponding to each image group based on the at least one optical model of each image group to obtain multiple image frames; determine the image frame with the latest shooting time of the corresponding image group among the multiple image frames as the current image frame; determine the image frames other than the current image frame among the multiple image frames as the at least one historical image frame.
[0105] In a possible embodiment, in terms of determining one or more transmission pixel points corresponding to each reflection pixel point of the current image frame based on at least one historical image frame, the first processing unit 801 is specifically used to: determine a target point cloud map based on the at least one historical image frame and the current image frame, the target point cloud map being used to indicate the correspondence between each reflection pixel point and the historical image pixel points in the at least one historical image frame; and determine the one or more transmission pixel points corresponding to each reflection pixel point based on the target point cloud map.
[0106] In a possible embodiment, in terms of determining the target point cloud map based on the at least one historical image frame and the current image frame, the first processing unit 801 is specifically used to: determine at least one historical depth data group of the at least one historical image frame, the at least one historical depth data group being used to indicate the depth value of each historical image pixel in the at least one historical image frame; determine the current depth data group of the current image frame, the current depth data group being used to indicate the depth value of each current image pixel in the current image frame; determine the optical flow motion vector of the current image frame, the optical flow motion vector being used to characterize the movement of each current image pixel in the current image frame relative to each historical image frame in the at least one historical image frame; determine the target point cloud map based on the at least one historical image frame, the current image frame, the at least one historical depth data group, the current depth data group and the optical flow motion vector.
[0107] In a possible embodiment, the at least one historical depth data group is determined based on the first transmission confidence, the first transmission depth value and the first reflection depth value of each historical image pixel in the at least one historical image frame; the current depth data group is determined based on the second transmission confidence, the second transmission depth value and the second reflection depth value of each current image pixel in the current image frame.
[0108] In a possible embodiment, in terms of determining the optical flow motion vector of the current image frame, the first processing unit 801 is specifically used to: determine the brightness change of the target feature points of the current image frame and the reference image frame, the reference image frame being the historical image frame with the highest resolution index among the at least one historical image frame; determine the estimated displacement of the current image frame relative to the reference image frame according to the brightness change of the target feature points; iteratively solve the minimum optical flow error of the estimated displacement until the minimum optical flow error converges to a minimum value; determine the estimated displacement corresponding to the minimum optical flow error of the minimum value as the target displacement, the target displacement is used to characterize the displacement of the current image frame relative to the reference image frame, the target displacement includes a target horizontal displacement component and a target vertical displacement component; determine the displacement vector of each current image pixel in the current image frame according to the target displacement; determine the optical flow motion vector according to the displacement vector of each current image pixel in the current image frame.
[0109] In a possible embodiment, in determining the target point cloud map based on the at least one historical image frame, the current image frame, the at least one historical depth data group, the current depth data group and the optical flow motion vector, the first processing unit 801 is specifically used to: determine a reflection pixel confidence matrix based on the current depth data group and the optical flow motion vector, the reflection pixel confidence matrix being used to indicate the position of each reflection pixel in the current image frame; align the at least one historical image frame with the current image frame based on the optical flow motion vector to obtain a target image frame; and generate the target point cloud map based on the target image frame, the at least one historical depth data group, the current depth data group and the reflection pixel confidence matrix.
[0110] In a possible embodiment, in terms of updating each reflected pixel point according to the one or more transmitted pixel points to obtain the repaired current image frame, the second processing unit 802: determines a target pixel point among the one or more transmitted pixel points; and updates each reflected pixel point according to the target pixel point to obtain the repaired current image frame.
[0111] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0112] In the case of integrated units, such as Fig. 9 As shown, Fig. 9 This is a functional unit block diagram of another reflective image restoration device provided by an embodiment of the present application. Fig. 9 In the embodiment, a reflection image restoration device 800 includes: a processing module 912 and a communication module 911. The processing module 912 is used to control and manage the actions of the reflection image restoration device 800, for example, to execute the steps of the first processing unit 801 and the second processing unit 802, and / or to execute other processes of the technology described herein. The communication module 911 is used to support the interaction between the reflection image restoration device 800 and other devices. Fig. 9 As shown, the reflection image restoration device 800 may further include a storage module 913 , and the storage module 913 is used to store program codes and data of the reflection image restoration device 800 .
[0113] Among them, the processing module 912 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 911 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 913 can be a memory.
[0114] Among them, all relevant contents of each scene involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above reflection image restoration device 800 can execute the above Figure 4 The reflection image restoration method shown.
[0115] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0116] Fig.10 is a structural block diagram of a server provided in an embodiment of the present application. Fig.10As shown, the server 120 may include one or more of the following components: a processor 310, and a memory 320 coupled to the processor 310, wherein the memory 320 may store one or more computer programs 321, and the one or more computer programs 321 may be configured to implement the methods described in the above embodiments when executed by one or more processors 310.
[0117] The processor 310 may include one or more processing cores. The processor 310 uses various interfaces and lines to connect the various parts of the entire server 120, and executes various functions and processes data of the server 120 by running or executing instructions, programs, code sets or instruction sets stored in the memory 320, and calling data stored in the memory 320. Optionally, the processor 310 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 310 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 310, but may be implemented separately through a communication chip.
[0118] The memory 320 may include a random access memory (RAM) or a read-only memory (ROM). The memory 320 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the server 120 during use, etc.
[0119] It is understandable that the server 120 may include more or fewer structural elements than those in the above structural block diagram, which is not limited here. The present application embodiment provides a computer-readable storage medium on which a computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the steps of the method described in any possible embodiment are implemented.
[0120] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0121] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the unit is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0124] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a volatile memory or a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (directrambus RAM, DR RAM) and other media that can store program code.
[0125] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present invention, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present invention.
Claims
1. A reflection image restoration method, It is characterized in that The method comprises: Determine one or more transmission pixel points corresponding to each reflection pixel point of the current image frame according to at least one historical image frame, wherein a single reflection pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving both the reflection light and the transmission light at the same time, and a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving only the transmission light at the single image frame, wherein the reflection light refers to the light emitted from the first entity position after being acted upon by the target medium with a reflection effect, and the transmission light refers to the light emitted from the second entity position after being acted upon by the target medium with a transmission effect, and the single image frame is any one of the at least one historical image frame and the current image frame; Each of the reflection pixels is updated according to the one or more transmission pixels to obtain the restored current image frame.
2. The method according to claim 1, It is characterized in that The step of determining one or more transmission pixel points corresponding to each reflection pixel point of the current image frame according to at least one historical image frame includes: Determine a target point cloud map according to the at least one historical image frame and the current image frame, wherein the target point cloud map is used to indicate a corresponding relationship between each reflection pixel point and a historical image pixel point in the at least one historical image frame; The one or more transmission pixel points corresponding to each reflection pixel point are determined according to the target point cloud image.
3. The method according to claim 2, It is characterized in that The determining of the target point cloud map according to the at least one historical image frame and the current image frame comprises: Determine at least one historical depth data group of the at least one historical image frame, wherein the at least one historical depth data group is used to indicate a depth value of each historical image pixel in the at least one historical image frame; Determine a current depth data group of the current image frame, where the current depth data group is used to indicate a depth value of each current image pixel in the current image frame; Determine an optical flow motion vector of the current image frame, where the optical flow motion vector is used to characterize the movement of each current image pixel in the current image frame relative to each historical image frame in the at least one historical image frame; The target point cloud map is determined according to the at least one historical image frame, the current image frame, the at least one historical depth data group, the current depth data group and the optical flow motion vector.
4. The method according to claim 3, It is characterized in that The at least one historical depth data group is determined based on the first transmission confidence, the first transmission depth value and the first reflection depth value of each historical image pixel point in the at least one historical image frame; the current depth data group is determined based on the second transmission confidence, the second transmission depth value and the second reflection depth value of each current image pixel point in the current image frame.
5. The method according to claim 3, It is characterized in that The determining of the optical flow motion vector of the current image frame comprises: Determining brightness changes of target feature points of the current image frame and a reference image frame, wherein the reference image frame is a historical image frame with a highest resolution index among the at least one historical image frame; Determining an estimated displacement of the current image frame relative to the reference image frame according to a brightness change of the target feature point; Iteratively solving the minimum optical flow error of the estimated displacement until the minimum optical flow error converges to a minimum value; Determine the estimated displacement corresponding to the minimum optical flow error of the minimum value as the target displacement, wherein the target displacement is used to characterize the displacement of the current image frame relative to the reference image frame, and the target displacement includes a target horizontal displacement component and a target vertical displacement component; Determine a displacement vector of each current image pixel in the current image frame according to the target displacement; The optical flow motion vector is determined according to a displacement vector of each current image pixel in the current image frame.
6. The method according to claim 3, It is characterized in that The determining the target point cloud image according to the at least one historical image frame, the current image frame, the at least one historical depth data group, the current depth data group and the optical flow motion vector comprises: Determine a reflection pixel confidence matrix according to the current depth data group and the optical flow motion vector, wherein the reflection pixel confidence matrix is used to indicate the position of each reflection pixel in the current image frame; Aligning the at least one historical image frame with the current image frame according to the optical flow motion vector to obtain a target image frame; The target point cloud map is generated according to the target image frame, the at least one historical depth data group, the current depth data group and the reflection pixel confidence matrix.
7. The method according to claim 6, It is characterized in that The updating of each reflection pixel point according to the one or more transmission pixel points to obtain the repaired current image frame includes: Determining a target pixel point among the one or more transmission pixel points; Each of the reflection pixels is updated according to the target pixel to obtain the restored current image frame.
8. The method according to claim 1, It is characterized in that The method for acquiring the at least one historical image frame and the current image frame comprises the following steps: Acquire a plurality of image groups, each of the plurality of image groups comprising at least one view; determining at least one optical model for each image group based on at least one view of each image group; Determine the image frame corresponding to each image group according to at least one optical model of each image group to obtain a plurality of image frames; Determine the image frame with the latest shooting time of the corresponding image group among the multiple image frames as the current image frame; An image frame other than the current image frame among the multiple image frames is determined as the at least one historical image frame.
9. A reflection image restoration device, It is characterized in that The device comprises: A first processing unit is used to determine one or more transmission pixel points corresponding to each reflection pixel point of the current image frame according to at least one historical image frame, wherein a single reflection pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving both the reflection light and the transmission light at the same time, and a single transmission pixel point refers to a single pixel point in a single image frame that is stimulated to form an image by the camera receiving only the transmission light at the single image frame, wherein the reflection light refers to the light emitted from the first entity position after being acted upon by the target medium with a reflection effect, and the transmission light refers to the light emitted from the second entity position after being acted upon by the target medium with a transmission effect, and the single image frame is any one of the at least one historical image frame and the current image frame; The second processing unit is used to update each of the reflection pixel points according to the one or more transmission pixel points to obtain the repaired current image frame.
10. A server, It is characterized in that The method comprises a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, It is characterized in that A computer program / instruction is stored thereon, and when the computer program / instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
