Method for determining width of abutted seam, electronic equipment and computer readable storage medium

By capturing images of the splicing screen with a camera and combining edge detection and calibration algorithms, the high cost and complex operation of traditional methods are solved, and efficient and accurate measurement of the seam width is achieved.

CN121957516APending Publication Date: 2026-05-01CHENGDU VISTAR OPTEOLECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHENGDU VISTAR OPTEOLECTRONICS CO LTD
Filing Date
2024-10-29
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Traditional methods for measuring seam width are costly and complex to operate, making it difficult to accurately measure the width of the seam width of the display screen, especially due to insufficient accuracy under environmental influences.

Method used

By acquiring images of the spliced ​​screen captured by the target camera, edge detection algorithms are used to process the images to determine the coordinates of the boundary points of the display panel. Combined with camera calibration parameters, the coordinates are transformed to the world coordinate system, and the seam width is calculated.

Benefits of technology

It enables simple and accurate determination of seam width, reduces equipment costs, improves measurement accuracy, and adapts to various environmental conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121957516A_ABST
    Figure CN121957516A_ABST
Patent Text Reader

Abstract

The invention discloses a method for determining the width of a splicing seam, electronic equipment and a computer readable storage medium. The method comprises the following steps: acquiring a target image shot by a target camera for a splicing screen; processing the target image by using an edge detection algorithm to respectively obtain a first coordinate of at least one first position point on the first boundary under the pixel coordinate system and a second coordinate of at least one second position point on the second boundary under the pixel coordinate system; and determining the width of the abutted seam in the world coordinate system according to the calibration parameter of the target camera, the first coordinate corresponding to each first position point and the second coordinate corresponding to each second position point. According to the method, the actual width of the splicing seam of the spliced screen can be simply and accurately determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display technology, and in particular to a method for determining the seam width, an electronic device, and a computer-readable storage medium. Background Technology

[0002] With the development of technology and advancements in technology, the seams between displays are becoming increasingly narrow, rendering traditional seam measurement methods inadequate for testing needs. While laser methods exist for measuring seam width, the testing equipment is expensive, the operation is complex, and it is easily affected by environmental conditions. Summary of the Invention

[0003] This application provides a method, electronic device, and computer-readable storage medium for determining the seam width of a video wall, which can simply and accurately determine the actual seam width of a video wall.

[0004] The first aspect of this application provides a method for determining the seam width, the method comprising: acquiring a target image of a splicing screen captured by a target camera, wherein the splicing screen includes a first display panel and a second display panel spliced ​​together, the first display panel including a first boundary, the second display panel including a second boundary, and the seam between the first boundary and the second boundary being the seam between the first display panel and the second display panel; processing the target image using an edge detection algorithm to obtain the first coordinates of at least one first position point on the first boundary in a pixel coordinate system and the second coordinates of at least one second position point on the second boundary in a pixel coordinate system; and determining the width of the seam in a world coordinate system based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point.

[0005] Before processing the target image using the edge detection algorithm, the method further includes preprocessing the target image, wherein the preprocessing includes at least one of filtering, contrast enhancement, and binarization.

[0006] The step of preprocessing the target image includes: sequentially performing a first filtering process, a contrast enhancement process, a binarization process, and a second filtering process on the target image.

[0007] The first filtering process includes median filtering.

[0008] The second filtering process includes median filtering.

[0009] The step of determining the width of the seam in the world coordinate system based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point includes: converting the first coordinates corresponding to each first position point into third coordinates in the world coordinate system and converting the second coordinates corresponding to each second position point into fourth coordinates in the world coordinate system based on the calibration parameters of the target camera; and determining the width of the seam in the world coordinate system based on the third coordinates corresponding to each first position point and the fourth coordinates corresponding to each second position point.

[0010] The number of first position points and second position points are both multiple; the step of determining the width of the seam in the world coordinate system based on the third coordinate corresponding to each first position point and the fourth coordinate corresponding to each second position point includes: for each first position point, determining the distance between the first boundary and the second boundary in a first direction based on the third coordinate corresponding to the first position point and the fourth coordinate corresponding to each second position point, wherein the first direction is set perpendicular to the first boundary and the second boundary; and determining the width of the seam based on the multiple distances obtained.

[0011] The step of determining the width of the seam based on the obtained multiple distances includes: calculating the average, median, or mode of the distances to obtain the width of the seam; or, the step of determining the width of the seam based on the obtained multiple distances includes: calculating multiple calculated values ​​among the average, median, and mode of the distances; in response to any two calculated values ​​having a difference less than or equal to a difference threshold, calculating the average of the multiple calculated values ​​to obtain the width of the seam; otherwise, returning to the step of processing the target image using an edge detection algorithm to obtain the first coordinates of at least one first position point on the first boundary in the pixel coordinate system and the second coordinates of at least one second position point on the second boundary in the pixel coordinate system, up to the step of determining the width of the seam in the world coordinate system based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point.

[0012] The step of determining the width of the stitching seam in the world coordinate system based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point includes: determining the width of the stitching seam in the pixel coordinate system based on the first coordinates corresponding to each first position point and the second coordinates corresponding to each second position point; and converting the width of the stitching seam in the pixel coordinate system to the width of the stitching seam in the world coordinate system based on the calibration parameters of the target camera.

[0013] Before acquiring the target image captured by the target camera on the splicing screen, the method further includes: calibrating the target camera to obtain calibration parameters of the target camera, wherein the calibration parameters include intrinsic parameters and extrinsic parameters, the intrinsic parameters include at least one of focal length and pixel size, and the extrinsic parameters include at least one of rotation matrix and translation matrix.

[0014] The step of calibrating the target camera to obtain the calibration parameters of the target camera includes: using the Zhang Zhengyou calibration method to calibrate the target camera using a checkerboard pattern to obtain the calibration parameters of the target camera.

[0015] A second aspect of this application provides an electronic device, the electronic device including a processor, a memory, and a communication circuit, the processor being coupled to the memory and the communication circuit respectively, the memory storing program data, and the processor executing the program data in the memory to implement the steps in the method as described in any of the above embodiments.

[0016] A third aspect of this application provides a computer-readable storage medium storing a computer program that can be executed by a processor to perform the steps of the method as described in any of the above embodiments.

[0017] Unlike existing technologies, the advantages of this application are as follows: First, this application acquires a target image of the splicing screen captured by a target camera. Then, it processes the target image using an edge detection algorithm to obtain the first coordinates of at least one first position point on the first boundary of the first display panel in the pixel coordinate system, and the second coordinates of at least one second position point on the second boundary of the second display panel in the pixel coordinate system. Finally, based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point, the width of the splicing seam in the world coordinate system is determined. This application can determine the actual width of the splicing seam simply and efficiently through image processing. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:

[0019] Figure 1 This is a schematic diagram of one embodiment of the present application of the target camera acquiring the target image of the spliced ​​screen;

[0020] Figure 2 This is a flowchart illustrating one embodiment of the method for determining the seam width in this application;

[0021] Figure 3 yes Figure 2 A flowchart illustrating the first embodiment of step S300;

[0022] Figure 4 yes Figure 3 A flowchart illustrating one embodiment of step S320;

[0023] Figure 5 yes Figure 4 A flowchart illustrating one embodiment of step S322;

[0024] Figure 6 yes Figure 2 A flowchart illustrating the second embodiment of step S300;

[0025] Figure 7 This is a schematic diagram of the structure of one embodiment of the electronic device of this application;

[0026] Figure 8 This is a schematic diagram of one embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0028] It should be noted that the terms "first" and "second" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0029] See Figure 1 and Figure 2 This application provides a method for determining the seam width, the method comprising:

[0030] S100: Acquire the target image captured by the target camera on the splicing screen 10, wherein the splicing screen 10 includes a first display panel 110 and a second display panel 120 spliced ​​together, the first display panel 110 includes a first boundary L1, the second display panel 120 includes a second boundary L2, and the seam between the first boundary L1 and the second boundary L2 is the splicing seam between the first display panel 110 and the second display panel 120.

[0031] Specifically, the video wall 10 is composed of multiple display panels. The first display panel 110 and the second display panel 120 are two display panels arbitrarily spliced ​​together from the multiple display panels. Each display panel includes multiple light-emitting units. The boundary of a display panel refers to the outer edge of the outermost light-emitting unit. The first boundary L1 of the first display panel 110 is close to the second display panel 120, and the second boundary L2 of the second display panel 120 is close to the first display panel 110. The first boundary L1 and the second boundary L2 form a seam. Therefore, the target image used to determine the seam width is an image that includes at least the first boundary L1 and the second boundary L2.

[0032] S200: The target image is processed using an edge detection algorithm to obtain the first coordinates of at least one first position point A1 on the first boundary L1 in the pixel coordinate system and the second coordinates of at least one second position point A2 on the second boundary L2 in the pixel coordinate system.

[0033] Specifically, edge detection algorithms are used to sharpen the boundaries in the target image to enhance boundary features, thereby enabling the acquisition of multiple feature points on the boundary from the processed target image. By fitting straight lines to the feature points, the boundary is obtained. Thus, the first boundary L1 and the second boundary L2 can be obtained simultaneously. Then, at least one first position point A1 is selected from the first boundary L1 to obtain the first coordinates of the first position point A1. At least one second position point A2 is selected from the second boundary L2 to obtain the second coordinates of the second position point A2. The first and second coordinates are both coordinates in the pixel coordinate system, which is a coordinate system with the upper left corner of the image as the origin and in pixels.

[0034] When employing edge detection algorithms, operators such as the Canny operator, Sobel operator, Prewitt operator, and Roberts operator can be used.

[0035] S300: Determine the width of the seam in the world coordinate system based on the calibration parameters of the target camera, the first coordinate corresponding to each first position point A1, and the second coordinate corresponding to each second position point A2.

[0036] Specifically, the calibration parameters of the target camera determine the transformation relationship between the pixel coordinate system and the world coordinate system. In other words, by calibrating the target camera, the position of a point in the pixel coordinate system can be obtained in the world coordinate system. The world coordinate system describes the camera's position in the real world, as well as the position of objects in the image captured by the camera, or the length value in the world coordinate system corresponding to a distance value in the pixel coordinate system. Therefore, by using the target camera's calibration parameters, the first coordinate corresponding to each first position point A1, and the second coordinate corresponding to each second position point A2, the width of the seam in the world coordinate system can be obtained, thus revealing the actual seam width between the first display panel 110 and the second display panel 120 in the splicing screen.

[0037] In one embodiment, prior to step S100, the method further includes:

[0038] S10: Calibrate the target camera to obtain the calibration parameters of the target camera. The calibration parameters include intrinsic parameters and extrinsic parameters. The intrinsic parameters include at least one of focal length and pixel size, and the extrinsic parameters include at least one of rotation matrix and translation matrix.

[0039] Specifically, intrinsic parameters include at least one of focal length and pixel size. Intrinsic parameters are parameters of the target camera's internal properties and are typically fixed for the target camera, remaining unchanged over time. Calibration of intrinsic parameters ensures the accurate position of points in the target image within the pixel coordinate system. Extrinsic parameters include at least one of rotation and translation matrices. Extrinsic parameters determine the position and orientation of the target camera in the world coordinate system. These parameters may change depending on the camera position or shooting time. Calibration of extrinsic parameters allows the position of points in the target image to be mapped to the world coordinate system. Therefore, by combining intrinsic and extrinsic parameters, a transformation relationship between the pixel coordinate system and the world coordinate system can be obtained, enabling the transformation of coordinates from the pixel coordinate system to the world coordinate system, or vice versa.

[0040] In one embodiment, step S10 includes:

[0041] S11: Using Zhang Zhengyou's calibration method, the target camera is calibrated using a checkerboard pattern to obtain the calibration parameters of the target camera.

[0042] Specifically, Zhang Zhengyou's calibration method uses a checkerboard pattern for calibration. Specifically, a checkerboard pattern of known size is captured by the target camera from multiple angles to obtain a set of images. Feature points in the images, such as the corner points of the checkerboard pattern, are detected to obtain the pixel coordinate values ​​of the checkerboard corner points. Based on the known size of the checkerboard pattern and the origin of the world coordinate system, the physical coordinate values ​​of the checkerboard corner points are calculated. Then, the calibration parameters of the target camera are obtained based on the physical coordinate values ​​of the checkerboard corner points. The calibration parameters include intrinsic parameters and extrinsic parameters.

[0043] Of course, in some other implementations, other calibration methods can be used to calibrate the target camera.

[0044] Before step S200 above, the following is also included:

[0045] S110: Preprocess the target image, wherein the preprocessing includes at least one of filtering, contrast enhancement, and binarization.

[0046] Specifically, by preprocessing the target image, the seam information is enhanced, making the boundary easier to identify. Preprocessing includes any one of filtering, contrast enhancement, and binarization, or a combination thereof. Filtering is used to reduce noise and interference in the target image; contrast enhancement increases the clarity of the seams in the target image; and binarization highlights the seam contours.

[0047] In one embodiment, step S110 includes:

[0048] The target image is sequentially subjected to the first filtering process, contrast enhancement process, binarization process, and second filtering process.

[0049] Specifically, firstly, the target image undergoes a first filtering process. By preserving the seam information and reducing noise interference, the reliability of thick target image processing is improved. Preferably, the first filtering process includes median filtering, which better preserves seam information. Secondly, the target image after the first filtering process undergoes contrast enhancement, making the seams clearer and facilitating subsequent detection and recognition. Then, the target image is further binarized. By setting a threshold, the pixels of the target image are divided into two categories: background and target. In seam detection, seams often have obvious color and grayscale features, and binarization can better highlight the seam outline. Finally, the target image undergoes a second filtering process to further remove noise from the binary image, making the seam outline clearer. Preferably, the second filtering process includes median filtering, which better preserves seam information. Therefore, through the above processing steps and two filtering processes, the clarity of the seams is significantly improved, thereby ensuring the accuracy of the seam position.

[0050] Of course, in some other implementations, the preprocessing of the target image can also be carried out in other ways, and the order of the processing steps can also be adjusted to some extent.

[0051] In one embodiment, see Figure 3 The above step S300 includes:

[0052] S310: Based on the calibration parameters of the target camera, convert the first coordinates corresponding to each first position point A1 into the third coordinates in the world coordinate system, and convert the second coordinates corresponding to each second position point A2 into the fourth coordinates in the world coordinate system.

[0053] Specifically, as described above, the calibration parameters of the target camera determine the transformation relationship between the pixel coordinate system and the world coordinate system. Therefore, based on the calibration parameters of the target camera, the coordinates of each first position point A1 and each second position point A2 in the pixel coordinate system can be converted to coordinates in the world coordinate system. This allows us to obtain the true coordinates of the first position point A1 and the second position point A2 in the physical world. Consequently, through the above transformation, we obtain the third coordinate of each first position point A1 and the fourth coordinate of each second position point A2. It should be noted that the calculation method for converting coordinates from the pixel coordinate system to the world coordinate system is existing technology, and relevant publicly available technical content can be consulted; it will not be elaborated upon here.

[0054] S320: Determine the width of the seam in the world coordinate system based on the third coordinate corresponding to each first position point A1 and the fourth coordinate corresponding to each second position point A2.

[0055] Specifically, since the third and fourth coordinates in the world coordinate system are both real coordinates in the physical world, the actual width of the seam can be calculated directly based on the third and fourth coordinates.

[0056] In one embodiment, see Figure 1 and Figure 4 There are multiple first position points A1 and multiple second position points A2; the above step S320 includes:

[0057] S321: For each first position point A1, determine the distance between the first boundary L1 and the second boundary L2 in the first direction X based on the third coordinate corresponding to the first position point A1 and the fourth coordinate corresponding to each second position point A2, wherein the first direction X is set perpendicular to the first boundary L1 and the second boundary L2.

[0058] Specifically, to determine the width of the seam in the world coordinate system, that is, to calculate the distance between the first boundary L1 and the second boundary L2 in the world coordinate system, it is necessary to calculate the distance between the third coordinate of the first position point A1 and the fourth coordinate of the second position point A2 in the first direction X, which is perpendicular to the first boundary L1 and the second boundary L2. Specifically, this can be calculated by projection. First, calculate the straight-line distance between the first position point A1 and the second position point A2. Then, project this line onto the first direction X, and then calculate the projection width W in the first direction X. This projection width W is the distance between the first position point A1 and the second position point A2 in the first direction X. This application does not restrict which points are selected for calculation from the multiple first position points A1 and second position points A2. Any first position point A1 and any second position point A2 can be used as the point for distance calculation, and through the above method, the distances between multiple first boundaries L1 and second boundaries L2 in the first direction X can be obtained.

[0059] S322: Determine the width of the seam based on the obtained multiple distances.

[0060] Specifically, through step S321 above, multiple distance values ​​between the first boundary L1 and the second boundary L2 can be obtained. Determining the final seam width based on these multiple distances can reduce detection errors and improve the accuracy of the seam width. It can be seen that this implementation first transforms the point's position coordinates from the pixel coordinate system to the world coordinate system, and then determines the seam width in the world coordinate system.

[0061] In one embodiment, step S322 includes: calculating the average, median, or mode of the distance to obtain the width of the seam. This ensures that the calculated seam width reflects the horizontal width between most positions of the first boundary L1 and the second boundary L2, thus making the seam width close to the true horizontal level.

[0062] In one embodiment, see Figure 5 The above step S322 includes:

[0063] S3221: Calculates multiple values ​​from the mean, median, and mode of the distance.

[0064] Specifically, at least two of the following distance values ​​are selected for calculation: the mean, the median, and the mode. For example, you can calculate the mean and the median of the distance, or you can calculate the mean and the mode of the distance, or you can calculate the mean, the median, and the mode of the distance.

[0065] S3222: In response to the difference between any two calculated values ​​being less than or equal to the difference threshold, calculate the average of multiple calculated values ​​to obtain the width of the seam.

[0066] Specifically, when any two of the calculated values ​​differ significantly and the difference exceeds the difference threshold, it indicates that the result has a large error and needs to be re-tested. Conversely, when any two of the calculated values ​​are similar and the difference is less than or equal to the difference threshold, it indicates that the result is accurate, and the width of the seam can be further calculated.

[0067] S3223: Otherwise, return to the step of processing the target image using the edge detection algorithm to obtain the first coordinates of at least one first position point on the first boundary in the pixel coordinate system and the second coordinates of at least one second position point on the second boundary in the pixel coordinate system, and then determine the width of the seam in the world coordinate system based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point.

[0068] Specifically, when the difference between any two calculated values ​​in step S3222 is too large, it indicates that an error may have occurred in the previous detection process. Therefore, the previous steps are repeated, that is, steps S200 and S300 are re-executed until the difference between any two calculated values ​​is less than or equal to the difference threshold. Finally, the average of multiple calculated values ​​is calculated to obtain the width of the seam.

[0069] In other embodiments, step S322 may also be: calculating the average, median and mode of the distance, and if two of these three values ​​are equal and both equal to the value M, then the value M is determined as the width of the seam.

[0070] In one embodiment, see Figure 6 The above step S300 includes:

[0071] S330: Determine the width of the seam in the pixel coordinate system based on the first coordinate corresponding to each first position point A1 and the second coordinate corresponding to each second position point A2.

[0072] Specifically, to determine the width of the seam in the pixel coordinate system, that is, to calculate the distance between the first boundary L1 and the second boundary L2 in the pixel coordinate system, it is necessary to determine the distance between the first boundary L1 and the second boundary L2 using the first coordinate of the first position point A1 and the second coordinate of the second position point A2, thereby determining the seam width in the pixel coordinate system. Preferably, multiple distances between the first boundary L1 and the second boundary L2 are obtained, and the average, median, or mode can be taken as the final seam width in the pixel coordinate system.

[0073] S340: Based on the calibration parameters of the target camera, convert the width of the stitching seam in the pixel coordinate system to the width of the stitching seam in the world coordinate system.

[0074] Specifically, by converting the width of the seam in the pixel coordinate system using the calibration parameters of the target camera, the width in the world coordinate system is obtained, thus yielding the actual seam width in the physical world. It can be seen that this implementation first determines the seam width using the coordinates of points in the pixel coordinate system, and then converts the seam width from the pixel coordinate system to the world coordinate system. It should be noted that the calculation method for converting the width in the pixel coordinate system to the width in the world coordinate system is existing technology, and relevant publicly available technical content can be consulted; it will not be elaborated here. As can be seen from the above, this application first takes a picture of the splicing screen to obtain a target image, then processes the target image using an edge detection algorithm to obtain the first coordinates of at least one first position point on the first boundary of the first display panel in the pixel coordinate system and the second coordinates of at least one second position point on the second boundary of the second display panel in the pixel coordinate system. Finally, based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point, the width of the seam in the world coordinate system is determined. This application can determine the actual width of the seam simply and efficiently through image processing methods.

[0075] See Figure 7 , Figure 7This is a schematic diagram of one embodiment of the electronic device of this application. The electronic device 300 includes a processor 310, a memory 320, and a communication circuit 330. The processor 310 is coupled to the memory 320 and the communication circuit 330 respectively. The memory 320 stores program data. The processor 310 executes the program data in the memory 320 to implement the steps in any of the above embodiments. The detailed steps can be found in the above embodiments and will not be repeated here.

[0076] Among them, electronic device 300 can be any device with algorithm capabilities, such as mobile phone, tablet computer, smartwatch, desktop computer or laptop computer, without any restrictions.

[0077] See Figure 8 , Figure 8 This is a schematic diagram of one embodiment of the computer-readable storage medium of this application. The computer-readable storage medium 400 stores a computer program 410, which can be executed by a processor to implement the steps in any of the above methods. Detailed method steps can be found in the relevant content above, and will not be repeated here.

[0078] Specifically, the computer-readable storage medium 400 can be a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or a device that can store the computer program 410. Alternatively, it can be a server that stores the computer program 410, which can send the stored computer program 410 to other devices for execution, or it can run the stored computer program 410 itself.

[0079] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for determining the width of a seam, characterized in that, The method includes: Acquire a target image captured by a target camera onto a splicing screen, wherein the splicing screen includes a first display panel and a second display panel spliced ​​together, the first display panel includes a first boundary, the second display panel includes a second boundary, and the seam between the first boundary and the second boundary is the splicing seam between the first display panel and the second display panel; The target image is processed using an edge detection algorithm to obtain the first coordinates of at least one first position point on the first boundary in the pixel coordinate system and the second coordinates of at least one second position point on the second boundary in the pixel coordinate system. The width of the seam in the world coordinate system is determined based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point.

2. The method according to claim 1, characterized in that, Before processing the target image using the edge detection algorithm, the method further includes: The target image is preprocessed, wherein the preprocessing includes at least one of filtering, contrast enhancement, and binarization.

3. The method according to claim 2, characterized in that, The step of preprocessing the target image includes: The target image is sequentially subjected to a first filtering process, a contrast enhancement process, a binarization process, and a second filtering process; Preferably, the first filtering process includes median filtering. Preferably, the second filtering process includes median filtering.

4. The method according to claim 1, characterized in that, The step of determining the width of the seam in the world coordinate system based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point includes: Based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point are converted into third coordinates in the world coordinate system, and the second coordinates corresponding to each second position point are converted into fourth coordinates in the world coordinate system. The width of the seam in the world coordinate system is determined based on the third coordinate corresponding to each of the first position points and the fourth coordinate corresponding to each of the second position points.

5. The method according to claim 4, characterized in that, There are multiple first location points and multiple second location points; The step of determining the width of the seam in the world coordinate system based on the third coordinate corresponding to each first position point and the fourth coordinate corresponding to each second position point includes: For each first position point, the distance between the first boundary and the second boundary in a first direction is determined based on the third coordinate corresponding to the first position point and the fourth coordinate corresponding to each second position point, wherein the first direction is set perpendicular to the first boundary and the second boundary; The width of the seam is determined based on the obtained distances.

6. The method according to claim 5, characterized in that, The step of determining the width of the seam based on the obtained multiple distances includes: The width of the seam is obtained by calculating the average, median, or mode of the distance. Alternatively, the step of determining the width of the seam based on the obtained plurality of distances includes: Calculate multiple calculated values ​​among the mean, median, and mode of the distance; In response to any two calculated values ​​having a difference less than or equal to a difference threshold, the average of the calculated values ​​is calculated to obtain the width of the seam. Otherwise, return to the step of processing the target image using the edge detection algorithm to obtain the first coordinates of at least one first position point on the first boundary in the pixel coordinate system and the second coordinates of at least one second position point on the second boundary in the pixel coordinate system, and then to the step of determining the width of the seam in the world coordinate system based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point.

7. The method according to claim 1, characterized in that, The step of determining the width of the seam in the world coordinate system based on the calibration parameters of the target camera, the first coordinates corresponding to each first position point, and the second coordinates corresponding to each second position point includes: The width of the seam in the pixel coordinate system is determined based on the first coordinates corresponding to each first position point and the second coordinates corresponding to each second position point; Based on the calibration parameters of the target camera, the width of the stitching seam in the pixel coordinate system is converted to the width of the stitching seam in the world coordinate system.

8. The method according to claim 1, characterized in that, Before acquiring the target image of the spliced ​​screen captured by the target camera, the method further includes: The target camera is calibrated to obtain calibration parameters of the target camera. The calibration parameters include intrinsic parameters and extrinsic parameters. The intrinsic parameters include at least one of focal length and pixel size. The extrinsic parameters include at least one of rotation matrix and translation matrix. Preferably, the step of calibrating the target camera to obtain the calibration parameters of the target camera includes: The Zhang Zhengyou calibration method is used to calibrate the target camera using a checkerboard pattern, thereby obtaining the calibration parameters of the target camera.

9. An electronic device, characterized in that, The electronic device includes a processor, a memory, and a communication circuit. The processor is coupled to the memory and the communication circuit. The memory stores program data. The processor executes the program data in the memory to implement the steps of the method as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that can be executed by a processor to implement the steps of the method as described in any one of claims 1-8.