Automatic splicing correction method, system and equipment of wide-width line scanning camera and medium
By using grid-assisted automatic splicing algorithm in wide-format line scanning cameras, the problem of slow splicing process in the existing technology is solved, and real-time and accurate automatic splicing function is realized.
Patent Information
- Application Number
- CN202510137215.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-07
- Publication Date
- 2025-05-27
AI Technical Summary
In the real-time use of wide-format line scanning cameras, the splicing effect cannot be quickly obtained, and the calculation amount is large, resulting in a slow splicing process.
The grid-assisted method is used to combine the automatic splicing algorithm, and the grid lines are identified and filtered, and the images are adjusted based on PLT files to achieve automatic splicing.
Real-time, accurate and automatic splicing function of wide-format line scanning cameras is realized, reducing manual intervention and improving splicing efficiency and accuracy.
Smart Images

Figure CN120047313A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an automatic stitching correction method, system, device and medium for a wide-format line scan camera. Background Art
[0002] In the current image stitching method, estimated values, actual values and pre-constructed error equations based on the spherical coordinates are used. This method can complete the stitching of images, but due to the large amount of calculation, the stitching effect cannot be quickly obtained in the real-time use of wide-width line scan cameras.
[0003] Patent document CN113222878A (application number: 202110623741.5) discloses an image stitching method, which includes: acquiring a first image and a second image, and the shooting ranges corresponding to the first image and the second image have an overlapping area; performing feature point matching based on the overlapping area to obtain matching feature points of the first image and the second image; projecting the feature points onto a preset sphere to obtain spherical coordinates corresponding to the feature points; based on the estimated value, actual value and pre-constructed error equation of the spherical coordinates, calculating the alignment matrix between the first image and the second image, and the pre-constructed error equation is used to express the error between the estimated coordinate value calculated based on the alignment matrix and the actual coordinate value; stitching the first image and the second image according to the alignment matrix to obtain a stitched image. Summary of the invention
[0004] In view of the defects in the prior art, an object of the present invention is to provide a method, system, device and medium for automatic stitching correction of a wide-format line scan camera.
[0005] According to the present invention, an automatic stitching correction method for a wide-format line scan camera includes:
[0006] Step S1: obtaining a picture to be stitched with a complete grid taken by a wide-width line scan camera;
[0007] Step S2: Identify all grid lines on the image to be stitched and select the grid lines;
[0008] Step S3: Based on the PLT file of the grid, adjust the image of the picture to be stitched so that the image of the picture to be stitched meets the preset requirements;
[0009] Step S4: Display the prefabricated splicing grid lines and make them consistent with the grids on the pictures to be spliced, and complete the splicing.
[0010] Preferably, the step S1 comprises: using a wide-width line scan camera to capture a picture to be stitched having a complete grid.
[0011] Preferably, the step S3 comprises: adjusting the image tilt movement X and Y direction positions of the pictures to be spliced based on the PLT file of the grid, and stretching the X and Y axes in sections so that the images of the pictures to be spliced meet preset requirements.
[0012] Preferably, the step S4 comprises: based on the prefabricated splicing grid lines, automatic search and matching are performed through the technical features of standard grid image intersections to achieve automatic splicing of the images to be spliced.
[0013] According to the present invention, an automatic stitching correction system for a wide-format line scan camera is provided, comprising:
[0014] Module M1: Obtain the image to be stitched with a complete grid taken by a wide-width line scan camera;
[0015] Module M2: Identify all grid lines on the image to be stitched and select the grid lines;
[0016] Module M3: Based on the PLT file of the grid, adjust the image of the picture to be stitched so that the image of the picture to be stitched meets the preset requirements;
[0017] Module M4: Display the prefabricated splicing grid lines and make them consistent with the grids on the pictures to be spliced to complete the splicing.
[0018] Preferably, the module M1 comprises: using a wide-width line scan camera to capture a picture to be stitched having a complete grid.
[0019] Preferably, the module M3 includes: adjusting the image tilt movement X and Y direction positions of the pictures to be spliced based on the grid PLT file, and stretching the X and Y axes in sections so that the images of the pictures to be spliced meet the preset requirements.
[0020] Preferably, the module M4 comprises: based on prefabricated splicing grid lines, automatic search and matching are performed through standard grid image intersection technical features to achieve automatic splicing of the pictures to be spliced.
[0021] According to an electronic device provided by the present invention, the electronic device includes a memory and at least one processor, and instructions are stored in the memory;
[0022] The at least one processor calls the instructions in the memory to enable the electronic device to execute the various steps of the automatic stitching and correction method for a wide-format line scan camera as described above.
[0023] According to a computer-readable storage medium provided by the present invention, instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, each step of the automatic stitching correction method for a wide-format line scan camera as described above is implemented.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] 1. The present invention realizes the real-time and accurate automatic stitching function of wide-format line scan cameras by adopting a grid-assisted method combined with an automatic stitching algorithm. It can be used for various stitching situations of multiple camera strips, replacing tedious manual work;
[0026] 2. The present invention uses the standard grid image intersection technical features and an automatic search and matching method to achieve a fast and accurate automatic stitching function for wide-width line scan cameras;
[0027] 3. The present invention adopts a method of selecting a few feature points by using a grid, which replaces the situation where a large number of feature points are required for image stitching. The feature points are few and effective, which reduces the image error stitching problem caused by feature point errors and improves efficiency.
[0028] 4. The present invention combines a grid with a stitching algorithm to stitch images taken by multiple camera strips used by a wide-width line scan camera, thereby achieving a real-time stitching result. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0030] Figure 1 The figure is a flow chart of the automatic stitching correction method for wide-format line scan cameras.
[0031] Figure 2 PLT grid diagram for the grid.
[0032] Figure 3 This is a schematic diagram of the image to be stitched before correction.
[0033] Figure 4 This is a schematic diagram of the corrected pictures to be stitched. DETAILED DESCRIPTION
[0034] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0035] Example 1
[0036] According to the present invention, an automatic stitching correction method for a wide-format line scan camera is provided. Figures 1 to 4 As shown, including:
[0037] Step S1: obtaining a picture to be stitched with a complete grid taken by a wide-width line scan camera;
[0038] In this embodiment, a wide-width line scan camera is used to capture and obtain a picture to be stitched with a complete grid; it is ensured that the acquired image covers the area to be processed and the grid lines are clearly identifiable, providing basic data for subsequent stitching.
[0039] Step S2: Identify all grid lines on the image to be stitched and select the grid lines;
[0040] In this embodiment, all grid lines on the image to be spliced are identified by image processing technology, and the grid lines are screened out;
[0041] Step S3: Based on the PLT file of the grid, adjust the image of the picture to be stitched so that the image of the picture to be stitched meets the preset requirements;
[0042] In this embodiment, the image to be spliced is adjusted based on the grid PLT file, including image tilt, movement, and segmented stretching on the X and Y axes, so that the originally tilted image to be spliced is matched with the grid image;
[0043] Step S4: Display the prefabricated splicing grid lines and make them consistent with the grids on the pictures to be spliced, and complete the splicing;
[0044] In this embodiment, based on the prefabricated splicing grid lines, the standard grid image intersection technical features are used to automatically search and match, so as to realize automatic splicing of the images to be spliced. When the prefabricated splicing grid lines are slightly different from the imported grid, the images to be spliced are fine-tuned.
[0045] This embodiment uses a grid combined with a stitching algorithm to stitch images taken by multiple camera strips used by a wide-format line scan camera, thereby achieving a real-time stitching result.
[0046] Example 2
[0047] Embodiment 2 is a preferred embodiment of Embodiment 1
[0048] According to the present invention, an automatic stitching correction system for a wide-format line scan camera is provided. Figures 1 to 4 As shown, including:
[0049] Module M1: Obtain the image to be stitched with a complete grid taken by a wide-width line scan camera;
[0050] In this embodiment, a wide-width line scan camera is used to capture and obtain a picture to be stitched with a complete grid; it is ensured that the acquired image covers the area to be processed and the grid lines are clearly identifiable, providing basic data for subsequent stitching.
[0051] Module M2: Identify all grid lines on the image to be stitched and select the grid lines;
[0052] In this embodiment, all grid lines on the image to be spliced are identified by image processing technology, and the grid lines are screened out;
[0053] Module M3: Based on the PLT file of the grid, adjust the image of the picture to be stitched so that the image of the picture to be stitched meets the preset requirements;
[0054] In this embodiment, the image to be spliced is adjusted based on the grid PLT file, including image tilt, movement, and segmented stretching on the X and Y axes, so that the originally tilted image to be spliced is matched with the grid image;
[0055] Module M4: Display the prefabricated splicing grid lines and make them consistent with the grids on the pictures to be spliced to complete the splicing;
[0056] In this embodiment, based on the prefabricated splicing grid lines, the standard grid image intersection technical features are used to automatically search and match, so as to realize automatic splicing of the images to be spliced. When the prefabricated splicing grid lines are slightly different from the imported grid, the images to be spliced are fine-tuned.
[0057] This embodiment uses a grid combined with a stitching algorithm to stitch images taken by multiple camera strips used by a wide-format line scan camera, thereby achieving a real-time stitching result.
[0058] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0059] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. An automatic stitching correction method for a wide-format line scan camera, characterized in that: include: Step S1: obtaining a picture to be stitched with a complete grid taken by a wide-width line scan camera; Step S2: Identify all grid lines on the image to be stitched and select the grid lines; Step S3: Based on the PLT file of the grid, adjust the image of the picture to be stitched so that the image of the picture to be stitched meets the preset requirements; Step S4: Display the prefabricated splicing grid lines and make them consistent with the grids on the pictures to be spliced, and complete the splicing.
2. The automatic stitching correction method for a wide-format line scan camera according to claim 1, characterized in that: The step S1 includes: using a wide-width line scan camera to capture a picture to be stitched with a complete grid.
3. The automatic stitching correction method for a wide-format line scan camera according to claim 1, characterized in that: The step S3 includes: adjusting the image tilt movement X and Y direction positions of the image to be spliced based on the PLT file of the grid, and stretching the X and Y axes in sections so that the image of the image to be spliced meets the preset requirements.
4. The automatic stitching correction method for a wide-format line scan camera according to claim 1, characterized in that: The step S4 includes: based on the prefabricated splicing grid lines, automatically searching and matching through the technical features of standard grid image intersections to achieve automatic splicing of the images to be spliced.
5. An automatic stitching correction system for a wide-format line scan camera, characterized in that: include: Module M1: Obtain the image to be stitched with a complete grid taken by a wide-width line scan camera; Module M2: Identify all grid lines on the image to be stitched and select the grid lines; Module M3: Based on the PLT file of the grid, adjust the image of the picture to be stitched so that the image of the picture to be stitched meets the preset requirements; Module M4: Display the prefabricated splicing grid lines and make them consistent with the grids on the pictures to be spliced to complete the splicing.
6. The automatic stitching correction system for wide-format line scan cameras according to claim 5, characterized in that: The module M1 includes: using a wide-width line scan camera to capture and obtain a picture to be stitched with a complete grid.
7. The automatic stitching correction system for wide-format line scan cameras according to claim 5, characterized in that: The module M3 includes: based on the grid PLT file, adjusting the image tilt movement X and Y direction positions of the picture to be spliced, and stretching the X and Y axes in sections so that the image of the picture to be spliced meets the preset requirements.
8. The automatic stitching correction system for wide-format line scan cameras according to claim 5, characterized in that: The module M4 includes: based on the prefabricated splicing grid lines, automatic search and matching are performed through the technical features of standard grid image intersections to achieve automatic splicing of the images to be spliced.
9. An electronic device, comprising a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory so that the electronic device executes each step of the automatic stitching and correction method for a wide-format line scan camera as described in any one of claims 1 to 4.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the automatic stitching and correction method for a wide-format line scan camera as described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Image splicing method
CN113222878A
An image stitching method
CN113222878B