Projection quality enhancement method and device
By performing neural network-based quality enhancement processing on the input image of the projection device, the problem of insufficient projection quality is solved, the projection quality of the projection device is improved, and the immersion and authenticity requirements in augmented reality and virtual reality applications are met.
Patent Information
- Application Number
- CN202410651553.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-03
AI Technical Summary
The projection quality of existing projection technologies is insufficient to meet the immersion and authenticity requirements in augmented reality and virtual reality applications.
Use training samples to train the preset image processing neural network, obtain the input image of the projection device and perform quality enhancement processing, perform image processing through the geometric correction network, the first sub-network and the second sub-network, and adjust parameters to improve the projection quality .
Before the projection device performs projection output, quality enhancement processing is performed on the input image, which significantly improves the projection quality and meets the immersion and authenticity requirements in augmented reality and virtual reality applications.
Smart Images

Figure CN118590629A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a projection quality enhancement method and device. Background Art
[0002] With the development of augmented reality and virtual reality technologies, projection technology, which was once widely used in the field of civilian entertainment, has not only been further developed in the fields of entertainment, film and television, office, etc., but has also begun to emerge in related fields such as manufacturing, education and medical care. In these practical fields, augmented reality and virtual reality application scenarios require restoration and immersion, which are difficult to meet in the original projection system. The insufficient projection quality of the projection system is an important problem in projection technology. The purpose of projection quality enhancement research is to modify the input image through the study of the original input image and the projected imaging to achieve the purpose of reconstructing the projection quality. Solving the problem of insufficient projection quality in the projection system through projection quality enhancement research is of great significance for the practical application of various projection systems that require immersion and authenticity. Therefore, how to process the projection input image to improve the quality of the projection is an urgent problem that the existing technology needs to solve. Summary of the invention
[0003] In order to solve at least one technical problem in the above-mentioned background technology, the present invention proposes a projection quality enhancement method and device.
[0004] In order to achieve the above object, according to one aspect of the present invention, a projection quality enhancement method is provided, the method comprising:
[0005] Obtain an input image from a projection device;
[0006] The input image is input into a trained projection quality enhancement model to obtain a quality-enhanced input image output by the projection quality enhancement model, so that the projection device performs projection output based on the quality-enhanced input image, wherein the projection quality enhancement model is obtained by training a preset image processing neural network using training samples, and each of the training samples includes: a first image and a second image, the first image being an input image of the projection device used for model training, and the second image being a projection image output by the projection device based on the first image and acquired by an image acquisition device.
[0007] Optionally, the projection quality enhancement method further includes:
[0008] Acquire a first image and a second image, wherein the first image is an input image of the projection device for model training, and the second image is a projection image output by the projection device based on the first image and acquired by an image acquisition device;
[0009] A training sample is created according to the first image and the second image.
[0010] Optionally, the projection quality enhancement method further includes:
[0011] The preset image processing neural network is trained according to the training samples to obtain the projection quality enhancement model.
[0012] Optionally, the image processing neural network specifically includes: a geometric correction network, a first subnetwork and a second subnetwork; the geometric correction network is used to convert the projection image captured by the image acquisition device into an image that is pixel-aligned with the input image of the projection device; the first subnetwork is used to simulate the inverse process of imaging by the image acquisition device; the second subnetwork is used to simulate the inverse process of outputting the projection image by the projection device.
[0013] Optionally, the step of training a preset image processing neural network according to the training samples to obtain the projection quality enhancement model specifically includes:
[0014] Inputting a second image in the training sample into the geometric correction network;
[0015] Inputting the image output by the geometric correction network into the first sub-network;
[0016] Inputting the image output by the first sub-network into the second sub-network;
[0017] Calculate the loss function according to the image output by the second sub-network and the first image in the training sample;
[0018] Parameters in the image processing neural network are adjusted based on the calculated loss function.
[0019] Optionally, the step of inputting the input image into a trained projection quality enhancement model to obtain the quality-enhanced input image output by the projection quality enhancement model specifically includes:
[0020] The input image is input into a geometric correction network in the projection quality enhancement model, and then an image output by a second subnetwork in the projection quality enhancement model is determined as the quality-enhanced input image.
[0021] Optionally, the adjusting of parameters in the image processing neural network based on the calculated loss function specifically includes:
[0022] The thin plate spline parameters, affine transformation parameters and parameters of each convolution layer of the geometric correction network are adjusted, and the parameters of each convolution layer in the first sub-network and the second sub-network are adjusted.
[0023] Optionally, the first sub-network and the second sub-network use skip connections between upsampling and downsampling.
[0024] In order to achieve the above object, according to another aspect of the present invention, a projection quality enhancement device is provided, the device comprising:
[0025] An input image acquisition unit, used to acquire an input image of a projection device;
[0026] A quality enhancement processing unit is used to input the input image into a trained projection quality enhancement model to obtain a quality-enhanced input image output by the projection quality enhancement model, so that the projection device performs projection output based on the quality-enhanced input image, wherein the projection quality enhancement model is obtained by training a preset image processing neural network using training samples, and each of the training samples includes: a first image and a second image, the first image being an input image of the projection device used for model training, and the second image being a projection image output by the projection device based on the first image and acquired by an image acquisition device.
[0027] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned projection quality enhancement method when executing the computer program.
[0028] In order to achieve the above objective, according to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the steps of the above projection quality enhancement method are implemented.
[0029] In order to achieve the above object, according to another aspect of the present invention, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above projection quality enhancement method when executed by a processor.
[0030] The beneficial effects of the present invention are:
[0031] The present invention performs quality enhancement processing on the input image of the projection device based on a trained projection quality enhancement model before the projection device performs projection output, and then the projection device performs projection output based on the quality-enhanced input image, thereby improving the projection quality of the projection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0033] Figure 1 is a flow chart of a method for enhancing projection quality according to an embodiment of the present invention;
[0034] Figure 2 is a flow chart of generating training samples according to an embodiment of the present invention;
[0035] Figure 3 is a flow chart of model training according to an embodiment of the present invention;
[0036] Figure 4 is a schematic diagram of an image processing neural network according to an embodiment of the present invention;
[0037] Figure 5 is a structural block diagram of a projection quality enhancement device according to an embodiment of the present invention;
[0038] Figure 6 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0040] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0041] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0042] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0043] It should be noted that the information collected in the technical solution of this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0044] It should be noted that the technical solution of this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0045] It should be noted that the projection quality enhancement method and device of the present invention can be used in the financial field, and can also be used in any field other than the financial field. The application field of the projection quality enhancement method and device of the present invention is not limited.
[0046] In order to solve the problem of projection quality degradation existing in various projection systems, the present invention proposes a projection quality enhancement algorithm based on a convolutional neural network, and realizes the reconstruction and enhancement of the projection quality of the projection system based on convolution.
[0047] Figure 1 is a flow chart of a method for enhancing projection quality according to an embodiment of the present invention. Figure 1 As shown, in one embodiment of the present invention, the projection quality enhancement method of the present invention includes step S101 and step S102.
[0048] Step S101, obtaining an input image of a projection device.
[0049] In the present invention, the input image of the projection device is an original image input to the projection device, and the projection device performs projection output based on the image.
[0050] In an optional embodiment of the present invention, the projection device may specifically be a projector.
[0051] Step S102: input the input image into a trained projection quality enhancement model to obtain a quality-enhanced input image output by the projection quality enhancement model, so that the projection device performs projection output based on the quality-enhanced input image, wherein the projection quality enhancement model is obtained by training a preset image processing neural network using training samples, and each of the training samples includes: a first image and a second image, wherein the first image is an input image of the projection device used for model training, and the second image is a projection image output by the projection device based on the first image and acquired by an image acquisition device.
[0052] In an optional embodiment of the present invention, the image acquisition device may specifically be a camera.
[0053] In the present invention, the projection device projects an image onto a screen or a wall, and the image acquisition device acquires the projected image on the screen or the wall.
[0054] It can be seen that, before the projection device performs projection output, the present invention performs quality enhancement processing on the input image of the projection device based on the trained projection quality enhancement model, and then the projection device performs projection output based on the quality-enhanced input image, thereby improving the projection quality of the projection device.
[0055] Figure 2 It is a flow chart of the present invention to generate training samples, such as Figure 2 As shown, in one embodiment of the present invention, the process of generating training samples of the present invention includes step S201 and step S202.
[0056] Step S201, acquiring a first image and a second image, wherein the first image is an input image of the projection device used for model training, and the second image is a projection image output by the projection device based on the first image and acquired by an image acquisition device.
[0057] Step S202: creating training samples according to the first image and the second image.
[0058] The present invention designs a neural network according to the projection inverse process and builds a projection environment. Due to the demand for projected data set collection, it is necessary to build a camera with a suitable angle in the projection system to form a new projection environment with the original system.
[0059] The present invention collects a large amount of data to establish a training sample set and train a neural network in a projection environment where projection quality enhancement is required. Pairs of camera-captured images (i.e., second images) and projector input images (i.e., first images) are collected as inputs of the network for training. In order to ensure the availability of the network, a large amount of data needs to be collected to construct a training sample set, and the number of training samples is preferably 8,000 or more.
[0060] In one embodiment of the present invention, after the above step S202, the method of the present invention further includes:
[0061] The preset image processing neural network is trained according to the training samples to obtain the projection quality enhancement model.
[0062] In one embodiment of the present invention, the image processing neural network specifically includes: a geometric correction network, a first sub-network and a second sub-network.
[0063] The geometric correction network is used to transform the projection image acquired by the image acquisition device into an image that is aligned with the input image pixels of the projection device.
[0064] The first sub-network is used to simulate the inverse process of imaging by the image acquisition device.
[0065] The second sub-network is used to simulate the inverse process of the projection device outputting a projection image.
[0066] like Figure 4 As shown, the complete image processing neural network of the present invention involves two projection process simulation networks (i.e., the first subnetwork and the second subnetwork), and a geometric correction network, which correspond to the camera imaging inverse process and the projector projection surface inverse process, and the geometric distortion inverse process in the projector camera system, respectively. During training, the projection image (i.e., the second image) captured by the camera is first input into the geometric correction network to generate a camera image that is pixel-aligned with the projector input image. This image is then input into the first projection process simulation network (i.e., the first subnetwork), and the output of the first projection process simulation network is used as the input of the second projection process simulation network (i.e., the second subnetwork). The geometric correction network, the first subnetwork, and the second subnetwork are described in detail below.
[0067] Geometric correction network. In the projection system, it is impossible for the picture taken by the camera to be aligned with the four corners of the projected image. The final imaging shape of the input image may produce large geometric distortion, and the image captured by the camera contains screen background information other than the input image. Therefore, a method is needed to convert the image captured by the camera into an image that is pixel-aligned with the projector input image. Most of the existing geometric correction methods are traditional algorithms. The use of a geometric correction network can not only integrate this step into the overall training process, but also lead other methods in terms of correction accuracy. The geometric correction network first includes two learnable modules, thin plate spline parameters and affine transformation parameters. The present invention designs a grid refinement network to adjust the overall correction effect. Therefore, the training parameters of the geometric correction network include thin plate spline parameters TPS and affine transformation parameters AFF as well as the parameters of each convolutional layer.
[0068] The projection process simulation network includes two sub-networks, which respectively represent the nonlinear transformation inside the camera and the transformation on the projection surface of the projector in the projection enhancement projector-camera system model. The two sub-networks together constitute the inverse projection process. Since the nonlinear transformation inside the camera is similar to the nonlinear transformation inside the projector, the first sub-network and the second sub-network of the present invention can adopt the same network structure. The first sub-network uses the output of the geometric correction network as input to model the inverse process of camera imaging. The second sub-network models the inverse process of the projector and the projection surface. The two networks constitute the inverse process of the entire projection. The two sub-networks use jump connections between up and down sampling. The specific structure is as follows: Figure 4 As shown, such a jump connection structure can integrate high-level abstract features into low-level representational features (projection pattern geometry, etc.) while filtering out invalid low-level representational features in the projection process (unstable color spots caused by mutual reflection, etc.).
[0069] like Figure 4 As shown in the figure, the downsampling in each subnetwork of the first subnetwork and the second subnetwork is a 3×3 convolution with a step size of 2 to halve the size of the feature map, and the upsampling is a 2×2 deconvolution with a step size of 2 to double the size of the feature map. In the jump connection, the input feature map is downsampled once and upsampled once to obtain a feature map with the same number of channels as the input size, and the output is concat with the current feature map. In the residual block, the input feature map is first downsampled once to obtain a feature map with a size of half the original input, and then the features are extracted without changing the size of the feature map through two convolutions with a convolution kernel of 3×3 and a convolution step size of 1. Finally, an output feature map with the same size as the input size is obtained by upsampling once. In order to prevent the gradient from disappearing in the residual block and enable the network to obtain better robustness and generalization ability, Prelu is used as the activation function in the residual block. The number of residual blocks can be increased or decreased according to the complexity of the specific projection environment, the configuration of the training machine and other factors.
[0070] In one embodiment of the present invention, the first sub-network and the second sub-network use skip connections between upsampling and downsampling.
[0071] like Figure 3 As shown, in one embodiment of the present invention, the above steps of training a preset image processing neural network according to the training samples to obtain the projection quality enhancement model specifically include steps S301 to S305.
[0072] Step S301: input the second image in the training sample into the geometric correction network.
[0073] Step S302: input the image output by the geometric correction network into the first sub-network.
[0074] Step S303: input the image output by the first sub-network into the second sub-network.
[0075] Step S304: calculate the loss function according to the image output by the second sub-network and the first image in the training sample.
[0076] like Figure 4 As shown, the output of the image processing neural network of the present invention is the image output by the second sub-network.
[0077] Step S305: adjusting parameters in the image processing neural network based on the calculated loss function.
[0078] The present invention uses the above steps S301 to S305 to continuously train the image processing neural network until a preset number of training times is reached or the loss function meets preset requirements, and the network at this time is determined as a projection quality enhancement model.
[0079] In the present invention, after the projection quality enhancement model is trained, the image to be projected (ie, the input image) is used as the input of the projection quality enhancement model to obtain an output quality-enhanced input image, which may also be called a compensated image.
[0080] In the present invention, when the projection device is projecting, the quality-enhanced input image is used as the input of the projector, and the quality-enhanced reconstructed projection effect can be obtained. When there is a demand for video or global image quality reconstruction, the present invention needs to develop corresponding real-time conversion tools and pay attention to the balance between model size and frame rate.
[0081] In one embodiment of the present invention, the step S102 of inputting the input image into a trained projection quality enhancement model to obtain the quality-enhanced input image output by the projection quality enhancement model specifically includes:
[0082] The input image is input into a geometric correction network in the projection quality enhancement model, and then an image output by a second subnetwork in the projection quality enhancement model is determined as the quality-enhanced input image.
[0083] In the present invention, in the model application, the input image of the projection device is input into the geometric correction network, and after being processed by the three-layer network of the geometric correction network, the first sub-network and the second sub-network, the second sub-network outputs the input image with enhanced quality.
[0084] In one embodiment of the present invention, the step S305 of adjusting the parameters in the image processing neural network based on the calculated loss function specifically includes:
[0085] The thin plate spline parameters, affine transformation parameters and parameters of each convolution layer of the geometric correction network are adjusted, and the parameters of each convolution layer in the first sub-network and the second sub-network are adjusted.
[0086] It can be seen from the above embodiments that the present invention proposes a projection quality enhancement algorithm based on a convolutional neural network to solve the problem of projection quality degradation in various projection systems, and realizes the reconstruction and enhancement of the projection quality of the projection system based on convolution. The neural network structure proposed by the present invention conforms to the mathematical model of the projector camera system, and the integrated geometric correction subnetwork makes the neural network proposed by the patent meet the universal requirements of the projection quality enhancement algorithm.
[0087] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0088] Based on the same inventive concept, an embodiment of the present invention also provides a projection quality enhancement device, which can be used to implement the projection quality enhancement method described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by the projection quality enhancement device is similar to that of the projection quality enhancement method, the embodiment of the projection quality enhancement device can refer to the embodiment of the projection quality enhancement method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements predetermined functions. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0089] Figure 5 is a structural block diagram of a projection quality enhancement device according to an embodiment of the present invention. Figure 5 As shown, in one embodiment of the present invention, the projection quality enhancement device of the present invention comprises:
[0090] An input image acquisition unit 1 is used to acquire an input image of a projection device;
[0091] The quality enhancement processing unit 2 is used to input the input image into a trained projection quality enhancement model to obtain a quality-enhanced input image output by the projection quality enhancement model, so that the projection device performs projection output based on the quality-enhanced input image, wherein the projection quality enhancement model is obtained by training a preset image processing neural network using training samples, and each of the training samples includes: a first image and a second image, the first image being an input image of the projection device used for model training, and the second image being a projection image output by the projection device based on the first image and acquired by an image acquisition device.
[0092] In one embodiment of the present invention, the projection quality enhancement device of the present invention further includes:
[0093] An image acquisition unit, configured to acquire a first image and a second image, wherein the first image is an input image of the projection device for model training, and the second image is a projection image output by the projection device based on the first image and acquired by an image acquisition device;
[0094] The training sample generating unit is used to create a training sample according to the first image and the second image.
[0095] In one embodiment of the present invention, the projection quality enhancement device of the present invention further includes:
[0096] A model training unit is used to train a preset image processing neural network according to the training samples to obtain the projection quality enhancement model.
[0097] In one embodiment of the present invention, the image processing neural network specifically includes: a geometric correction network, a first subnetwork and a second subnetwork; the geometric correction network is used to convert the projection image captured by the image acquisition device into an image aligned with the input image pixels of the projection device; the first subnetwork is used to simulate the inverse process of imaging by the image acquisition device; the second subnetwork is used to simulate the inverse process of outputting the projection image by the projection device.
[0098] In one embodiment of the present invention, the model training unit specifically includes:
[0099] A first processing module, used for inputting a second image in the training sample into the geometric correction network;
[0100] A second processing module, used for inputting the image output by the geometric correction network into the first sub-network;
[0101] A third processing module, used for inputting the image output by the first sub-network into the second sub-network;
[0102] a fourth processing module, configured to calculate a loss function according to the image output by the second sub-network and the first image in the training sample;
[0103] The fifth processing module is used to adjust the parameters in the image processing neural network based on the calculated loss function.
[0104] In one embodiment of the present invention, the quality enhancement processing unit 2 specifically includes:
[0105] The model processing module is used to input the input image into the geometric correction network in the projection quality enhancement model, and then determine the image output by the second sub-network in the projection quality enhancement model as the quality-enhanced input image.
[0106] In one embodiment of the present invention, the fifth processing module is specifically used to: adjust the thin plate spline parameters, affine transformation parameters and parameters of each convolution layer of the geometric correction network, and adjust the parameters of each convolution layer in the first sub-network and the second sub-network.
[0107] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Figure 6 As shown, the computer device includes a memory, a processor, a communication interface and a communication bus. A computer program that can be executed on the processor is stored in the memory. When the processor executes the computer program, the steps in the above-mentioned embodiment method are implemented.
[0108] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0109] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.
[0110] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0111] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.
[0112] The specific details of the above-mentioned computer device can be understood by referring to the corresponding related descriptions and effects in the above-mentioned embodiments, and will not be repeated here.
[0113] In order to achieve the above purpose, according to another aspect of the present application, a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores a computer program, and the computer program implements the steps in the above-mentioned projection quality enhancement method when executed in a computer processor. Those skilled in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the processes of the embodiments of the above-mentioned methods when executed. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0114] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer program product is further provided, comprising a computer program / instruction, which implements the steps of the above-mentioned projection quality enhancement method when executed by a processor.
[0115] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0116] 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 projection quality enhancement method, characterized in that: include: Obtain an input image from a projection device; The input image is input into a trained projection quality enhancement model to obtain a quality-enhanced input image output by the projection quality enhancement model, so that the projection device performs projection output based on the quality-enhanced input image, wherein the projection quality enhancement model is obtained by training a preset image processing neural network using training samples, and each of the training samples includes: a first image and a second image, the first image being an input image of the projection device used for model training, and the second image being a projection image output by the projection device based on the first image and acquired by an image acquisition device.
2. The projection quality enhancement method according to claim 1, characterized in that: Also includes: Acquire a first image and a second image, wherein the first image is an input image of the projection device for model training, and the second image is a projection image output by the projection device based on the first image and acquired by an image acquisition device; A training sample is created according to the first image and the second image.
3. The projection quality enhancement method according to claim 2, characterized in that: Also includes: The preset image processing neural network is trained according to the training samples to obtain the projection quality enhancement model.
4. The projection quality enhancement method according to claim 3, characterized in that: The image processing neural network specifically includes: a geometric correction network, a first subnetwork and a second subnetwork; the geometric correction network is used to transform the projection image captured by the image acquisition device into an image aligned with the pixels of the input image of the projection device; the first subnetwork is used to simulate the inverse process of imaging by the image acquisition device; the second subnetwork is used to simulate the inverse process of outputting the projection image by the projection device.
5. The projection quality enhancement method according to claim 4, characterized in that: The step of training a preset image processing neural network according to the training samples to obtain the projection quality enhancement model specifically includes: Inputting a second image in the training sample into the geometric correction network; Inputting the image output by the geometric correction network into the first sub-network; Inputting the image output by the first sub-network into the second sub-network; Calculate the loss function according to the image output by the second sub-network and the first image in the training sample; Parameters in the image processing neural network are adjusted based on the calculated loss function.
6. The projection quality enhancement method according to claim 5, characterized in that: The step of inputting the input image into the trained projection quality enhancement model to obtain the quality-enhanced input image output by the projection quality enhancement model specifically includes: The input image is input into a geometric correction network in the projection quality enhancement model, and then an image output by a second subnetwork in the projection quality enhancement model is determined as the quality-enhanced input image.
7. The projection quality enhancement method according to claim 5, characterized in that: The adjustment of the parameters in the image processing neural network based on the calculated loss function specifically includes: The thin plate spline parameters, affine transformation parameters and parameters of each convolution layer of the geometric correction network are adjusted, and the parameters of each convolution layer in the first sub-network and the second sub-network are adjusted.
8. The projection quality enhancement method according to claim 4, characterized in that: The first sub-network and the second sub-network use skip connections between upsampling and downsampling.
9. A projection quality enhancement device, characterized in that: include: An input image acquisition unit, used to acquire an input image of a projection device; A quality enhancement processing unit is used to input the input image into a trained projection quality enhancement model to obtain a quality-enhanced input image output by the projection quality enhancement model, so that the projection device performs projection output based on the quality-enhanced input image, wherein the projection quality enhancement model is obtained by training a preset image processing neural network using training samples, and each of the training samples includes: a first image and a second image, the first image being an input image of the projection device used for model training, and the second image being a projection image output by the projection device based on the first image and acquired by an image acquisition device.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
