Moving target detection method, device, equipment and medium based on light field camera
By downsampling the original light field image of the light field camera and positioning the feature points, the problem of long depth estimation and computational imaging of the light field camera in moving target detection is solved, and fast moving target detection and high-precision tracking are achieved, improving improve the capabilities of the target detection system.
Patent Information
- Application Number
- CN202410848906.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing light field cameras suffer from the problems of high complexity and long time-consuming depth estimation and computational imaging algorithms in moving target detection and tracking, making it difficult to meet the requirements of high frame rate imaging and fast target recognition.
By downsampling the original light field image of the light field camera, the moving target imaging area is detected, the corresponding microlens sub-image is found, depth estimation and focused image calculation are performed, and the feature point positioning method is used to extract sub-pixel level tracking and aiming positioning. point to achieve high-precision moving target tracking.
While retaining the performance of the focused light field camera, it achieves real-time detection of fast moving targets, improves the integrated detection capabilities of the target detection system, and reduces the amount of calculation and resource consumption.
Smart Images

Figure CN118397048B_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the field of light field imaging and light field detection technology, and in particular to a moving target detection method, device, equipment and medium based on a light field camera. Background Art
[0002] Light field cameras are light field sensors that have emerged in recent years. Since Ng launched the first commercial-grade light field camera Lytro in 2015, light field cameras have received increasing attention from the academic community for their unique digital refocusing function and broad application prospects in the fields of three-dimensional measurement, virtual reality, and large depth of field imaging. At present, the structural model of light field cameras has developed to a 2.0 structure, namely a focusing light field camera. Due to the unlocking of the space-frequency ratio, the focusing light field camera has been greatly improved in terms of imaging quality and depth estimation accuracy. Since the microlens array and target surface of the focusing light field camera are not on the focal plane of the main lens, the target surface imaging is not the focused image of the main lens, but a collection of sub-images of the microlens, generally referred to as the light field raw image. The depth estimation and calculation of the focused image of the focusing light field camera are all based on the light field raw image, and the depth estimation result is generally used as the basis for calculating the clear focused image.
[0003] Although modern light field camera technology has been developed for more than ten years, there is still no good solution to the problem of high complexity and long time consumption of depth estimation and computational imaging algorithms. Existing light field cameras can generally only improve the real-time performance of the algorithm by improving hardware performance or using parallel computing methods, but it is difficult to meet the requirements of high frame rate imaging and real-time solution of core parameters in application scenarios such as moving target detection and tracking. In practical applications, moving target detection and tracking often rely on clear images of the target, and the depth estimation and computational imaging process of light field cameras will bring great time overhead and hardware resource consumption.
[0004] In summary, although focusing light field cameras have advantages over ordinary imaging detectors such as large imaging depth of field, coaxial ranging, and three-dimensional measurement, their depth estimation and computational imaging algorithms are highly complex and time-consuming, making it difficult to meet the actual application requirements of moving target detection for high frame rate imaging, rapid target recognition, and rapid positioning. Summary of the invention
[0005] In view of the technical problems existing in the prior art, the present invention proposes a moving target detection method, device, equipment and medium based on a light field camera.
[0006] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0007] On the one hand, the present invention provides a moving target detection method based on a light field camera, comprising:
[0008] Downsampling the original light field image of the focusing light field camera to obtain a downsampled image, wherein the original light field image is an image directly obtained from the target surface of the focusing light field camera and is a collection of all microlens sub-images;
[0009] Perform moving target imaging area detection based on the down-sampled image to obtain the moving target imaging area in the down-sampled image;
[0010] According to the imaging area of the moving target, all corresponding microlens sub-images imaging the moving target are found in the original light field image;
[0011] Depth estimation of moving targets based on all microlens sub-images of moving targets;
[0012] Calculating a focused image of the moving target based on a depth estimation result of the moving target;
[0013] Based on the feature point positioning method, sub-pixel tracking and aiming points are extracted to achieve high-precision moving target tracking.
[0014] On the other hand, the present invention provides a moving target detection device based on a light field camera, comprising:
[0015] The first module is used to downsample the original light field image of the focusing light field camera to obtain a downsampled image, wherein the original light field image is an image directly obtained from the target surface of the focusing light field camera, and is a collection of all microlens sub-images;
[0016] The second module is used to detect the moving target imaging area based on the down-sampled image to obtain the moving target imaging area in the down-sampled image;
[0017] The third module is used to find all the corresponding microlens sub-images imaging the moving target in the original light field image according to the moving target imaging area;
[0018] A fourth module is used to estimate the depth of the moving target based on all microlens sub-images imaged for the moving target;
[0019] The fifth module is used to calculate the focused image of the moving target according to the depth estimation result of the moving target;
[0020] The sixth module is used to extract sub-pixel tracking and aiming points based on the feature point positioning method to achieve high-precision moving target tracking.
[0021] In another aspect, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0022] Downsampling the original light field image of the focusing light field camera to obtain a downsampled image, wherein the original light field image is an image directly obtained from the target surface of the focusing light field camera and is a collection of all microlens sub-images;
[0023] Perform moving target imaging area detection based on the down-sampled image to obtain the moving target imaging area in the down-sampled image;
[0024] According to the imaging area of the moving target, all corresponding microlens sub-images imaging the moving target are found in the original light field image;
[0025] Depth estimation of moving targets based on all microlens sub-images of moving targets;
[0026] Calculating a focused image of the moving target based on a depth estimation result of the moving target;
[0027] Based on the feature point positioning method, sub-pixel tracking and aiming points are extracted to achieve high-precision moving target tracking.
[0028] In another aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:
[0029] Downsampling the original light field image of the focusing light field camera to obtain a downsampled image, wherein the original light field image is an image directly obtained from the target surface of the focusing light field camera and is a collection of all microlens sub-images;
[0030] Perform moving target imaging area detection based on the down-sampled image to obtain the moving target imaging area in the down-sampled image;
[0031] According to the imaging area of the moving target, all corresponding microlens sub-images imaging the moving target are found in the original light field image;
[0032] Depth estimation of moving targets based on all microlens sub-images of moving targets;
[0033] Calculating a focused image of the moving target based on a depth estimation result of the moving target;
[0034] Based on the feature point positioning method, sub-pixel tracking and aiming points are extracted to achieve high-precision moving target tracking.
[0035] Compared with the prior art, the technical effects of the present invention are:
[0036] The present invention achieves real-time detection of fast moving targets by special processing of raw light field data while retaining the existing performance advantages of focusing light field cameras, so that light field cameras can be used as an efficient target detection device in target detection systems.
[0037] The present invention applies a focusing light field camera to moving target detection, and provides an integrated moving target detection technical solution that combines depth estimation, large depth of field imaging, fast moving target recognition, imaging, and tracking and aiming positioning point extraction. The application of the present invention will enhance the integrated detection capability of existing target detection systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0039] Figure 1 A flow chart of a moving target detection method based on a light field camera provided by an embodiment of the present invention;
[0040] Figure 2 This is a diagram showing the downsampling and imaging area detection effects of a light field original image in one embodiment of the present invention;
[0041] Figure 3 This is a diagram showing the effect of extracting feature points of a downsampled image in one embodiment of the present invention;
[0042] Figure 4 FIG. 4 is a schematic diagram of a pixel registration principle in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] Reference Figure 1 In one embodiment of the present invention, a moving target detection method based on a light field camera is provided, comprising:
[0045] Down-sampling the original light field image of the focusing light field camera to obtain a down-sampled image;
[0046] The light field original image is the image directly obtained from the target surface of the focusing light field camera, which is the collection of all microlens sub-images.
[0047] Perform moving target imaging area detection based on the down-sampled image to obtain the moving target imaging area in the down-sampled image;
[0048] According to the imaging area of the moving target, all corresponding microlens sub-images imaging the moving target are found in the original light field image;
[0049] Depth estimation of moving targets based on all microlens sub-images of moving targets;
[0050] Calculating a focused image of the moving target based on a depth estimation result of the moving target;
[0051] Among them: the focused image of the focusing light field camera is not the CCD target surface image of the camera, but the focal surface image of the main lens, which must be calculated based on the target surface image and the virtual depth value corresponding to the object point.
[0052] Based on the feature point positioning method, sub-pixel tracking and aiming points are extracted to achieve high-precision moving target tracking.
[0053] The existing light field camera algorithm for calculating a clear and focused image is highly complex and time-consuming, so it is difficult for existing light field cameras to achieve high frame rate imaging detection, and further, it is difficult to apply it to real-time detection of moving targets. In response to the above-mentioned problems existing in the prior art, the above-mentioned embodiment of the present invention first downsamples the original light field image to obtain a low-resolution image of the full field of view, and then roughly locates the target in the field of view and detects the target area based on the low-resolution image, extracts all microlens sub-images containing the target image, and then estimates the depth of the moving target and calculates the focused image of the moving target. At the same time, in order to achieve real-time tracking of the moving target, sub-pixel tracking and aiming points are extracted based on the feature point positioning method to achieve high-precision tracking and aiming of moving targets. The target depth estimation and calculation of the focused image of the present invention only need to be performed within the target imaging area, thereby reducing the huge amount of calculation and computing resource requirements brought by the full field of view calculation.
[0054] Specifically, the original image of the light field is the target surface imaging of the focusing light field camera, which is the collection of all microlens sub-images, and is essentially the secondary imaging of the microlens array facing the focal plane of the main lens. The target surface of the focusing light field camera is in a conjugate relationship with the focal plane of the main lens, and a microlens sub-image on the target surface can be equivalent to a microlens imaging unit of the secondary imaging of the target surface on the focal plane of the main lens. Therefore, the present invention uses the central pixel of the microlens sub-image as the down-sampling pixel of the corresponding microlens imaging unit to perform down-sampling processing on the original image of the light field, and the down-sampling order is consistent with the arrangement order of the microlenses on the microlens array of the focusing light field camera.
[0055] In order to facilitate downsampling calculations, all microlens sub-images and downsampled image pixels are numbered, and the numbers of microlens sub-images and downsampled image pixels correspond one to one. In this way, the corresponding microlens sub-image can be quickly found from the downsampled image pixels. Order of magnitude, so the pixel resolution of the downsampled image can also reach Magnitude.
[0056] Based on the downsampled image, moving target imaging area detection can be performed. Moving target imaging area detection detects the imaging area of the dynamic target in the field of view by detecting the pixel difference in the image sequence or the contour features of the target itself. It is usually the front-end capability required for post-processing such as target segmentation, target tracking and behavior understanding. The moving target imaging area detection method in the present invention is not limited. Commonly used moving target imaging area detection methods include frame difference method, optical flow method, background subtraction, contour segmentation method, etc. Since the downsampled image is essentially a low-resolution main lens imaging, the moving target imaging area detection can be performed based on the downsampled image to obtain the moving target imaging area in the downsampled image. According to the moving target imaging area detection result of the downsampled image, all corresponding microlens sub-images for imaging the moving target can be quickly found in the original light field image.
[0057] By finding all the corresponding microlens sub-images of the moving target in the original light field image, the classic depth estimation algorithm of the focusing light field camera can be used to estimate the depth of the moving target and measure the distance of the target. Then, based on the depth estimation result of the moving target, a clear image of the target, that is, a focused image of the target, can be calculated. Since the depth estimation and computational imaging are only performed on the imaging area of the target, the time consumption and computing resource consumption of the above algorithm will be greatly reduced.
[0058] In particular, target recognition can be performed based on downsampled images or on focused images of the target, depending on the scale of the target or the target recognition algorithm. For high-performance intelligent target detection algorithms such as YOLO, only a small number of pixels are needed to recognize the target.
[0059] The optoelectronic tracking system generally needs to extract a high-stability positioning point from the target image and send the coordinates of the positioning point to the closed-loop control system to implement closed-loop tracking control. Due to the low resolution of the downsampled image, the accuracy of extracting the positioning point in the downsampled image cannot meet the requirements of high-precision tracking. At the same time, although the above steps can quickly calculate the focus image of the target, there is still a certain amount of time consumption, which is difficult to meet the needs of high-dynamic target tracking.
[0060] In order to achieve real-time tracking of a moving target and high-precision tracking of the target, in one embodiment, a method for extracting sub-pixel tracking and aiming positioning points is proposed, including:
[0061] Extracting feature points of the moving target imaging area in the downsampled image to obtain feature points of the downsampled image, and then determining the microlens sub-image corresponding to the feature points of the downsampled image;
[0062] Based on the microlens sub-image corresponding to the feature point of the down-sampled image, all target surface secondary imaging points corresponding to the feature point of the down-sampled image are determined;
[0063] Based on all target surface secondary imaging points corresponding to the down-sampled image feature points, the coordinates of the corresponding points of the down-sampled image feature points on the moving target focused image are calculated;
[0064] Based on the coordinates of the corresponding points of the sampled image feature points on the moving target focused image, the sub-pixel tracking and aiming positioning points are determined.
[0065] Target recognition can be performed based on downsampled images or on target focused images.
[0066] Determining all target surface secondary imaging points corresponding to the downsampled image feature points includes: using the center point of the microlens sub-image corresponding to the pixel of the downsampled image feature point as a pixel registration reference point, performing pixel registration in multiple adjacent microlens sub-images, and finding all target surface secondary imaging points corresponding to the same downsampled image feature point. Since all microlens sub-images and downsampled image pixels are numbered in the above embodiment, feature points are extracted from the target image in the downsampled image, and the corresponding microlens sub-image can be quickly found according to the pixel number of the feature point.
[0067] Let the number of downsampled image feature points be , calculate the first The corresponding point coordinates of the down-sampled image feature points on the moving target focused image and virtual depth value :
[0068] ;
[0069] In the formula, and Respectively The downsampled image feature points correspond to the The secondary imaging point on the target surface is relative to the center of the microlens to which it belongs. Direction and The offset of the direction, For the The center coordinates of the microlens to which the secondary imaging point on the target surface belongs, It is The corresponding point coordinates of the down-sampled image feature points on the moving target focused image, For the The virtual depth values of the downsampled image feature points are is the number of downsampled image feature points;
[0070] Using the SVD decomposition method, we can calculate .
[0071] Finally, the sub-pixel tracking and aiming points are extracted by the following formula: :
[0072] ;
[0073] In the formula, To track the coordinates of the positioning point, It is The corresponding point coordinates of the down-sampled image feature points on the moving target focused image, is the number of feature points of the downsampled image.
[0074] Since only a limited number of downsampled image feature points need to be registered for pixel registration, the amount of calculation is greatly reduced and the speed of tracking point extraction is improved. At the same time, the tracking point extraction process does not conflict with the depth estimation and focus imaging calculation process, so they can be executed in parallel in actual engineering.
[0075] Figure 2 : is a diagram showing the downsampling and imaging area detection effects of a light field original image in one embodiment of the present invention. Figure 2 The left side shows the original light field image. Obviously, the original light field image is composed of a large number of microlens sub-images. Extract the central pixel of each microlens sub-image as a pixel in the downsampled image, and arrange them according to the arrangement order of the microlens array to obtain a low-resolution downsampled image, such as Figure 2 The above down-sampling process can be regarded as the down-sampling of the main lens focal plane imaging by the microlens array, so the down-sampled image can retain the target contour information in the main lens focal plane imaging. Figure 2 The red rectangle on the left shows the target imaging area obtained by using the rectangle detection algorithm with the calibration plate as the target. Subsequent target depth estimation and focus image calculation processes only need to be performed within the rectangular frame area.
[0076] Figure 3 This is a diagram showing the effect of extracting feature points from a downsampled image according to an embodiment of the present invention. Figure 3 In the process, the FAST feature point extraction algorithm is used to extract the corner feature points of the target image. The FAST algorithm is an algorithm for quickly detecting image features. It is widely used in target recognition, image matching, 3D reconstruction and other fields. It is fast, stable and robust. Figure 3In the figure, the points marked with green crosses are the feature points of the downsampled image, and a total of 50 FAST feature points are given. Since the pixels in the downsampled image are the central pixels of the microlens sub-image, the center point of the microlens sub-image corresponding to the feature point can be used as the reference point for pixel registration, and pixel registration is performed in the adjacent microlens sub-images in the original light field image to find all the secondary imaging points of the target surface of the same downsampled image feature point, and then calculate the corresponding point coordinates of the feature point on the fully focused image.
[0077] Figure 4 : is a schematic diagram of the pixel registration principle in one embodiment of the present invention. In the figure, O is a pixel registration reference point, which corresponds to a feature point in the downsampled image. Microlens sub-image 1-1, microlens sub-image 1-2, microlens sub-image 1-3..., microlens sub-image 2-1, microlens sub-image 2-2, microlens sub-image 2-3, microlens sub-image 2-1..., microlens sub-image 3-1, microlens sub-image 3-2, microlens sub-image 3-3..., microlens sub-image 4-1, microlens sub-image 4-2, microlens sub-image 4-3, microlens sub-image 4-4, microlens sub-image 4-5, microlens sub-image 4-6..., microlens sub-image 5-1, microlens sub-image 5-2, microlens sub-image 5-3... are all adjacent microlens sub-images. It can be seen from the optical structure of the focusing light field camera that the line connecting the two secondary imaging points of the same object point on the target surface should be parallel to the line connecting the centers of their respective microlenses. Figure 4 In the figure, since the pixel registration reference point O is located at the center of the microlens to which it belongs, the points in the microlens sub-images 1-1, 3-1, 5-1 and 4-2 that are registered with the pixel registration reference point O should be located on the first straight line 1 and the second straight line 2 shown in the figure. Therefore, in the actual registration calculation, it is only necessary to perform pixel registration along the first straight line 1 and the second straight line 2, thereby greatly reducing the amount of calculation for pixel registration.
[0078] Another embodiment provides a moving target detection device based on a light field camera, comprising:
[0079] The first module is used to downsample the original light field image of the focusing light field camera to obtain a downsampled image, wherein the original light field image is an image directly obtained from the target surface of the focusing light field camera, and is a collection of all microlens sub-images;
[0080] The second module is used to detect the moving target imaging area based on the down-sampled image to obtain the moving target imaging area in the down-sampled image;
[0081] The third module is used to find all the corresponding microlens sub-images imaging the moving target in the original light field image according to the moving target imaging area;
[0082] A fourth module is used to estimate the depth of the moving target based on all microlens sub-images imaged for the moving target;
[0083] A fifth module is used to calculate a focused image of the moving target according to a depth estimation result of the moving target;
[0084] The sixth module is used to extract sub-pixel tracking and aiming points based on the feature point positioning method to achieve high-precision moving target tracking.
[0085] The sixth module includes:
[0086] The first submodule extracts feature points of the moving target imaging area in the downsampled image to obtain feature points of the downsampled image, and then determines the microlens sub-image corresponding to the feature points of the downsampled image;
[0087] The second submodule determines all target surface secondary imaging points corresponding to the down-sampled image feature points based on the microlens sub-image corresponding to the down-sampled image feature points;
[0088] The third submodule calculates the coordinates of the corresponding points of the down-sampled image feature points on the moving target focused image based on all target surface secondary imaging points corresponding to the down-sampled image feature points;
[0089] The fourth submodule determines the sub-pixel tracking and aiming positioning point based on the coordinates of the corresponding points of the sampled image feature points on the moving target focus image.
[0090] The implementation methods of the above modules and the construction of the model can adopt the methods described in any of the above embodiments, which will not be repeated here.
[0091] On the other hand, the present invention provides a computer device, including a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the moving target detection method based on a light field camera provided in any of the above embodiments when executing the computer program. The computer device may be a server. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store sample data. The network interface of the computer device is used to communicate with an external terminal via a network connection.
[0092] On the other hand, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the moving target detection method based on a light field camera provided in any of the above embodiments are implemented.
[0093] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0094] Matters not covered by the present invention are known technologies.
[0095] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0096] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A moving target detection method based on a light field camera, characterized in that: include: Downsampling the original light field image of the focusing light field camera to obtain a downsampled image, wherein the original light field image is an image directly obtained from the target surface of the focusing light field camera and is a collection of all microlens sub-images; Perform moving target imaging area detection based on the down-sampled image to obtain the moving target imaging area in the down-sampled image; According to the imaging area of the moving target, all corresponding microlens sub-images imaging the moving target are found in the original light field image; Depth estimation of moving targets based on all microlens sub-images of moving targets; Calculating a focused image of the moving target based on a depth estimation result of the moving target; Extract sub-pixel tracking and aiming points based on feature point positioning method to achieve high-precision moving target tracking, including: Extracting feature points of the moving target imaging area in the downsampled image to obtain feature points of the downsampled image, and then determining the microlens sub-image corresponding to the feature points of the downsampled image; Based on the microlens sub-image corresponding to the feature point of the down-sampled image, all target surface secondary imaging points corresponding to the feature point of the down-sampled image are determined; Based on all target surface secondary imaging points corresponding to the down-sampled image feature points, the coordinates of the corresponding points of the down-sampled image feature points on the moving target focused image are calculated; Based on the coordinates of the corresponding points of the sampled image feature points on the moving target focused image, the sub-pixel tracking and aiming positioning points are determined.
2. The moving target detection method based on a light field camera according to claim 1, characterized in that: The central pixel of the microlens sub-image is used as the down-sampling pixel of the corresponding microlens imaging unit to down-sample the original light field image, and the down-sampling order is consistent with the arrangement order of the microlenses on the microlens array of the focusing light field camera.
3. The moving target detection method based on a light field camera according to claim 1, characterized in that: Moving target imaging area detection is achieved through frame difference method, optical flow method, background subtraction or contour segmentation method.
4. The moving target detection method based on a light field camera according to claim 1, characterized in that: Determine all target surface secondary imaging points corresponding to the downsampled image feature points, including: The center point of the microlens sub-image corresponding to the pixel of the down-sampled image feature point is used as the pixel registration reference point, and pixel registration is performed in multiple adjacent microlens sub-images to find all target surface secondary imaging points corresponding to the same down-sampled image feature point.
5. The moving target detection method based on a light field camera according to claim 4, characterized in that: Calculate the first n The corresponding point coordinates of the down-sampled image feature points on the moving target focused image ( , ) and virtual depth value : In the formula, and Respectively n The offset of the mth target surface secondary imaging point corresponding to the down-sampled image feature point relative to the center of its microlens in the X and Y directions, ( , ) is the m The center coordinates of the microlens to which the secondary imaging point on the target surface belongs, ( , ) is n The corresponding point coordinates of the down-sampled image feature points on the moving target focused image, v n For the n The virtual depth values of the downsampled image feature points, where n =1,2,3... N , N is the number of downsampled image feature points; The SVD decomposition method can be used to calculate ( , , v n ).
6. The moving target detection method based on a light field camera according to claim 4 or 5, characterized in that: The sub-pixel tracking and aiming positioning point is extracted by the following formula ( , ): In the formula, ( , ) is the coordinate of the tracking and aiming point, ( , ) is n The corresponding point coordinates of the down-sampled image feature points on the moving target focused image, N is the number of feature points of the downsampled image.
7. A moving target detection device based on a light field camera, characterized in that: include: The first module is used to downsample the original light field image of the focusing light field camera to obtain a downsampled image, wherein the original light field image is an image directly obtained from the target surface of the focusing light field camera, and is a collection of all microlens sub-images; The second module is used to detect the moving target imaging area based on the down-sampled image to obtain the moving target imaging area in the down-sampled image; The third module is used to find all the corresponding microlens sub-images imaging the moving target in the original light field image according to the moving target imaging area; A fourth module is used to estimate the depth of the moving target based on all microlens sub-images imaged for the moving target; A fifth module is used to calculate a focused image of the moving target according to a depth estimation result of the moving target; The sixth module is used to extract sub-pixel tracking and aiming points based on the feature point positioning method to achieve high-precision moving target tracking and aiming, including: Extracting feature points of the moving target imaging area in the downsampled image to obtain feature points of the downsampled image, and then determining the microlens sub-image corresponding to the feature points of the downsampled image; Based on the microlens sub-image corresponding to the feature point of the down-sampled image, all target surface secondary imaging points corresponding to the feature point of the down-sampled image are determined; Based on all target surface secondary imaging points corresponding to the down-sampled image feature points, the coordinates of the corresponding points of the down-sampled image feature points on the moving target focused image are calculated; Based on the coordinates of the corresponding points of the sampled image feature points on the moving target focused image, the sub-pixel tracking and aiming positioning points are determined.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the moving target detection method based on the light field camera as claimed in claim 1 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the moving target detection method based on a light field camera as claimed in claim 1 are implemented.
Citation Information
Patent Citations
Light field saliency target detection method based on 3D convolution
CN113343822A
Exercise rehabilitation training monitoring method, system, device and equipment
CN117438035A
