Light leakage processing and edge blanking method and device for fusion projection
Through image edge recognition and grid pixelation adjustment technology, the problems of light leakage and edge gaps in projection fusion are solved, high-precision image fusion is achieved, manual operation costs are reduced, and user experience is improved.
Patent Information
- Application Number
- CN202410934435.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-11
AI Technical Summary
Existing technologies have connection deviation problems such as light leakage and edge gaps during the projection fusion process, resulting in poor user experience and requiring a lot of manpower and time costs for adjustments, making it difficult to achieve accurate image fusion.
By obtaining the image and image format information to be fused, using the image edge recognition algorithm to identify the image edge information, and adjusting the image content based on the grid pixelation adjustment strategy to ensure image format consistency and edge shape rectangularization, automatic image fusion processing is achieved.
It improves the accuracy of connection deviation processing in projection fusion, reduces manual operation costs and time costs, improves user experience, and avoids light leakage and edge gap problems.
Smart Images

Figure CN118764594A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of projection optimization processing, and in particular to a method and device for light leakage processing and edge blanking of fused projection. Background Art
[0002] With the development of projection technology, in order to have a more comprehensive understanding of the actual layout of different environments, multiple images of the same environment are often collected through multiple acquisition devices, and multiple images are projected into the same screen, so as to obtain more three-dimensional and intuitive projection data. This method not only improves the user's projection experience, but also enables a more intuitive and comprehensive understanding of the multi-location data of the environment. However, in the projection fusion process, due to the deviation of the projection data and projection parameters of each image, the multi-image projection fusion will have projection connection deviations such as light leakage or edge gaps, resulting in a poor user experience of multi-image projection. Therefore, how to improve the elimination of the connection deviation problem of projection fusion is the current research focus.
[0003] The traditional method of processing connection deviation of projection fusion is to manually adjust the image parameters of each image and the projection data, so as to adjust the fusion gap of the two projections little by little, so as to ensure the elimination of connection deviation of projection fusion. However, this method requires a lot of manpower and time costs. Moreover, in the process of eliminating connection deviation, some projection contents are adjusted during the process of manual adjustment. The whole image cannot be adjusted adaptively as a whole, so that the adjusted fused image has problems such as image missing, image dislocation, image deformation, etc., which leads to low processing accuracy of connection deviation of projection fusion. Summary of the invention
[0004] The main purpose of the present invention is to provide a method and device for light leakage processing and edge hiding of fused projection, aiming to solve the problem that a large amount of manpower and time costs are consumed in the prior art, and that in the process of eliminating connection deviations, part of the projection content is adjusted during manual adjustment, and the entire image cannot be adaptively adjusted as a whole, resulting in problems such as image missing, image misalignment, and image deformation in the adjusted fused image, thereby leading to the problem of low processing accuracy of the connection deviation of projection fusion.
[0005] To achieve the above object, the present invention provides a light leakage processing and edge hiding method for fusion projection, which is applied to a projection imaging system. The method comprises:
[0006] Acquire each image to be fused and image format information of each image, and adjust the image format information of each image based on the optimal projection format information of the projection device to obtain each target image;
[0007] Identify the image edge information of each target image through an image edge recognition algorithm, and identify the image edge shape of each target image based on each image edge information;
[0008] Based on the image edge shape of each target image and the image edge information of the target image, the image content of each target image is adjusted respectively through a grid pixelation adjustment strategy to obtain each candidate image, and based on the preset fusion position of each candidate image, each candidate image is subjected to image fusion processing to obtain a target fused image.
[0009] Optionally, adjusting the image format information of each of the images based on the optimal projection format information of the projection device to obtain each target image includes:
[0010] Based on the optimal projection format information of the projection device, identifying the optimal picture format parameters of the projection device and the projection range of the projection device, and calculating the optimal image range of each image based on the projection range format parameters;
[0011] Based on the image format information of each image, the image frame format parameters of each image and the image range of each image are identified, and the image frame format parameters of each image are adjusted to the optimal frame format parameters to obtain each initial target image;
[0012] Calculating the optimal image range and the image range of each of the images, identifying an image range adjustment value of each image, and using each of the image range adjustment values as a range optimization value of each of the images;
[0013] The range optimization value of each of the images is marked in the initial target image corresponding to each of the images to obtain each target image.
[0014] Optionally, identifying the image edge information of each target image by using an image edge recognition algorithm includes:
[0015] Through the image edge recognition algorithm, the edge image content of each target image is identified respectively, and a two-dimensional coordinate system is randomly generated and constructed;
[0016] Each edge image content is projected into the two-dimensional coordinate system to obtain position distribution information of each edge image content, and the position distribution information of each edge image content and each edge image content are used as image edge information of the target image to which each edge image content belongs.
[0017] Optionally, the identifying the image edge shape of each target image based on the edge information of each image includes:
[0018] For each target image, based on the position distribution information of the edge image content of the target image and based on the position distribution information, each edge in the edge image content is fitted by an edge fitting algorithm to obtain a sub-edge line corresponding to each edge;
[0019] Based on the sub-edge lines corresponding to each of the edges and the relative positional relationship between the sub-edge lines, the image edge shape of the target image is queried in a database.
[0020] Optionally, the image content of each target image is adjusted based on the image edge shape of each target image and the image edge information of the target image by using a grid pixelation adjustment strategy to obtain each candidate image, including:
[0021] Based on the image edge shape of each target image, an edge gridding strategy for each target image is generated, and based on the edge gridding strategy for each target image, each target image is gridded to obtain each target grid image;
[0022] For each target grid image, based on the image edge information of the target image corresponding to the target grid image, the point position information of each grid point of the target grid image is identified, and based on the point position information of each grid point, each sub-grid image of the target grid image is subjected to image pulling processing through a pixel pulling strategy to obtain a standard image corresponding to the target grid image;
[0023] Based on the range optimization value of each target image, the fused image range of the standard image corresponding to each target image is marked respectively to obtain a candidate image corresponding to the target image.
[0024] Optionally, the performing image fusion processing on each candidate image based on a preset fusion position of each candidate image to obtain a target fused image includes:
[0025] Identifying the image orientation information of each candidate image through an image recognition network, and adjusting the image orientation of each candidate image based on the image orientation information of each candidate image to obtain each normal candidate image;
[0026] Based on the fusion position corresponding to each of the normal candidate images, adjacent normal candidate images are identified, and based on the image stitching procedure of each of the adjacent normal candidate images, the fusion image range of each of the adjacent normal candidate images is fused and stitched to obtain a target fusion image.
[0027] In addition, to achieve the above-mentioned purpose, the present invention also provides a light leakage processing and edge blanking device for fusion projection, the light leakage processing and edge blanking device for fusion projection is applied to a projection imaging system, and the device comprises:
[0028] An acquisition module, used for acquiring each image to be fused and image format information of each image, and adjusting the image format information of each image based on the optimal projection format information of the projection device to obtain each target image;
[0029] A recognition module, used to recognize image edge information of each target image through an image edge recognition algorithm, and recognize the image edge shape of each target image based on each image edge information;
[0030] The fusion module is used to adjust the image content of each target image based on the image edge shape of each target image and the image edge information of the target image through a grid pixelation adjustment strategy to obtain each candidate image, and based on the preset fusion position of each candidate image, perform image fusion processing on each candidate image to obtain a target fused image.
[0031] Optionally, the acquisition module is specifically used to:
[0032] Based on the optimal projection format information of the projection device, identifying the optimal picture format parameters of the projection device and the projection range of the projection device, and calculating the optimal image range of each image based on the projection range format parameters;
[0033] Based on the image format information of each image, the image frame format parameters of each image and the image range of each image are identified, and the image frame format parameters of each image are adjusted to the optimal frame format parameters to obtain each initial target image;
[0034] Calculating the optimal image range and the image range of each of the images, identifying an image range adjustment value of each image, and using each of the image range adjustment values as a range optimization value of each of the images;
[0035] The range optimization value of each of the images is marked in the initial target image corresponding to each of the images to obtain each target image.
[0036] Optionally, the identification module is specifically used to:
[0037] Through the image edge recognition algorithm, the edge image content of each target image is identified respectively, and a two-dimensional coordinate system is randomly generated and constructed;
[0038] Each edge image content is projected into the two-dimensional coordinate system to obtain position distribution information of each edge image content, and the position distribution information of each edge image content and each edge image content are used as image edge information of the target image to which each edge image content belongs.
[0039] Optionally, the identification module is specifically used to:
[0040] For each target image, based on the position distribution information of the edge image content of the target image and based on the position distribution information, each edge in the edge image content is fitted by an edge fitting algorithm to obtain a sub-edge line corresponding to each edge;
[0041] Based on the sub-edge lines corresponding to each of the edges and the relative positional relationship between the sub-edge lines, the image edge shape of the target image is queried in a database.
[0042] Optionally, the fusion module is specifically used to:
[0043] Based on the image edge shape of each target image, an edge gridding strategy for each target image is generated, and based on the edge gridding strategy for each target image, each target image is gridded to obtain each target grid image;
[0044] For each target grid image, based on the image edge information of the target image corresponding to the target grid image, the point position information of each grid point of the target grid image is identified, and based on the point position information of each grid point, each sub-grid image of the target grid image is subjected to image pulling processing through a pixel pulling strategy to obtain a standard image corresponding to the target grid image;
[0045] Based on the range optimization value of each target image, the fused image range of the standard image corresponding to each target image is marked respectively to obtain a candidate image corresponding to the target image.
[0046] Optionally, the fusion module is specifically used to:
[0047] Identifying the image orientation information of each candidate image through an image recognition network, and adjusting the image orientation of each candidate image based on the image orientation information of each candidate image to obtain each normal candidate image;
[0048] Based on the fusion position corresponding to each of the normal candidate images, adjacent normal candidate images are identified, and based on the image stitching procedure of each of the adjacent normal candidate images, the fusion image range of each of the adjacent normal candidate images is fused and stitched to obtain a target fusion image.
[0049] In a third aspect, the present application provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.
[0050] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0051] In a fifth aspect, the present application provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0052] The present invention provides a method and device for light leakage processing and edge hiding of fused projection, which is applied to a projection imaging system, and comprises: acquiring each image to be fused and image format information of each image, and adjusting the image format information of each image based on the optimal projection format information of the projection device to obtain each target image; identifying the image edge information of each target image through an image edge recognition algorithm, and identifying the image edge shape of each target image based on the edge information of each image; adjusting the image content of each target image respectively based on the image edge shape of each target image and the image edge information of the target image through a grid pixelation adjustment strategy to obtain each candidate image, and performing image fusion processing on each candidate image based on a preset fusion position of each candidate image to obtain a target fused image. This solution first adjusts the image format of each image to the optimal projection format information, thereby not only ensuring the consistency of the format of each image and avoiding the problem of image format deviation after fusion, but also ensuring the best projection effect of the fused image and improving the user experience. Then, by identifying the image edge shape and image edge information of each target image, each target image is grid pixelated and adjusted, so that images with uneven edges, concave edges, and rough edges are adjusted to rectangular images, thereby avoiding problems of connection deviations such as light leakage and edge gaps. In addition, this solution can intelligently analyze images, intelligently adjust image formats, and intelligently adjust image edges, and finally automatically fuse images, thereby avoiding the high labor cost and high time cost inefficiency of manual operation, thereby comprehensively improving the processing accuracy of connection deviations in projection fusion. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0054] Figure 1 It is a flow chart of a method for light leakage processing and edge blanking of fused projection provided by an embodiment of the present invention;
[0055] Figure 2 is a comparison diagram of images before and after adjusting the edge gap provided by an embodiment of the present invention;
[0056] Figure 3 It is a structural schematic diagram of a light leakage processing and edge blanking device for fusion projection provided by an embodiment of the present invention;
[0057] Figure 4 An internal structure diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The light leakage processing and edge blanking method of fused projection provided by the embodiment of the present invention is applied to the light leakage processing and edge blanking system of fused projection. Unless otherwise defined, all technical and scientific terms used in this document have the same meaning as those generally understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0059] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0060] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0061] The light leakage processing and edge hiding method of the fusion projection provided in the embodiment of the present application can be applied to the application environment of the projection imaging system. The method can be applied to the terminal, the server, or the system including the terminal and the server, and is realized through the interaction between the terminal and the server. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. Among them, the terminal first adjusts the image format of each image to the optimal projection format information, thereby not only ensuring the consistency of the format of each image, avoiding the problem of image format deviation after fusion, but also ensuring the best projection effect of the fused image, improving the user experience effect, and then by identifying the image edge shape and image edge information of each target image, the grid pixel adjustment of each target image is performed, so that the images with uneven edges, concave edges, and uneven edges are adjusted to rectangular images, thereby avoiding the problems of connection deviations such as light leakage and edge gaps, and the scheme can intelligently analyze the image, intelligently adjust the image format, and intelligently adjust the image edge, and finally automatically perform image fusion processing, thereby avoiding the high labor cost and high time cost of manual operation. Inefficient problems, thereby comprehensively improving the processing accuracy of the connection deviation of projection fusion.
[0062] In one embodiment, Figure 1 As shown, a method for light leakage processing and edge blanking of fusion projection is provided, and the method is applied to a terminal as an example for explanation, including the following steps:
[0063] Step S101, acquiring each image to be fused and image format information of each image, and adjusting the image format information of each image based on the optimal projection format information of the projection device to obtain each target image.
[0064] In this embodiment, the terminal obtains multiple images to be fused in response to the user's image upload operation or the external device connection operation, wherein the image to be fused includes the image fusion position of each image. Each image fusion position is the area range in which each image preset by the staff in the terminal is projected into the area projected by the projection device. Then, the terminal obtains the image format information of each image, wherein the image information includes the picture format and the image range, and the picture format includes picture brightness, picture resolution, picture brightness, picture display mode, etc. The image range is the actual image area of the image. Then, the terminal collects the optimal projection format information of the projection device, and then adjusts the image format information of each image based on the optimal projection format information to obtain each target image. The specific adjustment process will be described in detail later.
[0065] Step S102, identifying the image edge information of each target image through an image edge recognition algorithm, and identifying the image edge shape of each target image based on each image edge information.
[0066] In this embodiment, the terminal identifies the image edge information of each target image through an image edge recognition algorithm, and identifies the image edge shape of each target image based on each image edge information. Among them, the image edge recognition algorithm is a second-order image edge detection operator based on an edge detection algorithm. The image edge shape of the target image is the edge shape of each edge of the image, and the edge shape is divided into an arc shape and a non-arc shape. The arc direction of the arc can be an outward arc direction or an inward arc direction. The non-arc shape can be an outward non-arc shape and an inward non-arc shape. The specific recognition process will be described in detail later.
[0067] Step S103, based on the image edge shape of each target image and the image edge information of the target image, the image content of each target image is adjusted respectively through a grid pixelation adjustment strategy to obtain each candidate image, and based on the preset fusion position of each candidate image, each candidate image is subjected to image fusion processing to obtain a target fused image.
[0068] In this embodiment, the terminal adjusts the image content of each target image based on the image edge shape of each target image and the image edge information of the target image through a grid pixel adjustment strategy to obtain each candidate image, and performs image fusion processing on each candidate image based on the preset fusion position of each candidate image to obtain a target fused image. The grid pixel adjustment strategy includes a grid strategy and an adjustment strategy, and the grid strategy is a strategy for performing grid processing based on the edge shapes of the grid. Figure 2 As shown in FIG. 1 , a method of gridding the target image at an equal distance based on the edge shape of each image is performed, wherein the gridding processing method can be processed by a gridding processing program of MATLAB. The specific adjustment process is an image pulling process, in which the edges of each image are pulled from different shapes into a flat rectangular shape to obtain each candidate image.
[0069] Based on the above scheme, by first adjusting the image format of each image to the optimal projection format information, not only the consistency of the format of each image is ensured, avoiding the problem of image format deviation after fusion, but also the projection effect of the fused image is ensured to be optimal, thereby improving the user experience effect. Then, by identifying the image edge shape and image edge information of each target image, each target image is grid pixelated and adjusted, so that images with uneven edges, concave edges, and rough edges are adjusted to rectangular images, thereby avoiding problems of connection deviations such as light leakage and edge gaps. In addition, this scheme can intelligently analyze images, intelligently adjust image formats, and intelligently adjust image edges, and finally automatically fuse images, thereby avoiding the high labor cost and high time cost inefficiency of manual operation, thereby comprehensively improving the processing accuracy of connection deviations in projection fusion.
[0070] Optionally, based on the optimal projection format information of the projection device, the image format information of each image is adjusted to obtain each target image, including: based on the optimal projection format information of the projection device, identifying each optimal screen format parameter of the projection device and the projection range of the projection device, and calculating the optimal image range of each image based on the projection range format parameter; based on the image format information of each image, identifying the image screen format parameter of each image and the image range of each image, and adjusting the image screen format parameter of each image to each optimal screen format parameter to obtain each initial target image; calculating the optimal image range and the image range of each image, identifying the image range adjustment value of each image, and using each image range adjustment value as the range optimization value of each image; marking the range optimization value of each image in the initial target image corresponding to each image to obtain each target image.
[0071] In this embodiment, the terminal identifies the best picture format parameters of the projection device and the projection range of the projection device based on the best projection format information of the projection device, and calculates the best image range of each image based on the projection range format parameters. The best image range of each image is the same, and is a structural range with a rectangle as the image edge structure. Then, the terminal identifies the image picture format parameters of each image and the image range of each image based on the image format information of each image, and adjusts the image picture format parameters of each image to the best picture format parameters to obtain each initial target image. After that, the terminal calculates the best image range and the image range of each image, identifies the image range adjustment value of each image, and uses each image range adjustment value as the range optimization value of each image. The above calculation method is to subtract the best image range from the image range of each image to obtain the range optimization value of each image. Finally, the terminal marks the range optimization value of each image in the initial target image corresponding to each image to obtain each target image.
[0072] Based on the above scheme, by first adjusting the image format of each image to the optimal projection format information, not only the consistency of the format of each image is ensured, avoiding the problem of image format deviation after fusion, but also the best projection effect of the fused image is ensured, thereby improving the user experience.
[0073] Optionally, the image edge information of each target image is identified through an image edge recognition algorithm, including: identifying the edge image content of each target image through an image edge recognition algorithm, and randomly generating and constructing a two-dimensional coordinate system; projecting each edge image content into the two-dimensional coordinate system to obtain the position distribution information of each edge image content, and using the position distribution information of each edge image content and each edge image content as the image edge information of the target image to which each edge image content belongs.
[0074] In this embodiment, the terminal uses an image edge recognition algorithm to identify the edge image content of each target image, and randomly generates and constructs a two-dimensional coordinate system. The two-dimensional coordinate system is a coordinate system with any two-dimensional space as the coordinate space. Then, the terminal projects each edge image content into the two-dimensional coordinate system to obtain the position distribution information of each edge image content. The position distribution information is the two-dimensional position information of each edge position point of the edge image content. The spacing between each edge position point is a unit distance preset by the staff. Afterwards, the terminal uses the position distribution information of each edge image content and each edge image content as the image edge information of the target image to which each edge image content belongs.
[0075] Based on the above scheme, the edge image content of each target image is identified by an image edge recognition algorithm, and then the position distribution information of each target image is identified by coordinate generation, thereby improving the accuracy of identifying the image edge information of the target image.
[0076] Optionally, based on the edge information of each image, the image edge shape of each target image is identified, including: for each target image, based on the position distribution information of the edge image content of the target image, and based on the position distribution information, using an edge fitting algorithm to fit each edge in the edge image content to obtain a sub-edge line corresponding to each edge; based on the sub-edge lines corresponding to each edge and the relative position relationship between the sub-edge lines, querying the image edge shape of the target image in a database.
[0077] In this embodiment, for each target image, the terminal fits each edge in the edge image content based on the position distribution information of the edge image content of the target image and the position distribution information through an edge fitting algorithm to obtain a sub-edge line corresponding to each edge. The edge fitting algorithm is a curve edge fitting algorithm, which is used to perform curve fitting on each edge of the edge image content of the target image, so as to facilitate the identification of the edge shape of the edge. Based on the sub-edge lines corresponding to each edge and the relative position relationship between each sub-edge line, the image edge shape of the target image is queried in the database. The relative position relationship includes the connection angle between two connected edges, wherein each edge is an edge as a line between the edge fitting trends / angles with each two edge fitting / trend angles as an acute angle, and when the image does not have an acute angle, the edge of the target image is a single edge continuous image. The database stores the sub-edge lines corresponding to the edge shapes of each image and the relative position relationship between the sub-edge lines. The terminal queries the image edge shape of each image edge by querying the above corresponding relationship.
[0078] Based on the above scheme, the edge fitting algorithm is used to improve the accuracy of identifying the edge shape of the image. Then, by splitting the sub-edge lines of each edge and the relative position relationship between the sub-edge lines, the edge shape of each image is identified through database query, thereby improving the efficiency of identifying the edge shape of the image.
[0079] Optionally, based on the image edge shape of each target image and the image edge information of the target image, the image content of each target image is adjusted respectively through a grid pixelation adjustment strategy to obtain each candidate image, including: based on the image edge shape of each target image, an edge gridding strategy for each target image is generated, and based on the edge gridding strategy for each target image, each target image is gridded to obtain each target grid image; for each target grid image, based on the image edge information of the target image corresponding to the target grid image, the point position information of each grid point of the target grid image is identified, and based on the point position information of each belonging grid point, each sub-grid image of the target grid image is image pulled through a pixel pulling strategy to obtain a standard image corresponding to the target grid image; based on the range optimization value of each target image, the fused image range of the standard image corresponding to each target image is marked respectively to obtain a candidate image corresponding to the target image.
[0080] In this embodiment, the terminal generates an edge gridding strategy for each target image based on the image edge shape of each target image, and based on the edge gridding strategy of each target image, grids each target image to obtain each target grid image. Wherein, the edge gridding strategy is a gridding processing strategy that grids the edge shape of each edge with a fixed edge distance as a unit interval. The terminal can perform the above image processing process through MATLAB.
[0081] For each target grid image, the terminal identifies the point position information of each grid point of the target grid image based on the image edge information of the target image corresponding to the target grid image, and based on the point position information of each grid point, through the pixel pulling strategy, performs image pulling processing on each sub-grid image of the target grid image to obtain the standard image corresponding to the target grid image. Then, based on the range optimization value of each target image, the terminal marks the fused image range of the standard image corresponding to each target image to obtain the candidate image corresponding to the target image. Among them, the fused image range is the image range of the area to be fused with the range extension order from the image edge to the image center and the range optimization value as the image range size.
[0082] Among them, the pixel pulling strategy includes a row smoothing strategy and a column smoothing strategy. Specifically, the image surrounded by each grid point in each target grid image of the terminal price is pulled from the current grid edge shape to a smooth straight line shape, and the grid edges are parallel or perpendicular to each other, so as to obtain the standard image corresponding to each target grid image. Among them, the row smoothing strategy is a strategy for smoothing the row edges into straight lines, and the column smoothing strategy is a strategy for smoothing the column edges into straight lines.
[0083] Based on the above scheme, pixels are pulled by gridding different edge shapes, so that the image content of the obtained standard image is displayed normally, and there are no edge gaps or edge vacancies between the edges, thereby improving the processing accuracy of connection deviations.
[0084] Optionally, based on the preset fusion position of each candidate image, each candidate image is subjected to image fusion processing to obtain a target fused image, including: identifying the image orientation information of each candidate image through an image recognition network, and adjusting the image orientation of each candidate image based on the image orientation information of each candidate image to obtain each normal candidate image; based on the fusion position corresponding to each normal candidate image, adjacent normal candidate images are identified, and based on each adjacent normal candidate image, the fusion image range of each adjacent normal candidate image is fused and stitched through an image stitching program to obtain a target fused image.
[0085] In this embodiment, the terminal identifies the image orientation information of each candidate image through an image recognition network, and adjusts the image orientation of each candidate image based on the image orientation information of each candidate image to obtain each normal candidate image. Among them, the image recognition network is a convolutional neural network based on a self-attention mechanism. The image orientation information is used to characterize the image orientation corresponding to the positive direction of the candidate image, as well as the image angle. For example, if image A is an image of an inverted mountain, the image orientation information of the image is the positive orientation of the image, and the image is inverted. The image is adjusted by rotating the image 180 degrees in the plane to obtain a normal candidate image. Image B is a left-side standing image of a portrait with a left bias of 50 degrees, the image orientation information of the image is that the image orientation is 50 degrees to the left, and the image is sideways. The image is adjusted by rotating the image 50 degrees to the right, and then rotating the image 90 degrees in the right plane to obtain a positive candidate image. The image orientation recognition and adjustment facilitates the fusion of the image and the target image to be fused.
[0086] Then, the terminal identifies adjacent normal candidate images based on the fusion positions corresponding to the normal candidate images, and fuses and splices the fusion image ranges of the adjacent normal candidate images based on the image splicing program of the adjacent normal candidate images to obtain the target fusion image. The fusion splicing processing method is an image fusion splicing processing process based on the two-dimensional image splicing program of MATLAB.
[0087] Based on the above solution, the image orientation is adjusted before image fusion and splicing, thereby ensuring the integrity and accuracy of the fused image.
[0088] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0089] Based on the same inventive concept, the embodiment of the present application also provides a fused projection light leakage processing and edge blanking device for implementing the above-mentioned fused projection light leakage processing and edge blanking method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more fused projection light leakage processing and edge blanking devices provided below can refer to the limitations of the fused projection light leakage processing and edge blanking method above, and will not be repeated here.
[0090] Further references Figure 3 , as a response to the above Figure 1 The implementation of the method shown in the figure, the present application provides an embodiment of a light leakage processing and edge blanking device 300 for fusion projection, the light leakage processing and edge blanking device for fusion projection is applied to a projection imaging system, the device includes an acquisition module 310, an identification module 320 and a fusion module 330, wherein:
[0091] An acquisition module 310 is used to acquire each image to be fused and image format information of each image, and adjust the image format information of each image based on the optimal projection format information of the projection device to obtain each target image;
[0092] The recognition module 320 is used to recognize the image edge information of each target image through an image edge recognition algorithm, and recognize the image edge shape of each target image based on each image edge information;
[0093] The fusion module 330 is used to adjust the image content of each target image based on the image edge shape of each target image and the image edge information of the target image through a grid pixelation adjustment strategy to obtain each candidate image, and based on the preset fusion position of each candidate image, perform image fusion processing on each candidate image to obtain a target fused image.
[0094] Optionally, the acquisition module 310 is specifically configured to:
[0095] Based on the optimal projection format information of the projection device, identifying the optimal picture format parameters of the projection device and the projection range of the projection device, and calculating the optimal image range of each image based on the projection range format parameters;
[0096] Based on the image format information of each image, the image frame format parameters of each image and the image range of each image are identified, and the image frame format parameters of each image are adjusted to the optimal frame format parameters to obtain each initial target image;
[0097] Calculating the optimal image range and the image range of each of the images, identifying an image range adjustment value of each image, and using each of the image range adjustment values as a range optimization value of each of the images;
[0098] The range optimization value of each of the images is marked in the initial target image corresponding to each of the images to obtain each target image.
[0099] Optionally, the identification module 320 is specifically configured to:
[0100] Through the image edge recognition algorithm, the edge image content of each target image is identified respectively, and a two-dimensional coordinate system is randomly generated and constructed;
[0101] Each edge image content is projected into the two-dimensional coordinate system to obtain position distribution information of each edge image content, and the position distribution information of each edge image content and each edge image content are used as image edge information of the target image to which each edge image content belongs.
[0102] Optionally, the identification module 320 is specifically configured to:
[0103] For each target image, based on the position distribution information of the edge image content of the target image and based on the position distribution information, each edge in the edge image content is fitted by an edge fitting algorithm to obtain a sub-edge line corresponding to each edge;
[0104] Based on the sub-edge lines corresponding to each of the edges and the relative positional relationship between the sub-edge lines, the image edge shape of the target image is queried in a database.
[0105] Optionally, the fusion module 330 is specifically used to:
[0106] Based on the image edge shape of each target image, an edge gridding strategy for each target image is generated, and based on the edge gridding strategy for each target image, each target image is gridded to obtain each target grid image;
[0107] For each target grid image, based on the image edge information of the target image corresponding to the target grid image, the point position information of each grid point of the target grid image is identified, and based on the point position information of each grid point, each sub-grid image of the target grid image is subjected to image pulling processing through a pixel pulling strategy to obtain a standard image corresponding to the target grid image;
[0108] Based on the range optimization value of each target image, the fused image range of the standard image corresponding to each target image is marked respectively to obtain a candidate image corresponding to the target image.
[0109] Optionally, the fusion module 330 is specifically used to:
[0110] Identifying the image orientation information of each candidate image through an image recognition network, and adjusting the image orientation of each candidate image based on the image orientation information of each candidate image to obtain each normal candidate image;
[0111] Based on the fusion position corresponding to each of the normal candidate images, adjacent normal candidate images are identified, and based on the image stitching procedure of each of the adjacent normal candidate images, the fusion image range of each of the adjacent normal candidate images is fused and stitched to obtain a target fusion image.
[0112] Each module in the above-mentioned light leakage processing and edge blanking device of fusion projection can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0113] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a light leakage processing and edge blanking method for fusion projection is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0114] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0115] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.
[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0117] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods in the first aspect.
[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0119] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed 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 the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0120] 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.
[0121] 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 present application. It should be pointed out that, for a person of ordinary skill in the art, several variations 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.
Claims
1. A light leakage processing and edge hiding method for fusion projection, applied to a projection imaging system, characterized in that: The method comprises: Acquire each image to be fused and image format information of each image, and adjust the image format information of each image based on the optimal projection format information of the projection device to obtain each target image; Identify the image edge information of each target image through an image edge recognition algorithm, and identify the image edge shape of each target image based on each image edge information; Based on the image edge shape of each target image and the image edge information of the target image, the image content of each target image is adjusted respectively through a grid pixelation adjustment strategy to obtain each candidate image, and based on the preset fusion position of each candidate image, each candidate image is subjected to image fusion processing to obtain a target fused image.
2. The method according to claim 1, characterized in that The step of adjusting the image format information of each image based on the optimal projection format information of the projection device to obtain each target image includes: Based on the optimal projection format information of the projection device, identifying the optimal picture format parameters of the projection device and the projection range of the projection device, and calculating the optimal image range of each image based on the projection range format parameters; Based on the image format information of each image, the image frame format parameters of each image and the image range of each image are identified, and the image frame format parameters of each image are adjusted to the optimal frame format parameters to obtain each initial target image; Calculating the optimal image range and the image range of each of the images, identifying an image range adjustment value of each image, and using each of the image range adjustment values as a range optimization value of each of the images; The range optimization value of each of the images is marked in the initial target image corresponding to each of the images to obtain each target image.
3. The method according to claim 1, characterized in that: The image edge recognition algorithm is used to identify the image edge information of each target image, including: Through the image edge recognition algorithm, the edge image content of each target image is identified respectively, and a two-dimensional coordinate system is randomly generated and constructed; Each edge image content is projected into the two-dimensional coordinate system to obtain position distribution information of each edge image content, and the position distribution information of each edge image content and each edge image content are used as image edge information of the target image to which each edge image content belongs.
4. The method according to claim 3, characterized in that The step of identifying the image edge shape of each target image based on the edge information of each image includes: For each target image, based on the position distribution information of the edge image content of the target image and based on the position distribution information, each edge in the edge image content is fitted by an edge fitting algorithm to obtain a sub-edge line corresponding to each edge; Based on the sub-edge lines corresponding to each of the edges and the relative positional relationship between the sub-edge lines, the image edge shape of the target image is queried in a database.
5. The method according to claim 4, characterized in that The image edge shape of each target image and the image edge information of the target image are adjusted through a grid pixelation adjustment strategy to obtain each candidate image, including: Based on the image edge shape of each target image, an edge gridding strategy for each target image is generated, and based on the edge gridding strategy for each target image, each target image is gridded to obtain each target grid image; For each target grid image, based on the image edge information of the target image corresponding to the target grid image, the point position information of each grid point of the target grid image is identified, and based on the point position information of each grid point, each sub-grid image of the target grid image is subjected to image pulling processing through a pixel pulling strategy to obtain a standard image corresponding to the target grid image; Based on the range optimization value of each target image, the fused image range of the standard image corresponding to each target image is marked respectively to obtain a candidate image corresponding to the target image.
6. The method according to claim 5, characterized in that The step of performing image fusion processing on each candidate image based on the preset fusion position of each candidate image to obtain a target fused image includes: Identifying the image orientation information of each candidate image through an image recognition network, and adjusting the image orientation of each candidate image based on the image orientation information of each candidate image to obtain each normal candidate image; Based on the fusion position corresponding to each of the normal candidate images, adjacent normal candidate images are identified, and based on the image stitching procedure of each of the adjacent normal candidate images, the fusion image range of each of the adjacent normal candidate images is fused and stitched to obtain a target fusion image.
7. A light leakage processing and edge blanking device for fusion projection, applied to a projection imaging system, characterized in that: The device comprises: An acquisition module, used for acquiring each image to be fused and image format information of each image, and adjusting the image format information of each image based on the optimal projection format information of the projection device to obtain each target image; A recognition module, used to recognize image edge information of each target image through an image edge recognition algorithm, and recognize the image edge shape of each target image based on each image edge information; The fusion module is used to adjust the image content of each target image based on the image edge shape of each target image and the image edge information of the target image through a grid pixelation adjustment strategy to obtain each candidate image, and based on the preset fusion position of each candidate image, perform image fusion processing on each candidate image to obtain a target fused image.
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 method according to any one of claims 1 to 6 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 method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
