A method for removing imaging jitter of a linear array camera on a multi-axis motion platform

Under the multi-axis motion platform, the loop generative adversarial network learns to remove jitter from image data sets of different motion axes, which solves the scene limitations and data set dependence problems of image jitter removal in the existing technology, and achieves efficient and stable Image shake removal effect.

CN117479013BActive Publication Date: 2024-09-17CHANGCHUN ZHIRAN PHOTOELECTRIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311798469.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2024-09-17
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

The existing technology has the problems of scene limitations of hardware correction, high hyperparameter setting requirements of software correction, and strong dependence on data sets in image shake removal. Especially when imaging with a linear array camera under a multi-axis motion platform, it is difficult to effectively remove shake. error.

Method used

A recurrent generative adversarial network is used to learn to remove jitter from image data sets of different motion axes through a semi-supervised deep learning method. A deep learning network composed of a generator and a discriminator is constructed, and adversarial training is performed to output image data without jitter errors. .

Benefits of technology

It effectively solves the deficiencies of hardware correction and software correction, expands the applicable scenarios for image jitter removal, reduces costs, improves removal effects and stability, and avoids the hyperparameter setting requirements of traditional methods and the data set dependence of deep learning. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117479013B
    Figure CN117479013B
Patent Text Reader

Abstract

The present invention belongs to the field of image processing technology, and specifically discloses a method for removing imaging jitter of a linear array camera under a multi-axis motion platform, the method comprising: when the motion platform moves in different motion directions, obtaining corresponding image data sets through a linear array camera; obtaining a deep learning network structure by adopting a cyclic generative adversarial network; performing adversarial training of the deep learning network structure; and outputting image data without jitter errors. The present invention uses a semi-supervised deep learning method to learn two groups of data from different motion axes, directly optimizing the jittered image to an image without jitter errors, effectively solving the deficiencies of current hardware correction and software correction, not only making up for the scene limitations of the current hardware correction method, expanding the applicable scenes of image jitter removal, but also improving the convenience and removal effect of image jitter removal, thereby realizing rapid removal of image jitter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image processing, and in particular relates to a method for removing imaging jitter of a linear array camera under a multi-axis motion platform. Background Art

[0002] Imaging with a linear array camera in conjunction with a motion platform is an efficient imaging method, but the straightness of some motion platforms is affected by the external environment and their own stability, which often causes image jitter errors during imaging, especially when the longitudinal motion axis of the motion platform is located on the lateral motion axis. When performing lateral motion, longitudinal jitter is prone to occur, resulting in reduced imaging quality. This problem will not only affect subsequent image analysis, but also cause great interference to tasks such as target detection and semantic segmentation. Therefore, removing jitter in imaging is an important preprocessing step.

[0003] Prior art, such as the anti-shake processing method and device for images disclosed in the Chinese invention patent application with application publication number CN107124542A, comprises: after acquiring the image, determining whether the frame image is shaken. If shaken, calculating the offset caused by the shake. Determining the cropping reference point of the image, and cropping the image according to the reference point to obtain a cropped image. According to the offset, superimposing the cropped image with the original image. Outputting the superimposed image. The inventive method achieves the technical effect of anti-shake processing without the need for hardware support to a certain extent.

[0004] Another example of the prior art is an artificial intelligence-based image stabilization method and camera module disclosed in a Chinese invention patent application with application publication number CN115714915A, which obtains vibration detection data about an image from two or more sensors and uses a trained artificial neural network model to output stabilization data for compensating image jitter. Finally, these stabilization data are used to compensate for image jitter to achieve ratio reduction.

[0005] From the above two technical solutions, it can be seen that the image jitter correction method can be divided into hardware correction and software correction based on the classification of equipment. However, there are still the following deficiencies in hardware correction and software correction: 1. For hardware correction, the method of using hardware equipment to obtain additional information can achieve good results in corresponding research, but it is often not applicable to other scenarios and has certain scenario limitations.

[0006] 2. For software correction, the methods of using software algorithms to eliminate image jitter are divided into traditional methods and deep learning-based methods, both of which have certain limitations, including: a1. Methods based on traditional image processing often have high requirements for the setting of hyperparameters and the effect is general.

[0007] a2. Methods based on deep learning can achieve very good results under specific data sets, but the requirements for data sets are high. However, current methods rely more on fully supervised methods. However, it is difficult to obtain completely paired images in many engineering applications, and it is difficult to provide the data sets required for deep learning. Summary of the invention

[0008] In view of this, in order to solve the problems raised in the above background technology, a method for removing imaging jitter of a linear array camera on a multi-axis motion platform is now proposed.

[0009] The objective of the present invention can be achieved through the following technical solutions: The present invention provides a method for removing imaging jitter of a linear array camera under a multi-axis motion platform, the method comprising the following steps: Step 1, data set acquisition: when the motion platform moves in different motion directions, the corresponding image data set is acquired by the linear array camera, and the motion directions include lateral motion and longitudinal motion.

[0010] Step 2: Network structure construction: By adopting a cyclic generative adversarial network, a deep learning network structure is obtained. The deep learning network structure consists of two sets of generators. And two sets of discriminators composition.

[0011] Step 3: Network structure training: Perform adversarial training on the generator and discriminator.

[0012] Step 4: Image jitter removal: Input the image data in the corresponding image data set of different motion directions into the degree learning network structure for training, and then output image data without jitter error.

[0013] In a preferred embodiment of the present invention, the obtaining of the corresponding image data set by the linear array camera specifically includes: when the motion platform moves laterally, obtaining the image data set with jitter by the linear array camera, which is recorded as .

[0014] When the motion platform moves longitudinally, a non-jitter image dataset is obtained through a linear array camera, which is denoted as .

[0015] In a preferred embodiment of the present invention, the generator The input is the image data with jitter, and the output is the image data after the jitter is removed.

[0016] The generator The input is image data without jitter, and the output is image data with jitter.

[0017] In a preferred embodiment of the present invention, the generator structure is a convolutional neural network with an encoder-decoder structure.

[0018] The discriminator uses several convolution, pooling, batch normalization and activation function layers as a network structure for judging the authenticity of an input image. The input data of the discriminator is the label image data in the image dataset or the image data generated by the generator, and the output is the probability value that the image is a real image.

[0019] In a preferred embodiment of the present invention, the data stream of the deep learning network structure is two sets of data streams, and the two sets of data streams are respectively a jitter image data set and a and there is no jittered image dataset Composition, among which there is a jitter image dataset The specific transmission method is as follows: S1, from the jitter image dataset Extract any jittered image data ,in, .

[0020] S2, there will be jitter image data As a generator The input data is then used to output the corrected image data. , .

[0021] S3, the corrected image data As a discriminator Input data, the corrected image data Make a true jitter-free judgment and then output the corrected image data For real non-shaking image data The discriminant probability value of .

[0022] S4, the corrected image data As a generator Input data, and then output image data with jitter , .

[0023] In a preferred embodiment of the present invention, the adversarial training of the generator and the discriminator is to perform iterative training separately, and the specific training process of the iterative training includes: K1, initializing the parameters of the two groups of generators and the two groups of discriminators, and the parameters include weights and biases.

[0024] K2. There will be a jittered image dataset As a training set, a number of training set data samples are extracted from the training set.

[0025] K3. Through the generator Generate the same number of training set data samples as the training set data samples, and pass them through the generator Generate another set of training data set samples with the same number of training set data samples, and use the generator and generator The generated training set data samples are used as fake image samples.

[0026] K4, Fixed Generator , and update the discriminator Parameters of the generator , and update the discriminator Parameters.

[0027] K5. After updating the discriminator several times, update the fixed generator once Parameters and update generator once The parameters of the discriminator are fixed. and the discriminator Parameters.

[0028] K6. Repeat steps K4 and K5, training the generator and discriminator alternately.

[0029] K7, when the discriminator and the discriminator When the output discrimination probability value is 0.5, the training of the generator and the discriminator ends. and the discriminator When the output discrimination probability value is less than 0.5, return to step K6.

[0030] In a preferred embodiment of the present invention, the adversarial training of the generator and the discriminator also includes setting a loss function, and the specific formula of setting the loss function is: , To set the loss function, To combat losses, is the cycle consistency loss, Loss of identity.

[0031] In a preferred embodiment of the present invention, the specific expression of the anti-loss is as follows: ,in, represents the mathematical expectation, Indicates the existence of a jittered image dataset The presence of jitter in the image data , Indicates that there is no jitter image dataset There is no jitter image data in , Indicates that there is a jitter image dataset The presence of jitter in the image data The expected value obtained by performing the expected operation, Indicates that there is no jitter image dataset There is no dithered image data in The expected value of performing the expected operation.

[0032] The specific expression of the cycle consistency loss function is as follows: .

[0033] The specific expression of the identity loss function is as follows: .

[0034] Compared with the prior art, the beneficial effects of the present invention are as follows: (1) The present invention uses a semi-supervised deep learning method to learn two sets of data from different motion axes, directly optimizing the jittered image to an image without jitter errors, effectively solving the deficiencies of current hardware correction and software correction. It not only makes up for the scene limitations of the current hardware correction method and expands the applicable scenarios of image jitter removal, but also makes up for the deficiencies of current traditional methods and image jitter removal based on deep learning.

[0035] (2) The learning data of the present invention comes from a linear array camera assembly, that is, a single camera device, and does not use any additional sensors or related equipment to obtain more information. In practical applications, the rapid removal of image jitter is achieved on the basis of reducing costs.

[0036] (3) The present invention adopts a recurrent generative adversarial network to remove imaging errors caused by motion, thereby avoiding the constraints of high requirements for hyperparameter settings based on traditional image processing, greatly improving the effect of removing image jitter, and having good fit to training data. It can achieve jitter error removal while ensuring that important information in the image is not lost.

[0037] (4) The present invention uses the corresponding image data set obtained by the linear array camera as the training set. The data set creation method is relatively simple and easy to implement, avoiding the disadvantage of full supervision that the data set has high requirements, facilitating the subsequent deep learning network structure training, and thus improving the efficiency and stability of subsequent image jitter removal. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0039] Figure 1 This is a schematic diagram of image acquisition by the linear array camera of the present invention in cooperation with the motion platform.

[0040] Figure 2 The present invention is a schematic flow chart of the steps for implementing the method.

[0041] Figure 3 A schematic diagram of a cyclically generated adversarial network of the present invention. DETAILED DESCRIPTION

[0042] 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.

[0043] See also Figure 2 As shown, the present invention provides a method for removing imaging jitter of a linear array camera under a multi-axis motion platform, the method comprising the following steps: Step 1, data set acquisition: when the motion platform moves in different motion directions, corresponding image data sets are acquired by the linear array camera, and the motion directions include lateral motion and longitudinal motion.

[0044] Specifically, see Figure 1 As shown, obtaining the corresponding image data set through the linear array camera specifically includes: when the motion platform moves laterally, obtaining the image data set with jitter through the linear array camera, which is recorded as .

[0045] When the motion platform moves longitudinally, a non-jitter image dataset is obtained through a linear array camera, which is denoted as .

[0046] in, Figure 1 The camera module shown is the line array camera described in the present invention.

[0047] The data learned by the embodiment of the present invention comes from a linear array camera assembly, that is, a single camera device, and does not use any additional sensors or related devices to obtain more information. In practical applications, rapid removal of image jitter is achieved on the basis of reducing costs.

[0048] The embodiment of the present invention also uses the corresponding image data set obtained by the linear array camera as a training set. The data set creation method is relatively simple and easy to implement, avoiding the deficiency of full supervision on the high requirements of the data set, facilitating the subsequent deep learning network structure training, and thus improving the efficiency and stability of subsequent image jitter removal.

[0049] See also Figure 3As shown, step 2, network structure construction: by adopting a cyclic generative adversarial network, a deep learning network structure is obtained, and the deep learning network structure consists of two groups of generators And two sets of discriminators composition.

[0050] Specifically, the generator The input is the jittered image data, and the output is the image data after the jitter is removed. The input is image data without jitter, and the output is image data with jitter.

[0051] In a specific embodiment, the generator structure is a convolutional neural network of an encoder-decoder structure, and the encoder includes multiple convolution, pooling and activation functions for feature extraction and pixel compression. At the same time, batch normalization is added between the pooling and activation functions to suppress overfitting. The decoder also includes convolution, batch normalization and activation functions. Deconvolution is used for image upsampling so that the network can learn more image information.

[0052] Furthermore, the discriminator uses several convolution, pooling, batch normalization and activation function layers as a network structure for judging the authenticity of the input image. The input data of the discriminator is the label image data in the image dataset or the image data generated by the generator, and the output is the probability value that the image is a real image.

[0053] Furthermore, the data stream of the deep learning network structure is two sets of data streams, and the two data streams are respectively a jitter image data set and there is no jittered image dataset Composition, among which there is a jitter image dataset The specific transmission method is as follows: S1, from the jitter image dataset Extract any jittered image data ,in, .

[0054] S2, there will be jitter image data As a generator The input data is then used to output the corrected image data. , .

[0055] S3, the corrected image data As a discriminator Input data, the corrected image data Make a true jitter-free judgment and then output the corrected image data For real non-shaking image data The discriminant probability value of .

[0056] S4, the corrected image data As a generator Input data, and then output image data with jitter , .

[0057] Understandably, by comparing the generator The input image data and generator Output image data The closed loop of the data stream can be realized, and the closed loop of another set of data streams can be realized similarly.

[0058] It should be noted that there is no jitter image dataset The specific transfer method and the existence of jitter image dataset The specific transmission method is similar to that of the above-mentioned. The specific transmission process is as follows: F1. From the non-shaking image dataset Extract any non-shaking image data ,in, .

[0059] F2, there will be no jitter image data As a generator Input data, and then output image data with jitter , .

[0060] F3, image data with jitter As a discriminator Input data, for image data with jitter Perform real jitter judgment and then output image data with jitter For real jitter image The discriminant probability value of .

[0061] F4: Image data with jitter As a generator The input data is then output to correct the image data. , .

[0062] The embodiment of the present invention adopts a cyclic generative adversarial network to remove imaging errors caused by motion, thereby avoiding the constraints of high requirements for hyperparameter settings based on traditional image processing, greatly improving the effect of removing image jitter, and having good fit to training data. It can achieve jitter error removal while ensuring that important information in the image is not lost.

[0063] Step 3: Network structure training: Perform adversarial training on the generator and discriminator.

[0064] It can be understood that the adversarial training of the generator and the discriminator is to perform iterative training separately, and the specific training process of the iterative training includes: K1, initializing the parameters of the two groups of generators and the two groups of discriminators, and the parameters include weights and biases.

[0065] In a specific embodiment, the method of initializing the parameters of the two groups of generators and the two groups of discriminators includes but is not limited to zero initialization, random initialization, Xavier / Glorot initialization and He initialization. The zero initialization is to initialize the weights and biases of the two groups of generators and the two groups of discriminators to zero, the random initialization is to use small random values ​​to initialize the weights and biases, Xavier / Glorot initialization is an initialization method specially designed for networks with Sigmoid or Tanh activation functions, aiming to keep the variance of the weights stable during forward propagation and backward propagation, and He initialization is an initialization method suitable for the ReLU activation function, aiming to keep the variance of the weights stable during forward propagation and backward propagation. According to the characteristics of the initialization methods, any one of random initialization, Xavier / Glorot initialization and He initialization can be selected in the present invention.

[0066] K2. There will be a jittered image dataset As a training set, a number of training set data samples are extracted from the training set.

[0067] K3. Through the generator Generate the same number of training set data samples as the training set data samples, and pass them through the generator Generate another set of training data set samples with the same number of training set data samples, and use the generator and generator The generated training set data samples are used as fake image samples.

[0068] K4, Fixed Generator , and update the discriminator Parameters of the generator , and update the discriminator Parameters.

[0069] It should be added that updating the discriminator The parameters of the discriminator need to be Try to distinguish the true and false images as much as possible, that is, minimize the loss of real images and maximize the loss of the generator Generate the loss of the image and update the discriminator in the same way The parameters of the discriminator need to be Try to distinguish the true and false images as much as possible, that is, minimize the loss of real images and maximize the loss of images generated by generator G2.

[0070] In a specific embodiment, minimizing the loss of the real image and maximizing the loss of the image generated by the generator are achieved by setting a loss function. The specific formula of setting the loss function of the present invention is: , To set the loss function, To combat losses, is the cycle consistency loss, Loss of identity.

[0071] Furthermore, the specific expression of adversarial loss is as follows: ,in, represents the mathematical expectation, Indicates the existence of a jittered image dataset The presence of jitter in the image data , Indicates that there is no jitter image dataset There is no jitter image data in , Indicates that there is a jitter image dataset The presence of jitter in the image data The expected value obtained by performing the expected operation, Indicates that there is no jitter image dataset There is no dithered image data in The expected value of performing the expected operation.

[0072] It should be added that the significance of the adversarial loss formula is to make the generator Generate image data as much as possible Compared with the non-shaking image dataset The details of the image data without jitter are more similar, while the discriminator Is to distinguish whether the input image data is from real image data without jitter Or a generator Generated image data , where. The role of adversarial loss is to improve the performance of the generator and the discriminator to achieve an ideal Nash equilibrium state.

[0073] Furthermore, the expression of cycle consistency loss is as follows: .

[0074] It should be added that the role of the cycle consistency loss is to constrain the generated image data of the two generators to ensure that the image data remains consistent after passing through the generators twice. The subscript 1 shown in the figure represents the L1 loss in machine learning, that is, the mean absolute error loss.

[0075] Furthermore, the expression of identity loss is as follows: .

[0076] It should be added that the identity loss is mainly used to train the recognition ability of the network, and the real image data, that is, the image data without jitter Input Discriminator In the example above, we check the recognition loss of the discriminator. The smaller the value, the better. This means that the generator network truly understands that there is no jitter image data. structure.

[0077] In a specific embodiment, the discriminator Used for image data with jitter Generate corrected image data The judger performs the real jitter-free judgment, and the discriminator For image data without jitter Generate a jittery image A judger for true jitter judgment.

[0078] K5. After updating the discriminator several times, update the fixed generator once Parameters and update generator once The parameters of the discriminator are fixed. and the discriminator Parameters.

[0079] In a specific embodiment, the purpose of updating the generator once is to make the discriminator unable to distinguish whether the image is a real image without jitter or a real image with jitter or an image generated by the corresponding generator, that is, to update the fixed generator once. Mainly to make and It is impossible to distinguish whether the image is real or generated by the generator. Generated image, update the fixed generator once Yes and It is impossible to distinguish whether the image is real or generated by the generator. The generated image.

[0080] K6. Repeat steps K4 and K5, training the generator and discriminator alternately.

[0081] K7, when the discriminator and the discriminator When the output discrimination probability value is 0.5, the training of the generator and the discriminator ends. and the discriminator When the output discrimination probability value is less than 0.5, return to step K6.

[0082] Understandably, when the discriminator and the discriminator When the output discrimination probability value is 0.5, it indicates that the generator effect is good enough at this time, that is, the training has been completed, and then the training of the generator and discriminator ends.

[0083] Step 4: Image jitter removal: Input the image data in the corresponding image data set of different motion directions into the degree learning network structure for training, and then output image data without jitter error.

[0084] Specifically, after completing the network training, the jitter error in the image can be removed. , output image data without jitter error ,Right now: .

[0085] The embodiment of the present invention uses a semi-supervised deep learning method to learn two sets of data from different motion axes, and then directly optimizes the jittered image to an image without jitter errors, effectively solving the deficiencies of current hardware correction and software correction. It not only makes up for the scene limitations of the current hardware correction method and expands the applicable scenarios of image jitter removal, but also makes up for the deficiencies of current traditional methods and image jitter removal based on deep learning.

[0086] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the present invention, they shall all fall within the protection scope of the present invention.

Claims

1. A method for removing imaging jitter of a linear array camera on a multi-axis motion platform, characterized in that: The method comprises the following steps: Step 1, data set acquisition: when the motion platform moves in different motion directions, corresponding image data sets are acquired through a linear array camera, and the motion directions include lateral motion and longitudinal motion; Step 2: Network structure construction: By adopting a cyclic generative adversarial network, a deep learning network structure is obtained. The deep learning network structure consists of two sets of generators. And two sets of discriminators composition; Step 3: Network structure training: conduct adversarial training of the generator and the discriminator; Step 4, image jitter removal: input the image data in the corresponding image data set of different motion directions into the degree learning network structure for training, and then output image data without jitter error; The obtaining of the corresponding image data set by the linear array camera specifically includes: When the motion platform moves laterally, a jitter image dataset is obtained through a linear array camera, which is recorded as ; When the motion platform moves longitudinally, a non-jitter image dataset is obtained through a linear array camera, which is denoted as ; The generator The input is the image data with jitter, and the output is the image data after the jitter is removed; The generator The input is image data without jitter, and the output is image data with jitter; The data stream of the deep learning network structure is two sets of data streams, and the two sets of data streams are respectively a jitter image data set and a and there is no jittered image dataset Composition, among which there is a jitter image dataset The specific delivery method is: S1. From the jittered image dataset Extract any jittered image data ,in, ; S2, there will be jitter image data As a generator The input data is then used to output the corrected image data. , ; S3, the corrected image data As a discriminator Input data, the corrected image data Make a true jitter-free judgment and then output the corrected image data For real non-shaking image data The discriminant probability value of ; S4, the corrected image data As a generator Input data, and then output image data with jitter , ; The adversarial training of the generator and the discriminator is to perform iterative training respectively, and the specific training process of the iterative training includes: K1, initialize the parameters of two groups of generators and two groups of discriminators, the parameters including weights and biases; K2. There will be a jittered image dataset As a training set, extracting a number of training set data samples from the training set; K3. Through the generator Generate the same number of training set data samples as the training set data samples, and pass them through the generator Generate another set of training data set samples with the same number of training set data samples, and use the generator and generator The generated training set data samples are used as fake image samples; K4, Fixed Generator , and update the discriminator Parameters of the generator , and update the discriminator Parameters; K5. After updating the discriminator several times, update the fixed generator once Parameters and update generator once , and fix the discriminator and the discriminator Parameters; K6, repeat steps K4 and K5, alternately training the generator and discriminator; K7, when the discriminator and the discriminator When the output discrimination probability value is 0.5, the training of the generator and the discriminator ends. and the discriminator When the output discrimination probability value is less than 0.5, return to step K6; The adversarial training of the generator and the discriminator also includes setting a loss function, and the specific formula of setting the loss function is: , To set the loss function, To combat losses, is the cycle consistency loss, for loss of identity; The specific expression of the adversarial loss is as follows: ,in, represents the mathematical expectation, Indicates the existence of a jittered image dataset The presence of jitter in the image data , Indicates that there is no jitter image dataset There is no jitter image data in , Indicates that there is a jitter image dataset The presence of jitter in the image data The expected value obtained by performing the expected operation, Indicates that there is no jitter image dataset There is no dithered image data in The expected value obtained by performing the expected operation; The specific expression of the cycle consistency loss function is as follows: ; The specific expression of the identity loss function is as follows: .

2. The method for removing imaging jitter of a linear array camera under a multi-axis motion platform according to claim 1, characterized in that: The generator structure is a convolutional neural network with an encoder-decoder structure; The discriminator uses several convolution, pooling, batch normalization and activation function layers as a network structure for judging the authenticity of an input image. The input data of the discriminator is the label image data in the image dataset or the image data generated by the generator, and the output is the probability value that the image is a real image.